Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/UI_interface.h
| Show First 20 Lines • Show All 195 Lines • ▼ Show 20 Lines | enum { | ||||
| /** used to flag if color hsv-circle should keep luminance */ | /** used to flag if color hsv-circle should keep luminance */ | ||||
| UI_BUT_VEC_SIZE_LOCK = 1 << 22, | UI_BUT_VEC_SIZE_LOCK = 1 << 22, | ||||
| /** cubic saturation for the color wheel */ | /** cubic saturation for the color wheel */ | ||||
| UI_BUT_COLOR_CUBIC = 1 << 23, | UI_BUT_COLOR_CUBIC = 1 << 23, | ||||
| /** This but is "inside" a list item (currently used to change theme colors). */ | /** This but is "inside" a list item (currently used to change theme colors). */ | ||||
| UI_BUT_LIST_ITEM = 1 << 24, | UI_BUT_LIST_ITEM = 1 << 24, | ||||
| /** edit this button as well as the active button (not just dragging) */ | /** edit this button as well as the active button (not just dragging) */ | ||||
| UI_BUT_DRAG_MULTI = 1 << 25, | UI_BUT_DRAG_MULTI = 1 << 25, | ||||
| /** use for popups to start editing the button on initialization. */ | |||||
| UI_BUT_ACTIVATE_INIT = 1 << 26, | |||||
| /** #uiBut.str contains #UI_SEP_CHAR, used for key shortcuts */ | /** #uiBut.str contains #UI_SEP_CHAR, used for key shortcuts */ | ||||
| UI_BUT_HAS_SEP_CHAR = 1 << 27, | UI_BUT_HAS_SEP_CHAR = 1 << 27, | ||||
| /** Don't run updates while dragging (needed in rare cases). */ | /** Don't run updates while dragging (needed in rare cases). */ | ||||
| UI_BUT_UPDATE_DELAY = 1 << 28, | UI_BUT_UPDATE_DELAY = 1 << 28, | ||||
| /** When widget is in textedit mode, update value on each char stroke */ | /** When widget is in textedit mode, update value on each char stroke */ | ||||
| UI_BUT_TEXTEDIT_UPDATE = 1 << 29, | UI_BUT_TEXTEDIT_UPDATE = 1 << 29, | ||||
| /** Show 'x' icon to clear/unlink value of text or search button. */ | /** Show 'x' icon to clear/unlink value of text or search button. */ | ||||
| ▲ Show 20 Lines • Show All 414 Lines • ▼ Show 20 Lines | |||||
| void UI_but_drawflag_enable(uiBut *but, int flag); | void UI_but_drawflag_enable(uiBut *but, int flag); | ||||
| void UI_but_drawflag_disable(uiBut *but, int flag); | void UI_but_drawflag_disable(uiBut *but, int flag); | ||||
| void UI_but_type_set_menu_from_pulldown(uiBut *but); | void UI_but_type_set_menu_from_pulldown(uiBut *but); | ||||
| /* special button case, only draw it when used actively, for outliner etc */ | /* special button case, only draw it when used actively, for outliner etc */ | ||||
| bool UI_but_active_only(const struct bContext *C, struct ARegion *ar, uiBlock *block, uiBut *but); | bool UI_but_active_only(const struct bContext *C, struct ARegion *ar, uiBlock *block, uiBut *but); | ||||
| bool UI_block_active_only_flagged_buttons(const struct bContext *C, struct ARegion *ar, struct uiBlock *block); | |||||
| void UI_but_execute(const struct bContext *C, uiBut *but); | void UI_but_execute(const struct bContext *C, uiBut *but); | ||||
| bool UI_but_online_manual_id( | bool UI_but_online_manual_id( | ||||
| const uiBut *but, | const uiBut *but, | ||||
| char *r_str, size_t maxlength) | char *r_str, size_t maxlength) | ||||
| ATTR_WARN_UNUSED_RESULT; | ATTR_WARN_UNUSED_RESULT; | ||||
| bool UI_but_online_manual_id_from_active( | bool UI_but_online_manual_id_from_active( | ||||
| ▲ Show 20 Lines • Show All 406 Lines • ▼ Show 20 Lines | |||||
| void UI_menutype_draw(struct bContext *C, struct MenuType *mt, struct uiLayout *layout); | void UI_menutype_draw(struct bContext *C, struct MenuType *mt, struct uiLayout *layout); | ||||
| void UI_paneltype_draw(struct bContext *C, struct PanelType *pt, struct uiLayout *layout); | void UI_paneltype_draw(struct bContext *C, struct PanelType *pt, struct uiLayout *layout); | ||||
| /* Only for convenience. */ | /* Only for convenience. */ | ||||
| void uiLayoutSetContextFromBut(uiLayout *layout, uiBut *but); | void uiLayoutSetContextFromBut(uiLayout *layout, uiBut *but); | ||||
| void uiLayoutSetOperatorContext(uiLayout *layout, int opcontext); | void uiLayoutSetOperatorContext(uiLayout *layout, int opcontext); | ||||
| void uiLayoutSetActive(uiLayout *layout, bool active); | void uiLayoutSetActive(uiLayout *layout, bool active); | ||||
| void uiLayoutSetActivateInit(uiLayout *layout, bool active); | |||||
| void uiLayoutSetEnabled(uiLayout *layout, bool enabled); | void uiLayoutSetEnabled(uiLayout *layout, bool enabled); | ||||
| void uiLayoutSetRedAlert(uiLayout *layout, bool redalert); | void uiLayoutSetRedAlert(uiLayout *layout, bool redalert); | ||||
| void uiLayoutSetAlignment(uiLayout *layout, char alignment); | void uiLayoutSetAlignment(uiLayout *layout, char alignment); | ||||
| void uiLayoutSetKeepAspect(uiLayout *layout, bool keepaspect); | void uiLayoutSetKeepAspect(uiLayout *layout, bool keepaspect); | ||||
| void uiLayoutSetScaleX(uiLayout *layout, float scale); | void uiLayoutSetScaleX(uiLayout *layout, float scale); | ||||
| void uiLayoutSetScaleY(uiLayout *layout, float scale); | void uiLayoutSetScaleY(uiLayout *layout, float scale); | ||||
| void uiLayoutSetUnitsX(uiLayout *layout, float unit); | void uiLayoutSetUnitsX(uiLayout *layout, float unit); | ||||
| void uiLayoutSetUnitsY(uiLayout *layout, float unit); | void uiLayoutSetUnitsY(uiLayout *layout, float unit); | ||||
| void uiLayoutSetEmboss(uiLayout *layout, char emboss); | void uiLayoutSetEmboss(uiLayout *layout, char emboss); | ||||
| void uiLayoutSetPropSep(uiLayout *layout, bool is_sep); | void uiLayoutSetPropSep(uiLayout *layout, bool is_sep); | ||||
| void uiLayoutSetPropDecorate(uiLayout *layout, bool is_sep); | void uiLayoutSetPropDecorate(uiLayout *layout, bool is_sep); | ||||
| int uiLayoutGetLocalDir(const uiLayout *layout); | int uiLayoutGetLocalDir(const uiLayout *layout); | ||||
| int uiLayoutGetOperatorContext(uiLayout *layout); | int uiLayoutGetOperatorContext(uiLayout *layout); | ||||
| bool uiLayoutGetActive(uiLayout *layout); | bool uiLayoutGetActive(uiLayout *layout); | ||||
| bool uiLayoutGetActivateInit(uiLayout *layout); | |||||
| bool uiLayoutGetEnabled(uiLayout *layout); | bool uiLayoutGetEnabled(uiLayout *layout); | ||||
| bool uiLayoutGetRedAlert(uiLayout *layout); | bool uiLayoutGetRedAlert(uiLayout *layout); | ||||
| int uiLayoutGetAlignment(uiLayout *layout); | int uiLayoutGetAlignment(uiLayout *layout); | ||||
| bool uiLayoutGetKeepAspect(uiLayout *layout); | bool uiLayoutGetKeepAspect(uiLayout *layout); | ||||
| int uiLayoutGetWidth(uiLayout *layout); | int uiLayoutGetWidth(uiLayout *layout); | ||||
| float uiLayoutGetScaleX(uiLayout *layout); | float uiLayoutGetScaleX(uiLayout *layout); | ||||
| float uiLayoutGetScaleY(uiLayout *layout); | float uiLayoutGetScaleY(uiLayout *layout); | ||||
| float uiLayoutGetUnitsX(uiLayout *layout); | float uiLayoutGetUnitsX(uiLayout *layout); | ||||
| ▲ Show 20 Lines • Show All 342 Lines • Show Last 20 Lines | |||||