Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/UI_interface.h
| Show First 20 Lines • Show All 315 Lines • ▼ Show 20 Lines | |||||
| * | * | ||||
| * uiButSetNFunc will free the argument with MEM_freeN. */ | * uiButSetNFunc will free the argument with MEM_freeN. */ | ||||
| typedef struct uiSearchItems uiSearchItems; | typedef struct uiSearchItems uiSearchItems; | ||||
| 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 bool (*uiButCompleteFunc)(struct bContext *C, char *str, void *arg); | typedef int (*uiButCompleteFunc)(struct bContext *C, char *str, void *arg); | ||||
| 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); | ||||
| 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 136 Lines • ▼ Show 20 Lines | |||||
| uiBut *uiDefButS(uiBlock *block, int type, int retval, const char *str, int x, int y, short width, short height, short *poin, float min, float max, float a1, float a2, const char *tip); | uiBut *uiDefButS(uiBlock *block, int type, int retval, const char *str, int x, int y, short width, short height, short *poin, float min, float max, float a1, float a2, const char *tip); | ||||
| uiBut *uiDefButBitS(uiBlock *block, int type, int bit, int retval, const char *str, int x, int y, short width, short height, short *poin, float min, float max, float a1, float a2, const char *tip); | uiBut *uiDefButBitS(uiBlock *block, int type, int bit, int retval, const char *str, int x, int y, short width, short height, short *poin, float min, float max, float a1, float a2, const char *tip); | ||||
| uiBut *uiDefButC(uiBlock *block, int type, int retval, const char *str, int x, int y, short width, short height, char *poin, float min, float max, float a1, float a2, const char *tip); | uiBut *uiDefButC(uiBlock *block, int type, int retval, const char *str, int x, int y, short width, short height, char *poin, float min, float max, float a1, float a2, const char *tip); | ||||
| uiBut *uiDefButBitC(uiBlock *block, int type, int bit, int retval, const char *str, int x, int y, short width, short height, char *poin, float min, float max, float a1, float a2, const char *tip); | uiBut *uiDefButBitC(uiBlock *block, int type, int bit, int retval, const char *str, int x, int y, short width, short height, char *poin, float min, float max, float a1, float a2, const char *tip); | ||||
| uiBut *uiDefButR(uiBlock *block, int type, int retval, const char *str, int x, int y, short width, short height, struct PointerRNA *ptr, const char *propname, int index, float min, float max, float a1, float a2, const char *tip); | uiBut *uiDefButR(uiBlock *block, int type, int retval, const char *str, int x, int y, short width, short height, struct PointerRNA *ptr, const char *propname, int index, float min, float max, float a1, float a2, const char *tip); | ||||
| uiBut *uiDefButR_prop(uiBlock *block, int type, int retval, const char *str, int x, int y, short width, short height, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, float min, float max, float a1, float a2, const char *tip); | uiBut *uiDefButR_prop(uiBlock *block, int type, int retval, const char *str, int x, int y, short width, short height, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, float min, float max, float a1, float a2, const char *tip); | ||||
| uiBut *uiDefButO(uiBlock *block, int type, const char *opname, int opcontext, const char *str, int x, int y, short width, short height, const char *tip); | uiBut *uiDefButO(uiBlock *block, int type, const char *opname, int opcontext, const char *str, int x, int y, short width, short height, const char *tip); | ||||
| uiBut *uiDefButO_ptr(uiBlock *block, int type, struct wmOperatorType *ot, int opcontext, const char *str, int x, int y, short width, short height, const char *tip); | uiBut *uiDefButO_ptr(uiBlock *block, int type, struct wmOperatorType *ot, int opcontext, const char *str, int x, int y, short width, short height, const char *tip); | ||||
| uiBut *uiDefButTextO(uiBlock *block, int type, const char *opname, int opcontext, const char *str, int x, int y, short width, short height, void *poin, float min, float max, float a1, float a2, const char *tip); | |||||
| uiBut *uiDefIconBut(uiBlock *block, | uiBut *uiDefIconBut(uiBlock *block, | ||||
| int type, int retval, int icon, | int type, int retval, int icon, | ||||
| int x1, int y1, | int x1, int y1, | ||||
| short x2, short y2, | short x2, short y2, | ||||
| void *poin, | void *poin, | ||||
| float min, float max, | float min, float max, | ||||
| float a1, float a2, const char *tip); | float a1, float a2, const char *tip); | ||||
| ▲ Show 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | |||||
| void uiButSetNFunc(uiBut *but, uiButHandleNFunc funcN, void *argN, void *arg2); | void uiButSetNFunc(uiBut *but, uiButHandleNFunc funcN, void *argN, void *arg2); | ||||
| void uiButSetCompleteFunc(uiBut *but, uiButCompleteFunc func, void *arg); | void uiButSetCompleteFunc(uiBut *but, uiButCompleteFunc func, void *arg); | ||||
| void uiBlockSetDrawExtraFunc(uiBlock *block, | void uiBlockSetDrawExtraFunc(uiBlock *block, | ||||
| void (*func)(const struct bContext *C, void *, void *, void *, struct rcti *rect), | void (*func)(const struct bContext *C, void *, void *, void *, struct rcti *rect), | ||||
| void *arg1, void *arg2); | void *arg1, void *arg2); | ||||
| bool UI_textbutton_activate_event(const struct bContext *C, struct ARegion *ar, | bool UI_textbutton_activate_rna(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); | |||||
| void uiButSetFocusOnEnter(struct wmWindow *win, uiBut *but); | void uiButSetFocusOnEnter(struct wmWindow *win, uiBut *but); | ||||
| /* 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. */ | ||||
| ▲ Show 20 Lines • Show All 278 Lines • Show Last 20 Lines | |||||