Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/UI_interface.h
| Show First 20 Lines • Show All 432 Lines • ▼ Show 20 Lines | |||||
| 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, struct ARegion *butregion, uiBut *but); | typedef struct ARegion *(*uiButSearchCreateFunc)(struct bContext *C, struct ARegion *butregion, uiBut *but); | ||||
| typedef void (*uiButSearchFunc)(const struct bContext *C, void *arg, const char *str, uiSearchItems *items); | typedef void (*uiButSearchFunc)(const struct bContext *C, void *arg, const char *str, uiSearchItems *items); | ||||
| /* Must return allocated string. */ | /* Must return allocated string. */ | ||||
| typedef char *(*uiButToolTipFunc)(struct bContext *C, void *argN, const char *tip); | typedef char *(*uiButToolTipFunc)(struct bContext *C, void *argN, const char *tip); | ||||
| typedef int (*uiButPushedStateFunc)(struct bContext *C, void *arg); | |||||
| typedef void (*uiBlockHandleFunc)(struct bContext *C, void *arg, int event); | typedef void (*uiBlockHandleFunc)(struct bContext *C, void *arg, int event); | ||||
| /* Menu Callbacks */ | /* Menu Callbacks */ | ||||
| typedef void (*uiMenuCreateFunc)(struct bContext *C, struct uiLayout *layout, void *arg1); | typedef void (*uiMenuCreateFunc)(struct bContext *C, struct uiLayout *layout, void *arg1); | ||||
| typedef void (*uiMenuHandleFunc)(struct bContext *C, void *arg, int event); | typedef void (*uiMenuHandleFunc)(struct bContext *C, void *arg, int event); | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 426 Lines • ▼ Show 20 Lines | bool UI_textbutton_activate_rna( | ||||
| const struct bContext *C, struct ARegion *ar, | const struct bContext *C, struct ARegion *ar, | ||||
| const void *rna_poin_data, const char *rna_prop_id); | const void *rna_poin_data, const char *rna_prop_id); | ||||
| bool UI_textbutton_activate_but(const struct bContext *C, uiBut *but); | bool UI_textbutton_activate_but(const struct bContext *C, uiBut *but); | ||||
| void UI_but_focus_on_enter_event(struct wmWindow *win, uiBut *but); | void UI_but_focus_on_enter_event(struct wmWindow *win, uiBut *but); | ||||
| void UI_but_func_hold_set(uiBut *but, uiButHandleHoldFunc func, void *argN); | void UI_but_func_hold_set(uiBut *but, uiButHandleHoldFunc func, void *argN); | ||||
| void UI_but_func_pushed_state_set(uiBut *but, uiButPushedStateFunc func, void *arg); | |||||
| /* Autocomplete | /* Autocomplete | ||||
| * | * | ||||
| * Tab complete helper functions, for use in uiButCompleteFunc callbacks. | * Tab complete helper functions, for use in uiButCompleteFunc callbacks. | ||||
| * Call begin once, then multiple times do_name with all possibilities, | * Call begin once, then multiple times do_name with all possibilities, | ||||
| * and finally end to finish and get the completed name. */ | * and finally end to finish and get the completed name. */ | ||||
| typedef struct AutoComplete AutoComplete; | typedef struct AutoComplete AutoComplete; | ||||
| ▲ Show 20 Lines • Show All 525 Lines • Show Last 20 Lines | |||||