Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/UI_interface.h
| Show First 20 Lines • Show All 655 Lines • ▼ Show 20 Lines | |||||
| #define UI_ID_DELETE (1 << 5) | #define UI_ID_DELETE (1 << 5) | ||||
| #define UI_ID_LOCAL (1 << 6) | #define UI_ID_LOCAL (1 << 6) | ||||
| #define UI_ID_AUTO_NAME (1 << 7) | #define UI_ID_AUTO_NAME (1 << 7) | ||||
| #define UI_ID_FAKE_USER (1 << 8) | #define UI_ID_FAKE_USER (1 << 8) | ||||
| #define UI_ID_PIN (1 << 9) | #define UI_ID_PIN (1 << 9) | ||||
| #define UI_ID_PREVIEWS (1 << 10) | #define UI_ID_PREVIEWS (1 << 10) | ||||
| #define UI_ID_FULL (UI_ID_RENAME | UI_ID_BROWSE | UI_ID_ADD_NEW | UI_ID_OPEN | UI_ID_ALONE | UI_ID_DELETE | UI_ID_LOCAL) | #define UI_ID_FULL (UI_ID_RENAME | UI_ID_BROWSE | UI_ID_ADD_NEW | UI_ID_OPEN | UI_ID_ALONE | UI_ID_DELETE | UI_ID_LOCAL) | ||||
| /** | |||||
| * Ways to limit what is displayed in ID-search popup. | |||||
| * \note We may want to add LOCAL, LIBRARY ... as needed. | |||||
| */ | |||||
| enum { | |||||
| UI_TEMPLATE_ID_FILTER_NONE = 0, | |||||
| UI_TEMPLATE_ID_FILTER_AVAILABLE = 1, | |||||
| }; | |||||
| int UI_icon_from_id(struct ID *id); | int UI_icon_from_id(struct ID *id); | ||||
| int UI_icon_from_report_type(int type); | int UI_icon_from_report_type(int type); | ||||
| uiBut *uiDefPulldownBut(uiBlock *block, uiBlockCreateFunc func, void *arg, const char *str, int x, int y, short width, short height, const char *tip); | uiBut *uiDefPulldownBut(uiBlock *block, uiBlockCreateFunc func, void *arg, const char *str, int x, int y, short width, short height, const char *tip); | ||||
| uiBut *uiDefMenuBut(uiBlock *block, uiMenuCreateFunc func, void *arg, const char *str, int x, int y, short width, short height, const char *tip); | uiBut *uiDefMenuBut(uiBlock *block, uiMenuCreateFunc func, void *arg, const char *str, int x, int y, short width, short height, const char *tip); | ||||
| uiBut *uiDefIconTextMenuBut(uiBlock *block, uiMenuCreateFunc func, void *arg, int icon, const char *str, int x, int y, short width, short height, const char *tip); | uiBut *uiDefIconTextMenuBut(uiBlock *block, uiMenuCreateFunc func, void *arg, int icon, const char *str, int x, int y, short width, short height, const char *tip); | ||||
| uiBut *uiDefIconMenuBut(uiBlock *block, uiMenuCreateFunc func, void *arg, int icon, int x, int y, short width, short height, const char *tip); | uiBut *uiDefIconMenuBut(uiBlock *block, uiMenuCreateFunc func, void *arg, int icon, int x, int y, short width, short height, const char *tip); | ||||
| ▲ Show 20 Lines • Show All 241 Lines • ▼ Show 20 Lines | |||||
| uiLayout *uiLayoutAbsolute(uiLayout *layout, int align); | uiLayout *uiLayoutAbsolute(uiLayout *layout, int align); | ||||
| uiLayout *uiLayoutSplit(uiLayout *layout, float percentage, int align); | uiLayout *uiLayoutSplit(uiLayout *layout, float percentage, int 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); | ||||
| /* templates */ | /* templates */ | ||||
| void uiTemplateHeader(uiLayout *layout, struct bContext *C); | void uiTemplateHeader(uiLayout *layout, struct bContext *C); | ||||
| void uiTemplateID(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, | void uiTemplateID( | ||||
| const char *newop, const char *openop, const char *unlinkop); | uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, | ||||
| void uiTemplateIDBrowse(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, | const char *newop, const char *openop, const char *unlinkop, int filter); | ||||
| const char *newop, const char *openop, const char *unlinkop); | void uiTemplateIDBrowse( | ||||
| void uiTemplateIDPreview(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, | uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, | ||||
| const char *newop, const char *openop, const char *unlinkop, int rows, int cols); | const char *newop, const char *openop, const char *unlinkop, int filter); | ||||
| void uiTemplateIDPreview( | |||||
| uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, | |||||
| const char *newop, const char *openop, const char *unlinkop, int rows, int cols, int filter); | |||||
| void uiTemplateAnyID(uiLayout *layout, struct PointerRNA *ptr, const char *propname, | void uiTemplateAnyID(uiLayout *layout, struct PointerRNA *ptr, const char *propname, | ||||
| const char *proptypename, const char *text); | const char *proptypename, const char *text); | ||||
| void uiTemplatePathBuilder(uiLayout *layout, struct PointerRNA *ptr, const char *propname, | void uiTemplatePathBuilder(uiLayout *layout, struct PointerRNA *ptr, const char *propname, | ||||
| struct PointerRNA *root_ptr, const char *text); | struct PointerRNA *root_ptr, const char *text); | ||||
| uiLayout *uiTemplateModifier(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr); | uiLayout *uiTemplateModifier(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr); | ||||
| uiLayout *uiTemplateConstraint(uiLayout *layout, struct PointerRNA *ptr); | uiLayout *uiTemplateConstraint(uiLayout *layout, struct PointerRNA *ptr); | ||||
| void uiTemplatePreview(uiLayout *layout, struct bContext *C, struct ID *id, int show_buttons, struct ID *parent, | void uiTemplatePreview(uiLayout *layout, struct bContext *C, struct ID *id, int show_buttons, struct ID *parent, | ||||
| struct MTex *slot, const char *preview_id); | struct MTex *slot, const char *preview_id); | ||||
| ▲ Show 20 Lines • Show All 196 Lines • Show Last 20 Lines | |||||