Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/UI_interface.h
| Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | |||||
| struct wmOperator; | struct wmOperator; | ||||
| struct wmOperatorType; | struct wmOperatorType; | ||||
| struct wmWindow; | struct wmWindow; | ||||
| typedef struct uiBlock uiBlock; | typedef struct uiBlock uiBlock; | ||||
| typedef struct uiBut uiBut; | typedef struct uiBut uiBut; | ||||
| typedef struct uiLayout uiLayout; | typedef struct uiLayout uiLayout; | ||||
| typedef struct uiPopupBlockHandle uiPopupBlockHandle; | typedef struct uiPopupBlockHandle uiPopupBlockHandle; | ||||
| /* C handle for C++ #ui::AbstractTreeView type. */ | |||||
| typedef struct uiTreeViewHandle uiTreeViewHandle; | |||||
| /* C handle for C++ #ui::AbstractTreeViewItem type. */ | |||||
| typedef struct uiTreeViewItemHandle uiTreeViewItemHandle; | |||||
| /* Defines */ | /* Defines */ | ||||
| /* char for splitting strings, aligning shortcuts in menus, users never see */ | /* char for splitting strings, aligning shortcuts in menus, users never see */ | ||||
| #define UI_SEP_CHAR '|' | #define UI_SEP_CHAR '|' | ||||
| #define UI_SEP_CHAR_S "|" | #define UI_SEP_CHAR_S "|" | ||||
| /* names */ | /* names */ | ||||
| ▲ Show 20 Lines • Show All 289 Lines • ▼ Show 20 Lines | typedef enum { | ||||
| UI_BTYPE_SEPR = 54 << 9, | UI_BTYPE_SEPR = 54 << 9, | ||||
| UI_BTYPE_SEPR_LINE = 55 << 9, | UI_BTYPE_SEPR_LINE = 55 << 9, | ||||
| /** Dynamically fill available space. */ | /** Dynamically fill available space. */ | ||||
| UI_BTYPE_SEPR_SPACER = 56 << 9, | UI_BTYPE_SEPR_SPACER = 56 << 9, | ||||
| /** Resize handle (resize uilist). */ | /** Resize handle (resize uilist). */ | ||||
| UI_BTYPE_GRIP = 57 << 9, | UI_BTYPE_GRIP = 57 << 9, | ||||
| UI_BTYPE_DECORATOR = 58 << 9, | UI_BTYPE_DECORATOR = 58 << 9, | ||||
| UI_BTYPE_DATASETROW = 59 << 9, | UI_BTYPE_DATASETROW = 59 << 9, | ||||
| /* An item in a tree view. Parent items may be collapsible. */ | |||||
| UI_BTYPE_TREEROW = 60 << 9, | |||||
| } eButType; | } eButType; | ||||
| #define BUTTYPE (63 << 9) | #define BUTTYPE (63 << 9) | ||||
| /** Gradient types, for color picker #UI_BTYPE_HSVCUBE etc. */ | /** Gradient types, for color picker #UI_BTYPE_HSVCUBE etc. */ | ||||
| typedef enum eButGradientType { | typedef enum eButGradientType { | ||||
| UI_GRAD_SV = 0, | UI_GRAD_SV = 0, | ||||
| UI_GRAD_HV = 1, | UI_GRAD_HV = 1, | ||||
| ▲ Show 20 Lines • Show All 1,267 Lines • ▼ Show 20 Lines | |||||
| int UI_search_items_find_index(uiSearchItems *items, const char *name); | int UI_search_items_find_index(uiSearchItems *items, const char *name); | ||||
| void UI_but_hint_drawstr_set(uiBut *but, const char *string); | void UI_but_hint_drawstr_set(uiBut *but, const char *string); | ||||
| void UI_but_datasetrow_indentation_set(uiBut *but, int indentation); | void UI_but_datasetrow_indentation_set(uiBut *but, int indentation); | ||||
| void UI_but_datasetrow_component_set(uiBut *but, uint8_t geometry_component_type); | void UI_but_datasetrow_component_set(uiBut *but, uint8_t geometry_component_type); | ||||
| void UI_but_datasetrow_domain_set(uiBut *but, uint8_t attribute_domain); | void UI_but_datasetrow_domain_set(uiBut *but, uint8_t attribute_domain); | ||||
| uint8_t UI_but_datasetrow_component_get(uiBut *but); | uint8_t UI_but_datasetrow_component_get(uiBut *but); | ||||
| uint8_t UI_but_datasetrow_domain_get(uiBut *but); | uint8_t UI_but_datasetrow_domain_get(uiBut *but); | ||||
| void UI_but_treerow_indentation_set(uiBut *but, int indentation); | |||||
| void UI_but_node_link_set(uiBut *but, struct bNodeSocket *socket, const float draw_color[4]); | void UI_but_node_link_set(uiBut *but, struct bNodeSocket *socket, const float draw_color[4]); | ||||
| void UI_but_number_step_size_set(uiBut *but, float step_size); | void UI_but_number_step_size_set(uiBut *but, float step_size); | ||||
| void UI_but_number_precision_set(uiBut *but, float precision); | void UI_but_number_precision_set(uiBut *but, float precision); | ||||
| void UI_block_func_handle_set(uiBlock *block, uiBlockHandleFunc func, void *arg); | void UI_block_func_handle_set(uiBlock *block, uiBlockHandleFunc func, void *arg); | ||||
| void UI_block_func_butmenu_set(uiBlock *block, uiMenuHandleFunc func, void *arg); | void UI_block_func_butmenu_set(uiBlock *block, uiMenuHandleFunc func, void *arg); | ||||
| ▲ Show 20 Lines • Show All 1,066 Lines • ▼ Show 20 Lines | |||||
| void UI_interface_tag_script_reload(void); | void UI_interface_tag_script_reload(void); | ||||
| /* Special drawing for toolbar, mainly workarounds for inflexible icon sizing. */ | /* Special drawing for toolbar, mainly workarounds for inflexible icon sizing. */ | ||||
| #define USE_UI_TOOLBAR_HACK | #define USE_UI_TOOLBAR_HACK | ||||
| /* Support click-drag motion which presses the button and closes a popover (like a menu). */ | /* Support click-drag motion which presses the button and closes a popover (like a menu). */ | ||||
| #define USE_UI_POPOVER_ONCE | #define USE_UI_POPOVER_ONCE | ||||
| bool UI_tree_view_item_is_active(uiTreeViewItemHandle *item_); | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||