Blender
V2.93
source
blender
editors
space_buttons
buttons_intern.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*
16
* The Original Code is Copyright (C) 2008 Blender Foundation.
17
* All rights reserved.
18
*/
19
24
#pragma once
25
26
#include "
BLI_bitmap.h
"
27
#include "
DNA_listBase.h
"
28
#include "
RNA_types.h
"
29
30
struct
ARegionType
;
31
struct
ID
;
32
struct
SpaceProperties
;
33
struct
Tex
;
34
struct
bContext
;
35
struct
bContextDataResult
;
36
struct
bNode
;
37
struct
bNodeTree
;
38
struct
wmOperatorType
;
39
40
struct
SpaceProperties_Runtime
{
42
char
search_string
[
UI_MAX_NAME_STR
];
47
BLI_bitmap
*
tab_search_results
;
48
};
49
50
/* context data */
51
52
typedef
struct
ButsContextPath
{
53
PointerRNA
ptr
[8];
54
int
len
;
55
int
flag
;
56
int
collection_ctx
;
57
}
ButsContextPath
;
58
59
typedef
struct
ButsTextureUser
{
60
struct
ButsTextureUser
*
next
, *
prev
;
61
62
struct
ID
*
id
;
63
64
PointerRNA
ptr
;
65
PropertyRNA
*
prop
;
66
67
struct
bNodeTree
*
ntree
;
68
struct
bNode
*
node
;
69
70
const
char
*
category
;
71
int
icon
;
72
const
char
*
name
;
73
74
int
index
;
75
}
ButsTextureUser
;
76
77
typedef
struct
ButsContextTexture
{
78
ListBase
users
;
79
80
struct
Tex
*
texture
;
81
82
struct
ButsTextureUser
*
user
;
83
int
index
;
84
}
ButsContextTexture
;
85
86
/* internal exports only */
87
88
/* buttons_context.c */
89
void
buttons_context_compute
(
const
struct
bContext
*
C
,
struct
SpaceProperties
*sbuts);
90
int
buttons_context
(
const
struct
bContext
*
C
,
91
const
char
*member,
92
struct
bContextDataResult
*
result
);
93
void
buttons_context_register
(
struct
ARegionType
*art);
94
struct
ID
*
buttons_context_id_path
(
const
struct
bContext
*
C
);
95
96
extern
const
char
*
buttons_context_dir
[];
/* doc access */
97
98
/* buttons_texture.c */
99
void
buttons_texture_context_compute
(
const
struct
bContext
*
C
,
struct
SpaceProperties
*sbuts);
100
101
/* buttons_ops.c */
102
void
BUTTONS_OT_start_filter
(
struct
wmOperatorType
*
ot
);
103
void
BUTTONS_OT_clear_filter
(
struct
wmOperatorType
*
ot
);
104
void
BUTTONS_OT_toggle_pin
(
struct
wmOperatorType
*
ot
);
105
void
BUTTONS_OT_file_browse
(
struct
wmOperatorType
*
ot
);
106
void
BUTTONS_OT_directory_browse
(
struct
wmOperatorType
*
ot
);
107
void
BUTTONS_OT_context_menu
(
struct
wmOperatorType
*
ot
);
BLI_bitmap.h
BLI_bitmap
unsigned int BLI_bitmap
Definition:
BLI_bitmap.h:32
result
double result
Definition:
BLI_expr_pylike_eval_test.cc:348
DNA_listBase.h
These structs are the foundation for all linked lists in the library system.
RNA_types.h
C
#define C
Definition:
RandGen.cpp:39
UI_MAX_NAME_STR
#define UI_MAX_NAME_STR
Definition:
UI_interface.h:91
BUTTONS_OT_context_menu
void BUTTONS_OT_context_menu(struct wmOperatorType *ot)
Definition:
buttons_ops.c:171
buttons_context_id_path
struct ID * buttons_context_id_path(const struct bContext *C)
buttons_context_dir
const char * buttons_context_dir[]
Definition:
buttons_context.c:814
BUTTONS_OT_directory_browse
void BUTTONS_OT_directory_browse(struct wmOperatorType *ot)
Definition:
buttons_ops.c:385
BUTTONS_OT_toggle_pin
void BUTTONS_OT_toggle_pin(struct wmOperatorType *ot)
Definition:
buttons_ops.c:142
buttons_context_compute
void buttons_context_compute(const struct bContext *C, struct SpaceProperties *sbuts)
BUTTONS_OT_file_browse
void BUTTONS_OT_file_browse(struct wmOperatorType *ot)
Definition:
buttons_ops.c:358
ButsTextureUser
struct ButsTextureUser ButsTextureUser
buttons_texture_context_compute
void buttons_texture_context_compute(const struct bContext *C, struct SpaceProperties *sbuts)
ButsContextPath
struct ButsContextPath ButsContextPath
ButsContextTexture
struct ButsContextTexture ButsContextTexture
BUTTONS_OT_start_filter
void BUTTONS_OT_start_filter(struct wmOperatorType *ot)
Definition:
buttons_ops.c:76
buttons_context
int buttons_context(const struct bContext *C, const char *member, struct bContextDataResult *result)
BUTTONS_OT_clear_filter
void BUTTONS_OT_clear_filter(struct wmOperatorType *ot)
Definition:
buttons_ops.c:101
buttons_context_register
void buttons_context_register(struct ARegionType *art)
Definition:
buttons_context.c:1262
ARegionType
Definition:
BKE_screen.h:159
ButsContextPath
Definition:
buttons_intern.h:52
ButsContextPath::flag
int flag
Definition:
buttons_intern.h:55
ButsContextPath::len
int len
Definition:
buttons_intern.h:54
ButsContextPath::collection_ctx
int collection_ctx
Definition:
buttons_intern.h:56
ButsContextPath::ptr
PointerRNA ptr[8]
Definition:
buttons_intern.h:53
ButsContextTexture
Definition:
buttons_intern.h:77
ButsContextTexture::user
struct ButsTextureUser * user
Definition:
buttons_intern.h:82
ButsContextTexture::users
ListBase users
Definition:
buttons_intern.h:78
ButsContextTexture::index
int index
Definition:
buttons_intern.h:83
ButsContextTexture::texture
struct Tex * texture
Definition:
buttons_intern.h:80
ButsTextureUser
Definition:
buttons_intern.h:59
ButsTextureUser::category
const char * category
Definition:
buttons_intern.h:70
ButsTextureUser::icon
int icon
Definition:
buttons_intern.h:71
ButsTextureUser::prev
struct ButsTextureUser * prev
Definition:
buttons_intern.h:60
ButsTextureUser::id
struct ID * id
Definition:
buttons_intern.h:62
ButsTextureUser::ntree
struct bNodeTree * ntree
Definition:
buttons_intern.h:67
ButsTextureUser::name
const char * name
Definition:
buttons_intern.h:72
ButsTextureUser::index
int index
Definition:
buttons_intern.h:74
ButsTextureUser::node
struct bNode * node
Definition:
buttons_intern.h:68
ButsTextureUser::next
struct ButsTextureUser * next
Definition:
buttons_intern.h:60
ButsTextureUser::ptr
PointerRNA ptr
Definition:
buttons_intern.h:64
ButsTextureUser::prop
PropertyRNA * prop
Definition:
buttons_intern.h:65
ID
Definition:
DNA_ID.h:273
ListBase
Definition:
DNA_listBase.h:46
PointerRNA
Definition:
RNA_types.h:49
PropertyRNA
Definition:
rna_internal_types.h:287
SpaceProperties_Runtime
Definition:
buttons_intern.h:40
SpaceProperties_Runtime::tab_search_results
BLI_bitmap * tab_search_results
Definition:
buttons_intern.h:47
SpaceProperties_Runtime::search_string
char search_string[UI_MAX_NAME_STR]
Definition:
buttons_intern.h:42
SpaceProperties
Definition:
DNA_space_types.h:145
Tex
Definition:
DNA_texture_types.h:159
bContextDataResult
Definition:
context.c:249
bContext
Definition:
context.c:69
bNodeTree
Definition:
DNA_node_types.h:426
bNode
Definition:
DNA_node_types.h:212
wmOperatorType
Definition:
WM_types.h:719
ot
wmOperatorType * ot
Definition:
wm_files.c:3156
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1