Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/UI_interface.h
| Show First 20 Lines • Show All 1,677 Lines • ▼ Show 20 Lines | |||||
| * Check if a string is in an existing search box. | * Check if a string is in an existing search box. | ||||
| */ | */ | ||||
| int UI_search_items_find_index(uiSearchItems *items, const char *name); | int UI_search_items_find_index(uiSearchItems *items, const char *name); | ||||
| /** | /** | ||||
| * Adds a hint to the button which draws right aligned, grayed out and never clipped. | * Adds a hint to the button which draws right aligned, grayed out and never clipped. | ||||
| */ | */ | ||||
| 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_icon_indicator_number_set(uiBut *but, const int indicator_number); | |||||
| 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,089 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Normally, we handle the split layout in #uiItemFullR(), but there are other cases where the | * Normally, we handle the split layout in #uiItemFullR(), but there are other cases where the | ||||
| * logic is needed. Ideally, #uiItemFullR() could just call this, but it currently has too many | * logic is needed. Ideally, #uiItemFullR() could just call this, but it currently has too many | ||||
| * special needs. | * special needs. | ||||
| */ | */ | ||||
| uiPropertySplitWrapper uiItemPropertySplitWrapperCreate(uiLayout *parent_layout); | uiPropertySplitWrapper uiItemPropertySplitWrapperCreate(uiLayout *parent_layout); | ||||
| void uiItemL(uiLayout *layout, const char *name, int icon); /* label */ | void uiItemL(uiLayout *layout, const char *name, int icon); /* label */ | ||||
| void uiItemL_ex(uiLayout *layout, const char *name, int icon, bool highlight, bool redalert); | struct uiBut *uiItemL_ex( | ||||
| uiLayout *layout, const char *name, int icon, bool highlight, bool redalert); | |||||
| /** | /** | ||||
| * Helper to add a label and creates a property split layout if needed. | * Helper to add a label and creates a property split layout if needed. | ||||
| */ | */ | ||||
| uiLayout *uiItemL_respect_property_split(uiLayout *layout, const char *text, int icon); | uiLayout *uiItemL_respect_property_split(uiLayout *layout, const char *text, int icon); | ||||
| /** | /** | ||||
| * Label icon for dragging. | * Label icon for dragging. | ||||
| */ | */ | ||||
| void uiItemLDrag(uiLayout *layout, struct PointerRNA *ptr, const char *name, int icon); | void uiItemLDrag(uiLayout *layout, struct PointerRNA *ptr, const char *name, int icon); | ||||
| ▲ Show 20 Lines • Show All 443 Lines • Show Last 20 Lines | |||||