Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/UI_interface.h
| Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
| struct ScrArea; | struct ScrArea; | ||||
| struct bContext; | struct bContext; | ||||
| struct bContextStore; | struct bContextStore; | ||||
| struct bNode; | struct bNode; | ||||
| struct bNodeSocket; | struct bNodeSocket; | ||||
| struct bNodeTree; | struct bNodeTree; | ||||
| struct bScreen; | struct bScreen; | ||||
| struct rcti; | struct rcti; | ||||
| struct uiButSearch; | |||||
| struct uiFontStyle; | struct uiFontStyle; | ||||
| struct uiList; | struct uiList; | ||||
| struct uiStyle; | struct uiStyle; | ||||
| struct uiWidgetColors; | struct uiWidgetColors; | ||||
| struct wmDrag; | struct wmDrag; | ||||
| struct wmDropBox; | struct wmDropBox; | ||||
| struct wmEvent; | struct wmEvent; | ||||
| struct wmEvent; | struct wmEvent; | ||||
| ▲ Show 20 Lines • Show All 303 Lines • ▼ Show 20 Lines | typedef enum { | ||||
| UI_BTYPE_PROGRESS_BAR = 51 << 9, | UI_BTYPE_PROGRESS_BAR = 51 << 9, | ||||
| UI_BTYPE_NODE_SOCKET = 53 << 9, | UI_BTYPE_NODE_SOCKET = 53 << 9, | ||||
| 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, | |||||
| } 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. */ | ||||
| enum { | enum { | ||||
| UI_GRAD_SV = 0, | UI_GRAD_SV = 0, | ||||
| UI_GRAD_HV = 1, | UI_GRAD_HV = 1, | ||||
| ▲ Show 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | |||||
| typedef void (*uiButHandleFunc)(struct bContext *C, void *arg1, void *arg2); | typedef void (*uiButHandleFunc)(struct bContext *C, void *arg1, void *arg2); | ||||
| typedef void (*uiButHandleRenameFunc)(struct bContext *C, void *arg, char *origstr); | typedef void (*uiButHandleRenameFunc)(struct bContext *C, void *arg, char *origstr); | ||||
| typedef void (*uiButHandleNFunc)(struct bContext *C, void *argN, void *arg2); | typedef void (*uiButHandleNFunc)(struct bContext *C, void *argN, void *arg2); | ||||
| typedef void (*uiButHandleHoldFunc)(struct bContext *C, struct ARegion *butregion, uiBut *but); | typedef void (*uiButHandleHoldFunc)(struct bContext *C, struct ARegion *butregion, uiBut *but); | ||||
| typedef int (*uiButCompleteFunc)(struct bContext *C, char *str, void *arg); | typedef int (*uiButCompleteFunc)(struct bContext *C, char *str, void *arg); | ||||
| typedef struct ARegion *(*uiButSearchCreateFunc)(struct bContext *C, | typedef struct ARegion *(*uiButSearchCreateFunc)(struct bContext *C, | ||||
| struct ARegion *butregion, | struct ARegion *butregion, | ||||
| uiBut *but); | struct uiButSearch *search_but); | ||||
| typedef void (*uiButSearchFunc)(const struct bContext *C, | typedef void (*uiButSearchFunc)(const struct bContext *C, | ||||
| void *arg, | void *arg, | ||||
| const char *str, | const char *str, | ||||
| uiSearchItems *items); | uiSearchItems *items); | ||||
| typedef void (*uiButSearchArgFreeFunc)(void *arg); | typedef void (*uiButSearchArgFreeFunc)(void *arg); | ||||
| /* Must return allocated string. */ | /* Must return allocated string. */ | ||||
| Show All 13 Lines | |||||
| * \return true when the button was changed. | * \return true when the button was changed. | ||||
| */ | */ | ||||
| typedef bool (*uiMenuStepFunc)(struct bContext *C, int direction, void *arg1); | typedef bool (*uiMenuStepFunc)(struct bContext *C, int direction, void *arg1); | ||||
| /* interface_query.c */ | /* interface_query.c */ | ||||
| bool UI_but_has_tooltip_label(const uiBut *but); | bool UI_but_has_tooltip_label(const uiBut *but); | ||||
| bool UI_but_is_tool(const uiBut *but); | bool UI_but_is_tool(const uiBut *but); | ||||
| bool UI_but_is_utf8(const uiBut *but); | bool UI_but_is_utf8(const uiBut *but); | ||||
| #define UI_but_is_decorator(but) ((but)->func == ui_but_anim_decorate_cb) | #define UI_but_is_decorator(but) ((but)->type == UI_BTYPE_DECORATOR) | ||||
Severin: I can just ged rid of this macro and do the checks in place, don't mind really. | |||||
| bool UI_block_is_empty_ex(const uiBlock *block, const bool skip_title); | bool UI_block_is_empty_ex(const uiBlock *block, const bool skip_title); | ||||
| bool UI_block_is_empty(const uiBlock *block); | bool UI_block_is_empty(const uiBlock *block); | ||||
| bool UI_block_can_add_separator(const uiBlock *block); | bool UI_block_can_add_separator(const uiBlock *block); | ||||
| /* interface_region_menu_popup.c */ | /* interface_region_menu_popup.c */ | ||||
| /** | /** | ||||
| * Popup Menus | * Popup Menus | ||||
| ▲ Show 20 Lines • Show All 1,343 Lines • ▼ Show 20 Lines | uiLayout *uiLayoutGridFlow(uiLayout *layout, | ||||
| bool row_major, | bool row_major, | ||||
| int columns_len, | int columns_len, | ||||
| bool even_columns, | bool even_columns, | ||||
| bool even_rows, | bool even_rows, | ||||
| bool align); | bool align); | ||||
| uiLayout *uiLayoutBox(uiLayout *layout); | uiLayout *uiLayoutBox(uiLayout *layout); | ||||
| uiLayout *uiLayoutListBox(uiLayout *layout, | uiLayout *uiLayoutListBox(uiLayout *layout, | ||||
| struct uiList *ui_list, | struct uiList *ui_list, | ||||
| struct PointerRNA *ptr, | |||||
| struct PropertyRNA *prop, | |||||
| struct PointerRNA *actptr, | struct PointerRNA *actptr, | ||||
| struct PropertyRNA *actprop); | struct PropertyRNA *actprop); | ||||
| uiLayout *uiLayoutAbsolute(uiLayout *layout, bool align); | uiLayout *uiLayoutAbsolute(uiLayout *layout, bool align); | ||||
| uiLayout *uiLayoutSplit(uiLayout *layout, float percentage, bool align); | uiLayout *uiLayoutSplit(uiLayout *layout, float percentage, bool align); | ||||
| uiLayout *uiLayoutOverlap(uiLayout *layout); | uiLayout *uiLayoutOverlap(uiLayout *layout); | ||||
| uiBlock *uiLayoutAbsoluteBlock(uiLayout *layout); | uiBlock *uiLayoutAbsoluteBlock(uiLayout *layout); | ||||
| uiLayout *uiLayoutRadial(uiLayout *layout); | uiLayout *uiLayoutRadial(uiLayout *layout); | ||||
| ▲ Show 20 Lines • Show All 633 Lines • Show Last 20 Lines | |||||
I can just ged rid of this macro and do the checks in place, don't mind really.