Blender
V3.3
|
#include "BLI_compiler_attrs.h"
#include "BLI_sys_types.h"
#include "BLI_utildefines.h"
#include "UI_interface_icons.h"
#include "WM_types.h"
Go to the source code of this file.
Classes | |
struct | uiBlockInteraction_Params |
struct | uiBlockInteraction_CallbackData |
struct | uiStringInfo |
struct | uiPropertySplitWrapper |
struct | uiDragColorHandle |
struct | uiFontStyleDraw_Params |
struct | uiSearchItemTooltipData |
Typedefs | |
typedef struct uiBlock | uiBlock |
typedef struct uiBut | uiBut |
typedef struct uiButExtraOpIcon | uiButExtraOpIcon |
typedef struct uiLayout | uiLayout |
typedef struct uiPopupBlockHandle | uiPopupBlockHandle |
typedef struct uiViewHandle | uiViewHandle |
typedef struct uiViewItemHandle | uiViewItemHandle |
typedef enum eUIEmbossType | eUIEmbossType |
typedef enum eButGradientType | eButGradientType |
typedef struct uiSearchItems | uiSearchItems |
typedef void(* | uiButHandleFunc) (struct bContext *C, void *arg1, void *arg2) |
typedef void(* | uiButHandleRenameFunc) (struct bContext *C, void *arg, char *origstr) |
typedef void(* | uiButHandleNFunc) (struct bContext *C, void *argN, void *arg2) |
typedef void(* | uiButHandleHoldFunc) (struct bContext *C, struct ARegion *butregion, uiBut *but) |
typedef int(* | uiButCompleteFunc) (struct bContext *C, char *str, void *arg) |
typedef bool(* | uiButIdentityCompareFunc) (const uiBut *a, const uiBut *b) |
typedef struct ARegion *(* | uiButSearchCreateFn) (struct bContext *C, struct ARegion *butregion, struct uiButSearch *search_but) |
typedef void(* | uiButSearchUpdateFn) (const struct bContext *C, void *arg, const char *str, uiSearchItems *items, bool is_first) |
typedef bool(* | uiButSearchContextMenuFn) (struct bContext *C, void *arg, void *active, const struct wmEvent *event) |
typedef struct ARegion *(* | uiButSearchTooltipFn) (struct bContext *C, struct ARegion *region, const struct rcti *item_rect, void *arg, void *active) |
typedef char *(* | uiButToolTipFunc) (struct bContext *C, void *argN, const char *tip) |
typedef int(* | uiButPushedStateFunc) (struct uiBut *but, const void *arg) |
typedef void(* | uiBlockHandleFunc) (struct bContext *C, void *arg, int event) |
typedef void(* | uiMenuCreateFunc) (struct bContext *C, struct uiLayout *layout, void *arg1) |
typedef void(* | uiMenuHandleFunc) (struct bContext *C, void *arg, int event) |
typedef bool(* | uiMenuStepFunc) (struct bContext *C, int direction, void *arg1) |
typedef void *(* | uiCopyArgFunc) (const void *arg) |
typedef void(* | uiFreeArgFunc) (void *arg) |
typedef struct uiPopupMenu | uiPopupMenu |
typedef struct uiPopover | uiPopover |
typedef struct uiPieMenu | uiPieMenu |
typedef uiBlock *(* | uiBlockCreateFunc) (struct bContext *C, struct ARegion *region, void *arg1) |
typedef void(* | uiBlockCancelFunc) (struct bContext *C, void *arg1) |
typedef enum uiStringInfoType | uiStringInfoType |
typedef struct uiStringInfo | uiStringInfo |
typedef enum eAutoPropButsReturn | eAutoPropButsReturn |
typedef struct AutoComplete | AutoComplete |
typedef void(* | uiListPanelIDFromDataFunc) (void *data_link, char *r_idname) |
typedef struct uiPropertySplitWrapper | uiPropertySplitWrapper |
typedef struct uiDragColorHandle | uiDragColorHandle |
typedef enum eFontStyle_Align | eFontStyle_Align |
typedef struct uiButStore | uiButStore |
typedef struct uiButStoreElem | uiButStoreElem |
Functions | |
void | UI_draw_roundbox_corner_set (int type) |
void | UI_draw_roundbox_aa (const struct rctf *rect, bool filled, float rad, const float color[4]) |
void | UI_draw_roundbox_4fv (const struct rctf *rect, bool filled, float rad, const float col[4]) |
void | UI_draw_roundbox_3ub_alpha (const struct rctf *rect, bool filled, float rad, const unsigned char col[3], unsigned char alpha) |
void | UI_draw_roundbox_3fv_alpha (const struct rctf *rect, bool filled, float rad, const float col[3], float alpha) |
void | UI_draw_roundbox_4fv_ex (const struct rctf *rect, const float inner1[4], const float inner2[4], float shade_dir, const float outline[4], float outline_width, float rad) |
void | UI_draw_box_shadow (const struct rctf *rect, unsigned char alpha) |
void | UI_draw_text_underline (int pos_x, int pos_y, int len, int height, const float color[4]) |
void | UI_draw_safe_areas (uint pos, const struct rctf *rect, const float title_aspect[2], const float action_aspect[2]) |
void | UI_draw_widget_scroll (struct uiWidgetColors *wcol, const struct rcti *rect, const struct rcti *slider, int state) |
float | UI_text_clip_middle_ex (const struct uiFontStyle *fstyle, char *str, float okwidth, float minwidth, size_t max_len, char rpart_sep) |
bool | UI_but_has_tooltip_label (const uiBut *but) |
bool | UI_but_is_tool (const uiBut *but) |
bool | UI_but_is_utf8 (const uiBut *but) |
bool | UI_block_is_empty_ex (const uiBlock *block, bool skip_title) |
bool | UI_block_is_empty (const uiBlock *block) |
bool | UI_block_can_add_separator (const uiBlock *block) |
struct uiList * | UI_list_find_mouse_over (const struct ARegion *region, const struct wmEvent *event) |
uiPopupMenu * | UI_popup_menu_begin (struct bContext *C, const char *title, int icon) ATTR_NONNULL() |
uiPopupMenu * | UI_popup_menu_begin_ex (struct bContext *C, const char *title, const char *block_name, int icon) ATTR_NONNULL() |
void | UI_popup_menu_end (struct bContext *C, struct uiPopupMenu *pup) |
bool | UI_popup_menu_end_or_cancel (struct bContext *C, struct uiPopupMenu *pup) |
struct uiLayout * | UI_popup_menu_layout (uiPopupMenu *pup) |
void | UI_popup_menu_reports (struct bContext *C, struct ReportList *reports) ATTR_NONNULL() |
int | UI_popup_menu_invoke (struct bContext *C, const char *idname, struct ReportList *reports) ATTR_NONNULL(1 |
int void | UI_popup_menu_retval_set (const uiBlock *block, int retval, bool enable) |
void | UI_popup_menu_but_set (uiPopupMenu *pup, struct ARegion *butregion, uiBut *but) |
int | UI_popover_panel_invoke (struct bContext *C, const char *idname, bool keep_open, struct ReportList *reports) |
uiPopover * | UI_popover_begin (struct bContext *C, int menu_width, bool from_active_button) ATTR_NONNULL(1) |
void | UI_popover_end (struct bContext *C, struct uiPopover *pup, struct wmKeyMap *keymap) |
struct uiLayout * | UI_popover_layout (uiPopover *pup) |
void | UI_popover_once_clear (uiPopover *pup) |
int | UI_pie_menu_invoke (struct bContext *C, const char *idname, const struct wmEvent *event) |
int | UI_pie_menu_invoke_from_operator_enum (struct bContext *C, const char *title, const char *opname, const char *propname, const struct wmEvent *event) |
int | UI_pie_menu_invoke_from_rna_enum (struct bContext *C, const char *title, const char *path, const struct wmEvent *event) |
struct uiPieMenu * | UI_pie_menu_begin (struct bContext *C, const char *title, int icon, const struct wmEvent *event) ATTR_NONNULL() |
void | UI_pie_menu_end (struct bContext *C, uiPieMenu *pie) |
struct uiLayout * | UI_pie_menu_layout (struct uiPieMenu *pie) |
void | UI_popup_block_invoke (struct bContext *C, uiBlockCreateFunc func, void *arg, uiFreeArgFunc arg_free) |
void | UI_popup_block_invoke_ex (struct bContext *C, uiBlockCreateFunc func, void *arg, uiFreeArgFunc arg_free, bool can_refresh) |
void | UI_popup_block_ex (struct bContext *C, uiBlockCreateFunc func, uiBlockHandleFunc popup_func, uiBlockCancelFunc cancel_func, void *arg, struct wmOperator *op) |
void | UI_popup_block_close (struct bContext *C, struct wmWindow *win, uiBlock *block) |
bool | UI_popup_block_name_exists (const struct bScreen *screen, const char *name) |
uiBlock * | UI_block_begin (const struct bContext *C, struct ARegion *region, const char *name, eUIEmbossType emboss) |
void | UI_block_end_ex (const struct bContext *C, uiBlock *block, const int xy[2], int r_xy[2]) |
void | UI_block_end (const struct bContext *C, uiBlock *block) |
void | UI_block_draw (const struct bContext *C, struct uiBlock *block) |
void | UI_blocklist_update_window_matrix (const struct bContext *C, const struct ListBase *lb) |
void | UI_blocklist_update_view_for_buttons (const struct bContext *C, const struct ListBase *lb) |
void | UI_blocklist_draw (const struct bContext *C, const struct ListBase *lb) |
void | UI_block_update_from_old (const struct bContext *C, struct uiBlock *block) |
void | UI_block_theme_style_set (uiBlock *block, char theme_style) |
eUIEmbossType | UI_block_emboss_get (uiBlock *block) |
void | UI_block_emboss_set (uiBlock *block, eUIEmbossType emboss) |
bool | UI_block_is_search_only (const uiBlock *block) |
void | UI_block_set_search_only (uiBlock *block, bool search_only) |
void | UI_block_free (const struct bContext *C, uiBlock *block) |
void | UI_blocklist_free (const struct bContext *C, struct ARegion *region) |
void | UI_blocklist_free_inactive (const struct bContext *C, struct ARegion *region) |
void | UI_screen_free_active_but_highlight (const struct bContext *C, struct bScreen *screen) |
void | UI_region_free_active_but_all (struct bContext *context, struct ARegion *region) |
void | UI_block_region_set (uiBlock *block, struct ARegion *region) |
void | UI_block_lock_set (uiBlock *block, bool val, const char *lockstr) |
void | UI_block_lock_clear (uiBlock *block) |
void | UI_block_align_begin (uiBlock *block) |
void | UI_block_align_end (uiBlock *block) |
void | UI_block_bounds_set_normal (struct uiBlock *block, int addval) |
void | UI_block_bounds_set_text (uiBlock *block, int addval) |
void | UI_block_bounds_set_popup (uiBlock *block, int addval, const int bounds_offset[2]) |
void | UI_block_bounds_set_menu (uiBlock *block, int addval, const int bounds_offset[2]) |
void | UI_block_bounds_set_centered (uiBlock *block, int addval) |
void | UI_block_bounds_set_explicit (uiBlock *block, int minx, int miny, int maxx, int maxy) |
int | UI_blocklist_min_y_get (struct ListBase *lb) |
void | UI_block_direction_set (uiBlock *block, char direction) |
void | UI_block_order_flip (uiBlock *block) |
void | UI_block_flag_enable (uiBlock *block, int flag) |
void | UI_block_flag_disable (uiBlock *block, int flag) |
void | UI_block_translate (uiBlock *block, int x, int y) |
int | UI_but_return_value_get (uiBut *but) |
uiBut * | UI_but_active_drop_name_button (const struct bContext *C) |
bool | UI_but_active_drop_name (const struct bContext *C) |
bool | UI_but_active_drop_color (struct bContext *C) |
void | UI_but_flag_enable (uiBut *but, int flag) |
void | UI_but_flag_disable (uiBut *but, int flag) |
bool | UI_but_flag_is_set (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_disable (uiBut *but, const char *disabled_hint) |
void | UI_but_type_set_menu_from_pulldown (uiBut *but) |
bool | UI_but_active_only_ex (const struct bContext *C, struct ARegion *region, uiBlock *block, uiBut *but, bool remove_on_failure) |
bool | UI_but_active_only (const struct bContext *C, struct ARegion *region, uiBlock *block, uiBut *but) |
bool | UI_block_active_only_flagged_buttons (const struct bContext *C, struct ARegion *region, struct uiBlock *block) |
void | UI_but_execute (const struct bContext *C, struct ARegion *region, uiBut *but) |
bool | UI_but_online_manual_id (const uiBut *but, char *r_str, size_t maxlength) ATTR_WARN_UNUSED_RESULT |
bool | UI_but_online_manual_id_from_active (const struct bContext *C, char *r_str, size_t maxlength) ATTR_WARN_UNUSED_RESULT |
bool | UI_but_is_userdef (const uiBut *but) |
uiBut * | uiDefBut (uiBlock *block, int type, int retval, 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 * | uiDefButF (uiBlock *block, int type, int retval, const char *str, int x, int y, short width, short height, float *poin, float min, float max, float a1, float a2, const char *tip) |
uiBut * | uiDefButI (uiBlock *block, int type, int retval, const char *str, int x, int y, short width, short height, int *poin, float min, float max, float a1, float a2, const char *tip) |
uiBut * | uiDefButBitI (uiBlock *block, int type, int bit, int retval, const char *str, int x, int y, short width, short height, int *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 * | 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 * | 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 * | uiDefButO (uiBlock *block, int type, const char *opname, wmOperatorCallContext 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, wmOperatorCallContext opcontext, const char *str, int x, int y, short width, short height, const char *tip) |
uiBut * | uiDefIconBut (uiBlock *block, int type, int retval, int icon, int x, int y, short width, short height, void *poin, float min, float max, float a1, float a2, const char *tip) |
uiBut * | uiDefIconButI (uiBlock *block, int type, int retval, int icon, int x, int y, short width, short height, int *poin, float min, float max, float a1, float a2, const char *tip) |
uiBut * | uiDefIconButBitI (uiBlock *block, int type, int bit, int retval, int icon, int x, int y, short width, short height, int *poin, float min, float max, float a1, float a2, const char *tip) |
uiBut * | uiDefIconButS (uiBlock *block, int type, int retval, int icon, int x, int y, short width, short height, short *poin, float min, float max, float a1, float a2, const char *tip) |
uiBut * | uiDefIconButBitS (uiBlock *block, int type, int bit, int retval, int icon, int x, int y, short width, short height, short *poin, float min, float max, float a1, float a2, const char *tip) |
uiBut * | uiDefIconButBitC (uiBlock *block, int type, int bit, int retval, int icon, int x, int y, short width, short height, char *poin, float min, float max, float a1, float a2, const char *tip) |
uiBut * | uiDefIconButR (uiBlock *block, int type, int retval, int icon, 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 * | uiDefIconButR_prop (uiBlock *block, int type, int retval, int icon, 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 * | uiDefIconButO (uiBlock *block, int type, const char *opname, wmOperatorCallContext opcontext, int icon, int x, int y, short width, short height, const char *tip) |
uiBut * | uiDefIconButO_ptr (uiBlock *block, int type, struct wmOperatorType *ot, wmOperatorCallContext opcontext, int icon, int x, int y, short width, short height, const char *tip) |
uiBut * | uiDefButImage (uiBlock *block, void *imbuf, int x, int y, short width, short height, const uchar color[4]) |
uiBut * | uiDefButAlert (uiBlock *block, int icon, int x, int y, short width, short height) |
uiBut * | uiDefIconTextBut (uiBlock *block, int type, int retval, int icon, 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 * | uiDefIconTextButF (uiBlock *block, int type, int retval, int icon, const char *str, int x, int y, short width, short height, float *poin, float min, float max, float a1, float a2, const char *tip) |
uiBut * | uiDefIconTextButI (uiBlock *block, int type, int retval, int icon, const char *str, int x, int y, short width, short height, int *poin, float min, float max, float a1, float a2, const char *tip) |
uiBut * | uiDefIconTextButR (uiBlock *block, int type, int retval, int icon, 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 * | uiDefIconTextButR_prop (uiBlock *block, int type, int retval, int icon, 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 * | uiDefIconTextButO (uiBlock *block, int type, const char *opname, wmOperatorCallContext opcontext, int icon, const char *str, int x, int y, short width, short height, const char *tip) |
uiBut * | uiDefIconTextButO_ptr (uiBlock *block, int type, struct wmOperatorType *ot, wmOperatorCallContext opcontext, int icon, const char *str, int x, int y, short width, short height, const char *tip) |
struct PointerRNA * | UI_but_operator_ptr_get (uiBut *but) |
void | UI_but_context_ptr_set (uiBlock *block, uiBut *but, const char *name, const struct PointerRNA *ptr) |
const struct PointerRNA * | UI_but_context_ptr_get (const uiBut *but, const char *name, const StructRNA *type CPP_ARG_DEFAULT(nullptr)) |
struct bContextStore * | UI_but_context_get (const uiBut *but) |
void | UI_but_unit_type_set (uiBut *but, int unit_type) |
int | UI_but_unit_type_get (const uiBut *but) |
void | UI_but_string_info_get (struct bContext *C, uiBut *but,...) ATTR_SENTINEL(0) |
void | UI_but_extra_icon_string_info_get (struct bContext *C, uiButExtraOpIcon *extra_icon,...) ATTR_SENTINEL(0) |
int | UI_icon_from_id (const struct ID *id) |
int | UI_icon_from_report_type (int type) |
int | UI_icon_colorid_from_report_type (int type) |
int | UI_text_colorid_from_report_type (int type) |
int | UI_icon_from_event_type (short event_type, short event_value) |
int | UI_icon_from_keymap_item (const struct wmKeyMapItem *kmi, int r_icon_mod[4]) |
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 * | 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 * | uiDefBlockBut (uiBlock *block, uiBlockCreateFunc func, void *arg, const char *str, int x, int y, short width, short height, const char *tip) |
uiBut * | uiDefBlockButN (uiBlock *block, uiBlockCreateFunc func, void *argN, const char *str, int x, int y, short width, short height, const char *tip) |
uiBut * | uiDefIconBlockBut (uiBlock *block, uiBlockCreateFunc func, void *arg, int retval, int icon, int x, int y, short width, short height, const char *tip) |
uiBut * | uiDefIconTextBlockBut (uiBlock *block, uiBlockCreateFunc func, void *arg, int icon, const char *str, int x, int y, short width, short height, const char *tip) |
uiBut * | uiDefSearchBut (uiBlock *block, void *arg, int retval, int icon, int maxlen, int x, int y, short width, short height, float a1, float a2, const char *tip) |
uiBut * | uiDefSearchButO_ptr (uiBlock *block, struct wmOperatorType *ot, struct IDProperty *properties, void *arg, int retval, int icon, int maxlen, int x, int y, short width, short height, float a1, float a2, const char *tip) |
ENUM_OPERATORS (eAutoPropButsReturn, UI_PROP_BUTS_ANY_FAILED_CHECK) | |
uiBut * | uiDefAutoButR (uiBlock *block, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, const char *name, int icon, int x, int y, int width, int height) |
void | uiDefAutoButsArrayR (uiBlock *block, PointerRNA *ptr, PropertyRNA *prop, const int icon, const int x, const int y, const int tot_width, const int height) |
eAutoPropButsReturn | uiDefAutoButsRNA (uiLayout *layout, struct PointerRNA *ptr, bool(*check_prop)(struct PointerRNA *ptr, struct PropertyRNA *prop, void *user_data), void *user_data, struct PropertyRNA *prop_activate_init, eButLabelAlign label_align, bool compact) |
void | UI_but_func_identity_compare_set (uiBut *but, uiButIdentityCompareFunc cmp_fn) |
bool | UI_search_item_add (uiSearchItems *items, const char *name, void *poin, int iconid, int but_flag, uint8_t name_prefix_offset) |
void | UI_but_func_search_set (uiBut *but, uiButSearchCreateFn search_create_fn, uiButSearchUpdateFn search_update_fn, void *arg, bool free_arg, uiFreeArgFunc search_arg_free_fn, uiButHandleFunc search_exec_fn, void *active) |
void | UI_but_func_search_set_context_menu (uiBut *but, uiButSearchContextMenuFn context_menu_fn) |
void | UI_but_func_search_set_tooltip (uiBut *but, uiButSearchTooltipFn tooltip_fn) |
void | UI_but_func_search_set_sep_string (uiBut *but, const char *search_sep_string) |
void | UI_but_func_search_set_results_are_suggestions (uiBut *but, bool value) |
int | UI_searchbox_size_y (void) |
int | UI_searchbox_size_x (void) |
int | UI_search_items_find_index (uiSearchItems *items, const char *name) |
void | UI_but_hint_drawstr_set (uiBut *but, const char *string) |
void | UI_but_node_link_set (uiBut *but, struct bNodeSocket *socket, const float draw_color[4]) |
void | UI_but_number_step_size_set (uiBut *but, float step_size) |
void | UI_but_number_precision_set (uiBut *but, float precision) |
void | UI_block_func_handle_set (uiBlock *block, uiBlockHandleFunc func, void *arg) |
void | UI_block_func_butmenu_set (uiBlock *block, uiMenuHandleFunc func, void *arg) |
void | UI_block_func_set (uiBlock *block, uiButHandleFunc func, void *arg1, void *arg2) |
void | UI_block_funcN_set (uiBlock *block, uiButHandleNFunc funcN, void *argN, void *arg2) |
void | UI_but_func_rename_set (uiBut *but, uiButHandleRenameFunc func, void *arg1) |
void | UI_but_func_set (uiBut *but, uiButHandleFunc func, void *arg1, void *arg2) |
void | UI_but_funcN_set (uiBut *but, uiButHandleNFunc funcN, void *argN, void *arg2) |
void | UI_but_func_complete_set (uiBut *but, uiButCompleteFunc func, void *arg) |
void | UI_but_func_drawextra_set (uiBlock *block, void(*func)(const struct bContext *C, void *, void *, void *, struct rcti *rect), void *arg1, void *arg2) |
void | UI_but_func_menu_step_set (uiBut *but, uiMenuStepFunc func) |
void | UI_but_func_tooltip_set (uiBut *but, uiButToolTipFunc func, void *arg, uiFreeArgFunc free_arg) |
void | UI_but_tooltip_refresh (struct bContext *C, uiBut *but) |
void | UI_but_tooltip_timer_remove (struct bContext *C, uiBut *but) |
bool | UI_textbutton_activate_rna (const struct bContext *C, struct ARegion *region, const void *rna_poin_data, const char *rna_prop_id) |
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_func_hold_set (uiBut *but, uiButHandleHoldFunc func, void *argN) |
void | UI_but_func_pushed_state_set (uiBut *but, uiButPushedStateFunc func, const void *arg) |
struct PointerRNA * | UI_but_extra_operator_icon_add (uiBut *but, const char *opname, wmOperatorCallContext opcontext, int icon) |
struct wmOperatorType * | UI_but_extra_operator_icon_optype_get (struct uiButExtraOpIcon *extra_icon) |
struct PointerRNA * | UI_but_extra_operator_icon_opptr_get (struct uiButExtraOpIcon *extra_icon) |
int | UI_preview_tile_size_x (void) |
int | UI_preview_tile_size_y (void) |
int | UI_preview_tile_size_y_no_label (void) |
AutoComplete * | UI_autocomplete_begin (const char *startname, size_t maxlen) |
void | UI_autocomplete_update_name (AutoComplete *autocpl, const char *name) |
int | UI_autocomplete_end (AutoComplete *autocpl, char *autoname) |
void | UI_but_drag_set_id (uiBut *but, struct ID *id) |
void | UI_but_drag_attach_image (uiBut *but, struct ImBuf *imb, float scale) |
void | UI_but_drag_set_asset (uiBut *but, const struct AssetHandle *asset, const char *path, struct AssetMetaData *metadata, int import_type, int icon, struct ImBuf *imb, float scale) |
void | UI_but_drag_set_rna (uiBut *but, struct PointerRNA *ptr) |
void | UI_but_drag_set_path (uiBut *but, const char *path, bool use_free) |
void | UI_but_drag_set_name (uiBut *but, const char *name) |
void | UI_but_drag_set_value (uiBut *but) |
void | UI_but_drag_set_image (uiBut *but, const char *path, int icon, struct ImBuf *imb, float scale, bool use_free) |
void | UI_panels_begin (const struct bContext *C, struct ARegion *region) |
void | UI_panels_end (const struct bContext *C, struct ARegion *region, int *r_x, int *r_y) |
void | UI_panels_draw (const struct bContext *C, struct ARegion *region) |
struct Panel * | UI_panel_find_by_type (struct ListBase *lb, const struct PanelType *pt) |
struct Panel * | UI_panel_begin (struct ARegion *region, struct ListBase *lb, uiBlock *block, struct PanelType *pt, struct Panel *panel, bool *r_open) |
void | UI_panel_header_buttons_begin (struct Panel *panel) |
void | UI_panel_header_buttons_end (struct Panel *panel) |
void | UI_panel_end (struct Panel *panel, int width, int height) |
void | UI_panel_context_pointer_set (struct Panel *panel, const char *name, struct PointerRNA *ptr) |
bool | UI_panel_is_closed (const struct Panel *panel) |
bool | UI_panel_is_active (const struct Panel *panel) |
void | UI_panel_label_offset (const struct uiBlock *block, int *r_x, int *r_y) |
bool | UI_panel_should_show_background (const struct ARegion *region, const struct PanelType *panel_type) |
int | UI_panel_size_y (const struct Panel *panel) |
bool | UI_panel_is_dragging (const struct Panel *panel) |
bool | UI_panel_matches_search_filter (const struct Panel *panel) |
bool | UI_panel_can_be_pinned (const struct Panel *panel) |
bool | UI_panel_category_is_visible (const struct ARegion *region) |
void | UI_panel_category_add (struct ARegion *region, const char *name) |
struct PanelCategoryDyn * | UI_panel_category_find (const struct ARegion *region, const char *idname) |
struct PanelCategoryStack * | UI_panel_category_active_find (struct ARegion *region, const char *idname) |
const char * | UI_panel_category_active_get (struct ARegion *region, bool set_fallback) |
void | UI_panel_category_active_set (struct ARegion *region, const char *idname) |
void | UI_panel_category_active_set_default (struct ARegion *region, const char *idname) |
void | UI_panel_category_clear_all (struct ARegion *region) |
void | UI_panel_category_draw_all (struct ARegion *region, const char *category_id_active) |
struct PointerRNA * | UI_panel_custom_data_get (const struct Panel *panel) |
struct PointerRNA * | UI_region_panel_custom_data_under_cursor (const struct bContext *C, const struct wmEvent *event) |
void | UI_panel_custom_data_set (struct Panel *panel, struct PointerRNA *custom_data) |
struct Panel * | UI_panel_add_instanced (const struct bContext *C, struct ARegion *region, struct ListBase *panels, const char *panel_idname, struct PointerRNA *custom_data) |
void | UI_panels_free_instanced (const struct bContext *C, struct ARegion *region) |
void | UI_list_panel_unique_str (struct Panel *panel, char *r_name) |
bool | UI_panel_list_matches_data (struct ARegion *region, struct ListBase *data, uiListPanelIDFromDataFunc panel_idname_func) |
void | UI_region_handlers_add (struct ListBase *handlers) |
void | UI_popup_handlers_add (struct bContext *C, struct ListBase *handlers, uiPopupBlockHandle *popup, char flag) |
void | UI_popup_handlers_remove (struct ListBase *handlers, uiPopupBlockHandle *popup) |
void | UI_popup_handlers_remove_all (struct bContext *C, struct ListBase *handlers) |
void | UI_init (void) |
void | UI_init_userdef (void) |
void | UI_reinit_font (void) |
void | UI_exit (void) |
uiLayout * | UI_block_layout (uiBlock *block, int dir, int type, int x, int y, int size, int em, int padding, const struct uiStyle *style) |
void | UI_block_layout_set_current (uiBlock *block, uiLayout *layout) |
void | UI_block_layout_resolve (uiBlock *block, int *r_x, int *r_y) |
bool | UI_block_layout_needs_resolving (const uiBlock *block) |
void | UI_block_layout_free (uiBlock *block) |
bool | UI_block_apply_search_filter (uiBlock *block, const char *search_filter) |
void | UI_region_message_subscribe (struct ARegion *region, struct wmMsgBus *mbus) |
uiBlock * | uiLayoutGetBlock (uiLayout *layout) |
void | uiLayoutSetFunc (uiLayout *layout, uiMenuHandleFunc handlefunc, void *argv) |
void | uiLayoutSetContextPointer (uiLayout *layout, const char *name, struct PointerRNA *ptr) |
struct bContextStore * | uiLayoutGetContextStore (uiLayout *layout) |
void | uiLayoutContextCopy (uiLayout *layout, struct bContextStore *context) |
void | uiLayoutSetTooltipFunc (uiLayout *layout, uiButToolTipFunc func, void *arg, uiCopyArgFunc copy_arg, uiFreeArgFunc free_arg) |
struct wmOperatorType * | UI_but_operatortype_get_from_enum_menu (struct uiBut *but, struct PropertyRNA **r_prop) |
struct MenuType * | UI_but_menutype_get (uiBut *but) |
struct PanelType * | UI_but_paneltype_get (uiBut *but) |
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 | uiLayoutSetContextFromBut (uiLayout *layout, uiBut *but) |
void | uiLayoutSetOperatorContext (uiLayout *layout, wmOperatorCallContext opcontext) |
void | uiLayoutSetActive (uiLayout *layout, bool active) |
void | uiLayoutSetActiveDefault (uiLayout *layout, bool active_default) |
void | uiLayoutSetActivateInit (uiLayout *layout, bool activate_init) |
void | uiLayoutSetEnabled (uiLayout *layout, bool enabled) |
void | uiLayoutSetRedAlert (uiLayout *layout, bool redalert) |
void | uiLayoutSetAlignment (uiLayout *layout, char alignment) |
void | uiLayoutSetFixedSize (uiLayout *layout, bool fixed_size) |
void | uiLayoutSetKeepAspect (uiLayout *layout, bool keepaspect) |
void | uiLayoutSetScaleX (uiLayout *layout, float scale) |
void | uiLayoutSetScaleY (uiLayout *layout, float scale) |
void | uiLayoutSetUnitsX (uiLayout *layout, float unit) |
void | uiLayoutSetUnitsY (uiLayout *layout, float unit) |
void | uiLayoutSetEmboss (uiLayout *layout, eUIEmbossType emboss) |
void | uiLayoutSetPropSep (uiLayout *layout, bool is_sep) |
void | uiLayoutSetPropDecorate (uiLayout *layout, bool is_sep) |
int | uiLayoutGetLocalDir (const uiLayout *layout) |
int | uiLayoutGetOperatorContext (uiLayout *layout) |
bool | uiLayoutGetActive (uiLayout *layout) |
bool | uiLayoutGetActiveDefault (uiLayout *layout) |
bool | uiLayoutGetActivateInit (uiLayout *layout) |
bool | uiLayoutGetEnabled (uiLayout *layout) |
bool | uiLayoutGetRedAlert (uiLayout *layout) |
int | uiLayoutGetAlignment (uiLayout *layout) |
bool | uiLayoutGetFixedSize (uiLayout *layout) |
bool | uiLayoutGetKeepAspect (uiLayout *layout) |
int | uiLayoutGetWidth (uiLayout *layout) |
float | uiLayoutGetScaleX (uiLayout *layout) |
float | uiLayoutGetScaleY (uiLayout *layout) |
float | uiLayoutGetUnitsX (uiLayout *layout) |
float | uiLayoutGetUnitsY (uiLayout *layout) |
eUIEmbossType | uiLayoutGetEmboss (uiLayout *layout) |
bool | uiLayoutGetPropSep (uiLayout *layout) |
bool | uiLayoutGetPropDecorate (uiLayout *layout) |
uiLayout * | uiLayoutRow (uiLayout *layout, bool align) |
uiLayout * | uiLayoutRowWithHeading (uiLayout *layout, bool align, const char *heading) |
uiLayout * | uiLayoutColumn (uiLayout *layout, bool align) |
uiLayout * | uiLayoutColumnWithHeading (uiLayout *layout, bool align, const char *heading) |
uiLayout * | uiLayoutColumnFlow (uiLayout *layout, int number, bool align) |
uiLayout * | uiLayoutGridFlow (uiLayout *layout, bool row_major, int columns_len, bool even_columns, bool even_rows, bool align) |
uiLayout * | uiLayoutBox (uiLayout *layout) |
uiLayout * | uiLayoutListBox (uiLayout *layout, struct uiList *ui_list, struct PointerRNA *actptr, struct PropertyRNA *actprop) |
uiLayout * | uiLayoutAbsolute (uiLayout *layout, bool align) |
uiLayout * | uiLayoutSplit (uiLayout *layout, float percentage, bool align) |
uiLayout * | uiLayoutOverlap (uiLayout *layout) |
uiBlock * | uiLayoutAbsoluteBlock (uiLayout *layout) |
uiLayout * | uiLayoutRadial (uiLayout *layout) |
void | uiTemplateHeader (uiLayout *layout, struct bContext *C) |
void | uiTemplateID (uiLayout *layout, const struct bContext *C, struct PointerRNA *ptr, const char *propname, const char *newop, const char *openop, const char *unlinkop, int filter, bool live_icon, const char *text) |
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 *text) |
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, bool hide_buttons) |
void | uiTemplateIDTabs (uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, const char *newop, const char *menu, int filter) |
void | uiTemplateAnyID (uiLayout *layout, struct PointerRNA *ptr, const char *propname, const char *proptypename, const char *text) |
void | uiTemplateSearch (uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, struct PointerRNA *searchptr, const char *searchpropname, const char *newop, const char *unlinkop) |
void | uiTemplateSearchPreview (uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, struct PointerRNA *searchptr, const char *searchpropname, const char *newop, const char *unlinkop, int rows, int cols) |
void | uiTemplatePathBuilder (uiLayout *layout, struct PointerRNA *ptr, const char *propname, struct PointerRNA *root_ptr, const char *text) |
void | uiTemplateModifiers (uiLayout *layout, struct bContext *C) |
void | uiTemplateGpencilModifiers (uiLayout *layout, struct bContext *C) |
void | uiTemplateShaderFx (uiLayout *layout, struct bContext *C) |
void | uiTemplateConstraints (uiLayout *layout, struct bContext *C, bool use_bone_constraints) |
uiLayout * | uiTemplateGpencilModifier (uiLayout *layout, struct bContext *C, struct PointerRNA *ptr) |
void | uiTemplateGpencilColorPreview (uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, int rows, int cols, float scale, int filter) |
void | uiTemplateOperatorRedoProperties (uiLayout *layout, const struct bContext *C) |
void | uiTemplateConstraintHeader (uiLayout *layout, struct PointerRNA *ptr) |
void | uiTemplatePreview (uiLayout *layout, struct bContext *C, struct ID *id, bool show_buttons, struct ID *parent, struct MTex *slot, const char *preview_id) |
void | uiTemplateColorRamp (uiLayout *layout, struct PointerRNA *ptr, const char *propname, bool expand) |
void | uiTemplateIcon (uiLayout *layout, int icon_value, float icon_scale) |
void | uiTemplateIconView (uiLayout *layout, struct PointerRNA *ptr, const char *propname, bool show_labels, float icon_scale, float icon_scale_popup) |
void | uiTemplateHistogram (uiLayout *layout, struct PointerRNA *ptr, const char *propname) |
void | uiTemplateWaveform (uiLayout *layout, struct PointerRNA *ptr, const char *propname) |
void | uiTemplateVectorscope (uiLayout *layout, struct PointerRNA *ptr, const char *propname) |
void | uiTemplateCurveMapping (uiLayout *layout, struct PointerRNA *ptr, const char *propname, int type, bool levels, bool brush, bool neg_slope, bool tone) |
void | uiTemplateCurveProfile (uiLayout *layout, struct PointerRNA *ptr, const char *propname) |
void | uiTemplateColorPicker (uiLayout *layout, struct PointerRNA *ptr, const char *propname, bool value_slider, bool lock, bool lock_luminosity, bool cubic) |
void | uiTemplatePalette (uiLayout *layout, struct PointerRNA *ptr, const char *propname, bool colors) |
void | uiTemplateCryptoPicker (uiLayout *layout, struct PointerRNA *ptr, const char *propname, int icon) |
void | uiTemplateLayers (uiLayout *layout, struct PointerRNA *ptr, const char *propname, struct PointerRNA *used_ptr, const char *used_propname, int active_layer) |
void | uiTemplateImage (uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, struct PointerRNA *userptr, bool compact, bool multiview) |
void | uiTemplateImageSettings (uiLayout *layout, struct PointerRNA *imfptr, bool color_management) |
void | uiTemplateImageStereo3d (uiLayout *layout, struct PointerRNA *stereo3d_format_ptr) |
void | uiTemplateImageViews (uiLayout *layout, struct PointerRNA *imaptr) |
void | uiTemplateImageFormatViews (uiLayout *layout, struct PointerRNA *imfptr, struct PointerRNA *ptr) |
void | uiTemplateImageLayers (uiLayout *layout, struct bContext *C, struct Image *ima, struct ImageUser *iuser) |
void | uiTemplateImageInfo (uiLayout *layout, struct bContext *C, struct Image *ima, struct ImageUser *iuser) |
void | uiTemplateRunningJobs (uiLayout *layout, struct bContext *C) |
void | UI_but_func_operator_search (uiBut *but) |
void | uiTemplateOperatorSearch (uiLayout *layout) |
void | UI_but_func_menu_search (uiBut *but) |
void | uiTemplateMenuSearch (uiLayout *layout) |
void | uiTemplateOperatorPropertyButs (const struct bContext *C, uiLayout *layout, struct wmOperator *op, eButLabelAlign label_align, short flag) |
void | uiTemplateHeader3D_mode (uiLayout *layout, struct bContext *C) |
void | uiTemplateEditModeSelection (uiLayout *layout, struct bContext *C) |
void | uiTemplateReportsBanner (uiLayout *layout, struct bContext *C) |
void | uiTemplateInputStatus (uiLayout *layout, struct bContext *C) |
void | uiTemplateStatusInfo (uiLayout *layout, struct bContext *C) |
void | uiTemplateKeymapItemProperties (uiLayout *layout, struct PointerRNA *ptr) |
bool | uiTemplateEventFromKeymapItem (struct uiLayout *layout, const char *text, const struct wmKeyMapItem *kmi, bool text_fallback) |
void | uiTemplateComponentMenu (uiLayout *layout, struct PointerRNA *ptr, const char *propname, const char *name) |
void | uiTemplateNodeSocket (uiLayout *layout, struct bContext *C, float color[4]) |
void | uiTemplateCacheFile (uiLayout *layout, const struct bContext *C, struct PointerRNA *ptr, const char *propname) |
bool | uiTemplateCacheFilePointer (struct PointerRNA *ptr, const char *propname, struct PointerRNA *r_file_ptr) |
void | uiTemplateCacheFileVelocity (uiLayout *layout, struct PointerRNA *fileptr) |
void | uiTemplateCacheFileProcedural (uiLayout *layout, const struct bContext *C, struct PointerRNA *fileptr) |
void | uiTemplateCacheFileTimeSettings (uiLayout *layout, struct PointerRNA *fileptr) |
void | uiTemplateCacheFileLayers (uiLayout *layout, const struct bContext *C, struct PointerRNA *fileptr) |
ENUM_OPERATORS (enum uiTemplateListFlags, UI_TEMPLATE_LIST_FLAGS_LAST) | |
void | uiTemplateList (uiLayout *layout, struct bContext *C, const char *listtype_name, const char *list_id, struct PointerRNA *dataptr, const char *propname, struct PointerRNA *active_dataptr, const char *active_propname, const char *item_dyntip_propname, int rows, int maxrows, int layout_type, int columns, enum uiTemplateListFlags flags) |
struct uiList * | uiTemplateList_ex (uiLayout *layout, struct bContext *C, const char *listtype_name, const char *list_id, struct PointerRNA *dataptr, const char *propname, struct PointerRNA *active_dataptr, const char *active_propname, const char *item_dyntip_propname, int rows, int maxrows, int layout_type, int columns, enum uiTemplateListFlags flags, void *customdata) |
void | uiTemplateNodeLink (uiLayout *layout, struct bContext *C, struct bNodeTree *ntree, struct bNode *node, struct bNodeSocket *input) |
void | uiTemplateNodeView (uiLayout *layout, struct bContext *C, struct bNodeTree *ntree, struct bNode *node, struct bNodeSocket *input) |
void | uiTemplateTextureUser (uiLayout *layout, struct bContext *C) |
void | uiTemplateTextureShow (uiLayout *layout, const struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop) |
void | uiTemplateMovieClip (struct uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, bool compact) |
void | uiTemplateTrack (struct uiLayout *layout, struct PointerRNA *ptr, const char *propname) |
void | uiTemplateMarker (struct uiLayout *layout, struct PointerRNA *ptr, const char *propname, struct PointerRNA *userptr, struct PointerRNA *trackptr, bool compact) |
void | uiTemplateMovieclipInformation (struct uiLayout *layout, struct PointerRNA *ptr, const char *propname, struct PointerRNA *userptr) |
void | uiTemplateColorspaceSettings (struct uiLayout *layout, struct PointerRNA *ptr, const char *propname) |
void | uiTemplateColormanagedViewSettings (struct uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname) |
int | uiTemplateRecentFiles (struct uiLayout *layout, int rows) |
void | uiTemplateFileSelectPath (uiLayout *layout, struct bContext *C, struct FileSelectParams *params) |
void | uiTemplateAssetView (struct uiLayout *layout, struct bContext *C, const char *list_id, struct PointerRNA *asset_library_dataptr, const char *asset_library_propname, struct PointerRNA *assets_dataptr, const char *assets_propname, struct PointerRNA *active_dataptr, const char *active_propname, const struct AssetFilterSettings *filter_settings, int display_flags, const char *activate_opname, struct PointerRNA *r_activate_op_properties, const char *drag_opname, struct PointerRNA *r_drag_op_properties) |
struct PointerRNA * | UI_list_custom_activate_operator_set (struct uiList *ui_list, const char *opname, bool create_properties) |
struct PointerRNA * | UI_list_custom_drag_operator_set (struct uiList *ui_list, const char *opname, bool create_properties) |
void | uiItemO (uiLayout *layout, const char *name, int icon, const char *opname) |
void | uiItemEnumO_ptr (uiLayout *layout, struct wmOperatorType *ot, const char *name, int icon, const char *propname, int value) |
void | uiItemEnumO (uiLayout *layout, const char *opname, const char *name, int icon, const char *propname, int value) |
void | uiItemEnumO_value (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, int value) |
void | uiItemEnumO_string (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, const char *value) |
void | uiItemsEnumO (uiLayout *layout, const char *opname, const char *propname) |
void | uiItemBooleanO (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, int value) |
void | uiItemIntO (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, int value) |
void | uiItemFloatO (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, float value) |
void | uiItemStringO (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, const char *value) |
void | uiItemFullO_ptr (uiLayout *layout, struct wmOperatorType *ot, const char *name, int icon, struct IDProperty *properties, wmOperatorCallContext context, int flag, struct PointerRNA *r_opptr) |
void | uiItemFullO (uiLayout *layout, const char *opname, const char *name, int icon, struct IDProperty *properties, wmOperatorCallContext context, int flag, struct PointerRNA *r_opptr) |
void | uiItemFullOMenuHold_ptr (uiLayout *layout, struct wmOperatorType *ot, const char *name, int icon, struct IDProperty *properties, wmOperatorCallContext context, int flag, const char *menu_id, struct PointerRNA *r_opptr) |
void | uiItemR (uiLayout *layout, struct PointerRNA *ptr, const char *propname, int flag, const char *name, int icon) |
void | uiItemFullR (uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, int value, int flag, const char *name, int icon) |
void | uiItemFullR_with_popover (uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, int value, int flag, const char *name, int icon, const char *panel_type) |
void | uiItemFullR_with_menu (uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, int value, int flag, const char *name, int icon, const char *menu_type) |
void | uiItemEnumR_prop (uiLayout *layout, const char *name, int icon, struct PointerRNA *ptr, struct PropertyRNA *prop, int value) |
void | uiItemEnumR (uiLayout *layout, const char *name, int icon, struct PointerRNA *ptr, const char *propname, int value) |
void | uiItemEnumR_string_prop (uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, const char *value, const char *name, int icon) |
void | uiItemEnumR_string (uiLayout *layout, struct PointerRNA *ptr, const char *propname, const char *value, const char *name, int icon) |
void | uiItemsEnumR (uiLayout *layout, struct PointerRNA *ptr, const char *propname) |
void | uiItemPointerR_prop (uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, struct PointerRNA *searchptr, struct PropertyRNA *searchprop, const char *name, int icon, bool results_are_suggestions) |
void | uiItemPointerR (uiLayout *layout, struct PointerRNA *ptr, const char *propname, struct PointerRNA *searchptr, const char *searchpropname, const char *name, int icon) |
void | uiItemsFullEnumO (uiLayout *layout, const char *opname, const char *propname, struct IDProperty *properties, wmOperatorCallContext context, int flag) |
void | uiItemsFullEnumO_items (uiLayout *layout, struct wmOperatorType *ot, struct PointerRNA ptr, struct PropertyRNA *prop, struct IDProperty *properties, wmOperatorCallContext context, int flag, const struct EnumPropertyItem *item_array, int totitem) |
uiPropertySplitWrapper | uiItemPropertySplitWrapperCreate (uiLayout *parent_layout) |
void | uiItemL (uiLayout *layout, const char *name, int icon) |
void | uiItemL_ex (uiLayout *layout, const char *name, int icon, bool highlight, bool redalert) |
uiLayout * | uiItemL_respect_property_split (uiLayout *layout, const char *text, int icon) |
void | uiItemLDrag (uiLayout *layout, struct PointerRNA *ptr, const char *name, int icon) |
void | uiItemM_ptr (uiLayout *layout, struct MenuType *mt, const char *name, int icon) |
void | uiItemM (uiLayout *layout, const char *menuname, const char *name, int icon) |
void | uiItemMContents (uiLayout *layout, const char *menuname) |
void | uiItemDecoratorR_prop (uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, int index) |
void | uiItemDecoratorR (uiLayout *layout, struct PointerRNA *ptr, const char *propname, int index) |
void | uiItemV (uiLayout *layout, const char *name, int icon, int argval) |
void | uiItemS (uiLayout *layout) |
void | uiItemS_ex (uiLayout *layout, float factor) |
void | uiItemSpacer (uiLayout *layout) |
void | uiItemPopoverPanel_ptr (uiLayout *layout, const struct bContext *C, struct PanelType *pt, const char *name, int icon) |
void | uiItemPopoverPanel (uiLayout *layout, const struct bContext *C, const char *panel_type, const char *name, int icon) |
void | uiItemPopoverPanelFromGroup (uiLayout *layout, struct bContext *C, int space_id, int region_id, const char *context, const char *category) |
void | uiItemMenuF (uiLayout *layout, const char *name, int icon, uiMenuCreateFunc func, void *arg) |
void | uiItemMenuFN (uiLayout *layout, const char *name, int icon, uiMenuCreateFunc func, void *argN) |
void | uiItemMenuEnumFullO_ptr (uiLayout *layout, struct bContext *C, struct wmOperatorType *ot, const char *propname, const char *name, int icon, struct PointerRNA *r_opptr) |
void | uiItemMenuEnumFullO (uiLayout *layout, struct bContext *C, const char *opname, const char *propname, const char *name, int icon, struct PointerRNA *r_opptr) |
void | uiItemMenuEnumO (uiLayout *layout, struct bContext *C, const char *opname, const char *propname, const char *name, int icon) |
void | uiItemMenuEnumR_prop (uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, const char *name, int icon) |
void | uiItemMenuEnumR (uiLayout *layout, struct PointerRNA *ptr, const char *propname, const char *name, int icon) |
void | uiItemTabsEnumR_prop (uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, struct PointerRNA *ptr_highlight, struct PropertyRNA *prop_highlight, bool icon_only) |
const char * | UI_layout_introspect (uiLayout *layout) |
uiLayout * | uiItemsAlertBox (uiBlock *block, int size, eAlertIcon icon) |
void | ED_operatortypes_ui (void) |
void | ED_keymap_ui (struct wmKeyConfig *keyconf) |
User Interface Keymap. More... | |
void | ED_dropboxes_ui (void) |
void | ED_uilisttypes_ui (void) |
void | UI_drop_color_copy (struct bContext *C, struct wmDrag *drag, struct wmDropBox *drop) |
bool | UI_drop_color_poll (struct bContext *C, struct wmDrag *drag, const struct wmEvent *event) |
bool | UI_context_copy_to_selected_list (struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, struct ListBase *r_lb, bool *r_use_path_from_id, char **r_path) |
bool | UI_context_copy_to_selected_check (struct PointerRNA *ptr, struct PointerRNA *ptr_link, struct PropertyRNA *prop, const char *path, bool use_path_from_id, struct PointerRNA *r_ptr, struct PropertyRNA **r_prop) |
uiBut * | UI_context_active_but_get (const struct bContext *C) |
uiBut * | UI_context_active_but_get_respect_menu (const struct bContext *C) |
uiBut * | UI_context_active_but_prop_get (const struct bContext *C, struct PointerRNA *r_ptr, struct PropertyRNA **r_prop, int *r_index) |
void | UI_context_active_but_prop_handle (struct bContext *C, bool handle_undo) |
void | UI_context_active_but_clear (struct bContext *C, struct wmWindow *win, struct ARegion *region) |
struct wmOperator * | UI_context_active_operator_get (const struct bContext *C) |
void | UI_context_update_anim_flag (const struct bContext *C) |
void | UI_context_active_but_prop_get_filebrowser (const struct bContext *C, struct PointerRNA *r_ptr, struct PropertyRNA **r_prop, bool *r_is_undo, bool *r_is_userdef) |
void | UI_context_active_but_prop_get_templateID (struct bContext *C, struct PointerRNA *r_ptr, struct PropertyRNA **r_prop) |
struct ID * | UI_context_active_but_get_tab_ID (struct bContext *C) |
uiBut * | UI_region_active_but_get (const struct ARegion *region) |
uiBut * | UI_region_but_find_rect_over (const struct ARegion *region, const struct rcti *rect_px) |
uiBlock * | UI_region_block_find_mouse_over (const struct ARegion *region, const int xy[2], bool only_clip) |
struct ARegion * | UI_region_searchbox_region_get (const struct ARegion *button_region) |
void | UI_fontstyle_set (const struct uiFontStyle *fs) |
void | UI_fontstyle_draw_ex (const struct uiFontStyle *fs, const struct rcti *rect, const char *str, size_t str_len, const uchar col[4], const struct uiFontStyleDraw_Params *fs_params, int *r_xofs, int *r_yofs, struct ResultBLF *r_info) |
void | UI_fontstyle_draw (const struct uiFontStyle *fs, const struct rcti *rect, const char *str, size_t str_len, const uchar col[4], const struct uiFontStyleDraw_Params *fs_params) |
void | UI_fontstyle_draw_rotated (const struct uiFontStyle *fs, const struct rcti *rect, const char *str, const uchar col[4]) |
void | UI_fontstyle_draw_simple (const struct uiFontStyle *fs, float x, float y, const char *str, const uchar col[4]) |
void | UI_fontstyle_draw_simple_backdrop (const struct uiFontStyle *fs, float x, float y, const char *str, const float col_fg[4], const float col_bg[4]) |
int | UI_fontstyle_string_width (const struct uiFontStyle *fs, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1 |
int int | UI_fontstyle_string_width_with_block_aspect (const struct uiFontStyle *fs, const char *str, float aspect) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1 |
int int int | UI_fontstyle_height_max (const struct uiFontStyle *fs) |
void | UI_draw_icon_tri (float x, float y, char dir, const float[4]) |
const struct uiStyle * | UI_style_get (void) |
const struct uiStyle * | UI_style_get_dpi (void) |
void | UI_template_fix_linking (void) |
bool | UI_editsource_enable_check (void) |
void | UI_editsource_active_but_test (uiBut *but) |
void | UI_editsource_but_replace (const uiBut *old_but, uiBut *new_but) |
void | UI_but_ensure_in_view (const struct bContext *C, struct ARegion *region, const uiBut *but) |
uiButStore * | UI_butstore_create (uiBlock *block) |
void | UI_butstore_clear (uiBlock *block) |
void | UI_butstore_update (uiBlock *block) |
void | UI_butstore_free (uiBlock *block, uiButStore *bs) |
bool | UI_butstore_is_valid (uiButStore *bs) |
bool | UI_butstore_is_registered (uiBlock *block, uiBut *but) |
void | UI_butstore_register (uiButStore *bs_handle, uiBut **but_p) |
bool | UI_butstore_register_update (uiBlock *block, uiBut *but_dst, const uiBut *but_src) |
void | UI_butstore_unregister (uiButStore *bs_handle, uiBut **but_p) |
struct ARegion * | UI_tooltip_create_from_button (struct bContext *C, struct ARegion *butregion, uiBut *but, bool is_label) |
struct ARegion * | UI_tooltip_create_from_button_or_extra_icon (struct bContext *C, struct ARegion *butregion, uiBut *but, uiButExtraOpIcon *extra_icon, bool is_label) |
struct ARegion * | UI_tooltip_create_from_gizmo (struct bContext *C, struct wmGizmo *gz) |
void | UI_tooltip_free (struct bContext *C, struct bScreen *screen, struct ARegion *region) |
struct ARegion * | UI_tooltip_create_from_search_item_generic (struct bContext *C, const struct ARegion *searchbox_region, const struct rcti *item_rect, const uiSearchItemTooltipData *item_tooltip_data) |
int | UI_calc_float_precision (int prec, double value) |
void | UI_widgetbase_draw_cache_begin (void) |
void | UI_widgetbase_draw_cache_flush (void) |
void | UI_widgetbase_draw_cache_end (void) |
void | UI_theme_init_default (void) |
void | UI_style_init_default (void) |
void | UI_interface_tag_script_reload (void) |
void | UI_block_views_listen (const uiBlock *block, const struct wmRegionListenerParams *listener_params) |
bool | UI_view_item_is_active (const uiViewItemHandle *item_handle) |
bool | UI_view_item_matches (const uiViewItemHandle *a_handle, const uiViewItemHandle *b_handle) |
bool | UI_view_item_can_rename (const uiViewItemHandle *item_handle) |
void | UI_view_item_begin_rename (uiViewItemHandle *item_handle) |
void | UI_view_item_context_menu_build (struct bContext *C, const uiViewItemHandle *item_handle, uiLayout *column) |
bool | UI_view_item_drag_start (struct bContext *C, const uiViewItemHandle *item_) |
bool | UI_view_item_can_drop (const uiViewItemHandle *item_, const struct wmDrag *drag, const char **r_disabled_hint) |
char * | UI_view_item_drop_tooltip (const uiViewItemHandle *item, const struct wmDrag *drag) |
bool | UI_view_item_drop_handle (struct bContext *C, const uiViewItemHandle *item_, const struct ListBase *drags) |
uiViewItemHandle * | UI_region_views_find_item_at (const struct ARegion *region, const int xy[2]) ATTR_NONNULL() |
uiViewItemHandle * | UI_region_views_find_active_item (const struct ARegion *region) |
Custom Interaction | |
Sometimes it's useful to create data that remains available while the user interacts with a button. A common case is dragging a number button or slider however this could be used in other cases too. | |
typedef void *(* | uiBlockInteractionBeginFn) (struct bContext *C, const struct uiBlockInteraction_Params *params, void *arg1) |
typedef void(* | uiBlockInteractionEndFn) (struct bContext *C, const struct uiBlockInteraction_Params *params, void *arg1, void *user_data) |
typedef void(* | uiBlockInteractionUpdateFn) (struct bContext *C, const struct uiBlockInteraction_Params *params, void *arg1, void *user_data) |
typedef struct uiBlockInteraction_CallbackData | uiBlockInteraction_CallbackData |
void | UI_block_interaction_set (uiBlock *block, uiBlockInteraction_CallbackData *callbacks) |
#define AUTOCOMPLETE_FULL_MATCH 1 |
Definition at line 1760 of file UI_interface.h.
#define AUTOCOMPLETE_NO_MATCH 0 |
Definition at line 1759 of file UI_interface.h.
#define AUTOCOMPLETE_PARTIAL_MATCH 2 |
Definition at line 1761 of file UI_interface.h.
#define BUTTYPE (63 << 9) |
Definition at line 396 of file UI_interface.h.
#define EDTSRC_I18N_OP_NAME "UI_OT_edittranslation" |
Definition at line 1381 of file UI_interface.h.
#define INSTANCED_PANEL_UNIQUE_STR_LEN 16 |
Definition at line 1900 of file UI_interface.h.
#define UI_ALPHA_CHECKER_DARK 100 |
Definition at line 2027 of file UI_interface.h.
#define UI_ALPHA_CHECKER_LIGHT 160 |
Definition at line 2028 of file UI_interface.h.
#define UI_but_is_decorator | ( | but | ) | ((but)->type == UI_BTYPE_DECORATOR) |
Definition at line 611 of file UI_interface.h.
#define UI_BUT_POIN_TYPES (UI_BUT_POIN_FLOAT | UI_BUT_POIN_SHORT | UI_BUT_POIN_CHAR) |
Definition at line 326 of file UI_interface.h.
#define UI_COMPACT_PANEL_WIDTH 160 |
Definition at line 241 of file UI_interface.h.
#define UI_DEFAULT_TEXT_POINTS 11.0f |
Definition at line 235 of file UI_interface.h.
#define UI_DEFAULT_TITLE_POINTS 11.0f |
Definition at line 238 of file UI_interface.h.
#define UI_DPI_FAC (U.dpi_fac) |
Definition at line 305 of file UI_interface.h.
#define UI_DPI_ICON_SIZE ((float)16 * UI_DPI_FAC) |
Definition at line 307 of file UI_interface.h.
#define UI_FSTYLE_WIDGET (const uiFontStyle *)&(UI_style_get()->widget) |
Definition at line 3166 of file UI_interface.h.
Definition at line 2013 of file UI_interface.h.
#define UI_MAX_DRAW_STR 400 |
Definition at line 91 of file UI_interface.h.
#define UI_MAX_NAME_STR 128 |
Definition at line 92 of file UI_interface.h.
#define UI_MAX_SHORTCUT_STR 64 |
Definition at line 93 of file UI_interface.h.
#define UI_MENU_ARROW_SEP "\xe2\x96\xb6" |
Definition at line 88 of file UI_interface.h.
#define UI_NARROW_NAVIGATION_REGION_WIDTH 100 |
Definition at line 244 of file UI_interface.h.
#define UI_NAVIGATION_REGION_WIDTH UI_COMPACT_PANEL_WIDTH |
Definition at line 243 of file UI_interface.h.
#define UI_PANEL_CATEGORY_MARGIN_WIDTH (U.widget_unit * 1.0f) |
Definition at line 246 of file UI_interface.h.
#define UI_PANEL_MARGIN_X (U.widget_unit * 0.4f) |
Definition at line 250 of file UI_interface.h.
#define UI_PANEL_MARGIN_Y (U.widget_unit * 0.1f) |
Definition at line 251 of file UI_interface.h.
#define UI_PANEL_WIDTH 340 |
Definition at line 240 of file UI_interface.h.
#define UI_PRECISION_FLOAT_MAX 6 |
Definition at line 3161 of file UI_interface.h.
#define UI_PRECISION_FLOAT_SCALE 0.01f |
Definition at line 3163 of file UI_interface.h.
#define UI_REGION_OVERLAP_MARGIN (U.widget_unit / 3) |
For ARegion.overlap regions, pass events though if they don't overlap the regions contents (the usable part of the View2D and buttons).
The margin is needed so it's not possible to accidentally click in between buttons.
Definition at line 101 of file UI_interface.h.
#define UI_SCREEN_MARGIN 10 |
Definition at line 104 of file UI_interface.h.
#define UI_SEP_CHAR '|' |
Definition at line 83 of file UI_interface.h.
#define UI_SEP_CHAR_S "|" |
Definition at line 84 of file UI_interface.h.
#define UI_SIDEBAR_PANEL_WIDTH 220 |
Definition at line 242 of file UI_interface.h.
#define UI_TOOLTIP_DELAY 0.5 |
Definition at line 3157 of file UI_interface.h.
#define UI_TOOLTIP_DELAY_LABEL 0.2 |
Definition at line 3158 of file UI_interface.h.
#define UI_UL_DEFAULT_CLASS_NAME "UI_UL_list" |
Definition at line 2469 of file UI_interface.h.
Definition at line 1971 of file UI_interface.h.
Definition at line 1972 of file UI_interface.h.
#define USE_UI_POPOVER_ONCE |
Definition at line 3195 of file UI_interface.h.
#define USE_UI_TOOLBAR_HACK |
Definition at line 3192 of file UI_interface.h.
typedef struct AutoComplete AutoComplete |
Definition at line 1749 of file UI_interface.h.
typedef enum eAutoPropButsReturn eAutoPropButsReturn |
typedef enum eButGradientType eButGradientType |
Gradient types, for color picker UI_BTYPE_HSVCUBE etc.
typedef enum eFontStyle_Align eFontStyle_Align |
#uiFontStyle.align
typedef enum eUIEmbossType eUIEmbossType |
Definition at line 1 of file UI_interface.h.
Definition at line 715 of file UI_interface.h.
Definition at line 714 of file UI_interface.h.
Definition at line 540 of file UI_interface.h.
typedef struct uiBlockInteraction_CallbackData uiBlockInteraction_CallbackData |
typedef void*(* uiBlockInteractionBeginFn) (struct bContext *C, const struct uiBlockInteraction_Params *params, void *arg1) |
Returns 'user_data', freed by uiBlockInteractionEndFn.
Definition at line 567 of file UI_interface.h.
typedef void(* uiBlockInteractionEndFn) (struct bContext *C, const struct uiBlockInteraction_Params *params, void *arg1, void *user_data) |
Definition at line 570 of file UI_interface.h.
typedef void(* uiBlockInteractionUpdateFn) (struct bContext *C, const struct uiBlockInteraction_Params *params, void *arg1, void *user_data) |
Definition at line 574 of file UI_interface.h.
Definition at line 1 of file UI_interface.h.
Definition at line 509 of file UI_interface.h.
typedef struct uiButExtraOpIcon uiButExtraOpIcon |
Definition at line 1 of file UI_interface.h.
Definition at line 505 of file UI_interface.h.
Definition at line 508 of file UI_interface.h.
Definition at line 507 of file UI_interface.h.
Definition at line 506 of file UI_interface.h.
Function to compare the identity of two buttons over redraws, to check if they represent the same data, and thus should be considered the same button over redraws.
Definition at line 513 of file UI_interface.h.
Definition at line 538 of file UI_interface.h.
typedef bool(* uiButSearchContextMenuFn) (struct bContext *C, void *arg, void *active, const struct wmEvent *event) |
Definition at line 526 of file UI_interface.h.
typedef struct ARegion*(* uiButSearchCreateFn) (struct bContext *C, struct ARegion *butregion, struct uiButSearch *search_but) |
Definition at line 513 of file UI_interface.h.
typedef struct ARegion*(* uiButSearchTooltipFn) (struct bContext *C, struct ARegion *region, const struct rcti *item_rect, void *arg, void *active) |
Definition at line 526 of file UI_interface.h.
typedef void(* uiButSearchUpdateFn) (const struct bContext *C, void *arg, const char *str, uiSearchItems *items, bool is_first) |
is_first
is typically used to ignore search filtering when the menu is first opened in order to display the full list of options. The value will be false after the button's text is edited (for every call except the first).
Definition at line 524 of file UI_interface.h.
typedef struct uiButStore uiButStore |
Definition at line 3088 of file UI_interface.h.
typedef struct uiButStoreElem uiButStoreElem |
Definition at line 3088 of file UI_interface.h.
Definition at line 537 of file UI_interface.h.
Definition at line 602 of file UI_interface.h.
typedef struct uiDragColorHandle uiDragColorHandle |
Definition at line 603 of file UI_interface.h.
Definition at line 1 of file UI_interface.h.
Definition at line 1907 of file UI_interface.h.
Definition at line 592 of file UI_interface.h.
Definition at line 593 of file UI_interface.h.
Used for cycling menu values without opening the menu (Ctrl-Wheel).
direction | forward or backwards [1 / -1]. |
arg1 | uiBut.poin (as with uiMenuCreateFunc). |
Definition at line 600 of file UI_interface.h.
Definition at line 683 of file UI_interface.h.
Definition at line 659 of file UI_interface.h.
typedef struct uiPopupBlockHandle uiPopupBlockHandle |
Definition at line 1 of file UI_interface.h.
typedef struct uiPopupMenu uiPopupMenu |
Popup Menus
Functions used to create popup menus. For more extended menus the UI_popup_menu_begin/End functions can be used to define own items with the uiItem functions in between. If it is a simple confirmation menu or similar, popups can be created with a single function call.
Definition at line 617 of file UI_interface.h.
typedef struct uiPropertySplitWrapper uiPropertySplitWrapper |
typedef struct uiSearchItems uiSearchItems |
Callbacks
UI_block_func_handle_set/ButmFunc are for handling events through a callback. HandleFunc gets the retval passed on, and ButmFunc gets a2. The latter is mostly for compatibility with older code.
Definition at line 480 of file UI_interface.h.
typedef struct uiStringInfo uiStringInfo |
typedef enum uiStringInfoType uiStringInfoType |
typedef struct uiViewHandle uiViewHandle |
Definition at line 1 of file UI_interface.h.
typedef struct uiViewItemHandle uiViewItemHandle |
Definition at line 1 of file UI_interface.h.
anonymous enum |
Enumerator | |
---|---|
UI_DIR_UP | |
UI_DIR_DOWN | |
UI_DIR_LEFT | |
UI_DIR_RIGHT | |
UI_DIR_CENTER_X | |
UI_DIR_CENTER_Y | |
UI_DIR_ALL |
Definition at line 122 of file UI_interface.h.
anonymous enum |
uiBlock.flag (controls)
Definition at line 134 of file UI_interface.h.
anonymous enum |
Definition at line 171 of file UI_interface.h.
anonymous enum |
uiBut.flag general state flags.
Enumerator | |
---|---|
UI_BUT_ICON_SUBMENU | |
UI_BUT_ICON_PREVIEW | |
UI_BUT_NODE_LINK | |
UI_BUT_NODE_ACTIVE | |
UI_BUT_DRAG_LOCK | |
UI_BUT_DISABLED | Grayed out and un-editable. |
UI_BUT_ANIMATED | |
UI_BUT_ANIMATED_KEY | |
UI_BUT_DRIVEN | |
UI_BUT_REDALERT | |
UI_BUT_INACTIVE | Grayed out but still editable. |
UI_BUT_LAST_ACTIVE | |
UI_BUT_UNDO | |
UI_BUT_NO_UTF8 | |
UI_BUT_ACTIVE_DEFAULT | For popups, pressing return activates this button, overriding the highlighted button. For non-popups this is just used as a display hint for the user to let them know the action which is activated when pressing return (file selector for eg). |
UI_BUT_LIST_ITEM | This but is "inside" a list item (currently used to change theme colors). |
UI_BUT_DRAG_MULTI | edit this button as well as the active button (not just dragging) |
UI_BUT_ACTIVATE_ON_INIT | Use for popups to start editing the button on initialization. |
UI_BUT_HAS_SEP_CHAR | uiBut.str contains UI_SEP_CHAR, used for key shortcuts |
UI_BUT_UPDATE_DELAY | Don't run updates while dragging (needed in rare cases). |
UI_BUT_TEXTEDIT_UPDATE | When widget is in text-edit mode, update value on each char stroke. |
UI_BUT_VALUE_CLEAR | Show 'x' icon to clear/unlink value of text or search button. |
UI_BUT_OVERRIDDEN | RNA property of the button is overridden from linked reference data. |
Definition at line 187 of file UI_interface.h.
anonymous enum |
Enumerator | |
---|---|
UI_BUT_TEXT_LEFT | Text and icon alignment (by default, they are centered). |
UI_BUT_ICON_LEFT | |
UI_BUT_TEXT_RIGHT | |
UI_BUT_NO_TOOLTIP | Prevent the button to show any tooltip. |
UI_BUT_NO_TEXT_PADDING | Do not add the usual horizontal padding for text drawing. |
UI_BUT_ALIGN_TOP | |
UI_BUT_ALIGN_LEFT | |
UI_BUT_ALIGN_RIGHT | |
UI_BUT_ALIGN_DOWN | |
UI_BUT_ALIGN | |
UI_BUT_ALIGN_STITCH_TOP | Warning - HACK! Needed for buttons which are not TOP/LEFT aligned, but have some top/left corner stitched to some other TOP/LEFT-aligned button, because of 'corrective' hack in widget_roundbox_set()... |
UI_BUT_ALIGN_STITCH_LEFT | |
UI_BUT_ALIGN_ALL | |
UI_BUT_BOX_ITEM | This but is "inside" a box item (currently used to change theme colors). |
UI_BUT_ACTIVE_LEFT | Active left part of number button |
UI_BUT_ACTIVE_RIGHT | Active right part of number button |
UI_BUT_ICON_REVERSE | Reverse order of consecutive off/on icons |
UI_BUT_ANIMATED_CHANGED | Value is animated, but the current value differs from the animated one. |
UI_BUT_CHECKBOX_INVERT |
Definition at line 257 of file UI_interface.h.
anonymous enum |
State for scrolldrawing.
Enumerator | |
---|---|
UI_SCROLL_PRESSED | |
UI_SCROLL_ARROWS |
Definition at line 455 of file UI_interface.h.
anonymous enum |
Enumerator | |
---|---|
UI_BLOCK_THEME_STYLE_REGULAR | |
UI_BLOCK_THEME_STYLE_POPUP |
Definition at line 768 of file UI_interface.h.
anonymous enum |
Special Buttons
Buttons with a more specific purpose:
Enumerator | |
---|---|
UI_ID_NOP | |
UI_ID_RENAME | |
UI_ID_BROWSE | |
UI_ID_ADD_NEW | |
UI_ID_ALONE | |
UI_ID_OPEN | |
UI_ID_DELETE | |
UI_ID_LOCAL | |
UI_ID_AUTO_NAME | |
UI_ID_FAKE_USER | |
UI_ID_PIN | |
UI_ID_PREVIEWS | |
UI_ID_OVERRIDE | |
UI_ID_FULL |
Definition at line 1394 of file UI_interface.h.
anonymous enum |
Ways to limit what is displayed in ID-search popup.
Enumerator | |
---|---|
UI_TEMPLATE_ID_FILTER_ALL | |
UI_TEMPLATE_ID_FILTER_AVAILABLE |
Definition at line 1416 of file UI_interface.h.
anonymous enum |
Enumerator | |
---|---|
UI_LAYOUT_HORIZONTAL | |
UI_LAYOUT_VERTICAL |
Definition at line 1957 of file UI_interface.h.
anonymous enum |
Enumerator | |
---|---|
UI_LAYOUT_PANEL | |
UI_LAYOUT_HEADER | |
UI_LAYOUT_MENU | |
UI_LAYOUT_TOOLBAR | |
UI_LAYOUT_PIEMENU | |
UI_LAYOUT_VERT_BAR |
Definition at line 1962 of file UI_interface.h.
anonymous enum |
Enumerator | |
---|---|
UI_LAYOUT_ALIGN_EXPAND | |
UI_LAYOUT_ALIGN_LEFT | |
UI_LAYOUT_ALIGN_CENTER | |
UI_LAYOUT_ALIGN_RIGHT |
Definition at line 1974 of file UI_interface.h.
anonymous enum |
Enumerator | |
---|---|
UI_ITEM_R_EXPAND | |
UI_ITEM_R_SLIDER | |
UI_ITEM_R_TOGGLE | Use for booleans, causes the button to draw with an outline (emboss), instead of text with a checkbox. This is implied when toggle buttons have an icon unless UI_ITEM_R_ICON_NEVER flag is set. |
UI_ITEM_R_ICON_NEVER | Don't attempt to use an icon when the icon is set to #ICON_NONE. Use for boolean's, causes the buttons to always show as a checkbox even when there is an icon (which would normally show the button as a toggle). |
UI_ITEM_R_ICON_ONLY | |
UI_ITEM_R_EVENT | |
UI_ITEM_R_FULL_EVENT | |
UI_ITEM_R_NO_BG | |
UI_ITEM_R_IMMEDIATE | |
UI_ITEM_O_DEPRESS | |
UI_ITEM_R_COMPACT | |
UI_ITEM_R_CHECKBOX_INVERT | |
UI_ITEM_R_FORCE_BLANK_DECORATE | Don't add a real decorator item, just blank space. |
UI_ITEM_R_SPLIT_EMPTY_NAME |
Definition at line 1981 of file UI_interface.h.
anonymous enum |
Enumerator | |
---|---|
UI_TEMPLATE_OP_PROPS_SHOW_TITLE | |
UI_TEMPLATE_OP_PROPS_SHOW_EMPTY | |
UI_TEMPLATE_OP_PROPS_COMPACT | |
UI_TEMPLATE_OP_PROPS_HIDE_ADVANCED | |
UI_TEMPLATE_OP_PROPS_NO_SPLIT_LAYOUT |
Definition at line 2016 of file UI_interface.h.
anonymous enum |
Enumerator | |
---|---|
UI_CNR_TOP_LEFT | |
UI_CNR_TOP_RIGHT | |
UI_CNR_BOTTOM_RIGHT | |
UI_CNR_BOTTOM_LEFT | |
UI_CNR_NONE | |
UI_CNR_ALL |
Definition at line 2036 of file UI_interface.h.
anonymous enum |
Enumerator | |
---|---|
UI_TEMPLATE_ASSET_DRAW_NO_NAMES | |
UI_TEMPLATE_ASSET_DRAW_NO_FILTER | |
UI_TEMPLATE_ASSET_DRAW_NO_LIBRARY |
Definition at line 2565 of file UI_interface.h.
enum eAutoPropButsReturn |
Enumerator | |
---|---|
UI_PROP_BUTS_NONE_ADDED | |
UI_PROP_BUTS_ANY_FAILED_CHECK |
Definition at line 1562 of file UI_interface.h.
enum eBlockBoundsCalc |
Enumerator | |
---|---|
UI_BLOCK_BOUNDS_NONE | |
UI_BLOCK_BOUNDS | |
UI_BLOCK_BOUNDS_TEXT | |
UI_BLOCK_BOUNDS_POPUP_MOUSE | |
UI_BLOCK_BOUNDS_POPUP_MENU | |
UI_BLOCK_BOUNDS_POPUP_CENTER | |
UI_BLOCK_BOUNDS_PIE_CENTER |
Definition at line 810 of file UI_interface.h.
enum eButGradientType |
Gradient types, for color picker UI_BTYPE_HSVCUBE etc.
Enumerator | |
---|---|
UI_GRAD_SV | |
UI_GRAD_HV | |
UI_GRAD_HS | |
UI_GRAD_H | |
UI_GRAD_S | |
UI_GRAD_V | |
UI_GRAD_V_ALT | |
UI_GRAD_L_ALT |
Definition at line 399 of file UI_interface.h.
enum eButLabelAlign |
Enumerator | |
---|---|
UI_BUT_LABEL_ALIGN_NONE | |
UI_BUT_LABEL_ALIGN_COLUMN | |
UI_BUT_LABEL_ALIGN_SPLIT_COLUMN |
Definition at line 1552 of file UI_interface.h.
enum eButPointerType |
Button types, bits stored in 1 value... and a short even!
Enumerator | |
---|---|
UI_BUT_POIN_CHAR | |
UI_BUT_POIN_SHORT | |
UI_BUT_POIN_INT | |
UI_BUT_POIN_FLOAT | |
UI_BUT_POIN_BIT |
Definition at line 316 of file UI_interface.h.
enum eButType |
Enumerator | |
---|---|
UI_BTYPE_BUT | |
UI_BTYPE_ROW | |
UI_BTYPE_TEXT | |
UI_BTYPE_MENU | Drop-down list. |
UI_BTYPE_BUT_MENU | |
UI_BTYPE_NUM | number button |
UI_BTYPE_NUM_SLIDER | number slider |
UI_BTYPE_TOGGLE | |
UI_BTYPE_TOGGLE_N | |
UI_BTYPE_ICON_TOGGLE | |
UI_BTYPE_ICON_TOGGLE_N | |
UI_BTYPE_BUT_TOGGLE | same as regular toggle, but no on/off state displayed |
UI_BTYPE_CHECKBOX | similar to toggle, display a 'tick' |
UI_BTYPE_CHECKBOX_N | |
UI_BTYPE_COLOR | |
UI_BTYPE_TAB | |
UI_BTYPE_POPOVER | |
UI_BTYPE_SCROLL | |
UI_BTYPE_BLOCK | |
UI_BTYPE_LABEL | |
UI_BTYPE_KEY_EVENT | |
UI_BTYPE_HSVCUBE | |
UI_BTYPE_PULLDOWN | menu (often used in headers), **_MENU /w different draw-type |
UI_BTYPE_ROUNDBOX | |
UI_BTYPE_COLORBAND | |
UI_BTYPE_UNITVEC | sphere widget (used to input a unit-vector, aka normal) |
UI_BTYPE_CURVE | |
UI_BTYPE_CURVEPROFILE | Profile editing widget |
UI_BTYPE_LISTBOX | |
UI_BTYPE_LISTROW | |
UI_BTYPE_HSVCIRCLE | |
UI_BTYPE_TRACK_PREVIEW | |
UI_BTYPE_SEARCH_MENU | Buttons with value >= UI_BTYPE_SEARCH_MENU don't get undo pushes. |
UI_BTYPE_EXTRA | |
UI_BTYPE_PREVIEW_TILE | A preview image (PreviewImage), with text under it. Typically bigger than normal buttons and laid out in a grid, e.g. like the File Browser in thumbnail display mode. |
UI_BTYPE_HOTKEY_EVENT | |
UI_BTYPE_IMAGE | Non-interactive image, used for splash screen |
UI_BTYPE_HISTOGRAM | |
UI_BTYPE_WAVEFORM | |
UI_BTYPE_VECTORSCOPE | |
UI_BTYPE_PROGRESS_BAR | |
UI_BTYPE_NODE_SOCKET | |
UI_BTYPE_SEPR | |
UI_BTYPE_SEPR_LINE | |
UI_BTYPE_SEPR_SPACER | Dynamically fill available space. |
UI_BTYPE_GRIP | Resize handle (resize uilist). |
UI_BTYPE_DECORATOR | |
UI_BTYPE_VIEW_ITEM |
Definition at line 329 of file UI_interface.h.
enum eFontStyle_Align |
#uiFontStyle.align
Enumerator | |
---|---|
UI_STYLE_TEXT_LEFT | |
UI_STYLE_TEXT_CENTER | |
UI_STYLE_TEXT_RIGHT |
Definition at line 2984 of file UI_interface.h.
enum eUIEmbossType |
uiBlock.emboss and uiBut.emboss
Enumerator | |
---|---|
UI_EMBOSS | |
UI_EMBOSS_NONE | |
UI_EMBOSS_PULLDOWN | |
UI_EMBOSS_RADIAL | |
UI_EMBOSS_NONE_OR_STATUS | The same as UI_EMBOSS_NONE, unless the button has a coloring status like an animation state or red alert. |
UI_EMBOSS_UNDEFINED |
Definition at line 107 of file UI_interface.h.
enum uiStringInfoType |
Definition at line 1352 of file UI_interface.h.
enum uiTemplateListFlags |
Enumerator | |
---|---|
UI_TEMPLATE_LIST_FLAG_NONE | |
UI_TEMPLATE_LIST_SORT_REVERSE | |
UI_TEMPLATE_LIST_SORT_LOCK | |
UI_TEMPLATE_LIST_NO_GRIP | |
UI_TEMPLATE_LIST_NO_FILTER_OPTIONS | Do not show filtering options, not even the button to expand/collapse them. Also hides the grip button. |
UI_TEMPLATE_LIST_NO_NAMES | For UILST_LAYOUT_BIG_PREVIEW_GRID, don't reserve space for the name label. |
UI_TEMPLATE_LIST_FLAGS_LAST |
Definition at line 2470 of file UI_interface.h.
Definition at line 138 of file interface_dropboxes.cc.
References SPACE_EMPTY, ui_drop_material_copy(), ui_drop_material_poll(), ui_drop_material_tooltip(), ui_drop_name_copy(), ui_drop_name_poll(), ui_view_drop_poll(), ui_view_drop_tooltip(), WM_drag_free_imported_drag_ID(), WM_dropbox_add(), and WM_dropboxmap_find().
Referenced by ED_spacemacros_init().
void ED_keymap_ui | ( | struct wmKeyConfig * | keyconf | ) |
User Interface Keymap.
Definition at line 2546 of file interface_ops.c.
References eyedropper_colorband_modal_keymap(), eyedropper_modal_keymap(), and WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
Definition at line 2503 of file interface_ops.c.
References override_idtemplate_menu(), UI_OT_assign_default_button(), UI_OT_button_execute(), UI_OT_button_string_clear(), UI_OT_copy_as_driver_button(), UI_OT_copy_data_path_button(), UI_OT_copy_python_command_button(), UI_OT_copy_to_selected_button(), UI_OT_drop_color(), UI_OT_drop_material(), UI_OT_drop_name(), UI_OT_eyedropper_color(), UI_OT_eyedropper_colorramp(), UI_OT_eyedropper_colorramp_point(), UI_OT_eyedropper_depth(), UI_OT_eyedropper_driver(), UI_OT_eyedropper_gpencil_color(), UI_OT_eyedropper_id(), UI_OT_jump_to_target_button(), UI_OT_list_start_filter(), UI_OT_override_idtemplate_clear(), UI_OT_override_idtemplate_make(), UI_OT_override_idtemplate_reset(), UI_OT_override_remove_button(), UI_OT_override_type_set_button(), UI_OT_reloadtranslation(), UI_OT_reset_default_button(), UI_OT_unset_property_button(), UI_OT_view_drop(), UI_OT_view_item_rename(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
Definition at line 1304 of file interface_template_list.cc.
References UI_UL_asset_view(), UI_UL_cache_file_layers(), and WM_uilisttype_add().
Referenced by ED_spacetypes_init().
ENUM_OPERATORS | ( | eAutoPropButsReturn | , |
UI_PROP_BUTS_ANY_FAILED_CHECK | |||
) |
ENUM_OPERATORS | ( | enum | uiTemplateListFlags, |
UI_TEMPLATE_LIST_FLAGS_LAST | |||
) |
AutoComplete* UI_autocomplete_begin | ( | const char * | startname, |
size_t | maxlen | ||
) |
Definition at line 4901 of file interface.cc.
References AutoComplete::matches, AutoComplete::maxlen, MEM_callocN, AutoComplete::startname, and AutoComplete::truncate.
Referenced by autocomplete_directory(), autocomplete_file(), and ui_searchbox_autocomplete().
int UI_autocomplete_end | ( | AutoComplete * | autocpl, |
char * | autoname | ||
) |
Definition at line 4948 of file interface.cc.
References AUTOCOMPLETE_FULL_MATCH, AUTOCOMPLETE_NO_MATCH, AUTOCOMPLETE_PARTIAL_MATCH, BLI_strncpy(), AutoComplete::matches, AutoComplete::maxlen, MEM_freeN, AutoComplete::startname, and AutoComplete::truncate.
Referenced by autocomplete_directory(), autocomplete_file(), and ui_searchbox_autocomplete().
void UI_autocomplete_update_name | ( | AutoComplete * | autocpl, |
const char * | name | ||
) |
Definition at line 4914 of file interface.cc.
References Freestyle::a, BLI_strncpy(), AutoComplete::matches, AutoComplete::maxlen, AutoComplete::startname, and AutoComplete::truncate.
Referenced by autocomplete_directory(), autocomplete_file(), and UI_search_item_add().
bool UI_block_active_only_flagged_buttons | ( | const struct bContext * | C, |
struct ARegion * | region, | ||
struct uiBlock * | block | ||
) |
Referenced by UI_popover_panel_invoke(), UI_popup_block_ex(), and UI_popup_block_invoke_ex().
Automatic aligning, horizontal or vertical.
Definition at line 3910 of file interface.cc.
References uiBlock::alignnr, uiBlock::flag, UI_block_align_end(), UI_BUT_ALIGN, and UI_BUT_ALIGN_DOWN.
Referenced by colorband_buttons_layout(), curvemap_clipping_func(), ED_time_scrub_channel_search_draw(), envelope_panel_draw(), template_ID(), template_search_buttons(), ui_block_colorpicker(), ui_item_array(), uiDefAutoButsArrayR(), uiTemplateComponentMenu(), uiTemplateMarker(), uiTemplateNodeSocket(), uiTemplateReportsBanner(), uiTemplateStatusInfo(), uvedit_vertex_buttons(), v3d_editvertex_buts(), and v3d_object_dimension_buts().
Definition at line 3923 of file interface.cc.
References uiBlock::flag, and UI_BUT_ALIGN.
Referenced by colorband_buttons_layout(), ED_time_scrub_channel_search_draw(), blender::ed::space_node::node_update_basis(), spreadsheet_footer_region_draw(), template_ID(), template_search_buttons(), UI_block_align_begin(), ui_block_colorpicker(), UI_block_end_ex(), ui_item_array(), uiDefAutoButsArrayR(), uiTemplateComponentMenu(), uiTemplateMarker(), uiTemplateNodeSocket(), uiTemplateReportsBanner(), uiTemplateStatusInfo(), uvedit_vertex_buttons(), v3d_editvertex_buts(), and v3d_object_dimension_buts().
Apply property search behavior, setting panel flags and deactivating buttons that don't match.
Definition at line 5204 of file interface_layout.c.
References BLI_assert, block_search_filter_tag_buttons(), block_search_panel_label_matches(), PanelType::flag, NULL, uiBlock::panel, PANEL_TYPE_NO_SEARCH, Panel::type, and ui_panel_tag_search_filter_match().
Referenced by ed_panel_draw(), and panel_property_search().
uiBlock* UI_block_begin | ( | const struct bContext * | C, |
struct ARegion * | region, | ||
const char * | name, | ||
eUIEmbossType | emboss | ||
) |
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_forwardcompat_dialog(), clip_draw_dopesheet_channels(), colorband_tools_func(), component_menu(), blender::ed::space_node::create_search_popup_block(), curvemap_clipping_func(), curvemap_tools_func(), CurveProfile_presets_func(), CurveProfile_tools_func(), blender::ed::spreadsheet::draw_cell_contents(), draw_channel_headers(), draw_channel_names(), blender::ed::spreadsheet::draw_left_column_content(), draw_nla_channel_list(), draw_outliner(), blender::ed::spreadsheet::draw_top_row_content(), blender::ed::space_node::draw_tree_path(), ed_panel_draw(), ED_region_header_layout(), ED_time_scrub_channel_search_draw(), file_draw_invalid_asset_library_hint(), file_draw_list(), graph_draw_channel_names(), menu_add_shortcut(), menu_change_shortcut(), menu_items_from_ui_create(), merged_element_search_menu(), blender::ed::space_node::node_find_menu(), blender::ed::space_node::node_uiblocks_init(), panel_property_search(), spreadsheet_footer_region_draw(), template_common_search_menu(), ui_block_func_COLOR(), ui_icon_view_menu_cb(), UI_pie_menu_begin(), ui_popover_create_block(), UI_popup_menu_begin_ex(), ui_popup_menu_create(), wm_block_create_about(), wm_block_create_redo(), wm_block_create_splash(), wm_block_dialog_create(), wm_block_search_menu(), wm_enum_search_menu(), and wm_operator_ui_create().
Used for centered popups, i.e. splash.
Definition at line 624 of file interface.cc.
References uiBlock::bounds, uiBlock::bounds_type, and UI_BLOCK_BOUNDS_POPUP_CENTER.
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_forwardcompat_dialog(), wm_block_create_about(), and wm_block_create_splash().
Definition at line 630 of file interface.cc.
References uiBlock::bounds_type, uiBlock::rect, UI_BLOCK_BOUNDS_NONE, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by blender::ed::space_node::node_update_basis(), and blender::ed::space_node::node_update_hidden().
Used for menu popups.
Definition at line 612 of file interface.cc.
References uiBlock::bounds, uiBlock::bounds_offset, uiBlock::bounds_type, copy_v2_v2_int(), UI_BLOCK_BOUNDS_POPUP_MENU, and zero_v2_int().
Referenced by ui_block_func_POPUP().
Used for various cases.
Definition at line 582 of file interface.cc.
References uiBlock::bounds, uiBlock::bounds_type, and UI_BLOCK_BOUNDS.
Referenced by component_menu(), curvemap_clipping_func(), ED_time_scrub_channel_search_draw(), template_common_search_menu(), UI_block_end_ex(), ui_block_func_COLOR(), ui_block_func_POPOVER(), and ui_icon_view_menu_cb().
Used for block popups.
Definition at line 598 of file interface.cc.
References uiBlock::bounds, uiBlock::bounds_offset, uiBlock::bounds_type, and UI_BLOCK_BOUNDS_POPUP_MOUSE.
Referenced by blender::ed::space_node::create_search_popup_block(), menu_add_shortcut(), menu_change_shortcut(), merged_element_search_menu(), blender::ed::space_node::node_find_menu(), ui_block_func_POPOVER(), wm_block_create_redo(), wm_block_dialog_create(), wm_block_search_menu(), wm_enum_search_menu(), and wm_operator_ui_create().
Used for pull-downs.
Definition at line 592 of file interface.cc.
References uiBlock::bounds, uiBlock::bounds_type, and UI_BLOCK_BOUNDS_TEXT.
Referenced by colorband_tools_func(), curvemap_tools_func(), CurveProfile_presets_func(), CurveProfile_tools_func(), and ui_block_func_POPUP().
Definition at line 661 of file interface_query.cc.
References uiBlock::buttons, ELEM, ListBase::last, uiBut::type, ui_block_is_menu(), ui_block_is_pie_menu(), UI_BTYPE_SEPR, and UI_BTYPE_SEPR_LINE.
Referenced by uiItemS_ex().
Definition at line 5810 of file interface.cc.
References uiBlock::direction.
Referenced by colorband_tools_func(), component_menu(), curvemap_clipping_func(), curvemap_tools_func(), CurveProfile_presets_func(), CurveProfile_tools_func(), menu_add_shortcut(), menu_change_shortcut(), menu_item_enum_opname_menu(), template_common_search_menu(), ui_block_func_POPOVER(), ui_block_func_POPUP(), ui_icon_view_menu_cb(), and ui_item_menu_hold().
Uses local copy of style, to scale things down, and allow widgets to change stuff.
Referenced by clip_draw_dopesheet_channels(), blender::ed::spreadsheet::draw_cell_contents(), draw_channel_headers(), draw_channel_names(), blender::ed::spreadsheet::draw_left_column_content(), draw_nla_channel_list(), draw_outliner(), blender::ed::spreadsheet::draw_top_row_content(), blender::ed::space_node::draw_tree_path(), ED_time_scrub_channel_search_draw(), file_draw_invalid_asset_library_hint(), file_draw_list(), blender::ed::space_node::frame_node_draw(), graph_draw_channel_names(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::reroute_node_draw(), spreadsheet_footer_region_draw(), ui_block_region_draw(), and UI_panels_draw().
eUIEmbossType UI_block_emboss_get | ( | uiBlock * | block | ) |
Definition at line 3624 of file interface.cc.
References uiBlock::emboss.
Referenced by blender::ui::TreeViewLayoutBuilder::build_row(), blender::ed::space_node::node_socket_draw_nested(), uiTemplateReportsBanner(), and uiTemplateStatusInfo().
void UI_block_emboss_set | ( | uiBlock * | block, |
eUIEmbossType | emboss | ||
) |
Definition at line 3629 of file interface.cc.
References uiBlock::emboss.
Referenced by ANIM_channel_draw_widgets(), block_create_autorun_warning(), blender::ui::TreeViewLayoutBuilder::build_row(), clip_draw_dopesheet_channels(), colorband_buttons_layout(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), draw_channel_labels(), draw_channel_widget_lock(), draw_channel_widget_mute(), draw_constraint_header(), draw_outliner(), graph_draw_driver_settings_panel(), nla_panel_stripname(), blender::ed::space_node::node_add_error_message_button(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_extra_info_row(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_file_output_socket_draw(), blender::ed::space_node::node_socket_draw_nested(), outliner_draw_mode_column_toggle(), outliner_draw_warning_tree_element(), template_keymap_item_properties(), blender::ed::space_node::ui_node_draw_input(), ui_template_list_layout_draw(), uiTemplateReportsBanner(), uiTemplateStatusInfo(), and wm_block_splash_add_label().
Referenced by clip_draw_dopesheet_channels(), blender::ed::spreadsheet::draw_cell_contents(), draw_channel_headers(), draw_channel_names(), blender::ed::spreadsheet::draw_left_column_content(), draw_nla_channel_list(), draw_outliner(), blender::ed::spreadsheet::draw_top_row_content(), blender::ed::space_node::draw_tree_path(), ed_panel_draw(), ED_region_header_layout(), ED_time_scrub_channel_search_draw(), file_draw_invalid_asset_library_hint(), file_draw_list(), blender::ed::space_node::frame_node_draw(), graph_draw_channel_names(), menu_items_from_ui_create(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::reroute_node_draw(), and spreadsheet_footer_region_draw().
Referenced by ui_popup_block_refresh().
Definition at line 5853 of file interface.cc.
References uiBlock::flag.
Referenced by UI_popover_end(), ui_template_list_layout_draw(), wm_block_create_redo(), wm_block_dialog_create(), and wm_operator_ui_create().
Definition at line 5848 of file interface.cc.
References uiBlock::flag.
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_forwardcompat_dialog(), component_menu(), constraint_ops_extra_draw(), blender::ed::space_node::create_search_popup_block(), curvemap_clipping_func(), draw_outliner(), ED_time_scrub_channel_search_draw(), gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), menu_change_shortcut(), menu_items_from_ui_create(), merged_element_search_menu(), modifier_ops_extra_draw(), move_to_collection_menu_create(), blender::ed::space_node::node_find_menu(), blender::ed::space_node::node_uiblocks_init(), template_common_search_menu(), template_texture_user_menu(), ui_block_func_PIE(), ui_block_func_POPOVER(), ui_block_func_POPUP(), ui_def_but_rna__menu(), ui_icon_view_menu_cb(), ui_popover_create_block(), UI_popover_end(), ui_template_list_layout_draw(), blender::ed::space_node::ui_template_node_link_menu(), wm_block_create_about(), wm_block_create_redo(), wm_block_create_splash(), wm_block_dialog_create(), wm_block_search_menu(), wm_enum_search_menu(), wm_operator_ui_create(), and workspace_add_menu().
Can be called with C==NULL.
Referenced by menu_items_from_ui_create(), and UI_popup_menu_end_or_cancel().
void UI_block_func_butmenu_set | ( | uiBlock * | block, |
uiMenuHandleFunc | func, | ||
void * | arg | ||
) |
Definition at line 5959 of file interface.cc.
References uiBlock::butm_func, and uiBlock::butm_func_arg.
Referenced by colorband_tools_func(), curvemap_tools_func(), CurveProfile_presets_func(), and CurveProfile_tools_func().
void UI_block_func_handle_set | ( | uiBlock * | block, |
uiBlockHandleFunc | func, | ||
void * | arg | ||
) |
Definition at line 5953 of file interface.cc.
References uiBlock::handle_func, and uiBlock::handle_func_arg.
Referenced by graph_draw_driver_settings_panel(), graph_panel_modifiers(), image_panel_uv(), menu_add_shortcut(), menu_change_shortcut(), nla_panel_actclip(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time(), nla_panel_animated_strip_time_header(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_modifiers(), nla_panel_properties(), nla_panel_stripname(), ui_layout_end(), uiTemplateMarker(), uiTemplateOperatorRedoProperties(), uiTemplatePreview(), uiTemplateRunningJobs(), view3d_panel_transform(), view3d_panel_vgroup(), and wm_block_create_redo().
void UI_block_func_set | ( | uiBlock * | block, |
uiButHandleFunc | func, | ||
void * | arg1, | ||
void * | arg2 | ||
) |
Definition at line 5965 of file interface.cc.
References uiBlock::func, uiBlock::func_arg1, and uiBlock::func_arg2.
Referenced by draw_constraint_header(), ED_file_path_button(), file_panel_execution_buttons_draw(), file_panel_operator(), wm_block_dialog_create(), and wm_operator_ui_create().
void UI_block_funcN_set | ( | uiBlock * | block, |
uiButHandleNFunc | funcN, | ||
void * | argN, | ||
void * | arg2 | ||
) |
Definition at line 5972 of file interface.cc.
References uiBlock::func_arg2, uiBlock::func_argN, uiBlock::funcN, and MEM_freeN.
Referenced by curvemap_buttons_layout(), CurveProfile_buttons_layout(), uiTemplateImage(), and uiTemplateMarker().
void UI_block_interaction_set | ( | uiBlock * | block, |
uiBlockInteraction_CallbackData * | callbacks | ||
) |
Definition at line 11746 of file interface_handlers.c.
References uiBlock::custom_interaction_callbacks.
Referenced by v3d_editvertex_buts().
Definition at line 656 of file interface_query.cc.
References UI_block_is_empty_ex().
Definition at line 642 of file interface_query.cc.
References uiBlock::buttons, ListBase::first, uiBut::next, uiBut::type, UI_BTYPE_LABEL, and ui_but_next_non_separator().
Referenced by UI_block_is_empty(), and UI_popup_menu_end_or_cancel().
Definition at line 3639 of file interface.cc.
References uiBlock::flag, and UI_BLOCK_SEARCH_ONLY.
Referenced by UI_panels_draw().
uiLayout* UI_block_layout | ( | uiBlock * | block, |
int | dir, | ||
int | type, | ||
int | x, | ||
int | y, | ||
int | size, | ||
int | em, | ||
int | padding, | ||
const struct uiStyle * | style | ||
) |
Referenced by colorband_tools_func(), component_menu(), blender::ed::space_node::draw_tree_path(), ed_panel_draw(), ED_region_header_layout(), ED_time_scrub_channel_search_draw(), menu_add_shortcut(), menu_change_shortcut(), menu_items_from_ui_create(), blender::ed::space_node::node_update_basis(), panel_property_search(), spreadsheet_footer_region_draw(), UI_pie_menu_begin(), ui_popover_create_block(), UI_popup_menu_begin_ex(), ui_popup_menu_create(), wm_block_create_about(), wm_block_create_redo(), wm_block_create_splash(), wm_block_dialog_create(), and wm_operator_ui_create().
Used for property search when the layout process needs to be cancelled in order to avoid computing the locations for buttons, but the layout items created while adding the buttons must still be freed.
Definition at line 5665 of file interface_layout.c.
References uiBlock::layouts, LISTBASE_FOREACH_MUTABLE, MEM_freeN, and ui_layout_free().
Referenced by panel_property_search().
Definition at line 5704 of file interface_layout.c.
References BLI_listbase_is_empty(), and uiBlock::layouts.
Referenced by ui_textedit_begin().
Definition at line 5673 of file interface_layout.c.
References uiBlock::active, BLI_assert, BLI_listbase_clear(), uiBlock::curlayout, uiBlock::layouts, LISTBASE_FOREACH_MUTABLE, MEM_freeN, NULL, ui_layout_add_padding_button(), ui_layout_end(), ui_layout_free(), and UI_template_fix_linking().
Referenced by blender::ed::space_node::draw_tree_path(), ed_panel_draw(), ED_region_header_layout(), ED_time_scrub_channel_search_draw(), blender::ed::space_node::node_update_basis(), spreadsheet_footer_region_draw(), UI_block_end_ex(), ui_block_func_PIE(), ui_block_func_POPOVER(), ui_block_func_POPUP(), and UI_popup_menu_end_or_cancel().
Definition at line 5555 of file interface_layout.c.
References uiBlock::curlayout.
Referenced by blender::ui::TreeViewLayoutBuilder::build_from_tree(), blender::ui::GridViewLayoutBuilder::build_from_view(), blender::ui::TreeViewLayoutBuilder::build_row(), colorband_tools_func(), ED_time_scrub_channel_search_draw(), file_create_asset_catalog_tree_view_in_layout(), blender::ed::spreadsheet::spreadsheet_data_set_panel_draw(), ui_def_but_rna__menu(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_array(), ui_item_disabled(), ui_item_enum_expand_exec(), ui_item_menu(), ui_item_with_label(), ui_layout_box(), blender::ed::space_node::ui_node_menu_column(), blender::ed::space_node::ui_template_node_link_menu(), uiItemDecoratorR_prop(), uiItemFullO_ptr_ex(), uiItemFullR(), uiItemL_(), uiItemL_respect_property_split(), uiItemS_ex(), uiItemsFullEnumO_items(), uiItemSpacer(), uiItemTabsEnumR_prop(), uiItemV(), uiLayoutAbsolute(), uiLayoutColumn(), uiLayoutColumnFlow(), uiLayoutGridFlow(), uiLayoutOverlap(), uiLayoutRadial(), uiLayoutRow(), uiLayoutSplit(), uiTemplateMenuSearch(), uiTemplateNodeLink(), uiTemplateOperatorSearch(), and uiTemplateRunningJobs().
Definition at line 2281 of file interface.cc.
References uiBlock::lock, and uiBlock::lockstr.
Referenced by draw_constraint_header(), gpencil_modifier_panel_get_property_pointers(), panel_draw(), template_operator_property_buts_draw_single(), uiTemplateColorRamp(), uiTemplateCurveMapping(), and uiTemplateCurveProfile().
Definition at line 2273 of file interface.cc.
References uiBlock::lock, and uiBlock::lockstr.
Referenced by gpencil_modifier_panel_get_property_pointers(), modifier_panel_get_property_pointers(), panel_draw(), shaderfx_panel_header(), template_operator_property_buts_draw_single(), uiTemplateColorRamp(), uiTemplateConstraintHeader(), uiTemplateCurveMapping(), and uiTemplateCurveProfile().
This call escapes if there's alignment flags.
Definition at line 5815 of file interface.cc.
References uiBlock::buttons, uiBlock::flag, LISTBASE_FOREACH, SWAP, UI_BLOCK_IS_FLIP, UI_BLOCK_NO_FLIP, UI_BUT_ALIGN, and USER_MENUFIXEDORDER.
Referenced by ui_block_func_POPUP(), and ui_popup_block_position().
Definition at line 3551 of file interface.cc.
References uiBlock::active, BLI_addhead(), BLI_ghash_lookup(), BLI_ghash_reinsert(), BLI_ghash_str_new(), ARegion_Runtime::block_name_map, uiBlock::handle, uiBlock::name, uiBlock::oldblock, uiBlock::panel, ARegion::runtime, and ARegion::uiblocks.
Referenced by UI_block_begin(), ui_block_func_PIE(), ui_block_func_POPOVER(), and ui_block_func_POPUP().
Use when a block must be searched to give accurate results for the whole region but shouldn't be displayed.
Definition at line 3644 of file interface.cc.
References uiBlock::flag, SET_FLAG_FROM_TEST, and UI_BLOCK_SEARCH_ONLY.
Referenced by panel_property_search(), and panel_remove_invisible_layouts_recursive().
Definition at line 3634 of file interface.cc.
References uiBlock::theme_style.
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_forwardcompat_dialog(), blender::ed::space_node::create_search_popup_block(), curvemap_clipping_func(), merged_element_search_menu(), blender::ed::space_node::node_find_menu(), template_common_search_menu(), ui_block_func_COLOR(), ui_block_func_PIE(), ui_block_func_POPOVER(), ui_block_func_POPUP(), ui_icon_view_menu_cb(), UI_panel_begin(), ui_popup_block_refresh(), wm_block_create_about(), wm_block_create_redo(), wm_block_create_splash(), wm_block_dialog_create(), wm_block_search_menu(), wm_enum_search_menu(), and wm_operator_ui_create().
Definition at line 356 of file interface.cc.
References BLI_rctf_translate(), uiBlock::buttons, LISTBASE_FOREACH, uiBlock::rect, x, and y.
Referenced by ed_panel_draw(), ui_block_bounds_calc_centered(), ui_block_bounds_calc_centered_pie(), ui_block_bounds_calc_popup(), and ui_popup_block_refresh().
Referenced by ui_popup_block_refresh().
void UI_block_views_listen | ( | const uiBlock * | block, |
const struct wmRegionListenerParams * | listener_params | ||
) |
Referenced by ED_region_do_listen().
Referenced by ED_region_header_draw().
Can be called with C==NULL.
Referenced by ED_area_init(), ED_region_property_search(), ED_screen_state_toggle(), property_search_all_tabs(), and ui_region_handler_remove().
Referenced by ED_region_do_draw(), and ui_popup_block_refresh().
int UI_blocklist_min_y_get | ( | struct ListBase * | lb | ) |
Definition at line 5797 of file interface.cc.
References ListBase::first, LISTBASE_FOREACH, and min.
Referenced by ED_region_panels_layout_ex().
Referenced by ED_region_header_draw(), and ED_region_panels_draw().
Definition at line 11725 of file interface_handlers.c.
References C, CTX_wm_region(), uiBut::type, UI_BTYPE_COLOR, and ui_region_find_active_but().
Referenced by UI_drop_color_poll().
Returns true if highlighted button allows drop of names. called in region context.
Referenced by blender::ed::space_node::node_collection_drop_poll(), blender::ed::space_node::node_object_drop_poll(), and ui_drop_name_poll().
Referenced by drop_name_invoke(), and drop_name_poll().
bool UI_but_active_only_ex | ( | const struct bContext * | C, |
struct ARegion * | region, | ||
uiBlock * | block, | ||
uiBut * | but, | ||
bool | remove_on_failure | ||
) |
Special button case, only draw it when used actively, for outliner etc.
Needed for temporarily rename buttons, such as in outliner or file-select, they should keep calling uiDefBut to keep them alive.
struct bContextStore* UI_but_context_get | ( | const uiBut * | but | ) |
Definition at line 5929 of file interface.cc.
References uiBut::context.
Referenced by wm_drop_ui_context_create().
const struct PointerRNA* UI_but_context_ptr_get | ( | const uiBut * | but, |
const char * | name, | ||
const StructRNA *type | CPP_ARG_DEFAULTnullptr | ||
) |
Referenced by outliner_but_identity_cmp_context_id_fn().
void UI_but_context_ptr_set | ( | uiBlock * | block, |
uiBut * | but, | ||
const char * | name, | ||
const struct PointerRNA * | ptr | ||
) |
Referenced by outliner_draw_overrides_restrictbuts().
Definition at line 5883 of file interface.cc.
References uiBut::disabled_info, UI_BUT_DISABLED, and UI_but_flag_enable().
Referenced by draw_setting_widget(), modifier_panel_header(), outliner_draw_mode_column_toggle(), ui_def_but_operator_ptr(), ui_def_but_rna(), ui_def_but_rna_propname(), ui_item_disabled(), and uiTemplateTextureShow().
Set an image to display while dragging. This works for any drag type (WM_DRAG_XXX
). Not to be confused with UI_but_drag_set_image(), which sets up dragging of an image.
Definition at line 23 of file interface_drag.cc.
References uiBut::imb, and uiBut::imb_scale.
Referenced by file_draw_icon(), file_draw_preview(), UI_but_drag_set_asset(), and UI_but_drag_set_image().
void UI_but_drag_set_asset | ( | uiBut * | but, |
const struct AssetHandle * | asset, | ||
const char * | path, | ||
struct AssetMetaData * | metadata, | ||
int | import_type, | ||
int | icon, | ||
struct ImBuf * | imb, | ||
float | scale | ||
) |
asset | May be passed from a temporary variable, drag data only stores a copy of this. |
Referenced by asset_view_item_but_drag_set(), file_draw_icon(), and file_draw_preview().
Definition at line 13 of file interface_drag.cc.
References uiBut::dragflag, uiBut::dragpoin, uiBut::dragtype, UI_BUT_DRAGPOIN_FREE, WM_drag_data_free(), and WM_DRAG_ID.
Referenced by asset_view_item_but_drag_set(), file_draw_icon(), file_draw_preview(), template_add_button_search_menu(), template_ID_tabs(), and uiItemLDrag().
void UI_but_drag_set_image | ( | uiBut * | but, |
const char * | path, | ||
int | icon, | ||
struct ImBuf * | imb, | ||
float | scale, | ||
bool | use_free | ||
) |
Definition at line 95 of file interface_drag.cc.
References uiBut::dragflag, uiBut::dragpoin, uiBut::dragtype, UI_but_drag_attach_image(), UI_BUT_DRAGPOIN_FREE, ui_def_but_icon(), WM_drag_data_free(), and WM_DRAG_PATH.
Referenced by file_draw_preview().
Definition at line 80 of file interface_drag.cc.
References uiBut::dragflag, uiBut::dragpoin, uiBut::dragtype, UI_BUT_DRAGPOIN_FREE, WM_drag_data_free(), and WM_DRAG_NAME.
Definition at line 67 of file interface_drag.cc.
References uiBut::dragflag, uiBut::dragpoin, uiBut::dragtype, UI_BUT_DRAGPOIN_FREE, WM_drag_data_free(), and WM_DRAG_PATH.
Referenced by file_draw_icon().
void UI_but_drag_set_rna | ( | uiBut * | but, |
struct PointerRNA * | ptr | ||
) |
Definition at line 57 of file interface_drag.cc.
References uiBut::dragflag, uiBut::dragpoin, uiBut::dragtype, ptr, UI_BUT_DRAGPOIN_FREE, WM_drag_data_free(), and WM_DRAG_RNA.
Value from button itself.
Definition at line 90 of file interface_drag.cc.
References uiBut::dragtype, and WM_DRAG_VALUE.
Definition at line 5878 of file interface.cc.
References uiBut::drawflag.
Referenced by block_create_autorun_warning(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_byte_color(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_content_cell(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_float_vector(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_left_column_cell(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_top_row_cell(), blender::ed::space_node::reroute_node_draw(), save_file_forwardcompat_cancel_button(), save_file_forwardcompat_overwrite_button(), save_file_forwardcompat_saveas_button(), ui_block_colorpicker(), UI_but_type_set_menu_from_pulldown(), uiItemFullO_ptr_ex(), widget_draw_extra_icons(), wm_block_file_close_cancel_button(), wm_block_file_close_discard_button(), wm_block_file_close_save_button(), and wm_block_splash_add_label().
Definition at line 5873 of file interface.cc.
References uiBut::drawflag.
Referenced by blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_byte_color(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_content_cell(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_float_vector(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_left_column_cell(), outliner_draw_restrictbuts(), template_add_button_search_menu(), template_ID_tabs(), template_search_add_button_operator(), UI_but_type_set_menu_from_pulldown(), ui_item_enum_expand_tabs(), ui_item_menu(), ui_template_list_layout_draw(), uiTemplateMarker(), uiTemplateNodeLink(), view3d_panel_vgroup(), and wm_block_splash_add_label().
void UI_but_ensure_in_view | ( | const struct bContext * | C, |
struct ARegion * | region, | ||
const uiBut * | but | ||
) |
Adjust the view so the rectangle of but is in view, with some extra margin.
It's important that this is only executed after buttons received their final uiBut.rect. E.g. UI_panels_end() modifies them, so if that is executed, this function must not be called before it.
region | The region the button is placed in. Make sure this is actually the one the button is placed in, not just the context region. |
Referenced by ui_but_update_view_for_active(), and ui_textedit_begin().
Simulate button click.
Referenced by ui_button_press_invoke(), ui_drag_toggle_set_xy_xy(), ui_handle_menu_event(), ui_list_activate_hovered_row(), and ui_list_activate_row_from_index().
void UI_but_extra_icon_string_info_get | ( | struct bContext * | C, |
uiButExtraOpIcon * | extra_icon, | ||
... | |||
) |
Definition at line 6733 of file interface.cc.
References BLI_strdup(), BUT_GET_LABEL, BUT_GET_OP_KEYMAP, BUT_GET_TIP, C, uiStringInfo::strinfo, uiStringInfo::type, ui_but_extra_icon_event_operator_string(), UI_but_extra_operator_icon_opptr_get(), UI_but_extra_operator_icon_optype_get(), WM_operatortype_description(), and WM_operatortype_name().
Referenced by ui_tooltip_data_from_button_or_extra_icon().
struct PointerRNA* UI_but_extra_operator_icon_add | ( | uiBut * | but, |
const char * | opname, | ||
wmOperatorCallContext | opcontext, | ||
int | icon | ||
) |
Definition at line 1682 of file interface.cc.
References ui_but_extra_operator_icon_add_ptr(), and WM_operatortype_find().
Referenced by blender::ed::asset_browser::AssetCatalogTreeViewItem::build_row(), file_panel_execution_buttons_draw(), and template_id_workspace_pin_extra_icon().
struct PointerRNA* UI_but_extra_operator_icon_opptr_get | ( | struct uiButExtraOpIcon * | extra_icon | ) |
Definition at line 1701 of file interface.cc.
References wmOperatorCallParams::opptr, and uiButExtraOpIcon::optype_params.
Referenced by UI_but_extra_icon_string_info_get(), and ui_tooltip_data_from_button_or_extra_icon().
struct wmOperatorType* UI_but_extra_operator_icon_optype_get | ( | struct uiButExtraOpIcon * | extra_icon | ) |
Definition at line 1696 of file interface.cc.
References wmOperatorCallParams::optype, and uiButExtraOpIcon::optype_params.
Referenced by ui_but_extra_icon_event_operator_string(), UI_but_extra_icon_string_info_get(), and ui_tooltip_data_from_button_or_extra_icon().
Definition at line 5863 of file interface.cc.
References uiBut::flag.
Referenced by blender::ui::AbstractViewItem::add_rename_button(), file_draw_list(), outliner_draw_mode_column_toggle(), outliner_draw_warning_tree_element(), template_operator_property_buts_draw_single(), ui_block_colorpicker(), ui_template_list_layout_draw(), and ui_update_color_picker_buts_rgb().
Definition at line 5858 of file interface.cc.
References uiBut::flag.
Referenced by add_attribute_search_button(), block_create_autorun_warning(), blender::ed::space_node::create_search_popup_block(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), ED_file_path_button(), file_draw_list(), file_panel_execution_buttons_draw(), merged_element_search_menu(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_extra_info_row(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_find_menu(), blender::ed::space_node::node_socket_draw_nested(), outliner_draw_mode_column_toggle(), outliner_draw_overrides_restrictbuts(), outliner_draw_overrides_rna_buts(), outliner_draw_restrictbuts(), outliner_draw_rnabuts(), outliner_draw_userbuts(), save_file_forwardcompat_overwrite_button(), save_file_forwardcompat_saveas_button(), template_add_button_search_menu(), template_ID(), template_id_def_new_but(), UI_but_disable(), ui_but_search_refresh(), ui_item_with_label(), ui_layout_list_set_labels_active(), ui_popup_context_menu_for_button(), ui_template_list_layout_draw(), uiDefAutoButR(), uiItemFullO_ptr_ex(), uiItemFullR(), uiItemL_(), uiItemL_ex(), uiTemplateKeymapItemProperties(), view3d_panel_vgroup(), wm_block_dialog_create(), wm_block_file_close_save_button(), wm_block_search_menu(), and wm_block_splash_add_label().
Definition at line 5868 of file interface.cc.
References uiBut::flag.
Referenced by datadropper_init(), depthdropper_init(), driverdropper_init(), ED_file_path_button(), eyedropper_colorband_init(), eyedropper_init(), file_panel_execution_buttons_draw(), and insert_key_button_exec().
push a new event onto event queue to activate the given button (usually a text-field) upon entering a popup
Definition at line 6474 of file interface.cc.
References EVT_BUT_OPEN, KM_PRESS, wm_event_add(), and wm_event_init_from_window().
Referenced by template_common_search_menu(), template_operator_property_buts_draw_single(), and wm_enum_search_menu().
void UI_but_func_complete_set | ( | uiBut * | but, |
uiButCompleteFunc | func, | ||
void * | arg | ||
) |
Definition at line 6018 of file interface.cc.
References uiBut::autocomplete_func, and uiBut::autofunc_arg.
Referenced by ED_file_path_button(), and file_panel_execution_buttons_draw().
void UI_but_func_drawextra_set | ( | uiBlock * | block, |
void(*)(const struct bContext *C, void *, void *, void *, struct rcti *rect) | func, | ||
void * | arg1, | ||
void * | arg2 | ||
) |
Referenced by uiTemplatePreview().
void UI_but_func_hold_set | ( | uiBut * | but, |
uiButHandleHoldFunc | func, | ||
void * | argN | ||
) |
Definition at line 6488 of file interface.cc.
References uiBut::hold_argN, and uiBut::hold_func.
Referenced by uiItemFullOMenuHold_ptr().
void UI_but_func_identity_compare_set | ( | uiBut * | but, |
uiButIdentityCompareFunc | cmp_fn | ||
) |
Callback to compare the identity of two buttons, used to identify buttons over redraws. If the callback returns true, the given buttons are considered to be matching and relevant state is preserved (copied from the old to the new button). If it returns false, it's considered non-matching and no further checks are done.
If this is set, it is always executed instead of the default comparisons. However it is only executed for buttons that have the same type and the same callback. So callbacks can assume the button types match.
Definition at line 456 of file interface_utils.cc.
References cmp_fn(), and uiBut::identity_cmp_func.
Referenced by outliner_draw_overrides_restrictbuts().
Definition at line 1133 of file interface_template_search_menu.cc.
References blender::compositor::area(), uiBut::block, C, CTX_wm_area(), CTX_wm_region(), CTX_wm_window(), data, uiBlock::evil_C, menu_items_from_ui_create(), menu_search_arg_free_fn(), menu_search_exec_fn(), menu_search_update_fn(), SPACE_TOPBAR, UI_but_func_search_set(), UI_but_func_search_set_context_menu(), UI_but_func_search_set_sep_string(), UI_but_func_search_set_tooltip(), UI_MENU_ARROW_SEP, ui_search_menu_create_context_menu(), ui_search_menu_create_tooltip(), and ui_searchbox_create_menu().
Referenced by uiTemplateMenuSearch(), and wm_block_search_menu().
void UI_but_func_menu_step_set | ( | uiBut * | but, |
uiMenuStepFunc | func | ||
) |
Definition at line 6024 of file interface.cc.
References uiBut::menu_step_func.
Referenced by uiblock_layer_pass_buttons().
Definition at line 103 of file interface_template_search_operator.c.
References NULL, operator_search_exec_fn(), operator_search_update_fn(), UI_but_func_search_set(), and ui_searchbox_create_operator().
Referenced by uiTemplateOperatorSearch(), and wm_block_search_menu().
void UI_but_func_pushed_state_set | ( | uiBut * | but, |
uiButPushedStateFunc | func, | ||
const void * | arg | ||
) |
Definition at line 6039 of file interface.cc.
References uiBut::pushed_state_arg, uiBut::pushed_state_func, and ui_but_update().
void UI_but_func_rename_set | ( | uiBut * | but, |
uiButHandleRenameFunc | func, | ||
void * | arg1 | ||
) |
Definition at line 5983 of file interface.cc.
References uiBut::rename_arg1, and uiBut::rename_func.
Referenced by blender::ui::AbstractViewItem::add_rename_button(), file_draw_list(), and outliner_buttons().
void UI_but_func_search_set | ( | uiBut * | but, |
uiButSearchCreateFn | search_create_fn, | ||
uiButSearchUpdateFn | search_update_fn, | ||
void * | arg, | ||
bool | free_arg, | ||
uiFreeArgFunc | search_arg_free_fn, | ||
uiButHandleFunc | search_exec_fn, | ||
void * | active | ||
) |
search_create_fn | Function to create the menu. |
search_update_fn | Function to refresh search content after the search text has changed. |
arg | user value. |
free_arg | Set to true if the argument is newly allocated memory for every redraw and should be freed when the button is destroyed. |
search_arg_free_fn | When non-null, use this function to free arg. |
search_exec_fn | Function that executes the action, gets arg as the first argument. The second argument as the active item-pointer |
active | When non-null, this item-pointer item will be visible and selected, otherwise the first item will be selected. |
Definition at line 6242 of file interface.cc.
References blender::compositor::active, uiButSearch::arg, uiButSearch::arg_free_fn, BLI_assert, uiBut::block, uiButSearch::but, uiBut::drawstr, uiBlock::flag, uiBut::func, uiButSearch::item_active, uiButSearch::items_update_fn, uiButSearch::popup_create_fn, uiButSearch::results_are_suggestions, uiBut::type, UI_BLOCK_LOOP, UI_BTYPE_SEARCH_MENU, UI_but_func_set(), UI_but_funcN_set(), ui_but_search_refresh(), and ui_searchbox_create_generic().
Referenced by add_attribute_search_button(), blender::ed::space_node::create_search_popup_block(), merged_element_search_menu(), blender::ed::space_node::node_find_menu(), blender::ed::space_node::node_geometry_add_attribute_search_button(), template_common_search_menu(), ui_but_add_search(), UI_but_func_menu_search(), UI_but_func_operator_search(), and uiDefSearchButO_ptr().
void UI_but_func_search_set_context_menu | ( | uiBut * | but, |
uiButSearchContextMenuFn | context_menu_fn | ||
) |
Definition at line 6300 of file interface.cc.
References BLI_assert, uiButSearch::item_context_menu_fn, uiBut::type, and UI_BTYPE_SEARCH_MENU.
Referenced by UI_but_func_menu_search().
Definition at line 6324 of file interface.cc.
References BLI_assert, uiButSearch::results_are_suggestions, uiBut::type, and UI_BTYPE_SEARCH_MENU.
Referenced by add_attribute_search_button(), blender::ed::space_node::node_geometry_add_attribute_search_button(), and ui_but_add_search().
search_sep_string | when not NULL, this string is used as a separator, showing the icon and highlighted text after the last instance of this string. |
Definition at line 6308 of file interface.cc.
References BLI_assert, uiButSearch::item_sep_string, uiBut::type, and UI_BTYPE_SEARCH_MENU.
Referenced by add_attribute_search_button(), blender::ed::space_node::create_search_popup_block(), blender::ed::space_node::node_geometry_add_attribute_search_button(), and UI_but_func_menu_search().
void UI_but_func_search_set_tooltip | ( | uiBut * | but, |
uiButSearchTooltipFn | tooltip_fn | ||
) |
Definition at line 6316 of file interface.cc.
References BLI_assert, uiButSearch::item_tooltip_fn, uiBut::type, and UI_BTYPE_SEARCH_MENU.
Referenced by template_common_search_menu(), and UI_but_func_menu_search().
void UI_but_func_set | ( | uiBut * | but, |
uiButHandleFunc | func, | ||
void * | arg1, | ||
void * | arg2 | ||
) |
Definition at line 6000 of file interface.cc.
References uiBut::func, uiBut::func_arg1, and uiBut::func_arg2.
Referenced by ANIM_channel_draw_widgets(), block_create__close_file_dialog(), block_create_autorun_warning(), colorband_buttons_layout(), curvemap_buttons_layout(), curvemap_clipping_func(), CurveProfile_buttons_layout(), draw_setting_widget(), envelope_panel_draw(), graph_draw_driver_settings_panel(), graph_panel_key_properties(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_hidden(), outliner_draw_mode_column_toggle(), outliner_draw_restrictbuts(), outliner_draw_userbuts(), save_file_forwardcompat_cancel_button(), save_file_forwardcompat_overwrite_button(), save_file_forwardcompat_saveas_button(), template_operator_property_buts_draw_single(), ui_block_colorpicker(), UI_but_func_search_set(), ui_colorpicker_circle(), ui_colorpicker_square(), ui_item_array(), ui_item_enum_expand_elem_exec(), ui_item_with_label(), ui_popup_context_menu_for_button(), ui_template_list_layout_draw(), uiItemDecoratorR_prop(), uiTemplateKeymapItemProperties(), uiTemplateLayers(), uiTemplateTextureShow(), wm_block_create_splash(), wm_block_dialog_create(), wm_block_file_close_cancel_button(), wm_block_file_close_discard_button(), and wm_block_file_close_save_button().
void UI_but_func_tooltip_set | ( | uiBut * | but, |
uiButToolTipFunc | func, | ||
void * | arg, | ||
uiFreeArgFunc | free_arg | ||
) |
Definition at line 6029 of file interface.cc.
References uiBut::tip_arg, uiBut::tip_arg_free, and uiBut::tip_func.
Referenced by blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_byte_color(), draw_channel_widget_lock(), draw_channel_widget_mute(), file_draw_icon(), blender::ed::space_node::node_add_error_message_button(), blender::ed::space_node::node_draw_extra_info_row(), blender::ed::space_node::node_socket_draw_nested(), ui_template_list_layout_draw(), uiLayoutSetTooltipFunc(), and uiTemplateRunningJobs().
void UI_but_funcN_set | ( | uiBut * | but, |
uiButHandleNFunc | funcN, | ||
void * | argN, | ||
void * | arg2 | ||
) |
Definition at line 6007 of file interface.cc.
References uiBut::func_arg2, uiBut::func_argN, uiBut::funcN, and MEM_freeN.
Referenced by colorband_buttons_layout(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), draw_setting_widget(), ED_file_path_button(), file_panel_execution_buttons_draw(), fmodifier_panel_header(), template_ID(), template_id_def_new_but(), template_ID_tabs(), template_texture_user_menu(), UI_but_func_search_set(), blender::ed::space_node::ui_node_menu_column(), ui_pie_menu_level_create(), blender::ed::space_node::ui_template_node_link_menu(), uiblock_layer_pass_buttons(), and uiTemplateMarker().
Definition at line 152 of file interface_query.cc.
References uiBut::block, uiBut::drawstr, ui_block_is_popover(), and UI_but_is_tool().
Referenced by button_activate_init(), button_tooltip_timer_reset(), and UI_tooltip_create_from_button_or_extra_icon().
Adds a hint to the button which draws right aligned, grayed out and never clipped.
Definition at line 6443 of file interface.cc.
References ui_but_add_shortcut().
Referenced by blender::ed::spreadsheet::GeometryDataSetTreeViewItem::build_row().
Definition at line 138 of file interface_query.cc.
References g_ot_tool_set_by_id, uiBut::optype, and WM_operatortype_find().
Referenced by UI_but_has_tooltip_label(), ui_but_user_menu_add(), ui_draw_but(), ui_menu_block_set_keymaps(), UI_tooltip_create_from_button_or_extra_icon(), widget_draw_icon(), and widget_draw_text_icon().
Definition at line 682 of file interface_handlers.c.
References uiBut::rnapoin, uiBut::rnaprop, and ui_rna_is_userdef().
Referenced by UI_context_active_but_prop_get_filebrowser().
Definition at line 102 of file interface_query.cc.
References ELEM, uiBut::flag, PROP_BYTESTRING, PROP_DIRPATH, PROP_FILENAME, PROP_FILEPATH, RNA_property_subtype(), uiBut::rnaprop, and UI_BUT_NO_UTF8.
Referenced by ED_file_path_button(), file_panel_execution_buttons_draw(), ui_but_string_get_ex(), ui_but_string_set(), ui_do_but_TEX(), ui_textedit_copypaste(), ui_textedit_end(), ui_textedit_insert_buf(), and ui_textedit_string_set().
This is a bit of a hack but best keep it in one place at least.
Definition at line 5792 of file interface_layout.c.
References uiBut::menu_create_func, NULL, uiBut::poin, and ui_item_menutype_func().
Referenced by menu_items_from_ui_create(), shortcut_get_operator_property(), ui_but_copy_menu(), ui_but_event_operator_string(), ui_but_event_operator_string_from_menu(), ui_but_is_user_menu_compatible(), UI_but_string_info_get(), ui_but_user_menu_add(), and ui_but_user_menu_find().
void UI_but_node_link_set | ( | uiBut * | but, |
struct bNodeSocket * | socket, | ||
const float | draw_color[4] | ||
) |
Definition at line 6448 of file interface.cc.
References uiBut::col, uiBut::custom_data, uiBut::flag, rgba_float_to_uchar(), and UI_BUT_NODE_LINK.
Referenced by uiTemplateNodeLink().
Definition at line 6464 of file interface.cc.
References BLI_assert, uiButNumber::precision, uiBut::type, and UI_BTYPE_NUM.
Referenced by curvemap_buttons_layout(), curvemap_clipping_func(), CurveProfile_buttons_layout(), ui_def_but_rna(), uiTemplateMarker(), uvedit_vertex_buttons(), v3d_editvertex_buts(), v3d_object_dimension_buts(), and view3d_panel_vgroup().
Definition at line 6455 of file interface.cc.
References BLI_assert, uiButNumber::step_size, uiBut::type, and UI_BTYPE_NUM.
Referenced by colorband_buttons_layout(), curvemap_buttons_layout(), curvemap_clipping_func(), CurveProfile_buttons_layout(), ui_def_but_rna(), uiTemplateMarker(), uvedit_vertex_buttons(), v3d_editvertex_buts(), v3d_object_dimension_buts(), and view3d_panel_vgroup().
Definition at line 827 of file interface_utils.cc.
References BLI_snprintf(), PointerRNA::data, wmOperatorType::idname, uiBut::optype, PointerRNA::owner_id, RNA_property_identifier(), RNA_struct_identifier(), uiBut::rnapoin, uiBut::rnaprop, PointerRNA::type, and WM_operator_py_idname().
Referenced by UI_but_online_manual_id_from_active(), and ui_popup_context_menu_for_button().
bool UI_but_online_manual_id_from_active | ( | const struct bContext * | C, |
char * | r_str, | ||
size_t | maxlength | ||
) |
Referenced by doc_view_manual_ui_context_exec().
struct PointerRNA* UI_but_operator_ptr_get | ( | uiBut * | but | ) |
Definition at line 5908 of file interface.cc.
References uiBut::opptr, uiBut::optype, and WM_operator_properties_create_ptr().
Referenced by ANIM_channel_draw_widgets(), copy_python_command_button_exec(), file_draw_invalid_asset_library_hint(), operator_enum_search_exec_fn(), operator_enum_search_update_fn(), template_ID(), ui_but_copy_operator(), UI_but_string_info_get(), ui_tooltip_data_from_button_or_extra_icon(), uiDefSearchButO_ptr(), uiItemFullO_ptr_ex(), uiTemplatePalette(), and view3d_panel_vgroup().
struct wmOperatorType* UI_but_operatortype_get_from_enum_menu | ( | struct uiBut * | but, |
struct PropertyRNA ** | r_prop | ||
) |
This is a bit of a hack but best keep it in one place at least.
Definition at line 5775 of file interface_layout.c.
References uiBut::func_argN, uiBut::menu_create_func, menu_item_enum_opname_menu(), NULL, MenuItemLevel::opname, ot, MenuItemLevel::propname, RNA_struct_type_find_property(), wmOperatorType::srna, and WM_operatortype_find().
Referenced by UI_but_string_info_get(), and ui_layout_introspect_button().
This is a bit of a hack but best keep it in one place at least.
Definition at line 5800 of file interface_layout.c.
References uiBut::menu_create_func, NULL, uiBut::poin, and ui_item_paneltype_func().
Referenced by button_activate_state(), shortcut_get_operator_property(), ui_but_copy_popover(), ui_but_event_operator_string(), ui_but_event_operator_string_from_panel(), and UI_but_string_info_get().
int UI_but_return_value_get | ( | uiBut * | but | ) |
Definition at line 5903 of file interface.cc.
References uiBut::retval.
Definition at line 6494 of file interface.cc.
References BLI_strdup(), BLI_strdupn(), uiBut::block, BLT_I18NCONTEXT_DEFAULT, BLT_I18NCONTEXT_DEFAULT_BPYRNA, BLT_is_default_context(), BUT_GET_LABEL, BUT_GET_OP_KEYMAP, BUT_GET_PROP_KEYMAP, BUT_GET_RNA_LABEL, BUT_GET_RNA_LABEL_CONTEXT, BUT_GET_RNA_TIP, BUT_GET_RNAENUM_IDENTIFIER, BUT_GET_RNAENUM_LABEL, BUT_GET_RNAENUM_TIP, BUT_GET_RNAPROP_IDENTIFIER, BUT_GET_RNASTRUCT_IDENTIFIER, BUT_GET_TIP, C, CTX_TIP_, PointerRNA::data, ELEM, uiBut::flag, uiBut::hardmax, PanelType::idname, MenuType::idname, wmOperatorType::idname, PanelType::label, MenuType::label, MEM_freeN, uiBut::opptr, uiBut::optype, ot, wmOperatorType::prop, PROP_ENUM, ptr, PanelType::rna_ext, MenuType::rna_ext, RNA_property_enum_get(), RNA_property_enum_items_gettexted(), RNA_property_identifier(), RNA_property_translation_context(), RNA_property_type(), RNA_property_ui_description(), RNA_property_ui_name(), RNA_struct_contains_property(), RNA_struct_identifier(), RNA_struct_translation_context(), RNA_struct_ui_description(), uiBut::rnapoin, uiBut::rnaprop, ExtensionRNA::srna, wmOperatorType::srna, uiBut::str, uiStringInfo::strinfo, t, uiBut::tip, uiBut::tip_arg, uiBut::tip_func, PanelType::translation_context, MenuType::translation_context, uiStringInfo::type, uiBut::type, type, PointerRNA::type, ui_block_is_menu(), UI_BTYPE_MENU, UI_BTYPE_POPOVER, UI_BTYPE_PULLDOWN, UI_BTYPE_ROW, UI_BTYPE_TAB, ui_but_event_operator_string(), ui_but_event_property_operator_string(), UI_BUT_HAS_SEP_CHAR, UI_but_menutype_get(), UI_but_operator_ptr_get(), UI_but_operatortype_get_from_enum_menu(), UI_but_paneltype_get(), ui_but_value_get(), UI_SEP_CHAR, WM_operator_properties_sanitize(), WM_operatortype_description(), and WM_operatortype_name().
Referenced by ui_popup_context_menu_for_button(), ui_tooltip_data_from_button_or_extra_icon(), and ui_tooltip_data_from_tool().
Recreate tool-tip (use to update dynamic tips)
Definition at line 8183 of file interface_handlers.c.
References uiBut::active, C, data, wmTooltipState::region, bScreen::tool_tip, WM_tooltip_refresh(), and WM_window_get_active_screen().
Referenced by UI_block_update_from_old().
Removes tool-tip timer from active but (meaning tool-tip is disabled until it's re-enabled again).
Definition at line 8194 of file interface_handlers.c.
References uiBut::active, C, data, NULL, WM_event_remove_timer(), and WM_tooltip_clear().
Referenced by button_activate_state(), outliner_operation(), ui_handle_button_event(), ui_handle_menu_event(), ui_popup_block_create(), and ui_region_handler().
Definition at line 5895 of file interface.cc.
References BLI_assert, uiBut::type, UI_BTYPE_MENU, UI_BTYPE_PULLDOWN, UI_but_drawflag_disable(), UI_but_drawflag_enable(), UI_BUT_TEXT_LEFT, and UI_BUT_TEXT_RIGHT.
Referenced by ui_item_menu(), uiblock_layer_pass_buttons(), uiTemplateNodeLink(), and uiTemplateTextureUser().
int UI_but_unit_type_get | ( | const uiBut * | but | ) |
Definition at line 5939 of file interface.cc.
References if(), RNA_property_subtype(), RNA_SUBTYPE_UNIT, uiBut::rnaprop, and uiBut::unit_type.
Referenced by ui_but_convert_to_unit_alt_name(), ui_but_hide_fraction(), ui_but_is_unit(), ui_but_is_unit_radians(), ui_get_but_scale_unit(), ui_get_but_step_unit(), ui_get_but_string_unit(), ui_number_from_string_units_with_but(), ui_numedit_apply_snapf(), and ui_tooltip_data_from_button_or_extra_icon().
Definition at line 5934 of file interface.cc.
References RNA_SUBTYPE_UNIT_VALUE, and uiBut::unit_type.
Referenced by graph_panel_key_properties(), ui_item_array(), v3d_editvertex_buts(), and v3d_object_dimension_buts().
NULL all pointers, don't free since the owner needs to be able to inspect.
Definition at line 1050 of file interface_utils.cc.
References uiBlock::butstore, and LISTBASE_FOREACH.
Referenced by UI_block_free().
uiButStore* UI_butstore_create | ( | uiBlock * | block | ) |
Create a new button store, the caller must manage and run UI_butstore_free
Definition at line 963 of file interface_utils.cc.
References BLI_addtail(), uiButStore::block, and uiBlock::butstore.
Referenced by ui_but_add_search(), and ui_multibut_states_create().
void UI_butstore_free | ( | uiBlock * | block, |
uiButStore * | bs | ||
) |
Definition at line 973 of file interface_utils.cc.
References BLI_assert, BLI_findindex(), BLI_freelistN(), BLI_remlink(), uiButStore::block, uiBlock::butstore, uiButStore::items, and MEM_freeN.
Referenced by ui_multibut_free(), and ui_rna_collection_search_arg_free_fn().
Definition at line 1000 of file interface_utils.cc.
References uiBlock::butstore, and LISTBASE_FOREACH.
Referenced by ui_but_free().
bool UI_butstore_is_valid | ( | uiButStore * | bs | ) |
Definition at line 995 of file interface_utils.cc.
References uiButStore::block.
void UI_butstore_register | ( | uiButStore * | bs_handle, |
uiBut ** | but_p | ||
) |
Definition at line 1013 of file interface_utils.cc.
References BLI_addtail(), BLI_assert, uiButStoreElem::but_p, and uiButStore::items.
Referenced by ui_but_add_search(), and ui_multibut_add().
Update the pointer for a registered button.
Definition at line 1034 of file interface_utils.cc.
References uiBlock::butstore, and LISTBASE_FOREACH.
Referenced by ui_but_update_from_old_block().
void UI_butstore_unregister | ( | uiButStore * | bs_handle, |
uiBut ** | but_p | ||
) |
Definition at line 1022 of file interface_utils.cc.
References BLI_assert, BLI_remlink(), uiButStoreElem::but_p, uiButStore::items, LISTBASE_FOREACH_MUTABLE, and MEM_freeN.
Map freed buttons from the old block and update pointers.
Definition at line 1060 of file interface_utils.cc.
References BLI_assert, BLI_movelisttolist(), uiBlock::butstore, ELEM, ListBase::first, LIKELY, LISTBASE_FOREACH, uiBlock::oldblock, and ui_but_find_new().
Referenced by UI_block_update_from_old().
int UI_calc_float_precision | ( | int | prec, |
double | value | ||
) |
Returns the best "UI" precision for given floating value, so that e.g. 10.000001 rather gets drawn as '10'...
Definition at line 775 of file interface_utils.cc.
References BLI_assert, CLAMP, e, fabs(), pow(), and UI_PRECISION_FLOAT_MAX.
Referenced by outputNumInput(), and ui_but_calc_float_precision().
void UI_context_active_but_clear | ( | struct bContext * | C, |
struct wmWindow * | win, | ||
struct ARegion * | region | ||
) |
Definition at line 8834 of file interface_handlers.c.
References C, and wm_event_handler_ui_cancel_ex().
Referenced by datadropper_invoke(), depthdropper_invoke(), driverdropper_invoke(), eyedropper_colorband_invoke(), and eyedropper_invoke().
Referenced by copy_python_command_button_exec(), copy_python_command_button_poll(), eyedropper_colorband_init(), eyedropper_colorband_poll(), jump_to_target_button(), outliner_operation(), UI_but_online_manual_id_from_active(), ui_button_press_invoke(), UI_context_active_but_get_tab_ID(), UI_context_active_but_prop_get_templateID(), and ui_popup_block_create().
Version of #UI_context_active_get() that uses the result of CTX_wm_menu() if set. Does not traverse into parent menus, which may be wanted in some cases.
Referenced by button_string_clear_exec().
Definition at line 1602 of file interface_templates.c.
References C, uiBut::custom_data, NULL, uiBut::type, UI_BTYPE_TAB, and UI_context_active_but_get().
Referenced by workspace_context_get().
uiBut* UI_context_active_but_prop_get | ( | const struct bContext * | C, |
struct PointerRNA * | r_ptr, | ||
struct PropertyRNA ** | r_prop, | ||
int * | r_index | ||
) |
Version of UI_context_active_but_get that also returns RNA property info. Helper function for insert keyframe, reset to default, etc operators.
Referenced by achannel_setting_slider_nla_curve_cb(), add_driver_button_invoke(), add_driver_button_none(), add_driver_button_poll(), add_keyingset_button_exec(), assign_default_button_exec(), assign_default_button_poll(), clear_key_button_exec(), copy_as_driver_button_exec(), copy_as_driver_button_poll(), copy_data_path_button_exec(), copy_data_path_button_poll(), copy_driver_button_exec(), copy_to_selected_button(), datadropper_init(), datadropper_poll(), delete_key_button_exec(), depthdropper_init(), depthdropper_poll(), driver_mapping_type_itemf(), driverdropper_init(), drivers_editor_show_exec(), edit_driver_button_exec(), eyedropper_init(), graph_panel_drivers_popover(), insert_key_button_exec(), jump_to_target_button(), override_remove_button_exec(), override_remove_button_poll(), override_type_set_button_exec(), override_type_set_button_poll(), paste_driver_button_exec(), remove_driver_button_exec(), remove_keyingset_button_exec(), reset_default_button_exec(), reset_default_button_poll(), and unset_property_button_exec().
void UI_context_active_but_prop_get_filebrowser | ( | const struct bContext * | C, |
struct PointerRNA * | r_ptr, | ||
struct PropertyRNA ** | r_prop, | ||
bool * | r_is_undo, | ||
bool * | r_is_userdef | ||
) |
Referenced by file_browse_invoke().
void UI_context_active_but_prop_get_templateID | ( | bContext * | C, |
PointerRNA * | r_ptr, | ||
PropertyRNA ** | r_prop | ||
) |
For new/open operators.
This is for browsing and editing the ID-blocks used.
Definition at line 584 of file interface_templates.c.
References C, uiBut::func_argN, uiBut::funcN, NULL, TemplateID::prop, TemplateID::ptr, template_id_cb(), and UI_context_active_but_get().
Referenced by action_new_exec(), cachefile_init(), font_ui_template_init(), font_unlink_exec(), image_new_init(), image_new_invoke(), image_open_init(), image_open_invoke(), lib_id_fake_user_toggle_exec(), lib_id_unlink_exec(), new_material_exec(), blender::ed::space_node::new_node_tree_exec(), new_texture_exec(), new_world_exec(), object_unlink_data_exec(), open_init(), override_idtemplate_ids_get(), sound_open_init(), text_new_exec(), and text_open_init().
Definition at line 8815 of file interface_handlers.c.
References uiBut::block, C, uiBlock::handle_func, uiBlock::handle_func_arg, uiBut::retval, ui_apply_but_undo(), ui_but_update(), and ui_context_rna_button_active().
Referenced by operator_button_property_finish(), and operator_button_property_finish_with_undo().
struct wmOperator* UI_context_active_operator_get | ( | const struct bContext * | C | ) |
Definition at line 8839 of file interface_handlers.c.
References C, CTX_wm_region(), CTX_wm_screen(), LISTBASE_FOREACH, NULL, bScreen::regionbase, and ARegion::uiblocks.
Referenced by screen_ctx_active_operator().
bool UI_context_copy_to_selected_check | ( | struct PointerRNA * | ptr, |
struct PointerRNA * | ptr_link, | ||
struct PropertyRNA * | prop, | ||
const char * | path, | ||
bool | use_path_from_id, | ||
struct PointerRNA * | r_ptr, | ||
struct PropertyRNA ** | r_prop | ||
) |
Definition at line 1278 of file interface_ops.c.
References PointerRNA::data, NodesModifierData::node_group, NULL, PointerRNA::owner_id, ptr, RNA_id_pointer_create(), RNA_path_resolve_property(), RNA_property_editable(), RNA_property_is_idprop(), RNA_property_type(), RNA_struct_is_a(), and PointerRNA::type.
Referenced by copy_to_selected_button(), and ui_selectcontext_begin().
bool UI_context_copy_to_selected_list | ( | struct bContext * | C, |
struct PointerRNA * | ptr, | ||
struct PropertyRNA * | prop, | ||
struct ListBase * | r_lb, | ||
bool * | r_use_path_from_id, | ||
char ** | r_path | ||
) |
Definition at line 1051 of file interface_ops.c.
References BLI_listbase_is_empty(), BLI_remlink(), BLI_sprintfN(), bPoseChannel::bone, C, CTX_data_collection_get(), CTX_data_pointer_get_type(), CTX_data_pointer_get_type_silent(), Object::data, PointerRNA::data, GS, id, ID_IS_LINKED, ID_OB, ID_SCE, if(), LIB_TAG_DOIT, LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, MEM_freeN, ID::name, node, nodeFindNode(), NOT_NULL, NOT_RNA_NULL, ntree, NULL, OB_DATA_SUPPORT_ID, PointerRNA::owner_id, ptr, RNA_id_pointer_create(), RNA_path_from_ID_to_property(), RNA_path_from_struct_to_idproperty(), RNA_path_resolve_from_type_to_property(), RNA_pointer_create(), RNA_property_identifier(), RNA_property_is_idprop(), RNA_PropertyGroup, RNA_struct_is_a(), RNA_struct_type_find_property(), STREQ, ID::tag, bNode::type, PointerRNA::type, and ui_context_selected_bones_via_pose().
Referenced by copy_to_selected_button(), and ui_selectcontext_begin().
Helper function for insert keyframe, reset to default, etc operators.
Referenced by add_driver_button_invoke(), add_driver_button_none(), clear_key_button_exec(), copy_driver_button_exec(), delete_key_button_exec(), driverdropper_sample(), insert_key_button_exec(), paste_driver_button_exec(), and remove_driver_button_exec().
Triangle 'icon' for panel header and other cases.
Definition at line 555 of file interface_widgets.c.
References color, draw_anti_tria(), x, and y.
Referenced by draw_columnheader_columns(), and ui_draw_clip_tri().
void UI_draw_roundbox_3fv_alpha | ( | const struct rctf * | rect, |
bool | filled, | ||
float | rad, | ||
const float | col[3], | ||
float | alpha | ||
) |
Referenced by acf_generic_root_backdrop(), acf_group_backdrop(), acf_nla_controls_backdrop(), and acf_summary_backdrop().
void UI_draw_roundbox_3ub_alpha | ( | const struct rctf * | rect, |
bool | filled, | ||
float | rad, | ||
const unsigned char | col[3], | ||
unsigned char | alpha | ||
) |
Referenced by draw_backdrop(), draw_main_line(), draw_ticks(), and slider_draw().
Referenced by acf_nlaaction_backdrop(), draw_keylist_block_gpencil(), draw_keylist_block_interpolation_line(), draw_keylist_block_moving_hold(), draw_keylist_block_standard(), blender::ed::space_node::frame_node_draw(), gizmo_axis_draw(), nla_draw_strip(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_extra_info_panel(), blender::ed::space_node::node_draw_hidden(), panel_draw_aligned_backdrop(), panel_draw_highlight_border(), screen_draw_join_highlight(), textview_draw_string(), UI_fontstyle_draw_simple_backdrop(), and UI_panel_category_draw_all().
void UI_draw_roundbox_4fv_ex | ( | const struct rctf * | rect, |
const float | inner1[4], | ||
const float | inner2[4], | ||
float | shade_dir, | ||
const float | outline[4], | ||
float | outline_width, | ||
float | rad | ||
) |
Referenced by draw_current_frame(), gizmo_axis_draw(), and blender::ed::space_node::node_socket_draw_multi_input().
void UI_draw_roundbox_corner_set | ( | int | type | ) |
Definition at line 55 of file interface_draw.c.
References roundboxtype, and type.
Referenced by acf_generic_root_backdrop(), acf_group_backdrop(), acf_nla_controls_backdrop(), acf_nlaaction_backdrop(), acf_summary_backdrop(), draw_current_frame(), draw_keylist_block(), draw_keylist_block_gpencil(), draw_scope_end(), draw_tile_background(), file_draw_list(), blender::ed::space_node::frame_node_draw(), gizmo_axis_draw(), icon_draw_rect_input(), nla_draw_strip(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_extra_info_panel(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_draw_shadow(), blender::ed::space_node::node_socket_draw_multi_input(), outliner_draw_active_indicator(), outliner_draw_iconrow_number(), panel_draw_aligned_backdrop(), panel_draw_highlight_border(), region_draw_azone_tab_arrow(), region_draw_status_text(), screen_draw_join_highlight(), textview_draw_string(), ui_draw_but_HISTOGRAM(), ui_draw_but_UNITVEC(), UI_fontstyle_draw_simple_backdrop(), and UI_panel_category_draw_all().
void UI_draw_safe_areas | ( | uint | pos, |
const struct rctf * | rect, | ||
const float | title_aspect[2], | ||
const float | action_aspect[2] | ||
) |
Draw title and text safe areas.
pos | is a #PRIM_FLOAT, 2, GPU_FETCH_FLOAT vertex attribute. |
rect | The offsets for the view, not the zones. |
Referenced by drawviewborder(), and sequencer_draw_borders_overlay().
Definition at line 167 of file interface_draw.c.
References color, GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), height, immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor4fv(), immVertexFormat(), len, and pos.
void UI_draw_widget_scroll | ( | struct uiWidgetColors * | wcol, |
const struct rcti * | rect, | ||
const struct rcti * | slider, | ||
int | state | ||
) |
Function in use for buttons and for view2d sliders.
Referenced by UI_view2d_scrollers_draw_ex().
Referenced by ED_keymap_screen().
Referenced by ED_keymap_screen().
Referenced by ui_def_but().
Remove the editsource data for old_but and reinsert it for new_but. Use when the button was reallocated, e.g. to have a new type (ui_but_change_type()).
Referenced by ui_but_change_type().
Referenced by ui_but_change_type(), and ui_def_but().
Definition at line 6787 of file interface.cc.
References ui_but_clipboard_free(), and ui_resources_free().
Referenced by WM_exit_ex().
void UI_fontstyle_draw | ( | const struct uiFontStyle * | fs, |
const struct rcti * | rect, | ||
const char * | str, | ||
size_t | str_len, | ||
const uchar | col[4], | ||
const struct uiFontStyleDraw_Params * | fs_params | ||
) |
void UI_fontstyle_draw_ex | ( | const struct uiFontStyle * | fs, |
const struct rcti * | rect, | ||
const char * | str, | ||
size_t | str_len, | ||
const uchar | col[4], | ||
const struct uiFontStyleDraw_Params * | fs_params, | ||
int * | r_xofs, | ||
int * | r_yofs, | ||
struct ResultBLF * | r_info | ||
) |
Referenced by file_draw_string_multiline(), ui_draw_menu_item(), and widget_draw_text().
void UI_fontstyle_draw_rotated | ( | const struct uiFontStyle * | fs, |
const struct rcti * | rect, | ||
const char * | str, | ||
const uchar | col[4] | ||
) |
Drawn same as above, but at 90 degree angle.
void UI_fontstyle_draw_simple | ( | const struct uiFontStyle * | fs, |
float | x, | ||
float | y, | ||
const char * | str, | ||
const uchar | col[4] | ||
) |
Similar to UI_fontstyle_draw but ignore alignment, shadow & no clipping rect.
For drawing on-screen labels.
Referenced by ANIM_channel_draw(), draw_current_frame(), draw_marker_name(), outliner_draw_iconrow_number(), outliner_draw_tree_element(), and wm_drag_draw_item_name().
void UI_fontstyle_draw_simple_backdrop | ( | const struct uiFontStyle * | fs, |
float | x, | ||
float | y, | ||
const char * | str, | ||
const float | col_fg[4], | ||
const float | col_bg[4] | ||
) |
Same as UI_fontstyle_draw but draw a colored backdrop.
Referenced by eyedropper_draw_cursor_text_ex(), wm_drop_operator_draw(), and wm_drop_redalert_draw().
int int int UI_fontstyle_height_max | ( | const struct uiFontStyle * | fs | ) |
Referenced by text_size_get().
void UI_fontstyle_set | ( | const struct uiFontStyle * | fs | ) |
Referenced by file_font_pointsize(), file_string_width(), outliner_draw_iconrow_number(), ui_block_bounds_calc_text(), ui_draw_menu_item(), ui_searchbox_create_generic_ex(), ui_text_clip_cursor(), UI_text_clip_middle_ex(), ui_text_clip_right_label(), ui_textedit_set_cursor_pos(), ui_tooltip_create_with_data(), ui_tooltip_region_draw_cb(), uiTemplateReportsBanner(), uiTemplateStatusInfo(), and widget_draw_text().
int UI_fontstyle_string_width | ( | const struct uiFontStyle * | fs, |
const char * | str | ||
) |
int int UI_fontstyle_string_width_with_block_aspect | ( | const struct uiFontStyle * | fs, |
const char * | str, | ||
float | aspect | ||
) |
Return the width of str
with the spacing & kerning of fs
with aspect
(representing uiBlock.aspect) applied.
When calculating text width, the UI layout logic calculate widths without scale, only applying scale when drawing. This causes problems for fonts since kerning at smaller sizes often makes them wider than a scaled down version of the larger text. Resolve this by calculating the text at the on-screen size, returning the result scaled back to 1:1. See T92361.
Referenced by ui_text_icon_width_ex().
int UI_icon_colorid_from_report_type | ( | int | type | ) |
Definition at line 727 of file interface_utils.cc.
References RPT_DEBUG_ALL, RPT_ERROR_ALL, RPT_INFO_ALL, RPT_OPERATOR, RPT_PROPERTY, RPT_WARNING_ALL, TH_INFO_DEBUG, TH_INFO_ERROR, TH_INFO_INFO, TH_INFO_OPERATOR, TH_INFO_PROPERTY, TH_INFO_WARNING, and type.
Referenced by report_line_data(), uiTemplateReportsBanner(), and update_reports_display_invoke().
int UI_icon_from_event_type | ( | short | event_type, |
short | event_value | ||
) |
Definition at line 606 of file interface_icons.c.
References DrawInfo::data, ELEM, EVT_LEFTALTKEY, EVT_LEFTCTRLKEY, EVT_LEFTSHIFTKEY, EVT_RIGHTALTKEY, EVT_RIGHTCTRLKEY, EVT_RIGHTSHIFTKEY, g_di_event_list, DrawInfo::input, KM_CLICK, KM_PRESS, LEFTMOUSE, MIDDLEMOUSE, and RIGHTMOUSE.
Referenced by UI_icon_from_keymap_item().
int UI_icon_from_id | ( | const struct ID * | id | ) |
Referenced by object_mouse_select_menu().
int UI_icon_from_keymap_item | ( | const struct wmKeyMapItem * | kmi, |
int | r_icon_mod[4] | ||
) |
Referenced by uiTemplateEventFromKeymapItem().
int UI_icon_from_report_type | ( | int | type | ) |
See: BKE_report_type_str
Definition at line 704 of file interface_utils.cc.
References RPT_DEBUG_ALL, RPT_ERROR_ALL, RPT_INFO_ALL, RPT_OPERATOR, RPT_PROPERTY, RPT_WARNING_ALL, and type.
Referenced by report_line_data(), UI_popup_menu_reports(), and uiTemplateReportsBanner().
Definition at line 6771 of file interface.cc.
References ui_resources_init().
Referenced by WM_init().
Definition at line 6776 of file interface.cc.
References uiStyleInit().
Referenced by wm_init_userdef().
Definition at line 6793 of file interface.cc.
References ui_interface_tag_script_reload_queries().
Referenced by WM_script_tag_reload().
const char* UI_layout_introspect | ( | uiLayout * | layout | ) |
Evaluate layout items as a Python dictionary.
Definition at line 6019 of file interface_layout.c.
References BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), uiLayout::item, uiItem::next, NULL, uiItem::prev, result, and ui_layout_introspect_items().
Referenced by bpy_rna_uilayout_introspect().
struct PointerRNA* UI_list_custom_activate_operator_set | ( | struct uiList * | ui_list, |
const char * | opname, | ||
bool | create_properties | ||
) |
Definition at line 1261 of file interface_template_list.cc.
References uiListDyn::custom_activate_opptr, uiListDyn::custom_activate_optype, PointerRNA::data, uiList::dyn_data, WM_operator_properties_alloc(), and WM_operatortype_find().
Referenced by uiTemplateAssetView().
struct PointerRNA* UI_list_custom_drag_operator_set | ( | struct uiList * | ui_list, |
const char * | opname, | ||
bool | create_properties | ||
) |
Definition at line 1280 of file interface_template_list.cc.
References uiListDyn::custom_drag_opptr, uiListDyn::custom_drag_optype, PointerRNA::data, uiList::dyn_data, WM_operator_properties_alloc(), and WM_operatortype_find().
Referenced by uiTemplateAssetView().
struct uiList* UI_list_find_mouse_over | ( | const struct ARegion * | region, |
const struct wmEvent * | event | ||
) |
Referenced by screen_ctx_ui_list(), ui_list_focused_poll(), and ui_list_start_filter_invoke().
Find a unique key to append to the PanelType.idname for the lookup to the panel's uiBlock. Needed for instanced panels, where there can be multiple with the same type and identifier.
Definition at line 284 of file interface_panel.c.
References INSTANCED_PANEL_UNIQUE_STR_LEN, snprintf, and Panel::sortorder.
Referenced by ED_region_panels_layout_ex().
Definition at line 5808 of file interface_layout.c.
References C, uiLayout::context, CTX_store_set(), MenuType::draw, G, G_DEBUG_WM, MenuType::idname, Menu::layout, and NULL.
Referenced by blender::ed::asset_browser::AssetCatalogTreeViewItem::build_context_menu(), menu_items_from_ui_create(), ui_item_menu_hold(), ui_item_menutype_func(), UI_pie_menu_invoke(), ui_popup_context_menu_for_button(), UI_popup_menu_invoke(), uiItemMContents(), wm_block_create_about(), and wm_block_create_splash().
struct Panel* UI_panel_add_instanced | ( | const struct bContext * | C, |
struct ARegion * | region, | ||
struct ListBase * | panels, | ||
const char * | panel_idname, | ||
struct PointerRNA * | custom_data | ||
) |
Called in situations where panels need to be added dynamically rather than having only one panel corresponding to each PanelType.
Referenced by ANIM_fmodifier_panels(), spreadsheet_row_filters_layout(), uiTemplateConstraints(), uiTemplateGpencilModifiers(), uiTemplateModifiers(), and uiTemplateShaderFx().
struct Panel* UI_panel_begin | ( | struct ARegion * | region, |
struct ListBase * | lb, | ||
uiBlock * | block, | ||
struct PanelType * | pt, | ||
struct Panel * | panel, | ||
bool * | r_open | ||
) |
Definition at line 665 of file interface_panel.c.
References ARegion::alignment, BLI_addtail(), BLI_insertlinkafter(), BLI_remlink(), BLI_strncpy(), Panel_Runtime::block, Panel::blocksizex, Panel::blocksizey, CTX_IFACE_, Panel::drawname, ListBase::first, PanelType::flag, Panel::flag, PanelType::idname, PanelType::label, LISTBASE_FOREACH, MEM_callocN, Panel::next, NULL, Panel::ofsx, Panel::ofsy, uiBlock::panel, PANEL_ACTIVE, PANEL_LAST_ADDED, PANEL_NEW_ADDED, PANEL_TYPE_DEFAULT_CLOSED, PANEL_WAS_CLOSED, Panel::panelname, PNL_CLOSED, RGN_ALIGN_FLOAT, Panel::runtime, Panel::runtime_flag, Panel::sizex, Panel::sizey, Panel::sortorder, PanelType::translation_context, Panel::type, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), and UI_panel_is_closed().
Referenced by ed_panel_draw(), and panel_property_search().
Referenced by ui_popup_context_menu_for_panel().
struct PanelCategoryStack* UI_panel_category_active_find | ( | struct ARegion * | region, |
const char * | idname | ||
) |
Definition at line 2163 of file interface_panel.c.
References BLI_findstring(), and ARegion::panels_category_active.
Referenced by image_buttons_region_draw(), ui_panel_category_active_set(), and UI_panel_category_active_set_default().
Definition at line 2220 of file interface_panel.c.
References ListBase::first, PanelCategoryDyn::idname, LISTBASE_FOREACH, NULL, ARegion::panels_category, ARegion::panels_category_active, ui_panel_category_active_set(), and UI_panel_category_find().
Referenced by ED_area_do_mgs_subscribe_for_tool_ui(), panel_type_context_poll(), panels_collapse_all(), region_panels_collect_categories(), and ui_handle_panel_category_cycling().
Definition at line 2208 of file interface_panel.c.
References ui_panel_category_active_set().
Referenced by ED_drivers_editor_init(), text_text_search_exec(), ui_handle_panel_category_cycling(), and ui_handler_panel_region().
Definition at line 2213 of file interface_panel.c.
References UI_panel_category_active_find(), and ui_panel_category_active_set().
Referenced by sequencer_buttons_region_init(), and spreadsheet_sidebar_init().
Definition at line 2250 of file interface_panel.c.
References BLI_addtail(), BLI_strncpy(), PanelCategoryDyn::idname, MEM_callocN, and ARegion::panels_category.
Referenced by region_panels_collect_categories().
Definition at line 2260 of file interface_panel.c.
References BLI_freelistN(), and ARegion::panels_category.
Referenced by region_panels_collect_categories().
Draw vertical tabs on the left side of the region, one tab per category.
Definition at line 1300 of file interface_panel.c.
References ARegion::alignment, BLF_color3ubv(), BLF_disable(), BLF_draw(), BLF_DRAW_STR_DUMMY_MAX, BLF_enable(), BLF_position(), BLF_rotation(), BLF_ROTATION, BLF_size(), BLF_width(), BLF_width_to_strlen(), BLI_assert, BLI_rcti_size_y(), ListBase::first, float(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_line_smooth(), GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), IFACE_, immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor3fvAlpha(), immUniformColor3ubv(), immUniformColor4fv(), immUniformColor4ubv(), immVertexFormat(), is_left(), LISTBASE_FOREACH, M_PI_2, View2D::mask, NULL, ARegion::overlap, ARegion::panels_category, uiFontStyle::points, pos, ARegion::regiontype, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_RIGHT, RGN_TYPE_HAS_CATEGORY_MASK, round_fl_to_int(), roundboxtype, uiWidgetColors::roundness, STREQ, TABS_PADDING_BETWEEN_FACTOR, TABS_PADDING_TEXT_FACTOR, TH_BACK, TH_TAB_ACTIVE, TH_TAB_BACK, TH_TAB_INACTIVE, TH_TAB_OUTLINE, TH_TEXT, TH_TEXT_HI, bTheme::tui, UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_LEFT, UI_CNR_TOP_RIGHT, UI_DPI_FAC, UI_draw_roundbox_4fv(), UI_draw_roundbox_corner_set(), ui_fontscale(), UI_GetTheme(), UI_GetThemeColor3ubv(), UI_GetThemeColor4fv(), UI_GetThemeColor4ubv(), UI_panel_category_is_visible(), UI_PANEL_CATEGORY_MARGIN_WIDTH, UI_style_get(), ARegion::uiblocks, uiFontStyle::uifont_id, ARegion::v2d, ThemeUI::wcol_tab, uiStyle::widget, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ED_region_panels_draw().
struct PanelCategoryDyn* UI_panel_category_find | ( | const struct ARegion * | region, |
const char * | idname | ||
) |
Referenced by region_panels_collect_categories().
void UI_panel_context_pointer_set | ( | struct Panel * | panel, |
const char * | name, | ||
struct PointerRNA * | ptr | ||
) |
Set a context for this entire panel and its current layout. This should be used whenever panel callbacks that are called outside of regular drawing might require context. Currently it affects the PanelType.reorder callback only.
Definition at line 2429 of file interface_panel.c.
References Panel_Runtime::context, Panel::layout, ptr, Panel::runtime, uiLayoutGetContextStore(), and uiLayoutSetContextPointer().
Referenced by draw_constraint_header(), gpencil_modifier_panel_get_property_pointers(), gpencil_modifier_panel_header(), modifier_panel_get_property_pointers(), modifier_panel_header(), and shaderfx_panel_get_property_pointers().
struct PointerRNA* UI_panel_custom_data_get | ( | const struct Panel * | panel | ) |
Referenced by constraint_reorder(), filter_reorder(), fmodifier_get_pointers(), get_constraint_expand_flag(), get_filter_expand_flag(), get_gpencil_modifier_expand_flag(), get_modifier_expand_flag(), get_shaderfx_expand_flag(), gpencil_modifier_panel_get_property_pointers(), gpencil_modifier_panel_header(), gpencil_modifier_reorder(), modifier_panel_get_property_pointers(), modifier_panel_header(), modifier_reorder(), set_constraint_expand_flag(), set_filter_expand_flag(), set_gpencil_modifier_expand_flag(), set_modifier_expand_flag(), set_shaderfx_expand_flag(), shaderfx_panel_get_property_pointers(), shaderfx_reorder(), spreadsheet_filter_panel_draw(), and spreadsheet_filter_panel_draw_header().
void UI_panel_custom_data_set | ( | struct Panel * | panel, |
struct PointerRNA * | custom_data | ||
) |
Definition at line 2435 of file interface_panel.c.
References BLI_assert, Panel_Runtime::custom_data_ptr, MEM_freeN, NULL, Panel::runtime, Panel::type, and ui_panel_custom_data_set_recursive().
Referenced by ANIM_fmodifier_panels(), spreadsheet_row_filters_layout(), uiTemplateConstraints(), uiTemplateGpencilModifiers(), uiTemplateModifiers(), and uiTemplateShaderFx().
Definition at line 836 of file interface_panel.c.
References Panel::blocksizex, Panel::blocksizey, height, and width.
Referenced by ed_panel_draw().
Referenced by ed_panel_draw(), ED_region_panels_layout_ex(), and panel_property_search().
Create the panel header button group, used to mark which buttons are part of panel headers for the panel search process that happens later. This Should be called before adding buttons for the panel's header layout.
Definition at line 744 of file interface_panel.c.
References Panel_Runtime::block, Panel::runtime, ui_block_new_button_group(), UI_BUTTON_GROUP_LOCK, and UI_BUTTON_GROUP_PANEL_HEADER.
Referenced by ed_panel_draw().
Finish the button group for the panel header to avoid putting panel body buttons in it.
Definition at line 751 of file interface_panel.c.
References BLI_assert, BLI_listbase_is_empty(), BLI_listbase_is_single(), Panel_Runtime::block, uiBlock::button_groups, uiButtonGroup::buttons, uiButtonGroup::flag, ListBase::last, Panel::runtime, ui_block_new_button_group(), UI_BUTTON_GROUP_LOCK, and UI_BUTTON_GROUP_PANEL_HEADER.
Referenced by ed_panel_draw().
Referenced by buttons_main_region_property_search(), and ED_area_do_mgs_subscribe_for_tool_ui().
Get the panel's expansion state, taking into account expansion set from property search if it applies.
Referenced by ED_region_panels_layout_ex().
Referenced by ED_region_panels_layout_ex().
For button layout next to label.
Referenced by ed_panel_draw().
bool UI_panel_list_matches_data | ( | struct ARegion * | region, |
struct ListBase * | data, | ||
uiListPanelIDFromDataFunc | panel_idname_func | ||
) |
Check if the instanced panels in the region's panels correspond to the list of data the panels represent. Returns false if the panels have been reordered or if the types from the list data don't match in any way.
data | The list of data to check against the instanced panels. |
panel_idname_func | Function to find the PanelType.idname for each item in the data list. For a readability and generality, this lookup happens separately for each type of panel list. |
Definition at line 334 of file interface_panel.c.
References BLI_listbase_count(), data, LISTBASE_FOREACH, MAX_NAME, Link::next, NULL, PANEL_TYPE_INSTANCED, ARegion::panels, PNL_INSTANCED_LIST_ORDER_CHANGED, and STREQ.
Referenced by ANIM_fmodifier_panels(), spreadsheet_row_filters_layout(), uiTemplateConstraints(), uiTemplateGpencilModifiers(), uiTemplateModifiers(), and uiTemplateShaderFx().
Find whether a panel or any of its sub-panels contain a property that matches the search filter, depending on the search process running in UI_block_apply_search_filter earlier.
Referenced by buttons_main_region_property_search().
bool UI_panel_should_show_background | ( | const struct ARegion * | region, |
const struct PanelType * | panel_type | ||
) |
Referenced by panel_draw_width_from_max_width_get(), and UI_block_draw().
int UI_panel_size_y | ( | const struct Panel * | panel | ) |
Referenced by ED_region_panels_layout_ex().
Referenced by ED_region_panels_layout_ex().
Draw panels, selected (panels currently being dragged) on top.
Referenced by ED_region_panels_draw().
Referenced by ED_region_panels_layout_ex().
Remove instanced panels from the region's panel list.
Referenced by ANIM_fmodifier_panels(), ED_region_property_search(), spreadsheet_row_filters_layout(), uiTemplateConstraints(), uiTemplateGpencilModifiers(), uiTemplateModifiers(), and uiTemplateShaderFx().
Used for popup panels only.
Definition at line 5899 of file interface_layout.c.
References C, uiLayout::context, CTX_store_set(), NULL, and ui_paneltype_draw_impl().
Referenced by ui_item_paneltype_func(), and UI_popover_panel_invoke().
struct uiPieMenu* UI_pie_menu_begin | ( | struct bContext * | C, |
const char * | title, | ||
int | icon, | ||
const struct wmEvent * | event | ||
) |
Definition at line 189 of file interface_region_menu_pie.cc.
References C, CTX_wm_window(), MEM_freeN, wmWindow::modalhandlers, PIL_check_seconds_timer(), uiPopupBlockHandle::popup, uiPopupBlockHandle::towardstime, ui_block_func_PIE(), ui_popup_block_create(), UI_popup_handlers_add(), WM_event_add_mousemove(), and WM_HANDLER_ACCEPT_DBL_CLICK.
Referenced by UI_pie_menu_invoke(), UI_pie_menu_invoke_from_operator_enum(), UI_pie_menu_invoke_from_rna_enum(), and ui_pie_menu_level_invoke().
Referenced by view3d_object_mode_menu(), wm_call_pie_menu_exec(), and wm_call_pie_menu_invoke().
int UI_pie_menu_invoke_from_operator_enum | ( | struct bContext * | C, |
const char * | title, | ||
const char * | opname, | ||
const char * | propname, | ||
const struct wmEvent * | event | ||
) |
int UI_pie_menu_invoke_from_rna_enum | ( | struct bContext * | C, |
const char * | title, | ||
const char * | path, | ||
const struct wmEvent * | event | ||
) |
Definition at line 204 of file interface_region_menu_pie.cc.
References uiPieMenu::layout.
Referenced by UI_pie_menu_invoke(), UI_pie_menu_invoke_from_operator_enum(), UI_pie_menu_invoke_from_rna_enum(), and ui_pie_menu_level_invoke().
Only return handler, and set optional title.
from_active_button | Use the active button for positioning, use when the popover is activated from an operator instead of directly from the button. |
Definition at line 327 of file interface_region_popover.cc.
References uiPopover::block, uiPopover::but, uiPopover::butregion, C, CTX_wm_region(), uiBlock::handle, ui_popover_create_block(), UI_POPOVER_WIDTH_UNITS, UI_region_active_but_get(), uiPopover::ui_size_x, and WM_OP_EXEC_REGION_WIN.
Referenced by UI_popover_panel_invoke().
Set the whole structure to work.
Definition at line 364 of file interface_region_popover.cc.
References BLI_addhead(), BLI_remlink(), uiPopover::block, uiPopover::but, uiPopover::butregion, C, CTX_wm_window(), uiBlock::flag, uiPopover::keymap, wmEventHandler_Keymap::keymap, uiPopover::keymap_handler, wmWindow::modalhandlers, popover_keymap_fn(), uiPopupBlockHandle::popup, UI_block_flag_disable(), UI_block_flag_enable(), ui_block_free_func_POPOVER(), ui_block_func_POPOVER(), UI_BLOCK_IS_FLIP, UI_BLOCK_KEEP_OPEN, UI_BLOCK_SHOW_SHORTCUT_ALWAYS, ui_popup_block_create(), UI_popup_handlers_add(), uiPopover::window, WM_event_add_keymap_handler_priority(), WM_event_add_mousemove(), and WM_event_set_keymap_handler_post_callback().
Referenced by UI_popover_panel_invoke().
Definition at line 409 of file interface_region_popover.cc.
References uiPopover::layout.
Referenced by UI_popover_panel_invoke().
Definition at line 415 of file interface_region_popover.cc.
References uiPopover::is_once.
Referenced by ui_handle_menu_event().
int UI_popover_panel_invoke | ( | struct bContext * | C, |
const char * | idname, | ||
bool | keep_open, | ||
struct ReportList * | reports | ||
) |
Definition at line 285 of file interface_region_popover.cc.
References uiPopupBlockCreate::arg, BKE_reportf(), uiPopover::block, C, uiBlock::handle, OPERATOR_CANCELLED, OPERATOR_INTERFACE, OPERATOR_PASS_THROUGH, PanelType::poll, uiPopupBlockHandle::popup_create_vars, uiPopupBlockHandle::region, RPT_ERROR, UI_block_active_only_flagged_buttons(), ui_item_paneltype_func(), UI_paneltype_draw(), UI_popover_begin(), UI_popover_end(), UI_popover_layout(), ui_popover_panel_create(), PanelType::ui_units_x, and WM_paneltype_find().
Referenced by add_driver_button_invoke(), edit_driver_button_exec(), and wm_call_panel_exec().
Definition at line 650 of file interface_region_menu_popup.cc.
References C, ED_region_tag_refresh_ui(), uiBlock::handle, LISTBASE_FOREACH, wmWindow::modalhandlers, bScreen::regionbase, ui_popup_block_free(), UI_popup_handlers_remove(), and WM_window_get_active_screen().
Referenced by dialog_exec_cb(), save_file_forwardcompat_cancel(), save_file_forwardcompat_overwrite(), save_file_forwardcompat_saveas(), wm_block_autorun_warning_enable_scripts(), wm_block_autorun_warning_ignore(), wm_block_autorun_warning_reload_with_scripts(), wm_block_close(), wm_block_file_close_cancel(), wm_block_file_close_discard(), and wm_block_file_close_save().
void UI_popup_block_ex | ( | struct bContext * | C, |
uiBlockCreateFunc | func, | ||
uiBlockHandleFunc | popup_func, | ||
uiBlockCancelFunc | cancel_func, | ||
void * | arg, | ||
struct wmOperator * | op | ||
) |
Definition at line 602 of file interface_region_menu_popup.cc.
References C, uiPopupBlockHandle::can_refresh, uiPopupBlockHandle::cancel_func, CTX_wm_window(), ListBase::first, wmWindow::modalhandlers, uiPopupBlockHandle::popup, uiPopupBlockHandle::popup_arg, uiPopupBlockHandle::popup_func, uiPopupBlockHandle::popup_op, uiPopupBlockHandle::region, uiPopupBlockHandle::retvalue, UI_block_active_only_flagged_buttons(), ui_popup_block_create(), UI_popup_handlers_add(), ARegion::uiblocks, and WM_event_add_mousemove().
Referenced by popup_add_shortcut_func(), WM_operator_props_dialog_popup(), wm_operator_props_popup_ex(), and WM_operator_ui_popup().
void UI_popup_block_invoke | ( | struct bContext * | C, |
uiBlockCreateFunc | func, | ||
void * | arg, | ||
uiFreeArgFunc | arg_free | ||
) |
Definition at line 597 of file interface_region_menu_popup.cc.
References C, and UI_popup_block_invoke_ex().
Referenced by merged_element_search_menu_invoke(), blender::ed::space_node::node_find_node_invoke(), popup_change_shortcut_func(), wm_about_invoke(), wm_close_file_dialog(), WM_enum_search_invoke(), WM_enum_search_invoke_previews(), WM_operator_redo_popup(), wm_save_file_forwardcompat_dialog(), wm_splash_invoke(), and wm_test_autorun_warning().
void UI_popup_block_invoke_ex | ( | struct bContext * | C, |
uiBlockCreateFunc | func, | ||
void * | arg, | ||
uiFreeArgFunc | arg_free, | ||
bool | can_refresh | ||
) |
Definition at line 578 of file interface_region_menu_popup.cc.
References C, uiPopupBlockHandle::can_refresh, CTX_wm_window(), ListBase::first, wmWindow::modalhandlers, uiPopupBlockHandle::popup, uiPopupBlockHandle::region, UI_block_active_only_flagged_buttons(), ui_popup_block_create(), UI_popup_handlers_add(), ARegion::uiblocks, and WM_event_add_mousemove().
Referenced by blender::ed::space_node::invoke_node_link_drag_add_menu(), UI_popup_block_invoke(), and wm_search_menu_invoke().
Referenced by wm_close_file_dialog(), and wm_save_file_forwardcompat_dialog().
void UI_popup_handlers_add | ( | struct bContext * | C, |
struct ListBase * | handlers, | ||
uiPopupBlockHandle * | popup, | ||
char | flag | ||
) |
Definition at line 11572 of file interface_handlers.c.
References C, ui_popup_handler(), ui_popup_handler_remove(), and WM_event_add_ui_handler().
Referenced by UI_pie_menu_end(), UI_popover_end(), ui_popover_panel_create(), UI_popup_block_ex(), UI_popup_block_invoke_ex(), ui_popup_menu_create(), and UI_popup_menu_end().
void UI_popup_handlers_remove | ( | struct ListBase * | handlers, |
uiPopupBlockHandle * | popup | ||
) |
Definition at line 11580 of file interface_handlers.c.
References ED_region_tag_refresh_ui(), wmEventHandler_UI::handle_fn, wmEventHandler_UI::head, if(), LISTBASE_FOREACH, wmEventHandler::next, uiPopupBlockHandle::region, wmEventHandler_UI::remove_fn, wmEventHandler::type, ui_popup_handler(), ui_popup_handler_remove(), wmEventHandler_UI::user_data, WM_event_remove_ui_handler(), and WM_HANDLER_TYPE_UI.
Referenced by UI_popup_block_close(), and ui_popup_handler().
Definition at line 11604 of file interface_handlers.c.
References C, ui_popup_handler(), ui_popup_handler_remove(), and WM_event_free_ui_handler_all().
Referenced by ghost_event_proc(), WM_event_add_fileselect(), and wm_event_do_notifiers().
uiPopupMenu* UI_popup_menu_begin | ( | struct bContext * | C, |
const char * | title, | ||
int | icon | ||
) |
Definition at line 437 of file interface_region_menu_popup.cc.
References C, and UI_popup_menu_begin_ex().
Referenced by armature_parent_clear_invoke(), armature_parent_set_invoke(), context_menu_invoke(), driver_dvar_invalid_name_query_cb(), dyntopo_warning_popup(), gpencil_layer_change_invoke(), insert_key_menu_invoke(), keyingset_active_menu_invoke(), move_to_collection_invoke(), blender::ed::space_node::node_group_separate_invoke(), object_hide_collection_invoke(), outliner_operator_menu(), parent_set_invoke_menu(), pose_groups_menu_invoke(), pose_ik_add_invoke(), poselib_add_menu_invoke(), repeat_history_invoke(), screen_area_options_invoke(), screen_context_menu_invoke(), select_grouped_collection(), select_orientation_invoke(), text_resolve_conflict_invoke(), toggle_cyclic_invoke(), ui_item_menu_hold(), ui_popup_context_menu_for_button(), ui_popup_context_menu_for_panel(), UI_popup_menu_invoke(), unpack_all_invoke(), unpack_item_invoke(), unpack_menu(), uv_mark_seam_invoke(), WM_menu_invoke_ex(), WM_operator_confirm_message_ex(), and workspace_add_invoke().
uiPopupMenu* UI_popup_menu_begin_ex | ( | struct bContext * | C, |
const char * | title, | ||
const char * | block_name, | ||
int | icon | ||
) |
Only return handler, and set optional title.
block_name | Assigned to uiBlock.name (useful info for debugging). |
Definition at line 380 of file interface_region_menu_popup.cc.
References BLI_snprintf(), uiPopupMenu::block, C, uiBut::drawflag, uiBlock::flag, uiBlock::handle, uiPopupMenu::layout, uiBlock::puphash, UI_block_begin(), UI_BLOCK_IS_FLIP, UI_block_layout(), UI_BLOCK_POPUP_MEMORY, UI_BTYPE_LABEL, UI_BUT_TEXT_LEFT, UI_EMBOSS_PULLDOWN, UI_LAYOUT_MENU, UI_LAYOUT_VERTICAL, UI_MENU_PADDING, ui_popup_menu_hash(), UI_style_get_dpi(), UI_UNIT_Y, uiDefBut(), uiDefIconTextBut(), uiItemS(), uiLayoutSetOperatorContext(), and WM_OP_EXEC_REGION_WIN.
Referenced by UI_popup_menu_begin(), and UI_popup_menu_reports().
void UI_popup_menu_but_set | ( | uiPopupMenu * | pup, |
struct ARegion * | butregion, | ||
uiBut * | but | ||
) |
Setting the button makes the popup open from the button instead of the cursor.
Definition at line 442 of file interface_region_menu_popup.cc.
References uiPopupMenu::but, and uiPopupMenu::butregion.
Referenced by ui_item_menu_hold().
void UI_popup_menu_end | ( | struct bContext * | C, |
struct uiPopupMenu * | pup | ||
) |
Set the whole structure to work.
Definition at line 448 of file interface_region_menu_popup.cc.
References uiPopupMenu::but, uiPopupMenu::butregion, C, CTX_wm_window(), wmWindow::eventstate, MEM_freeN, wmWindow::modalhandlers, uiPopupMenu::mx, uiPopupMenu::my, uiPopupBlockHandle::popup, uiPopupMenu::popup, ui_block_func_POPUP(), ui_popup_block_create(), UI_popup_handlers_add(), WM_event_add_mousemove(), and wmEvent::xy.
Referenced by armature_parent_clear_invoke(), armature_parent_set_invoke(), context_menu_invoke(), driver_dvar_invalid_name_query_cb(), dyntopo_warning_popup(), gpencil_layer_change_invoke(), insert_key_menu_invoke(), keyingset_active_menu_invoke(), move_to_collection_invoke(), blender::ed::space_node::node_group_separate_invoke(), object_hide_collection_invoke(), outliner_operator_menu(), parent_set_invoke_menu(), pose_groups_menu_invoke(), pose_ik_add_invoke(), poselib_add_menu_invoke(), repeat_history_invoke(), screen_area_options_invoke(), screen_context_menu_invoke(), select_grouped_collection(), select_orientation_invoke(), text_resolve_conflict_invoke(), toggle_cyclic_invoke(), ui_item_menu_hold(), ui_popup_context_menu_for_panel(), UI_popup_menu_end_or_cancel(), UI_popup_menu_invoke(), UI_popup_menu_reports(), unpack_all_invoke(), unpack_item_invoke(), unpack_menu(), uv_mark_seam_invoke(), WM_menu_invoke_ex(), WM_operator_confirm_message_ex(), and workspace_add_invoke().
bool UI_popup_menu_end_or_cancel | ( | struct bContext * | C, |
struct uiPopupMenu * | pup | ||
) |
Definition at line 473 of file interface_region_menu_popup.cc.
References uiPopupMenu::block, C, uiBlock::handle, MEM_freeN, UI_block_free(), UI_block_is_empty_ex(), UI_block_layout_resolve(), and UI_popup_menu_end().
Referenced by ui_popup_context_menu_for_button().
int UI_popup_menu_invoke | ( | struct bContext * | C, |
const char * | idname, | ||
struct ReportList * | reports | ||
) |
Referenced by wm_call_menu_exec().
struct uiLayout* UI_popup_menu_layout | ( | uiPopupMenu * | pup | ) |
Definition at line 486 of file interface_region_menu_popup.cc.
References uiPopupMenu::layout.
Referenced by armature_parent_clear_invoke(), armature_parent_set_invoke(), context_menu_invoke(), driver_dvar_invalid_name_query_cb(), dyntopo_warning_popup(), gpencil_layer_change_invoke(), insert_key_menu_invoke(), keyingset_active_menu_invoke(), move_to_collection_invoke(), blender::ed::space_node::node_group_separate_invoke(), object_hide_collection_invoke(), outliner_operator_menu(), parent_set_invoke_menu(), pose_groups_menu_invoke(), pose_ik_add_invoke(), poselib_add_menu_invoke(), repeat_history_invoke(), screen_area_options_invoke(), screen_context_menu_invoke(), select_grouped_collection(), select_orientation_invoke(), text_resolve_conflict_invoke(), toggle_cyclic_invoke(), ui_item_menu_hold(), ui_popup_context_menu_for_button(), ui_popup_context_menu_for_panel(), UI_popup_menu_invoke(), UI_popup_menu_reports(), unpack_all_invoke(), unpack_item_invoke(), unpack_menu(), uv_mark_seam_invoke(), WM_menu_invoke_ex(), WM_operator_confirm_message_ex(), and workspace_add_invoke().
void UI_popup_menu_reports | ( | struct bContext * | C, |
struct ReportList * | reports | ||
) |
Definition at line 497 of file interface_region_menu_popup.cc.
References BLI_snprintf(), BLI_strncpy(), C, CTX_wm_window(), IFACE_, ReportList::list, LISTBASE_FOREACH, MIN2, ReportList::printlevel, UI_icon_from_report_type(), UI_MAX_DRAW_STR, UI_popup_menu_begin_ex(), UI_popup_menu_end(), UI_popup_menu_layout(), uiItemL(), and uiItemS().
Referenced by wm_handler_fileselect_do(), and wm_operator_reports().
Allow setting menu return value from externals. E.g. WM might need to do this for exiting files correctly.
Definition at line 11271 of file interface_handlers.c.
References uiBlock::handle, and uiPopupBlockHandle::menuretval.
Referenced by dialog_exec_cb().
int UI_preview_tile_size_x | ( | void | ) |
A decent size for a button (typically UI_BTYPE_PREVIEW_TILE) to display a nicely readable preview with label in.
Definition at line 4973 of file interface.cc.
References pad, PREVIEW_TILE_PAD, round_fl_to_int(), and UI_UNIT_X.
Referenced by ui_template_list_layout_draw().
int UI_preview_tile_size_y | ( | void | ) |
Definition at line 4979 of file interface.cc.
References pad, uiFontStyle::points, PREVIEW_TILE_PAD, round_fl_to_int(), UI_DPI_FAC, UI_preview_tile_size_y_no_label(), UI_style_get(), and uiStyle::widget.
Referenced by ui_template_list_layout_draw().
int UI_preview_tile_size_y_no_label | ( | void | ) |
Definition at line 4990 of file interface.cc.
References pad, PREVIEW_TILE_PAD, round_fl_to_int(), and UI_UNIT_Y.
Referenced by UI_preview_tile_size_y(), and ui_template_list_layout_draw().
Referenced by UI_popover_begin(), and wm_drop_ui_context_create().
uiBlock* UI_region_block_find_mouse_over | ( | const struct ARegion * | region, |
const int | xy[2], | ||
bool | only_clip | ||
) |
Definition at line 8787 of file interface_handlers.c.
References ui_block_find_mouse_over_ex(), and xy.
Referenced by wm_handlers_do_gizmo_handler().
Referenced by ED_region_contains_xy().
Definition at line 11674 of file interface_handlers.c.
References uiBut::active, C, LISTBASE_FOREACH, NULL, ui_but_active_free(), and ARegion::uiblocks.
Referenced by ED_region_visibility_change_update().
Definition at line 11566 of file interface_handlers.c.
References NULL, ui_region_handler(), ui_region_handler_remove(), WM_event_add_ui_handler(), and WM_event_remove_ui_handler().
Referenced by ed_default_handlers(), hud_region_init(), and ui_popup_block_create().
Definition at line 2147 of file interface.cc.
References LISTBASE_FOREACH, ui_block_message_subscribe(), and ARegion::uiblocks.
Referenced by ED_region_message_subscribe().
struct PointerRNA* UI_region_panel_custom_data_under_cursor | ( | const struct bContext * | C, |
const struct wmEvent * | event | ||
) |
Try to find a search-box region opened from a button in button_region.
Referenced by wm_searchbox_tooltip_init().
uiViewItemHandle* UI_region_views_find_active_item | ( | const struct ARegion * | region | ) |
Referenced by ui_view_item_rename_exec(), and ui_view_item_rename_poll().
uiViewItemHandle* UI_region_views_find_item_at | ( | const struct ARegion * | region, |
const int | xy[2] | ||
) |
xy | Coordinate to find a view item at, in window space. |
Referenced by ui_view_drop_invoke(), ui_view_drop_poll(), and ui_view_drop_tooltip().
Definition at line 6782 of file interface.cc.
References uiStyleInit().
Referenced by reloadtranslation_exec().
Is called by notifier.
Referenced by ED_screen_set_active_region().
bool UI_search_item_add | ( | uiSearchItems * | items, |
const char * | name, | ||
void * | poin, | ||
int | iconid, | ||
int | but_flag, | ||
uint8_t | name_prefix_offset | ||
) |
Public function exported for functions that use UI_BTYPE_SEARCH_MENU.
Use inside searchfunc to add items.
items | Stores the items. |
name | Text to display for the item. |
poin | Opaque pointer (for use by the caller). |
iconid | The icon, #ICON_NONE for no icon. |
but_flag | Button flags (uiBut.flag) indicating the state of the item, typically UI_BUT_DISABLED, UI_BUT_INACTIVE or UI_BUT_HAS_SEP_CHAR. |
Definition at line 93 of file interface_region_search.cc.
References uiSearchItems::active, uiSearchItems::autocpl, BLI_assert, BLI_strncpy(), uiSearchItems::but_flags, uiSearchItems::has_icon, uiSearchItems::icons, uiSearchItems::maxitem, uiSearchItems::maxstrlen, MEM_callocN, uiSearchItems::more, uiSearchItems::name_prefix_offsets, uiSearchItems::names, uiSearchItems::offset_i, uiSearchItems::pointers, uiSearchItems::totitem, UI_autocomplete_update_name(), UI_BUT_DISABLED, UI_BUT_HAS_SEP_CHAR, UI_BUT_INACTIVE, and UI_BUT_REDALERT.
Referenced by add_collection_search_item(), blender::ui::attribute_search_add_items(), blender::ui::attribute_search_item_add(), id_search_add(), blender::ed::space_node::link_drag_search_update_fn(), menu_search_update_fn(), merged_element_search_fn_recursive(), blender::ed::space_node::node_find_update_fn(), operator_enum_search_update_fn(), and operator_search_update_fn().
int UI_search_items_find_index | ( | uiSearchItems * | items, |
const char * | name | ||
) |
Check if a string is in an existing search box.
Definition at line 172 of file interface_region_search.cc.
References uiSearchItems::name_prefix_offsets, uiSearchItems::names, STREQ, and uiSearchItems::totitem.
Referenced by merged_element_search_fn_recursive(), ui_but_search_refresh(), and ui_searchbox_find_index().
int UI_searchbox_size_x | ( | void | ) |
Definition at line 167 of file interface_region_search.cc.
References UI_UNIT_X.
Referenced by blender::ed::space_node::create_search_popup_block(), blender::ed::space_node::node_find_menu(), template_common_search_menu(), ui_searchbox_create_generic_ex(), wm_enum_search_menu(), and wm_search_menu_invoke().
int UI_searchbox_size_y | ( | void | ) |
Height in pixels, it's using hard-coded values still.
Definition at line 162 of file interface_region_search.cc.
References SEARCH_ITEMS, UI_POPUP_MENU_TOP, and UI_UNIT_Y.
Referenced by blender::ed::space_node::create_search_popup_block(), merged_element_search_menu(), blender::ed::space_node::node_find_menu(), template_common_search_menu(), ui_searchbox_create_generic_ex(), wm_enum_search_menu(), and wm_search_menu_invoke().
Definition at line 303 of file interface_style.cc.
References BLI_findstring().
Referenced by clip_draw_dopesheet_channels(), component_menu(), drw_text_cache_draw_ex(), ED_region_cache_draw_curfra_label(), file_draw_string(), file_draw_string_multiline(), file_font_pointsize(), file_string_width(), blender::ed::space_node::frame_node_draw_label(), get_column_width(), get_index_column_width(), radial_control_paint_cursor(), reset_exec(), slider_draw(), ui_block_bounds_calc_text(), UI_panel_category_draw_all(), UI_preview_tile_size_y(), ui_searchbox_create_generic_ex(), UI_style_get_dpi(), ui_textedit_set_cursor_pos(), ui_tooltip_create_with_data(), ui_tooltip_region_draw_cb(), UI_view2d_region_reinit(), uiTemplateReportsBanner(), uiTemplateStatusInfo(), voxel_size_edit_draw(), and widget_preview_tile().
Definition at line 315 of file interface_style.cc.
References uiStyle::boxspace, uiStyle::buttonspacex, uiStyle::buttonspacey, uiStyle::columnspace, uiStyle::grouplabel, uiStyle::panelouter, uiStyle::panelspace, uiStyle::paneltitle, uiFontStyle::shadx, uiFontStyle::shady, uiStyle::templatespace, UI_DPI_FAC, UI_style_get(), and uiStyle::widgetlabel.
Referenced by colorband_tools_func(), blender::ed::space_node::draw_tree_path(), ed_panel_draw(), ED_region_header_layout(), ED_region_image_metadata_draw(), ED_region_info_draw_multiline(), ED_region_property_search(), ED_time_scrub_channel_search_draw(), get_index_column_width(), menu_add_shortcut(), menu_change_shortcut(), menu_items_from_ui_create(), blender::ed::space_node::node_update_basis(), spreadsheet_footer_region_draw(), template_ID_tabs(), text_size_get(), UI_block_draw(), ui_offset_panel_block(), UI_pie_menu_begin(), ui_popover_create_block(), ui_popover_panel_create(), UI_popup_menu_begin_ex(), ui_popup_menu_create(), uiItemsAlertBox(), wm_block_create_about(), wm_block_create_redo(), wm_block_create_splash(), wm_block_dialog_create(), and wm_operator_ui_create().
Definition at line 1038 of file resources.c.
References BLI_freelistN(), and uiStyleInit().
Referenced by preferences_reset_default_theme_exec().
Definition at line 103 of file interface_templates.c.
Referenced by UI_block_layout_resolve().
float UI_text_clip_middle_ex | ( | const struct uiFontStyle * | fstyle, |
char * | str, | ||
float | okwidth, | ||
float | minwidth, | ||
size_t | max_len, | ||
char | rpart_sep | ||
) |
Shortening string helper.
Cut off the middle of the text to fit into the given width.
If rpart_sep is not Null, the part of str starting to first occurrence of rpart_sep is preserved at all cost. Useful for strings with shortcuts (like 'AVeryLongFooBarLabelForMenuEntry|Ctrl O' -> 'AVeryLong...MenuEntry|Ctrl O').
Referenced by file_draw_string().
int UI_text_colorid_from_report_type | ( | int | type | ) |
Definition at line 750 of file interface_utils.cc.
References RPT_DEBUG_ALL, RPT_ERROR_ALL, RPT_INFO_ALL, RPT_OPERATOR, RPT_PROPERTY, RPT_WARNING_ALL, TH_INFO_DEBUG_TEXT, TH_INFO_ERROR_TEXT, TH_INFO_INFO_TEXT, TH_INFO_OPERATOR_TEXT, TH_INFO_PROPERTY_TEXT, TH_INFO_WARNING_TEXT, and type.
Referenced by report_line_data(), and uiTemplateReportsBanner().
Referenced by file_filename_enter_handle().
Initialize default theme.
Definition at line 1022 of file resources.c.
References bTheme::active_theme_area, BLI_addtail(), BLI_findstring(), MEM_callocN, NULL, U_theme_default, and UI_SetTheme().
Referenced by preferences_reset_default_theme_exec().
struct ARegion* UI_tooltip_create_from_button | ( | struct bContext * | C, |
struct ARegion * | butregion, | ||
uiBut * | but, | ||
bool | is_label | ||
) |
is_label | When true, show a small tip that only shows the name, otherwise show the full tooltip. |
Definition at line 1462 of file interface_region_tooltip.c.
References C, NULL, and UI_tooltip_create_from_button_or_extra_icon().
Referenced by ui_search_menu_create_tooltip().
struct ARegion* UI_tooltip_create_from_button_or_extra_icon | ( | struct bContext * | C, |
struct ARegion * | butregion, | ||
uiBut * | but, | ||
uiButExtraOpIcon * | extra_icon, | ||
bool | is_label | ||
) |
Definition at line 1402 of file interface_region_tooltip.c.
References uiBlock::aspect, BLI_rctf_cent_x(), BLI_rctf_cent_y(), BLI_rcti_rctf_copy_round(), uiBut::block, C, CTX_wm_window(), data, uiBut::drawflag, wmWindow::eventstate, min_ff(), NULL, uiBut::rect, ui_block_to_window_fl(), ui_block_to_window_rctf(), UI_but_has_tooltip_label(), UI_but_is_tool(), UI_BUT_NO_TOOLTIP, UI_POPUP_MARGIN, ui_tooltip_create_with_data(), ui_tooltip_data_from_button_or_extra_icon(), ui_tooltip_data_from_tool(), wmEvent::xy, and rctf::ymin.
Referenced by ui_but_tooltip_init(), and UI_tooltip_create_from_button().
Definition at line 1467 of file interface_region_tooltip.c.
References bounds(), C, CTX_wm_window(), data, wmWindow::eventstate, NULL, wmGizmoType::screen_bounds_get, wmGizmo::type, ui_tooltip_create_with_data(), ui_tooltip_data_from_gizmo(), and wmEvent::xy.
Referenced by WM_gizmomap_tooltip_init().
struct ARegion* UI_tooltip_create_from_search_item_generic | ( | struct bContext * | C, |
const struct ARegion * | searchbox_region, | ||
const struct rcti * | item_rect, | ||
const uiSearchItemTooltipData * | item_tooltip_data | ||
) |
Create a tooltip from search-item tooltip data item_tooltip data. To be called from a callback set with UI_but_func_search_set_tooltip().
item_rect | Rectangle of the search item in search region space (ui_searchbox_butrect()) which is passed to the tooltip callback. |
Referenced by template_ID_search_menu_item_tooltip().
Definition at line 1554 of file interface_region_tooltip.c.
References C, and ui_region_temp_remove().
Referenced by WM_tooltip_clear(), WM_tooltip_init(), and WM_tooltip_refresh().
void UI_view_item_begin_rename | ( | uiViewItemHandle * | item_handle | ) |
Definition at line 331 of file abstract_view_item.cc.
References blender::ui::AbstractViewItem::begin_renaming().
Referenced by ui_do_but_VIEW_ITEM(), and ui_view_item_rename_exec().
bool UI_view_item_can_drop | ( | const uiViewItemHandle * | item_, |
const struct wmDrag * | drag, | ||
const char ** | r_disabled_hint | ||
) |
Referenced by ui_view_drop_poll().
bool UI_view_item_can_rename | ( | const uiViewItemHandle * | item_handle | ) |
Can item_handle be renamed right now? Note that this isn't just a mere wrapper around #AbstractViewItem::supports_renaming(). This also checks if there is another item being renamed, and returns false if so.
Definition at line 325 of file abstract_view_item.cc.
References blender::ui::ViewItemAPIWrapper::can_rename().
Referenced by ui_view_item_rename_poll().
void UI_view_item_context_menu_build | ( | struct bContext * | C, |
const uiViewItemHandle * | item_handle, | ||
uiLayout * | column | ||
) |
Definition at line 337 of file abstract_view_item.cc.
References blender::ui::AbstractViewItem::build_context_menu(), and C.
Referenced by ui_popup_context_menu_for_button().
bool UI_view_item_drag_start | ( | struct bContext * | C, |
const uiViewItemHandle * | item_ | ||
) |
Attempt to start dragging item_. This will not work if the view item doesn't support dragging, i.e. if it won't create a drag-controller upon request.
Definition at line 345 of file abstract_view_item.cc.
References C, and blender::ui::ViewItemAPIWrapper::drag_start().
Referenced by ui_but_drag_init().
bool UI_view_item_drop_handle | ( | struct bContext * | C, |
const uiViewItemHandle * | item_, | ||
const struct ListBase * | drags | ||
) |
Let a view item handle a drop event.
Referenced by ui_view_drop_invoke().
char* UI_view_item_drop_tooltip | ( | const uiViewItemHandle * | item, |
const struct wmDrag * | drag | ||
) |
Referenced by ui_view_drop_tooltip().
bool UI_view_item_is_active | ( | const uiViewItemHandle * | item_handle | ) |
Definition at line 312 of file abstract_view_item.cc.
References blender::ui::AbstractViewItem::is_active().
Referenced by ui_but_is_active_view_item(), and ui_but_is_pushed_ex().
bool UI_view_item_matches | ( | const uiViewItemHandle * | a_handle, |
const uiViewItemHandle * | b_handle | ||
) |
Definition at line 318 of file abstract_view_item.cc.
References Freestyle::a, usdtokens::b(), and blender::ui::ViewItemAPIWrapper::matches().
Referenced by ui_block_view_find_matching_view_item_but_in_old_block(), and ui_but_equals_old().
Definition at line 1167 of file interface_widgets.c.
References BLI_assert, and g_widget_base_batch.
Referenced by UI_block_draw().
Definition at line 1173 of file interface_widgets.c.
References BLI_assert, g_widget_base_batch, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, and UI_widgetbase_draw_cache_flush().
Referenced by UI_block_draw().
Definition at line 1137 of file interface_widgets.c.
References batch, g_widget_base_batch, GPU_batch_draw(), GPU_batch_draw_instanced(), GPU_batch_program_set_builtin(), GPU_batch_uniform_3fv, GPU_batch_uniform_4fv_array, GPU_SHADER_2D_WIDGET_BASE, GPU_SHADER_2D_WIDGET_BASE_INST, GPUBatch, MAX_WIDGET_BASE_BATCH, MAX_WIDGET_PARAMETERS, UI_ALPHA_CHECKER_DARK, UI_ALPHA_CHECKER_LIGHT, and ui_batch_roundbox_widget_get().
Referenced by draw_widgetbase_batch(), icon_draw_cache_flush_ex(), icon_draw_size(), icon_draw_texture(), ui_draw_but_HSV_v(), UI_widgetbase_draw_cache_end(), uiStyleInit(), widget_draw_node_link_socket(), widget_draw_submenu_tria(), widget_draw_text(), widget_swatch(), and widget_tab().
uiBut* uiDefAutoButR | ( | uiBlock * | block, |
struct PointerRNA * | ptr, | ||
struct PropertyRNA * | prop, | ||
int | index, | ||
const char * | name, | ||
int | icon, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
Definition at line 47 of file interface_utils.cc.
References BLI_snprintf(), ELEM, height, IFACE_, PROP_BOOLEAN, PROP_COLLECTION, PROP_COLOR, PROP_COLOR_GAMMA, PROP_ENUM, PROP_FACTOR, PROP_FLOAT, PROP_INT, PROP_PERCENTAGE, PROP_POINTER, PROP_STRING, PROP_TEXTEDIT_UPDATE, ptr, RNA_property_array_check(), RNA_property_collection_length(), RNA_property_flag(), RNA_property_pointer_get(), RNA_property_pointer_type(), RNA_property_subtype(), RNA_property_type(), RNA_struct_ui_icon(), PointerRNA::type, UI_BTYPE_CHECKBOX, UI_BTYPE_COLOR, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_LABEL, UI_BTYPE_MENU, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_SEARCH_MENU, UI_BTYPE_TEXT, ui_but_add_search(), UI_BUT_DISABLED, UI_but_flag_enable(), UI_BUT_TEXTEDIT_UPDATE, UI_BUT_VALUE_CLEAR, uiDefBut(), uiDefButR_prop(), uiDefIconButR_prop(), uiDefIconTextButR_prop(), width, x, and y.
Referenced by ANIM_channel_draw_widgets(), outliner_draw_overrides_rna_buts(), outliner_draw_rnabuts(), template_search_add_button_name(), ui_item_array(), ui_item_with_label(), uiDefAutoButsArrayR(), uiItemFullR(), uiTemplateImage(), and uiTemplateLayers().
void uiDefAutoButsArrayR | ( | uiBlock * | block, |
PointerRNA * | ptr, | ||
PropertyRNA * | prop, | ||
const int | icon, | ||
const int | x, | ||
const int | y, | ||
const int | tot_width, | ||
const int | height | ||
) |
Definition at line 357 of file interface_utils.cc.
References height, len, ptr, RNA_property_array_length(), UI_block_align_begin(), UI_block_align_end(), uiDefAutoButR(), x, and y.
Referenced by outliner_draw_overrides_rna_buts().
eAutoPropButsReturn uiDefAutoButsRNA | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
bool(*)(struct PointerRNA *ptr, struct PropertyRNA *prop, void *user_data) | check_prop, | ||
void * | user_data, | ||
struct PropertyRNA * | prop_activate_init, | ||
eButLabelAlign | label_align, | ||
bool | compact | ||
) |
check_prop callback filters functions to avoid drawing certain properties, in cases where PROP_HIDDEN flag can't be used for a property.
prop_activate_init | Property to activate on initial popup (UI_BUT_ACTIVATE_ON_INIT). |
Referenced by edbm_average_normals_ui(), edbm_normals_tools_ui(), edbm_point_normals_ui(), image_open_draw(), image_save_as_draw(), screenshot_draw(), sequencer_add_draw(), and template_operator_property_buts_draw_single().
uiBut* uiDefBlockBut | ( | uiBlock * | block, |
uiBlockCreateFunc | func, | ||
void * | arg, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
const char * | tip | ||
) |
Definition at line 6046 of file interface.cc.
References uiBut::block_create_func, height, str, UI_BTYPE_BLOCK, ui_but_update(), ui_def_but(), width, x, and y.
Referenced by CurveProfile_buttons_layout(), and ui_popup_context_menu_for_button().
uiBut* uiDefBlockButN | ( | uiBlock * | block, |
uiBlockCreateFunc | func, | ||
void * | argN, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
const char * | tip | ||
) |
Definition at line 6063 of file interface.cc.
References uiBut::block_create_func, uiBut::func_argN, height, MEM_freeN, str, UI_BTYPE_BLOCK, ui_but_update(), ui_def_but(), width, x, and y.
Referenced by template_add_button_search_menu(), uiTemplateComponentMenu(), and uiTemplateIconView().
uiBut* uiDefBut | ( | uiBlock * | block, |
int | type, | ||
int | retval, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
void * | poin, | ||
float | min, | ||
float | max, | ||
float | a1, | ||
float | a2, | ||
const char * | tip | ||
) |
Definition at line 4806 of file interface.cc.
References height, max, min, str, type, ui_but_update(), ui_def_but(), width, x, and y.
Referenced by blender::ui::AbstractViewItem::add_rename_button(), blender::ui::PreviewGridItem::build_grid_tile(), colorband_buttons_layout(), blender::ed::space_node::create_search_popup_block(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), draw_channel_labels(), envelope_panel_draw(), file_draw_list(), file_draw_preview(), merged_element_search_menu(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_extra_info_row(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_find_menu(), outliner_buttons(), outliner_draw_overrides_rna_buts(), outliner_draw_userbuts(), blender::ed::space_node::reroute_node_draw(), template_common_search_menu(), template_ID(), ui_block_colorpicker(), ui_def_but_rna__menu(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_slot_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_array(), ui_item_disabled(), ui_item_with_label(), ui_layout_add_padding_button(), ui_layout_box(), blender::ed::space_node::ui_node_menu_column(), UI_pie_menu_begin(), UI_popup_menu_begin_ex(), ui_template_list_layout_draw(), blender::ed::space_node::ui_template_node_link_menu(), uiDefAutoButR(), uiDefButBit(), uiDefButC(), uiDefButF(), uiDefButI(), uiDefButS(), uiItemFullR(), uiItemL_(), uiItemS_ex(), uiItemsFullEnumO_items(), uiItemSpacer(), uiTemplateHistogram(), uiTemplateMarker(), uiTemplateMovieClip(), uiTemplateNodeSocket(), uiTemplatePreview(), uiTemplateReportsBanner(), uiTemplateStatusInfo(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateWaveform(), v3d_editvertex_buts(), v3d_object_dimension_buts(), wm_block_dialog_create(), wm_block_search_menu(), wm_block_splash_add_label(), and wm_enum_search_menu().
Definition at line 4847 of file interface.cc.
References height, uiWidgetColors::text, bTheme::tui, UI_GetTheme(), UI_icon_alert_imbuf_get(), uiDefButImage(), ThemeUI::wcol_menu_back, width, x, and y.
Referenced by uiItemsAlertBox().
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 | ||
) |
Definition at line 5226 of file interface.cc.
References height, max, min, str, type, UI_BUT_POIN_CHAR, uiDefButBit(), width, x, and y.
Referenced by block_create__close_file_dialog().
uiBut* uiDefButBitI | ( | uiBlock * | block, |
int | type, | ||
int | bit, | ||
int | retval, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
int * | poin, | ||
float | min, | ||
float | max, | ||
float | a1, | ||
float | a2, | ||
const char * | tip | ||
) |
Definition at line 5102 of file interface.cc.
References height, max, min, str, type, UI_BUT_POIN_INT, uiDefButBit(), width, x, and y.
Referenced by curvemap_clipping_func(), and uiTemplateMarker().
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 | ||
) |
Definition at line 5164 of file interface.cc.
References height, max, min, str, type, UI_BUT_POIN_SHORT, uiDefButBit(), width, x, and y.
Referenced by v3d_editvertex_buts().
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 | ||
) |
Definition at line 5196 of file interface.cc.
References height, max, min, str, type, UI_BUT_POIN_CHAR, uiDefBut(), width, x, and y.
Referenced by ui_block_colorpicker().
uiBut* uiDefButF | ( | uiBlock * | block, |
int | type, | ||
int | retval, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
float * | poin, | ||
float | min, | ||
float | max, | ||
float | a1, | ||
float | a2, | ||
const char * | tip | ||
) |
Definition at line 5042 of file interface.cc.
References height, max, min, str, type, UI_BUT_POIN_FLOAT, uiDefBut(), width, x, and y.
Referenced by curvemap_buttons_layout(), curvemap_clipping_func(), CurveProfile_buttons_layout(), ui_block_colorpicker(), uiTemplateMarker(), uvedit_vertex_buttons(), v3d_editvertex_buts(), v3d_object_dimension_buts(), and view3d_panel_vgroup().
uiBut* uiDefButI | ( | uiBlock * | block, |
int | type, | ||
int | retval, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
int * | poin, | ||
float | min, | ||
float | max, | ||
float | a1, | ||
float | a2, | ||
const char * | tip | ||
) |
Definition at line 5072 of file interface.cc.
References height, max, min, str, type, UI_BUT_POIN_INT, uiDefBut(), width, x, and y.
Referenced by curvemap_buttons_layout(), ui_def_but_rna__menu(), ui_template_list_layout_draw(), and uiItemV().
uiBut* uiDefButImage | ( | uiBlock * | block, |
void * | imbuf, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
const uchar | color[4] | ||
) |
Definition at line 4829 of file interface.cc.
References uiBut::col, color, copy_v4_v4_uchar(), height, UI_BTYPE_IMAGE, ui_but_update(), ui_def_but(), width, x, and y.
Referenced by uiDefButAlert(), wm_block_create_about(), and wm_block_create_splash().
uiBut* uiDefButO | ( | uiBlock * | block, |
int | type, | ||
const char * | opname, | ||
wmOperatorCallContext | opcontext, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
const char * | tip | ||
) |
Definition at line 5318 of file interface.cc.
References height, ot, str, type, uiDefButO_ptr(), width, WM_operatortype_find(), x, and y.
Referenced by uiTemplateReportsBanner().
uiBut* uiDefButO_ptr | ( | uiBlock * | block, |
int | type, | ||
struct wmOperatorType * | ot, | ||
wmOperatorCallContext | opcontext, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
const char * | tip | ||
) |
Definition at line 5303 of file interface.cc.
References height, ot, str, type, ui_but_update(), ui_def_but_operator_ptr(), width, x, and y.
Referenced by uiDefButO(), uiItemFullO_ptr_ex(), and view3d_panel_vgroup().
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 | ||
) |
Definition at line 5258 of file interface.cc.
References height, max, min, ptr, str, type, ui_but_update(), ui_def_but_rna_propname(), width, x, and y.
Referenced by ANIM_channel_draw_widgets(), draw_channel_labels(), ED_area_header_switchbutton(), ED_file_path_button(), file_panel_execution_buttons_draw(), graph_panel_key_properties(), template_ID(), uiTemplatePalette(), and v3d_editvertex_buts().
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 | ||
) |
Definition at line 5280 of file interface.cc.
References height, max, min, ptr, str, type, ui_but_update(), ui_def_but_rna(), width, x, and y.
Referenced by template_ID_tabs(), ui_block_colorpicker(), ui_colorpicker_circle(), ui_colorpicker_square(), ui_item_array(), ui_item_enum_expand_elem_exec(), ui_item_with_label(), ui_template_list_layout_draw(), uiDefAutoButR(), uiItemFullR(), and uiTemplateColorPicker().
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 | ||
) |
Definition at line 5134 of file interface.cc.
References height, max, min, str, type, UI_BUT_POIN_SHORT, uiDefBut(), width, x, and y.
Referenced by colorband_buttons_layout(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_slot_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), and uiTemplatePreview().
uiBut* uiDefIconBlockBut | ( | uiBlock * | block, |
uiBlockCreateFunc | func, | ||
void * | arg, | ||
int | retval, | ||
int | icon, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
const char * | tip | ||
) |
Block button containing icon.
Definition at line 6193 of file interface.cc.
References uiBut::block_create_func, uiBut::drawflag, height, UI_BTYPE_BLOCK, UI_BUT_ICON_LEFT, ui_but_update(), ui_def_but(), ui_def_but_icon(), UI_HAS_ICON, width, x, and y.
Referenced by colorband_buttons_layout(), curvemap_buttons_layout(), and CurveProfile_buttons_layout().
uiBut* uiDefIconBut | ( | uiBlock * | block, |
int | type, | ||
int | retval, | ||
int | icon, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
void * | poin, | ||
float | min, | ||
float | max, | ||
float | a1, | ||
float | a2, | ||
const char * | tip | ||
) |
If a1==1.0 then a2 is an extra icon blending factor (alpha 0.0 - 1.0).
Definition at line 5336 of file interface.cc.
References height, max, min, type, ui_but_update_and_icon_set(), ui_def_but(), width, x, and y.
Referenced by curvemap_buttons_layout(), CurveProfile_buttons_layout(), envelope_panel_draw(), file_draw_icon(), fmodifier_panel_header(), graph_draw_driver_settings_panel(), blender::ed::space_node::node_add_error_message_button(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_extra_info_row(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_socket_draw_nested(), outliner_draw_mode_column_toggle(), outliner_draw_warning_tree_element(), template_ID(), tselem_draw_icon(), uiDefIconButBit(), uiDefIconButI(), uiDefIconButS(), uiItemDecoratorR_prop(), uiItemL_(), uiItemsFullEnumO_items(), uiTemplateIcon(), uiTemplateIconView(), uiTemplateStatusInfo(), and uiTemplateTextureShow().
uiBut* uiDefIconButBitC | ( | uiBlock * | block, |
int | type, | ||
int | bit, | ||
int | retval, | ||
int | icon, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
char * | poin, | ||
float | min, | ||
float | max, | ||
float | a1, | ||
float | a2, | ||
const char * | tip | ||
) |
Definition at line 5516 of file interface.cc.
References height, max, min, type, UI_BUT_POIN_CHAR, uiDefIconButBit(), width, x, and y.
Referenced by draw_setting_widget().
uiBut* uiDefIconButBitI | ( | uiBlock * | block, |
int | type, | ||
int | bit, | ||
int | retval, | ||
int | icon, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
int * | poin, | ||
float | min, | ||
float | max, | ||
float | a1, | ||
float | a2, | ||
const char * | tip | ||
) |
Definition at line 5422 of file interface.cc.
References height, max, min, type, UI_BUT_POIN_INT, uiDefIconButBit(), width, x, and y.
Referenced by draw_setting_widget(), modifier_panel_header(), outliner_draw_restrictbuts(), ui_template_list_layout_draw(), and uiTemplateMarker().
uiBut* uiDefIconButBitS | ( | uiBlock * | block, |
int | type, | ||
int | bit, | ||
int | retval, | ||
int | icon, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
short * | poin, | ||
float | min, | ||
float | max, | ||
float | a1, | ||
float | a2, | ||
const char * | tip | ||
) |
Definition at line 5484 of file interface.cc.
References height, max, min, type, UI_BUT_POIN_SHORT, uiDefIconButBit(), width, x, and y.
Referenced by draw_setting_widget(), outliner_draw_restrictbuts(), and outliner_draw_userbuts().
uiBut* uiDefIconButI | ( | uiBlock * | block, |
int | type, | ||
int | retval, | ||
int | icon, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
int * | poin, | ||
float | min, | ||
float | max, | ||
float | a1, | ||
float | a2, | ||
const char * | tip | ||
) |
Definition at line 5392 of file interface.cc.
References height, max, min, type, UI_BUT_POIN_INT, uiDefIconBut(), width, x, and y.
Referenced by ui_template_list_layout_draw(), uiItemV(), uiTemplateHistogram(), uiTemplateTrack(), uiTemplateVectorscope(), and uiTemplateWaveform().
uiBut* uiDefIconButO | ( | uiBlock * | block, |
int | type, | ||
const char * | opname, | ||
wmOperatorCallContext | opcontext, | ||
int | icon, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
const char * | tip | ||
) |
Definition at line 5608 of file interface.cc.
References height, ot, type, uiDefIconButO_ptr(), width, WM_operatortype_find(), x, and y.
Referenced by ANIM_channel_draw_widgets(), outliner_draw_overrides_restrictbuts(), template_ID(), template_keymap_item_properties(), template_search_add_button_operator(), ui_block_colorpicker(), ui_item_with_label(), uiTemplatePalette(), and uiTemplateReportsBanner().
uiBut* uiDefIconButO_ptr | ( | uiBlock * | block, |
int | type, | ||
struct wmOperatorType * | ot, | ||
wmOperatorCallContext | opcontext, | ||
int | icon, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
const char * | tip | ||
) |
Definition at line 5593 of file interface.cc.
References height, ot, type, ui_but_update_and_icon_set(), ui_def_but_operator_ptr(), width, x, and y.
Referenced by uiDefIconButO(), uiDefIconTextButO(), and uiItemFullO_ptr_ex().
uiBut* uiDefIconButR | ( | uiBlock * | block, |
int | type, | ||
int | retval, | ||
int | icon, | ||
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 | ||
) |
Definition at line 5548 of file interface.cc.
References height, max, min, ptr, type, ui_but_update_and_icon_set(), ui_def_but_rna_propname(), width, x, and y.
Referenced by template_ID().
uiBut* uiDefIconButR_prop | ( | uiBlock * | block, |
int | type, | ||
int | retval, | ||
int | icon, | ||
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 | ||
) |
Definition at line 5570 of file interface.cc.
References height, max, min, ptr, type, ui_but_update_and_icon_set(), ui_def_but_rna(), width, x, and y.
Referenced by clip_draw_dopesheet_channels(), draw_channel_widget_lock(), draw_channel_widget_mute(), outliner_draw_restrictbuts(), ui_icon_view_menu_cb(), ui_item_enum_expand_elem_exec(), uiDefAutoButR(), and uiItemFullR().
uiBut* uiDefIconButS | ( | uiBlock * | block, |
int | type, | ||
int | retval, | ||
int | icon, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
short * | poin, | ||
float | min, | ||
float | max, | ||
float | a1, | ||
float | a2, | ||
const char * | tip | ||
) |
Definition at line 5454 of file interface.cc.
References height, max, min, type, UI_BUT_POIN_SHORT, uiDefIconBut(), width, x, and y.
Referenced by uiTemplatePreview().
uiBut* uiDefIconMenuBut | ( | uiBlock * | block, |
uiMenuCreateFunc | func, | ||
void * | arg, | ||
int | icon, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
const char * | tip | ||
) |
Definition at line 6143 of file interface.cc.
References uiBut::drawflag, height, uiBut::menu_create_func, UI_BTYPE_PULLDOWN, UI_BUT_ICON_LEFT, ui_but_update(), ui_def_but(), ui_def_but_icon(), UI_HAS_ICON, width, x, and y.
Referenced by ui_item_menu(), uiTemplateNodeLink(), and uiTemplatePalette().
uiBut* uiDefIconTextBlockBut | ( | uiBlock * | block, |
uiBlockCreateFunc | func, | ||
void * | arg, | ||
int | icon, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
const char * | tip | ||
) |
Block button containing both string label and icon.
Definition at line 6165 of file interface.cc.
References uiBut::block_create_func, uiBut::drawflag, uiBut::flag, height, str, UI_BTYPE_BLOCK, UI_BUT_ICON_LEFT, ui_but_submenu_enable(), ui_but_update(), ui_def_but(), ui_def_but_icon(), UI_HAS_ICON, width, x, and y.
uiBut* uiDefIconTextBut | ( | uiBlock * | block, |
int | type, | ||
int | retval, | ||
int | icon, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
void * | poin, | ||
float | min, | ||
float | max, | ||
float | a1, | ||
float | a2, | ||
const char * | tip | ||
) |
Definition at line 5623 of file interface.cc.
References uiBut::drawflag, height, max, min, str, type, UI_BUT_ICON_LEFT, ui_but_update_and_icon_set(), ui_def_but(), width, x, and y.
Referenced by asset_view_draw_item(), block_create_autorun_warning(), colorband_buttons_layout(), colorband_tools_func(), curvemap_tools_func(), CurveProfile_buttons_layout(), CurveProfile_presets_func(), CurveProfile_tools_func(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_byte_color(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_content_cell(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_float_vector(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_left_column_cell(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_top_row_cell(), graph_draw_driver_settings_panel(), save_file_forwardcompat_cancel_button(), save_file_forwardcompat_overwrite_button(), save_file_forwardcompat_saveas_button(), template_ID(), template_id_def_new_but(), template_operator_property_buts_draw_single(), template_texture_user_menu(), blender::ed::space_node::ui_node_menu_column(), UI_pie_menu_begin(), ui_pie_menu_level_create(), ui_popup_context_menu_for_button(), UI_popup_menu_begin_ex(), uiDefIconTextButF(), uiDefIconTextButI(), uiItemL_(), uiTemplateRunningJobs(), wm_block_file_close_cancel_button(), wm_block_file_close_discard_button(), and wm_block_file_close_save_button().
uiBut* uiDefIconTextButF | ( | uiBlock * | block, |
int | type, | ||
int | retval, | ||
int | icon, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
float * | poin, | ||
float | min, | ||
float | max, | ||
float | a1, | ||
float | a2, | ||
const char * | tip | ||
) |
Definition at line 5645 of file interface.cc.
References height, max, min, str, type, UI_BUT_POIN_FLOAT, uiDefIconTextBut(), width, x, and y.
uiBut* uiDefIconTextButI | ( | uiBlock * | block, |
int | type, | ||
int | retval, | ||
int | icon, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
int * | poin, | ||
float | min, | ||
float | max, | ||
float | a1, | ||
float | a2, | ||
const char * | tip | ||
) |
Definition at line 5677 of file interface.cc.
References height, max, min, str, type, UI_BUT_POIN_INT, uiDefIconTextBut(), width, x, and y.
Referenced by ui_def_but_rna__menu(), and uiItemV().
uiBut* uiDefIconTextButO | ( | uiBlock * | block, |
int | type, | ||
const char * | opname, | ||
wmOperatorCallContext | opcontext, | ||
int | icon, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
const char * | tip | ||
) |
Definition at line 5774 of file interface.cc.
References height, ot, str, type, uiDefIconButO_ptr(), uiDefIconTextButO_ptr(), width, WM_operatortype_find(), x, and y.
Referenced by file_draw_invalid_asset_library_hint(), template_ID(), template_id_def_new_but(), and uiTemplateCryptoPicker().
uiBut* uiDefIconTextButO_ptr | ( | uiBlock * | block, |
int | type, | ||
struct wmOperatorType * | ot, | ||
wmOperatorCallContext | opcontext, | ||
int | icon, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
const char * | tip | ||
) |
Definition at line 5757 of file interface.cc.
References uiBut::drawflag, height, ot, str, type, UI_BUT_ICON_LEFT, ui_but_update_and_icon_set(), ui_def_but_operator_ptr(), width, x, and y.
Referenced by uiDefIconTextButO(), and uiItemFullO_ptr_ex().
uiBut* uiDefIconTextButR | ( | uiBlock * | block, |
int | type, | ||
int | retval, | ||
int | icon, | ||
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 | ||
) |
Definition at line 5709 of file interface.cc.
References uiBut::drawflag, height, max, min, ptr, str, type, UI_BUT_ICON_LEFT, ui_but_update_and_icon_set(), ui_def_but_rna_propname(), width, x, and y.
Referenced by add_attribute_search_button(), and blender::ed::space_node::node_geometry_add_attribute_search_button().
uiBut* uiDefIconTextButR_prop | ( | uiBlock * | block, |
int | type, | ||
int | retval, | ||
int | icon, | ||
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 | ||
) |
Definition at line 5733 of file interface.cc.
References uiBut::drawflag, height, max, min, ptr, str, type, UI_BUT_ICON_LEFT, ui_but_update_and_icon_set(), ui_def_but_rna(), width, x, and y.
Referenced by ui_icon_view_menu_cb(), ui_item_enum_expand_elem_exec(), ui_template_list_layout_draw(), uiDefAutoButR(), and uiItemFullR().
uiBut* uiDefIconTextMenuBut | ( | uiBlock * | block, |
uiMenuCreateFunc | func, | ||
void * | arg, | ||
int | icon, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
const char * | tip | ||
) |
Definition at line 6118 of file interface.cc.
References uiBut::drawflag, height, uiBut::menu_create_func, str, UI_BTYPE_PULLDOWN, UI_BUT_ICON_LEFT, ui_but_submenu_enable(), ui_but_update(), ui_def_but(), ui_def_but_icon(), UI_HAS_ICON, width, x, and y.
Referenced by ui_item_menu(), and uiTemplateTextureUser().
uiBut* uiDefMenuBut | ( | uiBlock * | block, |
uiMenuCreateFunc | func, | ||
void * | arg, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
const char * | tip | ||
) |
Definition at line 6101 of file interface.cc.
References height, uiBut::menu_create_func, str, UI_BTYPE_PULLDOWN, ui_but_update(), ui_def_but(), width, x, and y.
Referenced by ui_item_menu(), uiblock_layer_pass_buttons(), uiTemplateNodeLink(), and uiTemplateTextureUser().
uiBut* uiDefPulldownBut | ( | uiBlock * | block, |
uiBlockCreateFunc | func, | ||
void * | arg, | ||
const char * | str, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
const char * | tip | ||
) |
Definition at line 6084 of file interface.cc.
References uiBut::block_create_func, height, str, UI_BTYPE_PULLDOWN, ui_but_update(), ui_def_but(), width, x, and y.
uiBut* uiDefSearchBut | ( | uiBlock * | block, |
void * | arg, | ||
int | retval, | ||
int | icon, | ||
int | maxlen, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
float | a1, | ||
float | a2, | ||
const char * | tip | ||
) |
arg | A pointer to string/name, use UI_but_func_search_set() below to make this work. here a1 and a2 , if set, control thumbnail preview rows/cols. |
Definition at line 6217 of file interface.cc.
References uiBut::drawflag, height, UI_BTYPE_SEARCH_MENU, UI_BUT_ICON_LEFT, UI_BUT_TEXT_LEFT, ui_but_update(), ui_def_but(), ui_def_but_icon(), UI_HAS_ICON, width, x, and y.
Referenced by blender::ed::space_node::create_search_popup_block(), merged_element_search_menu(), blender::ed::space_node::node_find_menu(), template_common_search_menu(), uiDefSearchButO_ptr(), uiTemplateMenuSearch(), uiTemplateOperatorSearch(), and wm_block_search_menu().
uiBut* uiDefSearchButO_ptr | ( | uiBlock * | block, |
struct wmOperatorType * | ot, | ||
struct IDProperty * | properties, | ||
void * | arg, | ||
int | retval, | ||
int | icon, | ||
int | maxlen, | ||
int | x, | ||
int | y, | ||
short | width, | ||
short | height, | ||
float | a1, | ||
float | a2, | ||
const char * | tip | ||
) |
Same parameters as for uiDefSearchBut, with additional operator type and properties, used by callback to call again the right op with the right options (properties values).
Definition at line 6406 of file interface.cc.
References PointerRNA::data, height, IDP_CopyProperty(), uiBut::opcontext, operator_enum_search_exec_fn(), operator_enum_search_update_fn(), uiBut::optype, ot, ptr, UI_but_func_search_set(), UI_but_operator_ptr_get(), ui_searchbox_create_generic(), uiDefSearchBut(), width, WM_OP_EXEC_DEFAULT, x, and y.
Referenced by wm_enum_search_menu().
void uiItemBooleanO | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
const char * | opname, | ||
const char * | propname, | ||
int | value | ||
) |
Definition at line 1761 of file interface_layout.c.
References PointerRNA::data, uiTextIconPadFactor::icon, NULL, uiLayoutRoot::opcontext, ot, ptr, RNA_boolean_set(), uiLayout::root, UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by modifier_ops_extra_draw(), parent_set_invoke_menu(), pose_ik_add_invoke(), ui_popup_context_menu_for_button(), and uv_mark_seam_invoke().
void uiItemDecoratorR | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
int | index | ||
) |
Insert a decorator item for a button with the same property as prop. To force inserting a blank dummy element, NULL can be passed for ptr and propname.
Definition at line 3100 of file interface_layout.c.
References NULL, ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), and uiItemDecoratorR_prop().
Referenced by add_attribute_search_or_value_buttons(), data_panel_draw(), panel_draw(), blender::ed::space_node::ui_node_draw_input(), and uiTemplateCacheFileTimeSettings().
void uiItemDecoratorR_prop | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
struct PropertyRNA * | prop, | ||
int | index | ||
) |
Insert a decorator item for a button with the same property as prop. To force inserting a blank dummy element, NULL can be passed for ptr and prop.
Definition at line 3042 of file interface_layout.c.
References uiLayoutRoot::block, uiButDecorator::but, col, ELEM, uiBut::flag, NULL, ptr, RNA_property_animateable(), RNA_property_array_check(), RNA_property_array_length(), uiButDecorator::rnaindex, uiButDecorator::rnapoin, uiButDecorator::rnaprop, uiLayout::root, TIP_, UI_block_layout_set_current(), UI_BTYPE_DECORATOR, ui_but_anim_decorate_cb(), UI_BUT_DISABLED, UI_BUT_DRAG_LOCK, UI_but_func_set(), UI_BUT_UNDO, UI_EMBOSS_NONE, ui_item_rna_is_expand(), UI_UNIT_X, UI_UNIT_Y, uiDefIconBut(), and uiLayoutColumn().
Referenced by uiItemDecoratorR(), and uiItemFullR().
void uiItemEnumO | ( | uiLayout * | layout, |
const char * | opname, | ||
const char * | name, | ||
int | icon, | ||
const char * | propname, | ||
int | value | ||
) |
Definition at line 1437 of file interface_layout.c.
References uiTextIconPadFactor::icon, ot, RNA_warning, ui_item_disabled(), uiItemEnumO_ptr(), and WM_operatortype_find().
Referenced by armature_parent_clear_invoke(), armature_parent_set_invoke(), and blender::ed::space_node::node_group_separate_invoke().
void uiItemEnumO_ptr | ( | uiLayout * | layout, |
struct wmOperatorType * | ot, | ||
const char * | name, | ||
int | icon, | ||
const char * | propname, | ||
int | value | ||
) |
Definition at line 1413 of file interface_layout.c.
References PointerRNA::data, uiTextIconPadFactor::icon, NULL, uiLayoutRoot::opcontext, ot, ptr, RNA_property_enum_set(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::root, PointerRNA::type, ui_menu_enumpropname(), uiItemFullO_ptr(), and WM_operator_properties_create_ptr().
Referenced by parent_set_invoke_menu(), text_resolve_conflict_invoke(), and uiItemEnumO().
void uiItemEnumO_string | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
const char * | opname, | ||
const char * | propname, | ||
const char * | value | ||
) |
Definition at line 1713 of file interface_layout.c.
References uiLayoutRoot::block, PointerRNA::data, uiBlock::evil_C, free(), uiTextIconPadFactor::icon, MEM_freeN, NULL, uiLayoutRoot::opcontext, ot, ptr, RNA_enum_value_from_id(), RNA_property_enum_items(), RNA_property_enum_set(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::root, PointerRNA::type, ui_menu_enumpropname(), UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by panel_draw().
void uiItemEnumO_value | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
const char * | opname, | ||
const char * | propname, | ||
int | value | ||
) |
For use in cases where we have.
Definition at line 1683 of file interface_layout.c.
References PointerRNA::data, uiTextIconPadFactor::icon, NULL, uiLayoutRoot::opcontext, ot, ptr, RNA_property_enum_set(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::root, PointerRNA::type, ui_menu_enumpropname(), UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by ui_template_palette_menu().
void uiItemEnumR | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
int | value | ||
) |
Definition at line 2543 of file interface_layout.c.
References NULL, ptr, RNA_ENUM_VALUE, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), and uiItemFullR().
void uiItemEnumR_prop | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
struct PointerRNA * | ptr, | ||
struct PropertyRNA * | prop, | ||
int | value | ||
) |
Definition at line 2526 of file interface_layout.c.
References PROP_ENUM, ptr, RNA_ENUM_VALUE, RNA_property_identifier(), RNA_property_type(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), and uiItemFullR().
Referenced by uiItemsEnumR().
void uiItemEnumR_string | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
const char * | value, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 2612 of file interface_layout.c.
References NULL, ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), uiItemEnumR_string_prop(), and UNLIKELY.
void uiItemEnumR_string_prop | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
struct PropertyRNA * | prop, | ||
const char * | value, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 2561 of file interface_layout.c.
References Freestyle::a, uiLayoutRoot::block, CTX_IFACE_, uiBlock::evil_C, free(), EnumPropertyItem::identifier, MEM_freeN, NULL, PROP_ENUM, ptr, RNA_ENUM_VALUE, RNA_enum_value_from_id(), RNA_property_enum_items(), RNA_property_identifier(), RNA_property_translation_context(), RNA_property_type(), RNA_struct_identifier(), RNA_warning, uiLayout::root, PointerRNA::type, ui_item_disabled(), UI_ITEM_R_ICON_ONLY, uiItemFullR(), and UNLIKELY.
Referenced by uiItemEnumR_string().
void uiItemFloatO | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
const char * | opname, | ||
const char * | propname, | ||
float | value | ||
) |
Definition at line 1795 of file interface_layout.c.
References PointerRNA::data, uiTextIconPadFactor::icon, NULL, uiLayoutRoot::opcontext, ot, ptr, RNA_float_set(), uiLayout::root, UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
void uiItemFullO | ( | uiLayout * | layout, |
const char * | opname, | ||
const char * | name, | ||
int | icon, | ||
struct IDProperty * | properties, | ||
wmOperatorCallContext | context, | ||
int | flag, | ||
struct PointerRNA * | r_opptr | ||
) |
Definition at line 1368 of file interface_layout.c.
References blender::compositor::context, uiTextIconPadFactor::icon, ot, PointerRNA_NULL, UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), and WM_operatortype_find().
Referenced by add_attribute_search_or_value_buttons(), blender::ed::asset_browser::AssetCatalogTreeViewItem::build_context_menu(), constraint_ops_extra_draw(), gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), modifier_ops_extra_draw(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), blender::nodes::node_composite_switchview_cc::node_composit_buts_switch_view_ex(), blender::nodes::node_composite_image_cc::node_composit_buts_viewlayers(), panel_draw(), recent_files_menu_draw(), screen_area_menu_items(), screen_area_options_invoke(), subdivisions_panel_draw(), ui_popup_context_menu_for_button(), uiItemO(), uiTemplateOperatorRedoProperties(), uiTemplateRecentFiles(), and view3d_panel_vgroup().
void uiItemFullO_ptr | ( | uiLayout * | layout, |
struct wmOperatorType * | ot, | ||
const char * | name, | ||
int | icon, | ||
struct IDProperty * | properties, | ||
wmOperatorCallContext | context, | ||
int | flag, | ||
struct PointerRNA * | r_opptr | ||
) |
Definition at line 1342 of file interface_layout.c.
References blender::compositor::context, uiTextIconPadFactor::icon, ot, and uiItemFullO_ptr_ex().
Referenced by dyntopo_warning_popup(), move_to_collection_menu_create(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), parent_set_invoke_menu(), poselib_add_menu_invoke__replacemenu(), screen_user_menu_draw(), template_operator_property_buts_draw_single(), ui_but_menu_add_path_operators(), ui_popup_context_menu_for_button(), uiItemBooleanO(), uiItemEnumO_ptr(), uiItemEnumO_string(), uiItemEnumO_value(), uiItemFloatO(), uiItemFullO(), uiItemIntO(), uiItemsFullEnumO_items(), uiItemStringO(), uiTemplateEditModeSelection(), unpack_menu(), WM_operator_confirm_message_ex(), and workspace_append_button().
void uiItemFullOMenuHold_ptr | ( | uiLayout * | layout, |
struct wmOperatorType * | ot, | ||
const char * | name, | ||
int | icon, | ||
struct IDProperty * | properties, | ||
wmOperatorCallContext | context, | ||
int | flag, | ||
const char * | menu_id, | ||
struct PointerRNA * | r_opptr | ||
) |
Definition at line 1354 of file interface_layout.c.
References BLI_strdup(), blender::compositor::context, uiTextIconPadFactor::icon, ot, UI_but_func_hold_set(), ui_item_menu_hold(), and uiItemFullO_ptr_ex().
void uiItemFullR | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
struct PropertyRNA * | prop, | ||
int | index, | ||
int | value, | ||
int | flag, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 2012 of file interface_layout.c.
References Freestyle::a, uiBut::a1, uiLayout::activate_init, BLI_assert, BLI_insertlinkafter(), BLI_remlink(), uiLayoutRoot::block, uiBlock::buttons, uiBut::drawflag, ELEM, uiBut::emboss, uiLayout::emboss, ListBase::first, uiBlock::flag, uiItem::flag, uiBut::icon, uiLayout::item, ListBase::last, len, max_ii(), uiBut::next, NULL, PROP_BOOLEAN, PROP_ENUM, PROP_ENUM_FLAG, PROP_FLOAT, PROP_ICONS_CONSECUTIVE, PROP_INT, PROP_POINTER, PROP_STRING, PROP_STRING_SEARCH_SUGGESTION, ptr, uiLayout::redalert, RNA_ENUM_VALUE, RNA_NO_INDEX, RNA_property_array_check(), RNA_property_array_item_char(), RNA_property_array_length(), RNA_property_boolean_get(), RNA_property_boolean_get_index(), RNA_property_enum_get(), RNA_property_flag(), RNA_property_string_search_flag(), RNA_property_type(), RNA_property_ui_icon(), RNA_property_ui_name(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, uiLayout::root, uiLayout::space, uiButNumber::step_size, str, uiBut::str, STRNCPY_RLEN, uiBut::type, uiLayoutRoot::type, type, UI_block_layout_set_current(), UI_BLOCK_LIST_ITEM, ui_block_new_button_group(), UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_ICON_TOGGLE_N, UI_BTYPE_LABEL, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_ROW, UI_BTYPE_TEXT, UI_BTYPE_TOGGLE, UI_BUT_ACTIVATE_ON_INIT, ui_but_add_search(), ui_but_change_type(), UI_BUT_CHECKBOX_INVERT, UI_but_flag_enable(), UI_BUT_LIST_ITEM, UI_BUT_REDALERT, UI_BUT_TEXT_LEFT, UI_BUT_TEXT_RIGHT, ui_def_but_icon_clear(), UI_EMBOSS_NONE, UI_EMBOSS_NONE_OR_STATUS, ui_item_array(), ui_item_enum_expand(), UI_ITEM_INSIDE_PROP_SEP, ui_item_name_add_colon(), UI_ITEM_PROP_DECORATE, UI_ITEM_PROP_DECORATE_NO_PAD, UI_ITEM_PROP_SEP, UI_ITEM_PROP_SEP_DIVIDE, ui_item_prop_split_layout_hack(), UI_ITEM_R_CHECKBOX_INVERT, UI_ITEM_R_COMPACT, UI_ITEM_R_EXPAND, UI_ITEM_R_FORCE_BLANK_DECORATE, UI_ITEM_R_ICON_NEVER, UI_ITEM_R_ICON_ONLY, UI_ITEM_R_NO_BG, UI_ITEM_R_SLIDER, UI_ITEM_R_SPLIT_EMPTY_NAME, UI_ITEM_R_TOGGLE, ui_item_rna_is_expand(), ui_item_rna_size(), ui_item_with_label(), ui_layout_heading_find(), ui_layout_heading_label_add(), UI_LAYOUT_HORIZONTAL, UI_LAYOUT_MENU, UI_LAYOUT_PIEMENU, UI_MAX_DRAW_STR, UI_MAX_NAME_STR, UI_UNIT_Y, uiDefAutoButR(), uiDefBut(), uiDefButR_prop(), uiDefIconButR_prop(), uiDefIconTextButR_prop(), uiItemDecoratorR_prop(), uiLayoutColumn(), uiLayoutGetLocalDir(), uiLayoutRow(), uiLayoutSplit(), and w().
Referenced by blur_panel_draw(), CurveProfile_buttons_layout(), generator_panel_draw(), intersection_panel_draw(), material_mask_panel_draw(), panel_draw(), screen_user_menu_draw(), template_keymap_item_properties(), UI_pie_menu_invoke_from_rna_enum(), uiDefAutoButsRNA(), uiItemEnumR(), uiItemEnumR_prop(), uiItemEnumR_string_prop(), uiItemFullR_with_menu(), uiItemFullR_with_popover(), uiItemR(), uilist_draw_item_default(), uiTemplateAnyID(), and uiTemplateAssetView().
void uiItemFullR_with_menu | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
struct PropertyRNA * | prop, | ||
int | index, | ||
int | value, | ||
int | flag, | ||
const char * | name, | ||
int | icon, | ||
const char * | menu_type | ||
) |
Definition at line 2495 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::buttons, ListBase::last, uiBut::next, NULL, ptr, RNA_property_identifier(), RNA_struct_identifier(), RNA_warning, uiBut::rnaprop, uiLayout::root, uiBut::type, PointerRNA::type, UI_BTYPE_MENU, ui_but_rna_menu_convert_to_menu_type(), ui_item_disabled(), and uiItemFullR().
void uiItemFullR_with_popover | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
struct PropertyRNA * | prop, | ||
int | index, | ||
int | value, | ||
int | flag, | ||
const char * | name, | ||
int | icon, | ||
const char * | panel_type | ||
) |
Use a wrapper function since re-implementing all the logic in this function would be messy.
Definition at line 2464 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::buttons, ELEM, ListBase::last, uiBut::next, NULL, ptr, RNA_property_identifier(), RNA_struct_identifier(), RNA_warning, uiBut::rnaprop, uiLayout::root, uiBut::type, PointerRNA::type, UI_BTYPE_COLOR, UI_BTYPE_MENU, ui_but_rna_menu_convert_to_panel_type(), ui_item_disabled(), and uiItemFullR().
void uiItemIntO | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
const char * | opname, | ||
const char * | propname, | ||
int | value | ||
) |
Definition at line 1778 of file interface_layout.c.
References PointerRNA::data, uiTextIconPadFactor::icon, NULL, uiLayoutRoot::opcontext, ot, ptr, RNA_int_set(), uiLayout::root, UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by ED_collection_hide_menu_draw(), move_to_collection_menu_create(), move_to_collection_menus_items(), pose_groups_menu_invoke(), poselib_add_menu_invoke(), repeat_history_invoke(), spreadsheet_filter_panel_draw_header(), and undo_history_draw_menu().
Definition at line 3254 of file interface_layout.c.
References uiTextIconPadFactor::icon, and uiItemL_().
Referenced by add_attribute_search_or_value_buttons(), blender::ui::BasicTreeViewItem::add_label(), bake_panel_draw(), block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_forwardcompat_dialog(), blender::ed::spreadsheet::GeometryDataSetTreeViewItem::build_row(), buttons_panel_context_draw(), chaining_panel_draw(), composition_panel_draw(), draw_constraint_header(), draw_property_for_output_socket(), driver_dvar_invalid_name_query_cb(), dyntopo_warning_popup(), edge_types_panel_draw(), face_mark_panel_draw(), face_mark_panel_draw_header(), file_forwardcompat_detailed_info_show(), fmodifier_panel_header(), generator_panel_draw(), gpencil_modifier_panel_end(), gpencil_modifier_panel_header(), graph_draw_driven_property_panel(), graph_draw_driver_settings_panel(), graph_panel_drivers_popover(), graph_panel_key_properties(), graph_panel_properties(), image_new_draw(), internal_dependencies_panel_draw(), menu_add_shortcut(), menu_change_shortcut(), metadata_panel_draw_field(), modifier_panel_end(), nla_panel_animdata(), nla_panel_stripname(), blender::ed::space_node::node_buts_image_user(), blender::nodes::node_composite_blur_cc::node_composit_buts_blur(), blender::nodes::node_composite_channel_matte_cc::node_composit_buts_channel_matte(), blender::nodes::node_composite_color_spill_cc::node_composit_buts_color_spill(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection_ex(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy(), blender::nodes::node_composite_directionalblur_cc::node_composit_buts_dblur(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::nodes::node_composite_denoise_cc::node_composit_buts_denoise(), blender::nodes::node_composite_distance_matte_cc::node_composit_buts_distance_matte(), blender::nodes::node_composite_double_edge_mask_cc::node_composit_buts_double_edge_mask(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), blender::nodes::node_composite_vec_blur_cc::node_composit_buts_vecblur(), blender::ed::space_node::node_file_output_socket_draw(), blender::nodes::node_shader_tex_sky_cc::node_shader_buts_tex_sky(), blender::nodes::node_shader_vertex_color_cc::node_shader_buts_vertex_color(), blender::ed::space_node::node_socket_button_label(), blender::ed::space_node::node_socket_undefined_draw(), blender::ed::space_node::node_socket_undefined_interface_draw(), occlusion_panel_draw(), options_light_reference_draw(), options_panel_draw(), output_attribute_panel_draw(), panel_draw(), recent_files_menu_draw(), screen_user_menu_draw(), shaderfx_panel_end(), shaderfx_panel_header(), spreadsheet_filter_panel_draw(), spreadsheet_filter_panel_draw_header(), spreadsheet_footer_region_draw(), blender::ed::space_node::std_node_socket_draw(), blender::ui::template_breadcrumbs(), template_keymap_item_properties(), template_operator_property_buts_draw_single(), template_texture_user_menu(), ui_def_but_rna__menu(), ui_def_but_rna__menu_type(), ui_def_but_rna__panel_type(), ui_item_enum_expand_exec(), ui_item_menu_hold(), ui_item_with_label(), ui_layout_heading_label_add(), blender::ed::space_node::ui_node_draw_input(), blender::ed::space_node::ui_node_menu_column(), ui_paneltype_draw_impl(), UI_popup_menu_reports(), ui_template_list_layout_draw(), blender::ed::space_node::ui_template_node_link_menu(), ui_template_palette_menu(), uiDefAutoButsRNA(), uiItemsEnumR(), uiItemsFullEnumO_items(), uilist_draw_item_default(), uiTemplateAnyID(), uiTemplateCacheFileProcedural(), uiTemplateEventFromKeymapItem(), uiTemplateImageInfo(), uiTemplateImageSettings(), uiTemplateInputStatus(), uiTemplateMovieclipInformation(), uiTemplateStatusInfo(), uiTemplateTextureUser(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_posearmature_buts(), v3d_transform_butsR(), vgroup_panel_draw(), and WM_window_modal_keymap_status_draw().
Definition at line 3239 of file interface_layout.c.
References uiTextIconPadFactor::icon, UI_but_flag_enable(), UI_BUT_REDALERT, UI_SELECT_DRAW, and uiItemL_().
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_forwardcompat_dialog(), and wm_block_create_about().
Helper to add a label and creates a property split layout if needed.
Definition at line 3274 of file interface_layout.c.
References uiPropertySplitWrapper::decorate_column, uiItem::flag, uiTextIconPadFactor::icon, uiLayout::item, uiPropertySplitWrapper::label_column, uiPropertySplitWrapper::property_row, uiTextIconPadFactor::text, UI_block_layout_set_current(), ui_item_name_add_colon(), UI_ITEM_PROP_SEP, UI_MAX_NAME_STR, uiItemL_(), uiItemPropertySplitWrapperCreate(), and uiLayoutGetBlock().
Referenced by graph_panel_key_properties(), template_ID(), ui_item_with_label(), and ui_layout_heading_label_add().
void uiItemLDrag | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | name, | ||
int | icon | ||
) |
Label icon for dragging.
Definition at line 3296 of file interface_layout.c.
References uiTextIconPadFactor::icon, PointerRNA::owner_id, ptr, RNA_struct_is_ID(), PointerRNA::type, UI_but_drag_set_id(), and uiItemL_().
Referenced by buttons_panel_context_draw().
Definition at line 3009 of file interface_layout.c.
References uiTextIconPadFactor::icon, NULL, RNA_warning, uiItemM_ptr(), and WM_menutype_find().
Referenced by context_menu_invoke(), and template_operator_property_buts_draw_single().
Menu.
Definition at line 2983 of file interface_layout.c.
References uiLayoutRoot::block, C, CTX_IFACE_, MenuType::description, uiBlock::evil_C, uiTextIconPadFactor::icon, MenuType::label, NULL, uiLayout::root, TIP_, MenuType::translation_context, uiLayoutRoot::type, ui_item_menu(), ui_item_menutype_func(), UI_LAYOUT_MENU, and WM_menutype_poll().
Referenced by screen_user_menu_draw(), ui_popup_context_menu_for_button(), and uiItemM().
Menu contents.
Definition at line 3019 of file interface_layout.c.
References uiLayoutRoot::block, C, uiLayout::context, CTX_store_get(), CTX_store_set(), uiBlock::evil_C, NULL, RNA_warning, uiLayout::root, UI_menutype_draw(), WM_menutype_find(), and WM_menutype_poll().
Referenced by outliner_operator_menu().
void uiItemMenuEnumFullO | ( | uiLayout * | layout, |
struct bContext * | C, | ||
const char * | opname, | ||
const char * | propname, | ||
const char * | name, | ||
int | icon, | ||
struct PointerRNA * | r_opptr | ||
) |
Definition at line 3504 of file interface_layout.c.
References C, ot, RNA_warning, wmOperatorType::srna, ui_item_disabled(), UI_OPERATOR_ERROR_RET, uiItemMenuEnumFullO_ptr(), and WM_operatortype_find().
Referenced by uiItemMenuEnumO().
void uiItemMenuEnumFullO_ptr | ( | uiLayout * | layout, |
struct bContext * | C, | ||
struct wmOperatorType * | ot, | ||
const char * | propname, | ||
const char * | name, | ||
int | icon, | ||
struct PointerRNA * | r_opptr | ||
) |
Definition at line 3459 of file interface_layout.c.
References BLI_assert, BLI_strncpy(), uiLayoutRoot::block, C, PointerRNA::data, uiBlock::flag, wmOperatorType::idname, wmOperatorType::invoke, MEM_callocN, menu_item_enum_opname_menu(), NULL, uiLayoutRoot::opcontext, MenuItemLevel::opcontext, MenuItemLevel::opname, uiBut::opptr, ot, wmOperatorType::prop, MenuItemLevel::propname, uiLayout::root, wmOperatorType::srna, uiLayoutRoot::type, UI_BLOCK_LOOP, ui_but_add_shortcut(), ui_item_menu(), UI_LAYOUT_MENU, WM_key_event_operator_string(), WM_operator_properties_alloc(), WM_operator_properties_create_ptr(), and WM_operatortype_name().
Referenced by uiItemMenuEnumFullO().
void uiItemMenuEnumO | ( | uiLayout * | layout, |
struct bContext * | C, | ||
const char * | opname, | ||
const char * | propname, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 3525 of file interface_layout.c.
References C, NULL, and uiItemMenuEnumFullO().
Referenced by file_panel_asset_catalog_buttons_draw(), graph_panel_modifiers(), and nla_panel_modifiers().
void uiItemMenuEnumR | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 3569 of file interface_layout.c.
References ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), and uiItemMenuEnumR_prop().
void uiItemMenuEnumR_prop | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
struct PropertyRNA * | prop, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 3544 of file interface_layout.c.
References BLI_strncpy(), MEM_callocN, menu_item_enum_rna_menu(), NULL, uiLayoutRoot::opcontext, MenuItemLevel::opcontext, MenuItemLevel::propname, ptr, RNA_property_description(), RNA_property_identifier(), RNA_property_ui_name(), MenuItemLevel::rnapoin, uiLayout::root, uiLayoutRoot::type, ui_item_menu(), and UI_LAYOUT_MENU.
Referenced by uiItemMenuEnumR().
void uiItemMenuF | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
uiMenuCreateFunc | func, | ||
void * | arg | ||
) |
Level items.
Definition at line 3415 of file interface_layout.c.
References uiTextIconPadFactor::icon, NULL, and ui_item_menu().
Referenced by draw_constraint_header(), gpencil_modifier_panel_header(), modifier_panel_header(), move_to_collection_menus_items(), poselib_add_menu_invoke(), shaderfx_panel_header(), ui_popup_context_menu_for_button(), and workspace_add_invoke().
void uiItemMenuFN | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
uiMenuCreateFunc | func, | ||
void * | argN | ||
) |
Version of uiItemMenuF that free's argN
.
Definition at line 3424 of file interface_layout.c.
References uiTextIconPadFactor::icon, and ui_item_menu().
Referenced by workspace_add_invoke().
Definition at line 1831 of file interface_layout.c.
References uiTextIconPadFactor::icon, NULL, uiLayoutRoot::opcontext, uiLayout::root, and uiItemFullO().
Referenced by bake_panel_draw(), blender::ed::asset_browser::AssetCatalogTreeViewItem::build_context_menu(), buttons_panel_context_draw(), colorband_tools_func(), constraint_ops_extra_draw(), draw_constraint_header(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), ED_screens_navigation_bar_tools_menu_create(), file_panel_asset_catalog_buttons_draw(), file_panel_execution_cancel_button(), file_panel_execution_execute_button(), generate_panel_draw(), gpencil_modifier_ops_extra_draw(), gpencil_modifier_panel_header(), gpencil_shaderfx_ops_extra_draw(), graph_draw_driver_settings_panel(), graph_panel_cursor(), graph_panel_drivers_popover(), graph_panel_modifiers(), modifier_ops_extra_draw(), modifier_panel_header(), nla_panel_actclip(), nla_panel_modifiers(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy_ex(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), blender::nodes::node_shader_script_cc::node_shader_buts_script(), override_idtemplate_menu_draw(), panel_draw(), parent_set_invoke_menu(), screen_area_menu_items(), shaderfx_panel_header(), shape_panel_draw(), spreadsheet_row_filters_layout(), subdivisions_panel_draw(), ui_popup_context_menu_for_button(), uiTemplateAssetView(), uiTemplateCacheFile(), uiTemplateCacheFileLayers(), uiTemplateImage(), uiTemplateMovieClip(), uiTemplateOperatorRedoProperties(), and workspace_add_invoke().
void uiItemPointerR | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
struct PointerRNA * | searchptr, | ||
const char * | searchpropname, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 2865 of file interface_layout.c.
References ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, and uiItemPointerR_prop().
Referenced by draw_property_for_socket(), edbm_blend_from_shape_ui(), fading_panel_draw(), gpencil_modifier_masking_panel_draw(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__transChan(), layers_panel_draw(), modifier_vgroup_ui(), blender::nodes::node_composite_keyingscreen_cc::node_composit_buts_keyingscreen(), blender::nodes::node_composite_planetrackdeform_cc::node_composit_buts_planetrackdeform(), blender::nodes::node_composite_trackpos_cc::node_composit_buts_trackpos(), blender::nodes::node_shader_normal_map_cc::node_shader_buts_normal_map(), blender::nodes::node_shader_tangent_cc::node_shader_buts_tangent(), blender::nodes::node_shader_tex_pointdensity_cc::node_shader_buts_tex_pointdensity(), blender::nodes::node_shader_uvmap_cc::node_shader_buts_uvmap(), blender::nodes::node_shader_vertex_color_cc::node_shader_buts_vertex_color(), panel_draw(), texture_panel_draw(), vertex_group_panel_draw(), vgroup_panel_draw(), and weightvg_ui_common().
void uiItemPointerR_prop | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
struct PropertyRNA * | prop, | ||
struct PointerRNA * | searchptr, | ||
struct PropertyRNA * | searchprop, | ||
const char * | name, | ||
int | icon, | ||
bool | results_are_suggestions | ||
) |
Definition at line 2806 of file interface_layout.c.
References ELEM, uiItem::flag, uiLayout::item, PROP_COLLECTION, PROP_ENUM, PROP_POINTER, PROP_STRING, ptr, RNA_property_identifier(), RNA_property_pointer_type(), RNA_property_type(), RNA_property_ui_name(), RNA_struct_identifier(), RNA_struct_ui_icon(), RNA_warning, type, PointerRNA::type, ui_block_new_button_group(), ui_but_add_search(), ui_item_name_add_colon(), UI_ITEM_PROP_SEP, ui_item_rna_size(), ui_item_with_label(), UI_MAX_NAME_STR, UI_UNIT_X, uiLayoutGetBlock(), and w().
Referenced by uiItemPointerR().
void uiItemPopoverPanel | ( | uiLayout * | layout, |
const struct bContext * | C, | ||
const char * | panel_type, | ||
const char * | name, | ||
int | icon | ||
) |
void uiItemPopoverPanel_ptr | ( | uiLayout * | layout, |
const struct bContext * | C, | ||
struct PanelType * | pt, | ||
const char * | name, | ||
int | icon | ||
) |
void uiItemPopoverPanelFromGroup | ( | uiLayout * | layout, |
struct bContext * | C, | ||
int | space_id, | ||
int | region_id, | ||
const char * | context, | ||
const char * | category | ||
) |
Definition at line 3158 of file interface_layout.c.
References BKE_regiontype_from_id(), BKE_spacetype_from_id(), C, blender::compositor::context, LISTBASE_FOREACH, NULL, ARegionType::paneltypes, RNA_warning, usdtokens::st(), STREQ, and uiItemPopoverPanel_ptr().
uiPropertySplitWrapper uiItemPropertySplitWrapperCreate | ( | uiLayout * | parent_layout | ) |
Normally, we handle the split layout in uiItemFullR(), but there are other cases where the logic is needed. Ideally, uiItemFullR() could just call this, but it currently has too many special needs.
Definition at line 3259 of file interface_layout.c.
References uiLayout::alignment, uiPropertySplitWrapper::decorate_column, uiPropertySplitWrapper::label_column, NULL, uiPropertySplitWrapper::property_row, UI_ITEM_PROP_SEP_DIVIDE, ui_item_prop_split_layout_hack(), UI_LAYOUT_ALIGN_RIGHT, uiLayoutColumn(), uiLayoutRow(), and uiLayoutSplit().
Referenced by blender::ed::space_node::ui_node_draw_input(), and uiItemL_respect_property_split().
void uiItemR | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
int | flag, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 2450 of file interface_layout.c.
References ptr, RNA_NO_INDEX, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), and uiItemFullR().
Referenced by add_attribute_search_button(), add_attribute_search_or_value_buttons(), advanced_panel_draw(), apply_armature_pose2bones_ui(), axis_mapping_panel_draw(), bake_panel_draw(), block_create_autorun_warning(), blur_panel_draw(), cache_file_layer_item(), caps_panel_draw(), chaining_panel_draw(), clamp_panel_draw(), colorband_buttons_layout(), component_menu(), composition_panel_draw(), constant_offset_draw(), constant_offset_header_draw(), curvature_header_draw(), curvature_panel_draw(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), custom_range_header_draw(), custom_range_panel_draw(), cycles_panel_draw(), data_panel_draw(), draw_constraint_header(), draw_fill_tile(), draw_property_for_socket(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), ed_screens_statusbar_menu_create(), ED_time_scrub_channel_search_draw(), edbm_bevel_ui(), edbm_blend_from_shape_ui(), edbm_decimate_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), edge_data_panel_draw(), edge_panel_draw(), edge_panel_draw_header(), edge_types_panel_draw(), envelope_panel_draw(), face_corner_panel_draw(), face_corner_panel_draw_header(), face_corner_uv_panel_draw(), face_corner_vcol_panel_draw(), face_mark_panel_draw(), face_mark_panel_draw_header(), face_panel_draw(), face_panel_draw_header(), fade_header_draw(), fade_panel_draw(), fading_header_draw(), fading_panel_draw(), falloff_panel_draw(), file_panel_asset_catalog_buttons_draw(), fmodifier_frame_range_draw(), fmodifier_frame_range_header_draw(), fmodifier_influence_draw(), fmodifier_panel_header(), fn_generator_panel_draw(), blender::nodes::node_fn_align_euler_to_vector_cc::fn_node_align_euler_to_vector_layout(), blender::nodes::node_fn_boolean_math_cc::fn_node_boolean_math_layout(), blender::nodes::fn_node_combine_color_layout(), blender::nodes::node_fn_float_to_int_cc::fn_node_float_to_int_layout(), blender::nodes::node_fn_input_bool_cc::fn_node_input_bool_layout(), blender::nodes::node_fn_input_color_cc::fn_node_input_color_layout(), blender::nodes::node_fn_input_int_cc::fn_node_input_int_layout(), blender::nodes::node_fn_input_string_cc::fn_node_input_string_layout(), blender::nodes::node_fn_input_vector_cc::fn_node_input_vector_layout(), blender::nodes::node_fn_random_value_cc::fn_node_random_value_layout(), blender::nodes::node_fn_rotate_euler_cc::fn_node_rotate_euler_layout(), blender::nodes::fn_node_separate_color_layout(), frame_range_header_draw(), frame_range_panel_draw(), generate_panel_draw(), generator_panel_draw(), blender::nodes::node_fn_compare_cc::geo_node_compare_layout(), blender::ed::geometry::geometry_attribute_convert_ui(), blender::ed::geometry::geometry_color_attribute_add_ui(), geometry_panel_draw(), gpencil_interpolate_seq_ui(), gpencil_modifier_curve_header_draw(), gpencil_modifier_masking_panel_draw(), gpencil_modifier_panel_header(), gpencil_stroke_normalize_ui(), graph_draw_driver_settings_panel(), graph_panel_cursor(), graph_panel_cursor_header(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__transChan(), graph_panel_key_properties(), graph_panel_properties(), image_new_draw(), image_save_as_draw(), intersection_panel_draw(), limits_panel_draw(), material_mask_panel_draw(), material_mask_panel_draw_header(), materials_panel_draw(), menu_add_shortcut(), menu_change_shortcut(), mix_mode_panel_draw(), modifier_panel_header(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time(), nla_panel_animated_strip_time_header(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_properties(), nla_panel_stripname(), blender::ed::space_node::node_buts_combsep_color(), blender::ed::space_node::node_buts_frame_ex(), blender::ed::space_node::node_buts_image_user(), blender::ed::space_node::node_buts_image_views(), blender::ed::space_node::node_buts_math(), blender::ed::space_node::node_buts_mix_rgb(), blender::ed::space_node::node_buts_normal(), blender::nodes::node_shader_output_linestyle_cc::node_buts_output_linestyle(), blender::ed::space_node::node_buts_output_shader(), blender::ed::space_node::node_buts_rgb(), blender::ed::space_node::node_buts_texture(), blender::ed::space_node::node_buts_time(), blender::ed::space_node::node_buts_value(), blender::nodes::node_composite_alpha_over_cc::node_composit_buts_alphaover(), blender::nodes::node_composite_antialiasing_cc::node_composit_buts_antialiasing(), blender::nodes::node_composite_bilateralblur_cc::node_composit_buts_bilateralblur(), blender::nodes::node_composite_blur_cc::node_composit_buts_blur(), blender::nodes::node_composite_bokehblur_cc::node_composit_buts_bokehblur(), blender::nodes::node_composite_bokehimage_cc::node_composit_buts_bokehimage(), blender::nodes::node_composite_boxmask_cc::node_composit_buts_boxmask(), blender::nodes::node_composite_brightness_cc::node_composit_buts_brightcontrast(), blender::nodes::node_composite_channel_matte_cc::node_composit_buts_channel_matte(), blender::nodes::node_composite_chroma_matte_cc::node_composit_buts_chroma_matte(), blender::nodes::node_composite_color_matte_cc::node_composit_buts_color_matte(), blender::nodes::node_composite_color_spill_cc::node_composit_buts_color_spill(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance_ex(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection_ex(), blender::ed::space_node::node_composit_buts_combsep_color(), blender::nodes::node_composite_composite_cc::node_composit_buts_composite(), blender::nodes::node_composite_convert_color_space_cc::node_composit_buts_convert_colorspace(), blender::nodes::node_composite_crop_cc::node_composit_buts_crop(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy(), blender::nodes::node_composite_directionalblur_cc::node_composit_buts_dblur(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::nodes::node_composite_denoise_cc::node_composit_buts_denoise(), blender::nodes::node_composite_despeckle_cc::node_composit_buts_despeckle(), blender::nodes::node_composite_diff_matte_cc::node_composit_buts_diff_matte(), blender::nodes::node_composite_dilate_cc::node_composit_buts_dilateerode(), blender::nodes::node_composite_distance_matte_cc::node_composit_buts_distance_matte(), blender::nodes::node_composite_double_edge_mask_cc::node_composit_buts_double_edge_mask(), blender::nodes::node_composite_ellipsemask_cc::node_composit_buts_ellipsemask(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), blender::nodes::node_composite_filter_cc::node_composit_buts_filter(), blender::nodes::node_composite_flip_cc::node_composit_buts_flip(), blender::nodes::node_composite_glare_cc::node_composit_buts_glare(), blender::nodes::node_composite_id_mask_cc::node_composit_buts_id_mask(), blender::nodes::node_composite_inpaint_cc::node_composit_buts_inpaint(), blender::nodes::node_composite_invert_cc::node_composit_buts_invert(), blender::nodes::node_composite_keying_cc::node_composit_buts_keying(), blender::nodes::node_composite_lensdist_cc::node_composit_buts_lensdist(), blender::nodes::node_composite_luma_matte_cc::node_composit_buts_luma_matte(), blender::nodes::node_composite_map_range_cc::node_composit_buts_map_range(), blender::nodes::node_composite_map_uv_cc::node_composit_buts_map_uv(), blender::nodes::node_composite_map_value_cc::node_composit_buts_map_value(), blender::nodes::node_composite_mask_cc::node_composit_buts_mask(), blender::nodes::node_composite_moviedistortion_cc::node_composit_buts_moviedistortion(), blender::nodes::node_composite_planetrackdeform_cc::node_composit_buts_planetrackdeform(), blender::nodes::node_composite_premulkey_cc::node_composit_buts_premulkey(), blender::nodes::node_composite_rotate_cc::node_composit_buts_rotate(), blender::nodes::node_composite_scale_cc::node_composit_buts_scale(), blender::nodes::node_composite_setalpha_cc::node_composit_buts_set_alpha(), blender::nodes::node_composite_split_viewer_cc::node_composit_buts_splitviewer(), blender::nodes::node_composite_stabilize2d_cc::node_composit_buts_stabilize2d(), blender::nodes::node_composite_sunbeams_cc::node_composit_buts_sunbeams(), blender::nodes::node_composite_switch_cc::node_composit_buts_switch(), blender::nodes::node_composite_tonemap_cc::node_composit_buts_tonemap(), blender::nodes::node_composite_trackpos_cc::node_composit_buts_trackpos(), blender::nodes::node_composite_transform_cc::node_composit_buts_transform(), blender::nodes::node_composite_translate_cc::node_composit_buts_translate(), blender::nodes::node_composite_vec_blur_cc::node_composit_buts_vecblur(), blender::nodes::node_composite_levels_cc::node_composit_buts_view_levels(), blender::nodes::node_composite_viewer_cc::node_composit_buts_viewer(), blender::nodes::node_composite_viewer_cc::node_composit_buts_viewer_ex(), blender::nodes::node_composite_image_cc::node_composit_buts_viewlayers(), blender::ed::space_node::node_composit_buts_ycc(), blender::nodes::node_composite_zcombine_cc::node_composit_buts_zcombine(), blender::nodes::node_geo_accumulate_field_cc::node_layout(), blender::nodes::node_geo_attribute_capture_cc::node_layout(), blender::nodes::node_geo_attribute_domain_size_cc::node_layout(), blender::nodes::node_geo_attribute_statistic_cc::node_layout(), blender::nodes::node_geo_boolean_cc::node_layout(), blender::nodes::node_geo_collection_info_cc::node_layout(), blender::nodes::node_geo_curve_fill_cc::node_layout(), blender::nodes::node_geo_curve_fillet_cc::node_layout(), blender::nodes::node_geo_curve_handle_type_selection_cc::node_layout(), blender::nodes::node_geo_curve_primitive_arc_cc::node_layout(), blender::nodes::node_geo_curve_primitive_bezier_segment_cc::node_layout(), blender::nodes::node_geo_curve_primitive_circle_cc::node_layout(), blender::nodes::node_geo_curve_primitive_line_cc::node_layout(), blender::nodes::node_geo_curve_primitive_quadrilateral_cc::node_layout(), blender::nodes::node_geo_curve_resample_cc::node_layout(), blender::nodes::node_geo_curve_sample_cc::node_layout(), blender::nodes::node_geo_curve_set_handle_type_cc::node_layout(), blender::nodes::node_geo_curve_spline_type_cc::node_layout(), blender::nodes::node_geo_curve_to_points_cc::node_layout(), blender::nodes::node_geo_curve_trim_cc::node_layout(), blender::nodes::node_geo_delete_geometry_cc::node_layout(), blender::nodes::node_geo_distribute_points_on_faces_cc::node_layout(), blender::nodes::node_geo_duplicate_elements_cc::node_layout(), blender::nodes::node_geo_extrude_mesh_cc::node_layout(), blender::nodes::node_geo_field_at_index_cc::node_layout(), blender::nodes::node_geo_image_texture_cc::node_layout(), blender::nodes::node_geo_input_material_cc::node_layout(), blender::nodes::node_geo_input_named_attribute_cc::node_layout(), blender::nodes::node_geo_interpolate_domain_cc::node_layout(), blender::nodes::node_geo_merge_by_distance_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_circle_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cone_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cylinder_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_line_cc::node_layout(), blender::nodes::node_geo_mesh_to_points_cc::node_layout(), blender::nodes::node_geo_mesh_to_volume_cc::node_layout(), blender::nodes::node_geo_object_info_cc::node_layout(), blender::nodes::node_geo_points_to_volume_cc::node_layout(), blender::nodes::node_geo_proximity_cc::node_layout(), blender::nodes::node_geo_raycast_cc::node_layout(), blender::nodes::node_geo_realize_instances_cc::node_layout(), blender::nodes::node_geo_scale_elements_cc::node_layout(), blender::nodes::node_geo_separate_geometry_cc::node_layout(), blender::nodes::node_geo_set_curve_handles_cc::node_layout(), blender::nodes::node_geo_store_named_attribute_cc::node_layout(), blender::nodes::node_geo_subdivision_surface_cc::node_layout(), blender::nodes::node_geo_switch_cc::node_layout(), blender::nodes::node_geo_transfer_attribute_cc::node_layout(), blender::nodes::node_geo_triangulate_cc::node_layout(), blender::nodes::node_geo_uv_unwrap_cc::node_layout(), blender::nodes::node_geo_viewer_cc::node_layout(), blender::nodes::node_geo_volume_to_mesh_cc::node_layout(), blender::nodes::node_geo_string_to_curves_cc::node_layout(), blender::nodes::node_shader_ambient_occlusion_cc::node_shader_buts_ambient_occlusion(), blender::nodes::node_shader_bsdf_anisotropic_cc::node_shader_buts_anisotropic(), blender::nodes::node_shader_attribute_cc::node_shader_buts_attribute(), blender::nodes::node_shader_bevel_cc::node_shader_buts_bevel(), blender::nodes::node_shader_bump_cc::node_shader_buts_bump(), blender::nodes::node_shader_clamp_cc::node_shader_buts_clamp(), blender::ed::space_node::node_shader_buts_displacement(), blender::ed::space_node::node_shader_buts_glossy(), blender::nodes::node_shader_bsdf_hair_cc::node_shader_buts_hair(), blender::nodes::node_shader_ies_light_cc::node_shader_buts_ies(), blender::nodes::node_shader_map_range_cc::node_shader_buts_map_range(), blender::nodes::node_shader_mapping_cc::node_shader_buts_mapping(), blender::nodes::node_shader_normal_map_cc::node_shader_buts_normal_map(), blender::nodes::node_shader_output_aov_cc::node_shader_buts_output_aov(), blender::nodes::node_shader_bsdf_principled_cc::node_shader_buts_principled(), blender::nodes::node_shader_bsdf_hair_principled_cc::node_shader_buts_principled_hair(), blender::nodes::node_shader_script_cc::node_shader_buts_script(), blender::nodes::node_shader_script_cc::node_shader_buts_script_ex(), blender::nodes::node_shader_subsurface_scattering_cc::node_shader_buts_subsurface(), blender::nodes::node_shader_tangent_cc::node_shader_buts_tangent(), blender::nodes::node_shader_tex_brick_cc::node_shader_buts_tex_brick(), blender::nodes::node_shader_tex_coord_cc::node_shader_buts_tex_coord(), blender::ed::space_node::node_shader_buts_tex_environment(), blender::ed::space_node::node_shader_buts_tex_environment_ex(), blender::nodes::node_shader_tex_gradient_cc::node_shader_buts_tex_gradient(), blender::ed::space_node::node_shader_buts_tex_image(), blender::nodes::node_shader_tex_magic_cc::node_shader_buts_tex_magic(), blender::nodes::node_shader_tex_musgrave_cc::node_shader_buts_tex_musgrave(), blender::nodes::node_shader_tex_noise_cc::node_shader_buts_tex_noise(), blender::nodes::node_shader_tex_pointdensity_cc::node_shader_buts_tex_pointdensity(), blender::nodes::node_shader_tex_sky_cc::node_shader_buts_tex_sky(), blender::nodes::node_shader_tex_voronoi_cc::node_shader_buts_tex_voronoi(), blender::nodes::node_shader_tex_wave_cc::node_shader_buts_tex_wave(), blender::nodes::node_shader_bsdf_toon_cc::node_shader_buts_toon(), blender::nodes::node_shader_uv_along_stroke_cc::node_shader_buts_uvalongstroke(), blender::nodes::node_shader_uvmap_cc::node_shader_buts_uvmap(), blender::nodes::node_shader_vector_math_cc::node_shader_buts_vect_math(), blender::nodes::node_shader_vector_transform_cc::node_shader_buts_vect_transform(), blender::nodes::node_shader_vector_rotate_cc::node_shader_buts_vector_rotate(), blender::nodes::node_shader_tex_white_noise_cc::node_shader_buts_white_noise(), blender::nodes::node_shader_wireframe_cc::node_shader_buts_wireframe(), blender::ed::space_node::node_texture_buts_bricks(), blender::ed::space_node::node_texture_buts_combsep_color(), blender::ed::space_node::node_texture_buts_output(), blender::ed::space_node::node_texture_buts_proc(), noise_panel_draw(), normals_panel_draw(), object_add_ui(), object_convert_ui(), object_offset_draw(), object_offset_header_draw(), occlusion_panel_draw(), offset_panel_draw(), options_light_reference_draw(), options_panel_draw(), panel_draw(), path_panel_draw(), path_panel_draw_header(), position_panel_draw(), profile_panel_draw(), random_header_draw(), random_panel_draw(), random_panel_header_draw(), relative_offset_draw(), relative_offset_header_draw(), restrictions_panel_draw(), segment_list_item(), blender::ed::sculpt_paint::select_random::select_random_ui(), sequencer_split_ui(), shaderfx_panel_header(), shading_panel_draw(), solver_options_panel_draw(), spreadsheet_filter_panel_draw(), spreadsheet_filter_panel_draw_header(), blender::ed::space_node::std_node_socket_draw(), blender::ed::space_node::std_node_socket_interface_draw(), stepped_panel_draw(), symmetry_panel_draw(), symmetry_panel_header_draw(), texture_paint_add_texture_paint_slot_ui(), texture_panel_draw(), tile_add_draw(), time_panel_draw(), time_remapping_panel_draw(), transform_panel_draw(), blender::ed::space_node::ui_node_draw_input(), ui_popup_context_menu_for_panel(), uilist_draw_filter_default(), uiTemplateCacheFile(), uiTemplateCacheFileProcedural(), uiTemplateCacheFileTimeSettings(), uiTemplateCacheFileVelocity(), uiTemplateColormanagedViewSettings(), uiTemplateColorspaceSettings(), uiTemplateImage(), uiTemplateImageFormatViews(), uiTemplateImageSettings(), uiTemplateImageStereo3d(), uiTemplateMovieClip(), uiTemplatePaintModeSelection(), uiTemplatePathBuilder(), uiTemplatePreview(), uiTemplateViewsFormat(), uv_panel_draw(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_transform_butsR(), velocity_panel_draw(), vert_vcol_panel_draw(), vertex_group_panel_draw(), vertex_panel_draw(), vertex_panel_draw_header(), vertex_vgroup_panel_draw(), vgroup_panel_draw(), view3d_panel_vgroup(), wave_header_draw(), wave_panel_draw(), weightvg_ui_common(), wm_open_mainfile_ui(), and wm_stereo3d_set_draw().
Separator item
Definition at line 3378 of file interface_layout.c.
References uiItemS_ex().
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), blender::ui::GridViewLayoutBuilder::build_from_view(), constraint_ops_extra_draw(), draw_constraint_header(), dyntopo_warning_popup(), ED_region_header_layout(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), edbm_bevel_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), file_panel_asset_catalog_buttons_draw(), fmodifier_influence_draw(), fmodifier_panel_header(), geometry_panel_draw(), gpencil_modifier_ops_extra_draw(), gpencil_modifier_panel_header(), gpencil_shaderfx_ops_extra_draw(), graph_draw_driver_settings_panel(), graph_panel_drivers_popover(), image_save_as_draw(), insert_key_menu_invoke(), modifier_ops_extra_draw(), modifier_panel_header(), move_to_collection_menu_create(), nla_panel_animdata(), nla_panel_properties(), blender::nodes::node_composite_directionalblur_cc::node_composit_buts_dblur(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), blender::nodes::node_shader_script_cc::node_shader_buts_script_ex(), outliner_operator_menu(), panel_draw(), pose_groups_menu_invoke(), screen_area_menu_items(), screen_area_options_invoke(), screen_user_menu_draw(), sequencer_split_ui(), shaderfx_panel_header(), subdivisions_panel_draw(), template_keymap_item_properties(), ui_def_but_rna__menu(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_slot_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_enum_expand_exec(), blender::ed::space_node::ui_node_draw_input(), ui_paneltype_draw_impl(), ui_popup_context_menu_for_button(), UI_popup_menu_begin_ex(), UI_popup_menu_reports(), uiItemsEnumR(), uiItemsFullEnumO_items(), uiTemplateColorPicker(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplatePreview(), workspace_add_invoke(), and workspace_add_menu().
Separator item
Definition at line 3351 of file interface_layout.c.
References uiLayoutRoot::block, NULL, uiLayout::root, UI_block_can_add_separator(), ui_block_is_menu(), UI_block_layout_set_current(), UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, UI_UNIT_X, and uiDefBut().
Referenced by blender::ui::BasicTreeViewItem::add_label(), block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_forwardcompat_dialog(), spreadsheet_filter_panel_draw_header(), uiItemS(), uiTemplateCacheFileLayers(), and wm_block_create_about().
uiLayout* uiItemsAlertBox | ( | uiBlock * | block, |
int | size, | ||
eAlertIcon | icon | ||
) |
Helper to add a big icon and create a split layout for alert popups. Returns the layout to place further items into the alert box.
Definition at line 6038 of file interface_layout.c.
References uiStyle::columnspace, float(), MAX2, uiFontStyle::points, size(), UI_block_layout(), UI_LAYOUT_ALIGN_LEFT, UI_LAYOUT_PANEL, UI_LAYOUT_VERTICAL, UI_style_get_dpi(), uiDefButAlert(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetAlignment(), uiLayoutSplit(), uiStyle::widget, and uiStyle::widgetlabel.
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), and block_create_save_file_forwardcompat_dialog().
Definition at line 1678 of file interface_layout.c.
References NULL, uiLayoutRoot::opcontext, uiLayout::root, and uiItemsFullEnumO().
Referenced by gpencil_layer_change_invoke(), keyingset_active_menu_invoke(), outliner_operator_menu(), select_orientation_invoke(), toggle_cyclic_invoke(), UI_pie_menu_invoke_from_operator_enum(), and unpack_all_invoke().
void uiItemsEnumR | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Definition at line 2628 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::buttons, uiBut::drawflag, uiBlock::evil_C, uiBlock::flag, free(), ListBase::last, MEM_freeN, PROP_ENUM, ptr, RNA_property_enum_items_gettexted(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::root, blender::io::alembic::split(), PointerRNA::type, UI_BLOCK_NO_FLIP, UI_BUT_TEXT_LEFT, ui_but_tip_from_enum_item(), ui_item_disabled(), uiItemEnumR_prop(), uiItemL(), uiItemS(), uiLayoutColumn(), and uiLayoutSplit().
Referenced by menu_item_enum_rna_menu().
void uiItemsFullEnumO | ( | uiLayout * | layout, |
const char * | opname, | ||
const char * | propname, | ||
struct IDProperty * | properties, | ||
wmOperatorCallContext | context, | ||
int | flag | ||
) |
Definition at line 1611 of file interface_layout.c.
References BLI_assert, uiLayoutRoot::block, blender::compositor::context, uiBlock::evil_C, free(), MEM_freeN, NULL, ot, PROP_ENUM, ptr, RNA_property_enum_items_gettexted(), RNA_property_enum_items_gettexted_all(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::root, wmOperatorType::srna, PointerRNA::type, ui_item_disabled(), ui_layout_is_radial(), uiItemsFullEnumO_items(), WM_operator_properties_create_ptr(), WM_operator_properties_sanitize(), and WM_operatortype_find().
Referenced by menu_item_enum_opname_menu(), uiItemsEnumO(), unpack_item_invoke(), and WM_menu_invoke_ex().
void uiItemsFullEnumO_items | ( | uiLayout * | layout, |
struct wmOperatorType * | ot, | ||
struct PointerRNA | ptr, | ||
struct PropertyRNA * | prop, | ||
struct IDProperty * | properties, | ||
wmOperatorCallContext | context, | ||
int | flag, | ||
const struct EnumPropertyItem * | item_array, | ||
int | totitem | ||
) |
Create UI items for enum items in item_array.
A version of uiItemsFullEnumO that takes pre-calculated item array.
Referenced by ui_pie_menu_level_invoke().
Flexible spacing.
Definition at line 3383 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::direction, NULL, uiLayout::root, ui_block_is_popup_any(), UI_block_layout_set_current(), UI_BTYPE_SEPR_SPACER, UI_DIR_RIGHT, UI_UNIT_X, UI_UNIT_Y, and uiDefBut().
Referenced by buttons_panel_context_draw(), and spreadsheet_footer_region_draw().
void uiItemStringO | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
const char * | opname, | ||
const char * | propname, | ||
const char * | value | ||
) |
Definition at line 1813 of file interface_layout.c.
References PointerRNA::data, uiTextIconPadFactor::icon, NULL, uiLayoutRoot::opcontext, ot, ptr, RNA_string_set(), uiLayout::root, UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by insert_key_menu_invoke(), modifier_panel_header(), and select_grouped_collection().
void uiItemTabsEnumR_prop | ( | uiLayout * | layout, |
struct bContext * | C, | ||
struct PointerRNA * | ptr, | ||
struct PropertyRNA * | prop, | ||
struct PointerRNA * | ptr_highlight, | ||
struct PropertyRNA * | prop_highlight, | ||
bool | icon_only | ||
) |
Definition at line 3582 of file interface_layout.c.
References uiLayoutRoot::block, C, NULL, ptr, uiLayout::root, UI_block_layout_set_current(), ui_item_enum_expand_tabs(), and UI_UNIT_Y.
Value item
Definition at line 3307 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::handle, uiTextIconPadFactor::icon, NULL, uiPopupBlockHandle::retvalue, uiLayout::root, uiLayoutRoot::type, UI_block_layout_set_current(), UI_BTYPE_BUT, UI_LAYOUT_MENU, ui_text_icon_width(), UI_UNIT_Y, uiDefButI(), uiDefIconButI(), uiDefIconTextButI(), and w().
Definition at line 4887 of file interface_layout.c.
References uiLayoutRoot::block, uiLayout::item, ITEM_LAYOUT_ABSOLUTE, MEM_callocN, uiLayout::root, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by ui_item_array(), uiLayoutAbsoluteBlock(), uiTemplateReportsBanner(), and uiTemplateStatusInfo().
Definition at line 4899 of file interface_layout.c.
References uiLayoutAbsolute(), and uiLayoutGetBlock().
Referenced by image_panel_uv(), uiTemplateColorRamp(), uiTemplateHeader(), uiTemplateIcon(), uiTemplateIconView(), uiTemplateMarker(), v3d_editvertex_buts(), v3d_object_dimension_buts(), and view3d_panel_vgroup().
Definition at line 4849 of file interface_layout.c.
References UI_BTYPE_ROUNDBOX, and ui_layout_box().
Referenced by blender::ui::TreeViewLayoutBuilder::build_from_tree(), graph_draw_driver_settings_panel(), and template_keymap_item_properties().
Definition at line 4752 of file interface_layout.c.
References uiLayoutRoot::block, uiStyle::buttonspacey, uiLayout::item, ITEM_LAYOUT_COLUMN, MEM_callocN, uiLayout::root, uiLayout::space, uiLayoutRoot::style, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by advanced_panel_draw(), axis_mapping_panel_draw(), bake_panel_draw(), block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_forwardcompat_dialog(), blur_panel_draw(), blender::ui::TreeViewLayoutBuilder::build_from_tree(), blender::ui::GridViewLayoutBuilder::build_from_view(), caps_panel_draw(), clamp_panel_draw(), component_menu(), composition_panel_draw(), constant_offset_draw(), constraint_ops_extra_draw(), curvature_panel_draw(), curvemap_buttons_layout(), custom_range_panel_draw(), cycles_panel_draw(), data_panel_draw(), draw_fill_tile(), ED_screens_header_tools_menu_create(), edbm_bevel_ui(), edbm_decimate_ui(), edge_data_panel_draw(), edge_types_panel_draw(), envelope_panel_draw(), fade_panel_draw(), fading_panel_draw(), file_forwardcompat_detailed_info_show(), file_panel_asset_catalog_buttons_draw(), fmodifier_frame_range_draw(), fn_generator_panel_draw(), blender::nodes::node_fn_input_bool_cc::fn_node_input_bool_layout(), blender::nodes::node_fn_input_int_cc::fn_node_input_int_layout(), blender::nodes::node_fn_input_vector_cc::fn_node_input_vector_layout(), frame_range_panel_draw(), generate_panel_draw(), generator_panel_draw(), gpencil_interpolate_seq_ui(), gpencil_modifier_masking_panel_draw(), gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), graph_draw_driver_settings_panel(), graph_panel_cursor(), graph_panel_cursor_header(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__singleProp(), graph_panel_driverVar__transChan(), graph_panel_key_properties(), graph_panel_properties(), hud_panel_operator_redo_draw(), image_new_draw(), image_save_as_draw(), intersection_panel_draw(), layers_panel_draw(), limits_panel_draw(), material_mask_panel_draw(), materials_panel_draw(), modifier_ops_extra_draw(), nla_panel_actclip(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time_header(), nla_panel_properties(), blender::ed::space_node::node_buts_image_user(), blender::ed::space_node::node_buts_image_views(), blender::ed::space_node::node_buts_mix_rgb(), blender::nodes::node_shader_output_linestyle_cc::node_buts_output_linestyle(), blender::ed::space_node::node_buts_rgb(), blender::ed::space_node::node_buts_time(), blender::nodes::node_composite_alpha_over_cc::node_composit_buts_alphaover(), blender::nodes::node_composite_antialiasing_cc::node_composit_buts_antialiasing(), blender::nodes::node_composite_bilateralblur_cc::node_composit_buts_bilateralblur(), blender::nodes::node_composite_blur_cc::node_composit_buts_blur(), blender::nodes::node_composite_channel_matte_cc::node_composit_buts_channel_matte(), blender::nodes::node_composite_chroma_matte_cc::node_composit_buts_chroma_matte(), blender::nodes::node_composite_color_matte_cc::node_composit_buts_color_matte(), blender::nodes::node_composite_color_spill_cc::node_composit_buts_color_spill(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), blender::nodes::node_composite_crop_cc::node_composit_buts_crop(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy(), blender::nodes::node_composite_directionalblur_cc::node_composit_buts_dblur(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::nodes::node_composite_despeckle_cc::node_composit_buts_despeckle(), blender::nodes::node_composite_diff_matte_cc::node_composit_buts_diff_matte(), blender::nodes::node_composite_distance_matte_cc::node_composit_buts_distance_matte(), blender::nodes::node_composite_double_edge_mask_cc::node_composit_buts_double_edge_mask(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), blender::nodes::node_composite_invert_cc::node_composit_buts_invert(), blender::nodes::node_composite_keyingscreen_cc::node_composit_buts_keyingscreen(), blender::nodes::node_composite_lensdist_cc::node_composit_buts_lensdist(), blender::nodes::node_composite_luma_matte_cc::node_composit_buts_luma_matte(), blender::nodes::node_composite_map_range_cc::node_composit_buts_map_range(), blender::nodes::node_composite_map_value_cc::node_composit_buts_map_value(), blender::nodes::node_composite_planetrackdeform_cc::node_composit_buts_planetrackdeform(), blender::nodes::node_composite_split_viewer_cc::node_composit_buts_splitviewer(), blender::nodes::node_composite_tonemap_cc::node_composit_buts_tonemap(), blender::nodes::node_composite_trackpos_cc::node_composit_buts_trackpos(), blender::nodes::node_composite_vec_blur_cc::node_composit_buts_vecblur(), blender::nodes::node_composite_viewer_cc::node_composit_buts_viewer_ex(), blender::nodes::node_composite_image_cc::node_composit_buts_viewlayers(), blender::nodes::node_composite_zcombine_cc::node_composit_buts_zcombine(), blender::nodes::node_shader_tex_brick_cc::node_shader_buts_tex_brick(), blender::nodes::node_shader_tex_sky_cc::node_shader_buts_tex_sky(), blender::ed::space_node::node_texture_buts_bricks(), blender::ed::space_node::node_texture_buts_proc(), noise_panel_draw(), normals_panel_draw(), object_add_ui(), object_offset_draw(), occlusion_panel_draw(), options_light_reference_draw(), options_panel_draw(), panel_draw(), path_panel_draw(), position_panel_draw(), profile_panel_draw(), relative_offset_draw(), solver_options_panel_draw(), blender::ed::space_node::std_node_socket_draw(), blender::ed::space_node::std_node_socket_interface_draw(), stepped_panel_draw(), symmetry_panel_draw(), template_add_button_search_menu(), template_operator_property_buts_draw_single(), texture_paint_add_texture_paint_slot_ui(), texture_panel_draw(), tile_add_draw(), time_panel_draw(), ui_def_but_rna__menu(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_local_sublayout(), blender::ed::space_node::ui_node_draw_input(), blender::ed::space_node::ui_node_menu_column(), ui_paneltype_draw_impl(), ui_popup_context_menu_for_button(), ui_template_list_layout_draw(), blender::ed::space_node::ui_template_node_link_menu(), uiDefAutoButsRNA(), uiItemDecoratorR_prop(), uiItemFullR(), uiItemPropertySplitWrapperCreate(), uiItemsAlertBox(), uiItemsEnumR(), uiItemsFullEnumO_items(), uiLayoutColumnWithHeading(), uiTemplateAssetView(), uiTemplateCacheFileLayers(), uiTemplateColormanagedViewSettings(), uiTemplateColorPicker(), uiTemplateHistogram(), uiTemplateImage(), uiTemplateImageInfo(), uiTemplateImageSettings(), uiTemplateImageStereo3d(), uiTemplateInputStatus(), uiTemplateLayers(), uiTemplateMarker(), uiTemplateMovieClip(), uiTemplateMovieclipInformation(), uiTemplatePalette(), uiTemplatePreview(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateViewsFormat(), uiTemplateWaveform(), undo_history_draw_menu(), uv_panel_draw(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_posearmature_buts(), v3d_transform_butsR(), vertex_group_panel_draw(), vgroup_panel_draw(), view3d_panel_transform(), view3d_panel_vgroup(), wm_block_create_about(), wm_block_create_redo(), wm_block_dialog_create(), wm_open_mainfile_ui(), and wm_stereo3d_set_draw().
Definition at line 4772 of file interface_layout.c.
References uiLayout::align, uiLayoutRoot::block, uiStyle::columnspace, uiLayout::item, ITEM_LAYOUT_COLUMN_FLOW, uiLayoutItemFlow::litem, MEM_callocN, uiLayoutItemFlow::number, uiLayout::root, uiLayout::space, uiLayoutRoot::style, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by template_keymap_item_properties().
Variant of uiLayoutColumn() that sets a heading label for the layout if the first item is added through uiItemFullR(). If split layout is used and the item has no string to add to the first split-column, the heading is added there instead. Otherwise the heading inserted with a new row.
Definition at line 4765 of file interface_layout.c.
References ui_layout_heading_set(), and uiLayoutColumn().
Referenced by chaining_panel_draw(), edbm_bevel_ui(), nla_panel_properties(), panel_draw(), and shading_panel_draw().
void uiLayoutContextCopy | ( | uiLayout * | layout, |
struct bContextStore * | context | ||
) |
Definition at line 5720 of file interface_layout.c.
References uiLayoutRoot::block, blender::compositor::context, uiLayout::context, uiBlock::contexts, CTX_store_add_all(), and uiLayout::root.
Referenced by ui_popover_create_block(), ui_popup_context_menu_for_button(), and ui_popup_menu_create().
Definition at line 5023 of file interface_layout.c.
References uiLayout::activate_init.
Definition at line 5013 of file interface_layout.c.
References uiLayout::active.
Definition at line 5018 of file interface_layout.c.
References uiLayout::active_default.
int uiLayoutGetAlignment | ( | uiLayout * | layout | ) |
Definition at line 5043 of file interface_layout.c.
References uiLayout::alignment.
Referenced by uiItemL_().
Definition at line 5545 of file interface_layout.c.
References uiLayoutRoot::block, and uiLayout::root.
Referenced by add_attribute_search_button(), asset_view_draw_item(), blender::ui::PreviewGridItem::build_grid_tile(), constraint_ops_extra_draw(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), draw_constraint_header(), envelope_panel_draw(), file_create_asset_catalog_tree_view_in_layout(), file_panel_execution_buttons_draw(), file_panel_operator(), fmodifier_panel_header(), gpencil_modifier_ops_extra_draw(), gpencil_modifier_panel_get_property_pointers(), gpencil_shaderfx_ops_extra_draw(), graph_draw_driver_settings_panel(), graph_panel_key_properties(), graph_panel_modifiers(), modifier_ops_extra_draw(), modifier_panel_get_property_pointers(), modifier_panel_header(), move_to_collection_menu_create(), nla_panel_actclip(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time(), nla_panel_animated_strip_time_header(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_modifiers(), nla_panel_properties(), nla_panel_stripname(), blender::ed::space_node::node_file_output_socket_draw(), blender::ed::space_node::node_geometry_add_attribute_search_button(), panel_draw(), shaderfx_panel_header(), blender::ed::spreadsheet::spreadsheet_data_set_panel_draw(), template_ID(), template_ID_tabs(), template_keymap_item_properties(), template_operator_property_buts_draw_single(), template_search_buttons(), template_texture_user_menu(), ui_but_change_type(), ui_def_but_rna__menu(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_slot_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_layout_add_but(), blender::ed::space_node::ui_node_draw_input(), blender::ed::space_node::ui_node_menu_column(), ui_popup_context_menu_for_button(), ui_popup_context_menu_for_panel(), ui_template_list_layout_draw(), blender::ed::space_node::ui_template_node_link_menu(), uiblock_layer_pass_buttons(), uiItemL_respect_property_split(), uiItemPointerR_prop(), uiLayoutAbsoluteBlock(), uiTemplateColorPicker(), uiTemplateComponentMenu(), uiTemplateConstraintHeader(), uiTemplateCryptoPicker(), uiTemplateCurveMapping(), uiTemplateCurveProfile(), uiTemplateFileSelectPath(), uiTemplateHistogram(), uiTemplateImage(), uiTemplateKeymapItemProperties(), uiTemplateLayers(), uiTemplateMarker(), uiTemplateMenuSearch(), uiTemplateMovieClip(), uiTemplateNodeLink(), uiTemplateNodeSocket(), uiTemplateOperatorRedoProperties(), uiTemplateOperatorSearch(), uiTemplatePalette(), uiTemplatePreview(), uiTemplateReportsBanner(), uiTemplateRunningJobs(), uiTemplateStatusInfo(), uiTemplateTextureShow(), uiTemplateTextureUser(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateWaveform(), view3d_panel_transform(), wm_block_dialog_create(), and workspace_add_menu().
struct bContextStore* uiLayoutGetContextStore | ( | uiLayout * | layout | ) |
Definition at line 5715 of file interface_layout.c.
References uiLayout::context.
Referenced by UI_panel_context_pointer_set(), ui_popup_context_menu_for_button(), and ui_template_list_layout_draw().
eUIEmbossType uiLayoutGetEmboss | ( | uiLayout * | layout | ) |
Definition at line 5073 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::emboss, uiLayout::emboss, uiLayout::root, and UI_EMBOSS_UNDEFINED.
Definition at line 5028 of file interface_layout.c.
References uiLayout::enabled.
Definition at line 5649 of file interface_layout.c.
References uiItem::flag, uiLayout::item, and UI_ITEM_FIXED_SIZE.
Definition at line 5038 of file interface_layout.c.
References uiLayout::keepaspect.
int uiLayoutGetLocalDir | ( | const uiLayout * | layout | ) |
Definition at line 458 of file interface_layout.c.
References uiLayout::item, ITEM_LAYOUT_ABSOLUTE, ITEM_LAYOUT_BOX, ITEM_LAYOUT_COLUMN, ITEM_LAYOUT_COLUMN_FLOW, ITEM_LAYOUT_GRID_FLOW, ITEM_LAYOUT_OVERLAP, ITEM_LAYOUT_ROOT, ITEM_LAYOUT_ROW, ITEM_LAYOUT_SPLIT, uiItem::type, UI_LAYOUT_HORIZONTAL, and UI_LAYOUT_VERTICAL.
Referenced by ui_item_enum_expand_elem_exec(), ui_item_local_sublayout(), uiItemFullR(), and uiItemsFullEnumO_items().
int uiLayoutGetOperatorContext | ( | uiLayout * | layout | ) |
Definition at line 5550 of file interface_layout.c.
References uiLayoutRoot::opcontext, and uiLayout::root.
Definition at line 5003 of file interface_layout.c.
References uiItem::flag, uiLayout::item, and UI_ITEM_PROP_DECORATE.
Definition at line 4993 of file interface_layout.c.
References uiItem::flag, uiLayout::item, and UI_ITEM_PROP_SEP.
Definition at line 5033 of file interface_layout.c.
References uiLayout::redalert.
Definition at line 5053 of file interface_layout.c.
References uiLayout::scale.
Definition at line 5058 of file interface_layout.c.
References uiLayout::scale.
Definition at line 5063 of file interface_layout.c.
References uiLayout::units.
Referenced by ui_block_func_POPUP().
Definition at line 5068 of file interface_layout.c.
References uiLayout::units.
int uiLayoutGetWidth | ( | uiLayout * | layout | ) |
Definition at line 5048 of file interface_layout.c.
References uiLayout::w.
Referenced by blender::ui::GridViewLayoutBuilder::build_from_view(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), ED_region_header_layout(), ui_popup_context_menu_for_button(), ui_template_list_layout_draw(), and uiTemplatePalette().
uiLayout* uiLayoutGridFlow | ( | uiLayout * | layout, |
bool | row_major, | ||
int | columns_len, | ||
bool | even_columns, | ||
bool | even_rows, | ||
bool | align | ||
) |
Definition at line 4786 of file interface_layout.c.
References uiLayout::align, uiLayoutRoot::block, uiLayoutItemGridFlow::columns_len, uiStyle::columnspace, uiLayoutItemGridFlow::even_columns, uiLayoutItemGridFlow::even_rows, uiLayout::item, ITEM_LAYOUT_GRID_FLOW, uiLayoutItemGridFlow::litem, MEM_callocN, uiLayout::root, uiLayoutItemGridFlow::row_major, uiLayout::space, uiLayoutRoot::style, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by blender::ui::GridViewLayoutBuilder::build_from_view(), and ui_template_list_layout_draw().
uiLayout* uiLayoutListBox | ( | uiLayout * | layout, |
struct uiList * | ui_list, | ||
struct PointerRNA * | actptr, | ||
struct PropertyRNA * | actprop | ||
) |
Definition at line 4866 of file interface_layout.c.
References uiBut::custom_data, uiBut::flag, RNA_property_description(), uiBut::rnapoin, uiBut::rnaprop, uiLayoutItemBx::roundbox, uiBut::tip, UI_BTYPE_LISTBOX, UI_BUT_UNDO, and ui_layout_box().
Referenced by ui_template_list_layout_draw().
Definition at line 4907 of file interface_layout.c.
References uiLayoutRoot::block, uiLayout::item, ITEM_LAYOUT_OVERLAP, MEM_callocN, uiLayout::root, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by blender::ui::TreeViewLayoutBuilder::build_row(), and ui_template_list_layout_draw().
Definition at line 4823 of file interface_layout.c.
References uiLayoutRoot::block, uiLayout::item, ITEM_LAYOUT_RADIAL, uiLayout::items, uiLayoutRoot::layout, LISTBASE_FOREACH, MEM_callocN, uiLayout::root, uiLayoutRoot::type, uiItem::type, UI_block_layout_set_current(), ui_item_local_sublayout(), UI_LAYOUT_PIEMENU, and ui_litem_init_from_parent().
Referenced by ui_item_enum_expand_exec(), UI_pie_menu_invoke_from_operator_enum(), UI_pie_menu_invoke_from_rna_enum(), ui_pie_menu_level_invoke(), and uiItemsFullEnumO_items().
Definition at line 4732 of file interface_layout.c.
References uiLayoutRoot::block, uiStyle::buttonspacex, uiLayout::item, ITEM_LAYOUT_ROW, MEM_callocN, uiLayout::root, uiLayout::space, uiLayoutRoot::style, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by add_attribute_search_or_value_buttons(), advanced_panel_draw(), armature_parent_clear_invoke(), armature_parent_set_invoke(), blender::ui::TreeViewLayoutBuilder::build_row(), buttons_panel_context_draw(), cache_file_layer_item(), clamp_panel_draw(), colorband_buttons_layout(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), data_panel_draw(), draw_constraint_header(), draw_property_for_output_socket(), draw_property_for_socket(), ED_collection_hide_menu_draw(), ed_panel_draw(), edbm_bevel_ui(), edbm_decimate_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), edge_types_panel_draw(), envelope_panel_draw(), falloff_panel_draw(), file_panel_asset_catalog_buttons_draw(), file_panel_execution_buttons_draw(), file_panel_execution_cancel_button(), file_panel_execution_execute_button(), fmodifier_influence_draw(), fmodifier_panel_header(), generate_panel_draw(), generator_panel_draw(), geometry_panel_draw(), gpencil_interpolate_seq_ui(), gpencil_modifier_masking_panel_draw(), gpencil_modifier_panel_end(), gpencil_modifier_panel_header(), gpencil_stroke_normalize_ui(), graph_draw_driven_property_panel(), graph_draw_driver_settings_panel(), graph_panel_driverVar__singleProp(), graph_panel_modifiers(), internal_dependencies_panel_draw(), intersection_panel_draw(), material_mask_panel_draw(), metadata_panel_draw_field(), mix_mode_panel_draw(), modifier_panel_end(), modifier_panel_header(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_animdata(), nla_panel_modifiers(), nla_panel_properties(), nla_panel_stripname(), blender::ed::space_node::node_buts_mix_rgb(), blender::nodes::node_shader_output_linestyle_cc::node_buts_output_linestyle(), blender::nodes::node_composite_blur_cc::node_composit_buts_blur(), blender::nodes::node_composite_boxmask_cc::node_composit_buts_boxmask(), blender::nodes::node_composite_channel_matte_cc::node_composit_buts_channel_matte(), blender::nodes::node_composite_color_spill_cc::node_composit_buts_color_spill(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection_ex(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy(), blender::nodes::node_composite_distance_matte_cc::node_composit_buts_distance_matte(), blender::nodes::node_composite_ellipsemask_cc::node_composit_buts_ellipsemask(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), blender::nodes::node_composite_scale_cc::node_composit_buts_scale(), blender::nodes::node_composite_split_viewer_cc::node_composit_buts_splitviewer(), blender::nodes::node_composite_image_cc::node_composit_buts_viewlayers(), blender::ed::space_node::node_file_output_socket_draw(), blender::nodes::node_shader_ies_light_cc::node_shader_buts_ies(), blender::nodes::node_shader_script_cc::node_shader_buts_script(), blender::nodes::node_shader_tangent_cc::node_shader_buts_tangent(), blender::ed::space_node::node_texture_buts_proc(), blender::ed::space_node::node_update_basis(), options_panel_draw(), panel_draw(), profile_panel_draw(), segment_list_item(), sequencer_split_ui(), shaderfx_panel_end(), shaderfx_panel_header(), shape_panel_draw(), spreadsheet_filter_panel_draw_header(), subdivisions_panel_draw(), template_add_button_search_menu(), blender::ui::template_breadcrumbs(), template_keymap_item_properties(), template_operator_property_buts_draw_single(), template_search_buttons(), ui_item_local_sublayout(), ui_item_prop_split_layout_hack(), ui_item_with_label(), blender::ed::space_node::ui_node_draw_input(), ui_paneltype_draw_impl(), ui_template_id(), ui_template_list_layout_draw(), ui_template_palette_menu(), uiblock_layer_pass_buttons(), uiItemFullR(), uiItemPopoverPanel_ptr(), uiItemPropertySplitWrapperCreate(), uiItemsAlertBox(), uiLayoutRowWithHeading(), uilist_draw_filter_default(), uiTemplateAnyID(), uiTemplateAssetView(), uiTemplateCacheFile(), uiTemplateCacheFileLayers(), uiTemplateCacheFileProcedural(), uiTemplateCacheFileTimeSettings(), uiTemplateColorPicker(), uiTemplateEditModeSelection(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateInputStatus(), uiTemplateLayers(), uiTemplateMovieClip(), uiTemplatePaintModeSelection(), uiTemplatePalette(), uiTemplatePathBuilder(), uiTemplatePreview(), uiTemplateRunningJobs(), undo_history_draw_menu(), vertex_group_panel_draw(), vgroup_panel_draw(), view3d_panel_vgroup(), wm_block_create_about(), WM_window_modal_keymap_status_draw(), and workspace_add_menu().
See uiLayoutColumnWithHeading().
Definition at line 4745 of file interface_layout.c.
References ui_layout_heading_set(), and uiLayoutRow().
Referenced by advanced_panel_draw(), data_panel_draw(), edbm_decimate_ui(), edge_types_panel_draw(), fmodifier_influence_draw(), intersection_panel_draw(), limits_panel_draw(), material_mask_panel_draw(), nla_panel_actclip(), options_panel_draw(), panel_draw(), restrictions_panel_draw(), stepped_panel_draw(), and uiTemplateCacheFileTimeSettings().
Definition at line 4943 of file interface_layout.c.
References uiLayout::activate_init.
Referenced by uiDefAutoButsRNA().
Definition at line 4933 of file interface_layout.c.
References blender::compositor::active, and uiLayout::active.
Referenced by advanced_panel_draw(), clamp_panel_draw(), composition_panel_draw(), constant_offset_draw(), curvature_panel_draw(), curve_header_draw(), curve_panel_draw(), custom_range_header_draw(), custom_range_panel_draw(), data_panel_draw(), ED_screens_header_tools_menu_create(), edbm_bevel_ui(), edbm_decimate_ui(), edge_panel_draw(), edge_types_panel_draw(), face_corner_panel_draw(), face_corner_uv_panel_draw(), face_corner_vcol_panel_draw(), face_mark_panel_draw(), face_panel_draw(), fade_panel_draw(), falloff_panel_draw(), fmodifier_frame_range_draw(), fmodifier_get_pointers(), fmodifier_influence_draw(), geometry_panel_draw(), gpencil_modifier_masking_panel_draw(), graph_panel_cursor(), internal_dependencies_panel_draw(), intersection_panel_draw(), limits_panel_draw(), material_mask_panel_draw(), material_mask_panel_draw_header(), materials_panel_draw(), modifier_panel_header(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_properties(), blender::ed::space_node::node_buts_image_user(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::nodes::node_composite_lensdist_cc::node_composit_buts_lensdist(), blender::nodes::node_composite_map_value_cc::node_composit_buts_map_value(), blender::ed::space_node::node_texture_buts_proc(), blender::ed::space_node::node_update_basis(), object_add_ui(), object_offset_draw(), occlusion_panel_draw(), offset_panel_draw(), options_light_reference_draw(), options_panel_draw(), panel_draw(), path_panel_draw(), profile_panel_draw(), random_panel_draw(), relative_offset_draw(), shaderfx_panel_header(), shading_panel_draw(), spreadsheet_filter_panel_draw(), spreadsheet_filter_panel_draw_header(), spreadsheet_row_filters_layout(), stepped_panel_draw(), symmetry_panel_draw(), template_keymap_item_properties(), uiTemplateCacheFileProcedural(), uiTemplateCacheFileTimeSettings(), uiTemplateImage(), uiTemplateMarker(), uiTemplateRunningJobs(), v3d_transform_butsR(), vert_vcol_panel_draw(), vertex_group_panel_draw(), vertex_panel_draw(), vertex_vgroup_panel_draw(), wave_panel_draw(), and wm_open_mainfile_ui().
Definition at line 4938 of file interface_layout.c.
References uiLayout::active_default.
Referenced by file_panel_execution_execute_button().
Definition at line 4963 of file interface_layout.c.
References uiLayout::alignment.
Referenced by add_attribute_search_or_value_buttons(), buttons_panel_context_draw(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), draw_property_for_output_socket(), fmodifier_panel_header(), gpencil_modifier_panel_header(), graph_draw_driven_property_panel(), graph_draw_driver_settings_panel(), internal_dependencies_panel_draw(), modifier_panel_header(), nla_panel_animdata(), blender::ed::space_node::node_update_basis(), spreadsheet_footer_region_draw(), blender::ui::template_breadcrumbs(), ui_layout_heading_label_add(), blender::ed::space_node::ui_node_draw_input(), uiItemsAlertBox(), uiTemplateAnyID(), uiTemplateImageInfo(), uiTemplateInputStatus(), uiTemplateMovieclipInformation(), and wm_block_create_about().
Definition at line 5760 of file interface_layout.c.
References PointerRNA::data, NULL, uiBut::opptr, RNA_pointer_create(), uiBut::rnapoin, uiBut::rnaprop, and uiLayoutSetContextPointer().
Referenced by graph_panel_drivers_popover(), ui_item_menu_hold(), and ui_popup_context_menu_for_button().
void uiLayoutSetContextPointer | ( | uiLayout * | layout, |
const char * | name, | ||
struct PointerRNA * | ptr | ||
) |
Definition at line 5709 of file interface_layout.c.
References uiLayoutRoot::block, uiLayout::context, uiBlock::contexts, CTX_store_add(), ptr, and uiLayout::root.
Referenced by asset_view_draw_item(), colorband_tools_func(), constraint_ops_extra_draw(), draw_constraint_header(), gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), graph_panel_drivers_popover(), modifier_ops_extra_draw(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_image(), blender::ed::space_node::node_composit_buts_image_ex(), blender::ed::space_node::node_shader_buts_tex_environment(), blender::ed::space_node::node_shader_buts_tex_image(), blender::ed::space_node::node_update_basis(), template_ID(), UI_panel_context_pointer_set(), uiLayoutSetContextFromBut(), uiTemplateCacheFile(), uiTemplateCacheFileLayers(), uiTemplateCacheFileProcedural(), uiTemplateCacheFileTimeSettings(), uiTemplateCacheFileVelocity(), uiTemplateImage(), and uiTemplateMovieClip().
void uiLayoutSetEmboss | ( | uiLayout * | layout, |
eUIEmbossType | emboss | ||
) |
Definition at line 4988 of file interface_layout.c.
References uiLayout::emboss.
Referenced by buttons_panel_context_draw(), draw_constraint_header(), fmodifier_panel_header(), gpencil_modifier_panel_header(), modifier_panel_header(), shaderfx_panel_header(), spreadsheet_filter_panel_draw_header(), and v3d_transform_butsR().
Definition at line 4948 of file interface_layout.c.
References enabled, and uiLayout::enabled.
Referenced by armature_parent_clear_invoke(), armature_parent_set_invoke(), bake_panel_draw(), chaining_panel_draw(), constraint_ops_extra_draw(), edge_types_panel_draw(), face_mark_panel_draw(), face_mark_panel_draw_header(), gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), graph_panel_properties(), hud_panel_operator_redo_draw(), intersection_panel_draw(), material_mask_panel_draw(), material_mask_panel_draw_header(), modifier_ops_extra_draw(), nla_panel_animated_strip_time(), nla_panel_evaluation(), blender::ed::space_node::node_buts_image_user(), occlusion_panel_draw(), options_light_reference_draw(), options_panel_draw(), panel_draw(), shape_panel_draw(), subdivisions_panel_draw(), ui_popup_context_menu_for_button(), uiTemplateCacheFileProcedural(), uiTemplateImage(), undo_history_draw_menu(), vgroup_panel_draw(), view3d_panel_vgroup(), wm_block_create_redo(), and wm_open_mainfile_ui().
Definition at line 5639 of file interface_layout.c.
References uiItem::flag, uiLayout::item, and UI_ITEM_FIXED_SIZE.
Referenced by file_panel_execution_cancel_button(), and file_panel_execution_execute_button().
void uiLayoutSetFunc | ( | uiLayout * | layout, |
uiMenuHandleFunc | handlefunc, | ||
void * | argv | ||
) |
Definition at line 5659 of file interface_layout.c.
References uiLayoutRoot::argv, uiLayoutRoot::handlefunc, and uiLayout::root.
Definition at line 4958 of file interface_layout.c.
References uiLayout::keepaspect.
Referenced by uiTemplatePreview().
void uiLayoutSetOperatorContext | ( | uiLayout * | layout, |
wmOperatorCallContext | opcontext | ||
) |
Definition at line 5654 of file interface_layout.c.
References uiLayoutRoot::opcontext, and uiLayout::root.
Referenced by constraint_ops_extra_draw(), draw_constraint_header(), ED_collection_hide_menu_draw(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), ED_screens_navigation_bar_tools_menu_create(), file_panel_execution_buttons_draw(), gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), menu_item_enum_opname_menu(), menu_item_enum_rna_menu(), menu_items_from_ui_create(), modifier_ops_extra_draw(), move_to_collection_invoke(), blender::ed::space_node::node_group_separate_invoke(), outliner_operator_menu(), poselib_add_menu_invoke(), poselib_add_menu_invoke__replacemenu(), recent_files_menu_draw(), ui_popover_create_block(), ui_popup_context_menu_for_button(), UI_popup_menu_begin_ex(), ui_popup_menu_create(), unpack_all_invoke(), unpack_item_invoke(), uv_mark_seam_invoke(), and WM_menu_invoke_ex().
Definition at line 5008 of file interface_layout.c.
References uiItem::flag, uiLayout::item, SET_FLAG_FROM_TEST, and UI_ITEM_PROP_DECORATE.
Referenced by cycles_panel_draw(), data_panel_draw(), draw_fill_tile(), draw_property_for_socket(), edbm_bevel_ui(), edbm_blend_from_shape_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), envelope_panel_draw(), fmodifier_frame_range_draw(), fn_generator_panel_draw(), blender::nodes::node_fn_align_euler_to_vector_cc::fn_node_align_euler_to_vector_layout(), generator_panel_draw(), blender::ed::geometry::geometry_attribute_convert_ui(), blender::ed::geometry::geometry_color_attribute_add_ui(), gpencil_interpolate_seq_ui(), gpencil_modifier_masking_panel_draw(), gpencil_stroke_normalize_ui(), graph_panel_cursor(), graph_panel_key_properties(), graph_panel_properties(), image_new_draw(), image_save_as_draw(), limits_panel_draw(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_animdata(), nla_panel_properties(), blender::nodes::node_geo_attribute_capture_cc::node_layout(), blender::nodes::node_geo_extrude_mesh_cc::node_layout(), blender::nodes::node_geo_merge_by_distance_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_circle_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cone_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cylinder_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_line_cc::node_layout(), blender::nodes::node_geo_mesh_to_volume_cc::node_layout(), blender::nodes::node_geo_points_to_volume_cc::node_layout(), blender::nodes::node_geo_store_named_attribute_cc::node_layout(), blender::nodes::node_geo_uv_unwrap_cc::node_layout(), blender::nodes::node_geo_volume_to_mesh_cc::node_layout(), blender::nodes::node_geo_string_to_curves_cc::node_layout(), noise_panel_draw(), output_attribute_panel_draw(), panel_draw(), profile_panel_draw(), screenshot_draw(), sequencer_split_ui(), spreadsheet_filter_panel_draw(), stepped_panel_draw(), template_operator_property_buts_draw_single(), texture_paint_add_texture_paint_slot_ui(), tile_add_draw(), blender::ed::space_node::ui_node_draw_input(), uiTemplateCacheFileTimeSettings(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateViewsFormat(), and wm_stereo3d_set_draw().
Definition at line 4998 of file interface_layout.c.
References uiItem::flag, uiLayout::item, SET_FLAG_FROM_TEST, and UI_ITEM_PROP_SEP.
Referenced by advanced_panel_draw(), axis_mapping_panel_draw(), bake_panel_draw(), blur_panel_draw(), caps_panel_draw(), chaining_panel_draw(), clamp_panel_draw(), composition_panel_draw(), constant_offset_draw(), curvature_panel_draw(), CurveProfile_buttons_layout(), custom_range_panel_draw(), cycles_panel_draw(), data_panel_draw(), draw_fill_tile(), edbm_average_normals_ui(), edbm_bevel_ui(), edbm_blend_from_shape_ui(), edbm_decimate_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), edbm_point_normals_ui(), edge_data_panel_draw(), edge_panel_draw(), edge_types_panel_draw(), envelope_panel_draw(), face_corner_panel_draw(), face_corner_uv_panel_draw(), face_corner_vcol_panel_draw(), face_mark_panel_draw(), face_panel_draw(), fade_panel_draw(), fading_panel_draw(), falloff_panel_draw(), fmodifier_frame_range_draw(), fn_generator_panel_draw(), blender::nodes::node_fn_align_euler_to_vector_cc::fn_node_align_euler_to_vector_layout(), frame_range_panel_draw(), generate_panel_draw(), generator_panel_draw(), blender::ed::geometry::geometry_attribute_convert_ui(), blender::ed::geometry::geometry_color_attribute_add_ui(), geometry_panel_draw(), gpencil_interpolate_seq_ui(), gpencil_modifier_masking_panel_draw(), gpencil_stroke_normalize_ui(), graph_panel_cursor(), graph_panel_key_properties(), graph_panel_properties(), image_new_draw(), image_save_as_draw(), intersection_panel_draw(), layers_panel_draw(), limits_panel_draw(), material_mask_panel_draw(), materials_panel_draw(), mix_mode_panel_draw(), nla_panel_actclip(), nla_panel_animated_strip_time(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_properties(), blender::nodes::node_geo_attribute_capture_cc::node_layout(), blender::nodes::node_geo_extrude_mesh_cc::node_layout(), blender::nodes::node_geo_merge_by_distance_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_circle_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cone_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cylinder_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_line_cc::node_layout(), blender::nodes::node_geo_mesh_to_volume_cc::node_layout(), blender::nodes::node_geo_points_to_volume_cc::node_layout(), blender::nodes::node_geo_store_named_attribute_cc::node_layout(), blender::nodes::node_geo_uv_unwrap_cc::node_layout(), blender::nodes::node_geo_volume_to_mesh_cc::node_layout(), blender::nodes::node_geo_string_to_curves_cc::node_layout(), noise_panel_draw(), normals_panel_draw(), object_add_ui(), object_convert_ui(), object_offset_draw(), occlusion_panel_draw(), offset_panel_draw(), options_light_reference_draw(), options_panel_draw(), output_attribute_panel_draw(), override_layers_panel_draw(), panel_draw(), path_panel_draw(), position_panel_draw(), profile_panel_draw(), random_panel_draw(), relative_offset_draw(), render_procedural_panel_draw(), restrictions_panel_draw(), screenshot_draw(), sequencer_split_ui(), shading_panel_draw(), solver_options_panel_draw(), spreadsheet_filter_panel_draw(), stepped_panel_draw(), symmetry_panel_draw(), template_operator_property_buts_draw_single(), texture_paint_add_texture_paint_slot_ui(), texture_panel_draw(), tile_add_draw(), time_panel_draw(), time_remapping_panel_draw(), transform_panel_draw(), ui_item_prop_split_layout_hack(), blender::ed::space_node::ui_node_draw_node(), uiDefAutoButsRNA(), uiTemplateCacheFile(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateViewsFormat(), uv_panel_draw(), velocity_panel_draw(), vert_vcol_panel_draw(), vertex_group_panel_draw(), vertex_panel_draw(), vertex_vgroup_panel_draw(), vgroup_panel_draw(), wave_panel_draw(), weightvg_ui_common(), and wm_stereo3d_set_draw().
Definition at line 4953 of file interface_layout.c.
References uiLayout::redalert.
Referenced by axis_mapping_panel_draw(), draw_constraint_header(), gpencil_modifier_masking_panel_draw(), gpencil_modifier_panel_header(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__singleProp(), graph_panel_driverVar__transChan(), modifier_panel_header(), panel_draw(), and shaderfx_panel_header().
Definition at line 4968 of file interface_layout.c.
References uiLayout::scale.
Referenced by file_panel_execution_cancel_button(), file_panel_execution_execute_button(), and uiTemplatePreview().
Definition at line 4973 of file interface_layout.c.
References uiLayout::scale.
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_forwardcompat_dialog(), ED_region_header_layout(), ED_time_scrub_channel_search_draw(), file_forwardcompat_detailed_info_show(), and file_panel_execution_buttons_draw().
void uiLayoutSetTooltipFunc | ( | uiLayout * | layout, |
uiButToolTipFunc | func, | ||
void * | arg, | ||
uiCopyArgFunc | copy_arg, | ||
uiFreeArgFunc | free_arg | ||
) |
Set tooltip function for all buttons in the layout. func, arg and free_arg are passed on to UI_but_func_tooltip_set, so their meaning is the same.
func | The callback function that gets called to get tooltip content |
arg | An optional opaque pointer that gets passed to func |
free_arg | An optional callback for freeing arg (can be set to e.g. MEM_freeN) |
copy_arg | An optional callback for duplicating arg in case UI_but_func_tooltip_set is being called on multiple buttons (can be set to e.g. MEM_dupallocN). If set to NULL, arg will be passed as-is to all buttons. |
Definition at line 5726 of file interface_layout.c.
References uiButtonItem::but, ITEM_BUTTON, uiLayout::items, LISTBASE_FOREACH, NULL, uiBut::type, UI_BTYPE_DECORATOR, UI_but_func_tooltip_set(), and uiLayoutSetTooltipFunc().
Referenced by blender::ed::space_node::node_socket_add_tooltip(), and uiLayoutSetTooltipFunc().
Definition at line 4978 of file interface_layout.c.
References uiLayout::units.
Referenced by constraint_ops_extra_draw(), gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), and modifier_ops_extra_draw().
Definition at line 4983 of file interface_layout.c.
References uiLayout::units.
Definition at line 4919 of file interface_layout.c.
References uiLayoutRoot::block, uiStyle::columnspace, ITEM_LAYOUT_SPLIT, MEM_callocN, uiLayout::root, blender::io::alembic::split(), uiLayoutRoot::style, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by add_attribute_search_or_value_buttons(), block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_forwardcompat_dialog(), colorband_buttons_layout(), curvemap_buttons_layout(), draw_property_for_output_socket(), generator_panel_draw(), graph_panel_key_properties(), internal_dependencies_panel_draw(), blender::ed::space_node::node_buts_image_user(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), blender::nodes::node_shader_tangent_cc::node_shader_buts_tangent(), blender::ed::space_node::std_node_socket_draw(), ui_def_but_rna__menu(), blender::ed::space_node::ui_template_node_link_menu(), uiItemFullR(), uiItemPropertySplitWrapperCreate(), uiItemsAlertBox(), uiItemsEnumR(), uiItemsFullEnumO_items(), uiTemplateAnyID(), uiTemplateMovieClip(), undo_history_draw_menu(), v3d_transform_butsR(), and view3d_panel_vgroup().
void uiTemplateAnyID | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
const char * | proptypename, | ||
const char * | text | ||
) |
This is for selecting the type of ID-block to use, and then from the relevant type choosing the block to use.
propname | property identifier for property that ID-pointer gets stored to. |
proptypename | property identifier for property used to determine the type of ID-pointer that can be used. |
Definition at line 1915 of file interface_templates.c.
References IFACE_, PROP_ENUM, PROP_POINTER, ptr, RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, blender::io::alembic::split(), PointerRNA::type, UI_ITEM_R_ICON_ONLY, UI_LAYOUT_ALIGN_EXPAND, UI_LAYOUT_ALIGN_LEFT, uiItemFullR(), uiItemL(), uiLayoutRow(), uiLayoutSetAlignment(), and uiLayoutSplit().
Referenced by graph_panel_driverVar__singleProp().
void uiTemplateAssetView | ( | struct uiLayout * | layout, |
struct bContext * | C, | ||
const char * | list_id, | ||
struct PointerRNA * | asset_library_dataptr, | ||
const char * | asset_library_propname, | ||
struct PointerRNA * | assets_dataptr, | ||
const char * | assets_propname, | ||
struct PointerRNA * | active_dataptr, | ||
const char * | active_propname, | ||
const struct AssetFilterSettings * | filter_settings, | ||
int | display_flags, | ||
const char * | activate_opname, | ||
struct PointerRNA * | r_activate_op_properties, | ||
const char * | drag_opname, | ||
struct PointerRNA * | r_drag_op_properties | ||
) |
void uiTemplateCacheFile | ( | uiLayout * | layout, |
const struct bContext * | C, | ||
struct PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Draw the main CacheFile properties and operators (file path, scale, etc.), that is those which do not have their own dedicated template functions.
Referenced by panel_draw().
void uiTemplateCacheFileLayers | ( | uiLayout * | layout, |
const struct bContext * | C, | ||
struct PointerRNA * | fileptr | ||
) |
Draw the override layers related properties of the CacheFile.
Referenced by override_layers_panel_draw().
bool uiTemplateCacheFilePointer | ( | struct PointerRNA * | ptr, |
const char * | propname, | ||
struct PointerRNA * | r_file_ptr | ||
) |
Lookup the CacheFile PointerRNA of the given pointer and return it in the output parameter. Returns true if ptr
has a RNACacheFile, false otherwise. If false, the output parameter is not initialized.
Definition at line 6960 of file interface_templates.c.
References PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), and PointerRNA::type.
Referenced by override_layers_panel_draw(), render_procedural_panel_draw(), time_panel_draw(), uiTemplateCacheFile(), and velocity_panel_draw().
void uiTemplateCacheFileProcedural | ( | uiLayout * | layout, |
const struct bContext * | C, | ||
struct PointerRNA * | fileptr | ||
) |
Draw the render procedural related properties of the CacheFile.
Referenced by render_procedural_panel_draw().
void uiTemplateCacheFileTimeSettings | ( | uiLayout * | layout, |
struct PointerRNA * | fileptr | ||
) |
Draw the time related properties of the CacheFile.
Definition at line 6867 of file interface_templates.c.
References IFACE_, NULL, RNA_boolean_get(), RNA_pointer_is_null(), uiItemDecoratorR(), uiItemR(), uiLayoutRow(), uiLayoutRowWithHeading(), uiLayoutSetActive(), uiLayoutSetContextPointer(), and uiLayoutSetPropDecorate().
Referenced by time_panel_draw().
void uiTemplateCacheFileVelocity | ( | uiLayout * | layout, |
struct PointerRNA * | fileptr | ||
) |
Draw the velocity related properties of the CacheFile.
Definition at line 6796 of file interface_templates.c.
References NULL, RNA_pointer_is_null(), uiItemR(), and uiLayoutSetContextPointer().
Referenced by velocity_panel_draw().
void uiTemplateColormanagedViewSettings | ( | struct uiLayout * | layout, |
struct bContext * | C, | ||
struct PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Referenced by uiTemplateImageSettings().
void uiTemplateColorPicker | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
bool | value_slider, | ||
bool | lock, | ||
bool | lock_luminosity, | ||
bool | cubic | ||
) |
This template now follows User Preference for type - name is not correct anymore.
Definition at line 5519 of file interface_templates.c.
References uiBut::a2, uiButHSVCube::but, col, color, uiBut::custom_data, uiButHSVCube::gradient_type, len_v3(), lock, ColorPicker::luminosity_lock_value, NULL, ptr, RNA_property_float_get_array(), RNA_property_float_ui_range(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_block_colorpicker_create(), UI_BTYPE_HSVCIRCLE, UI_BTYPE_HSVCUBE, UI_DPI_FAC, UI_GRAD_HS, UI_GRAD_HV, UI_GRAD_L_ALT, UI_GRAD_SV, UI_GRAD_V_ALT, uiDefButR_prop(), uiItemS(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutRow(), ColorPicker::use_color_cubic, ColorPicker::use_color_lock, ColorPicker::use_luminosity_lock, USER_CP_CIRCLE_HSL, USER_CP_CIRCLE_HSV, USER_CP_SQUARE_HS, USER_CP_SQUARE_HV, USER_CP_SQUARE_SV, and WHEEL_SIZE.
Referenced by blender::nodes::node_fn_input_color_cc::fn_node_input_color_layout(), blender::ed::space_node::node_buts_rgb(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), and blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance_ex().
void uiTemplateColorRamp | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
bool | expand | ||
) |
Definition at line 3744 of file interface_templates.c.
References colorband_buttons_layout(), PointerRNA::data, ERROR_LIBDATA_MESSAGE, ID_IS_LINKED, MEM_callocN, MEM_freeN, PointerRNA::owner_id, RNAUpdateCb::prop, PROP_POINTER, RNAUpdateCb::ptr, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_is_a(), PointerRNA::type, UI_block_lock_clear(), UI_block_lock_set(), UI_UNIT_X, uiLayoutAbsoluteBlock(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by blender::ed::space_node::node_buts_colorramp(), and panel_draw().
void uiTemplateColorspaceSettings | ( | struct uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Definition at line 6662 of file interface_templates.c.
References IFACE_, ptr, RNA_property_pointer_get(), RNA_struct_find_property(), RNA_struct_identifier(), PointerRNA::type, and uiItemR().
Referenced by blender::nodes::node_composite_movieclip_cc::node_composit_buts_movieclip_ex(), uiTemplateImage(), and uiTemplateMovieClip().
void uiTemplateComponentMenu | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
const char * | name | ||
) |
Definition at line 6745 of file interface_templates.c.
References BLI_strncpy(), component_menu(), MEM_callocN, ComponentMenuArgs::propname, ComponentMenuArgs::ptr, ptr, RNA_struct_find_property(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, UI_block_align_begin(), UI_block_align_end(), UI_UNIT_X, UI_UNIT_Y, uiDefBlockButN(), and uiLayoutGetBlock().
Referenced by blender::ed::space_node::std_node_socket_draw().
void uiTemplateConstraintHeader | ( | uiLayout * | layout, |
struct PointerRNA * | ptr | ||
) |
Definition at line 3051 of file interface_templates.c.
References PointerRNA::data, draw_constraint_header(), ERROR_LIBDATA_MESSAGE, GS, Object::id, ID_IS_LINKED, ID_OB, if(), ID::name, PointerRNA::owner_id, ptr, RNA_struct_is_a(), RNA_warning, PointerRNA::type, UI_block_lock_set(), and uiLayoutGetBlock().
Check if the constraint panels don't match the data and rebuild the panels if so.
void uiTemplateCryptoPicker | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
int | icon | ||
) |
Definition at line 5853 of file interface_templates.c.
References ptr, RNA_property_ui_description(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, PointerRNA::type, UI_BTYPE_BUT, UI_UNIT_X, UI_UNIT_Y, uiDefIconTextButO(), uiLayoutGetBlock(), and WM_OP_INVOKE_DEFAULT.
Referenced by blender::ed::space_node::node_composit_buts_cryptomatte(), and blender::ed::space_node::node_composit_buts_cryptomatte_legacy().
void uiTemplateCurveMapping | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
int | type, | ||
bool | levels, | ||
bool | brush, | ||
bool | neg_slope, | ||
bool | tone | ||
) |
Definition at line 4873 of file interface_templates.c.
References curvemap_buttons_layout(), PointerRNA::data, ERROR_LIBDATA_MESSAGE, ID_IS_LINKED, MEM_callocN, MEM_freeN, PointerRNA::owner_id, RNAUpdateCb::prop, PROP_POINTER, RNAUpdateCb::ptr, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_struct_is_a(), RNA_warning, type, PointerRNA::type, UI_block_lock_clear(), UI_block_lock_set(), and uiLayoutGetBlock().
Referenced by falloff_panel_draw(), gpencil_interpolate_seq_ui(), gpencil_modifier_curve_panel_draw(), blender::ed::space_node::node_buts_curvecol(), blender::ed::space_node::node_buts_curvefloat(), blender::ed::space_node::node_buts_curvevec(), blender::nodes::node_composite_curves_cc::node_buts_curvevec(), blender::ed::space_node::node_buts_time(), blender::ed::space_node::node_composit_buts_huecorrect(), and uiTemplateColormanagedViewSettings().
void uiTemplateCurveProfile | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Template for a path creation widget intended for custom bevel profiles. This section is quite similar to uiTemplateCurveMapping, but with reduced complexity.
Definition at line 5473 of file interface_templates.c.
References CurveProfile_buttons_layout(), PointerRNA::data, ERROR_LIBDATA_MESSAGE, ID_IS_LINKED, MEM_callocN, MEM_freeN, PointerRNA::owner_id, RNAUpdateCb::prop, PROP_POINTER, RNAUpdateCb::ptr, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_struct_is_a(), RNA_warning, PointerRNA::type, UI_block_lock_clear(), UI_block_lock_set(), and uiLayoutGetBlock().
Referenced by edbm_bevel_ui(), and profile_panel_draw().
Definition at line 84 of file view3d_header.c.
References BKE_editmesh_from_object(), C, CTX_data_edit_object(), NULL, OB_MESH, ot, RNA_enum_set(), SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, BMEditMesh::selectmode, Object::type, UI_ITEM_O_DEPRESS, uiItemFullO_ptr(), uiLayoutRow(), WM_OP_INVOKE_DEFAULT, and WM_operatortype_find().
Referenced by uiTemplateHeader3D_mode().
bool uiTemplateEventFromKeymapItem | ( | struct uiLayout * | layout, |
const char * | text, | ||
const struct wmKeyMapItem * | kmi, | ||
bool | text_fallback | ||
) |
Definition at line 6627 of file interface_templates.c.
References ARRAY_SIZE, BLT_I18NCONTEXT_ID_WINDOWMANAGER, CTX_TIP_, wmKeyMapItem::type, UI_icon_from_keymap_item(), uiItemL(), and WM_key_event_string().
Referenced by WM_window_modal_keymap_status_draw().
void uiTemplateFileSelectPath | ( | uiLayout * | layout, |
struct bContext * | C, | ||
struct FileSelectParams * | params | ||
) |
Definition at line 7078 of file interface_templates.c.
References C, CTX_wm_screen(), CTX_wm_space_file(), ED_file_path_button(), params, and uiLayoutGetBlock().
void uiTemplateGpencilColorPreview | ( | uiLayout * | layout, |
struct bContext * | C, | ||
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
int | rows, | ||
int | cols, | ||
float | scale, | ||
int | filter | ||
) |
Definition at line 1854 of file interface_templates.c.
References C, filter(), NULL, ptr, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_PREVIEWS, and ui_template_id().
uiLayout* uiTemplateGpencilModifier | ( | uiLayout * | layout, |
struct bContext * | C, | ||
struct PointerRNA * | ptr | ||
) |
Definition at line 111 of file interface_templates.c.
References C, ED_area_header_switchbutton(), and uiLayoutAbsoluteBlock().
Definition at line 147 of file view3d_header.c.
References C, CTX_data_edit_object(), CTX_data_gpencil_data(), CTX_data_view_layer(), ELEM, bGPdata::flag, GP_DATA_STROKE_EDITMODE, Object::mode, NULL, OB_MODE_SCULPT, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, OBACT, uiTemplateEditModeSelection(), and uiTemplatePaintModeSelection().
void uiTemplateHistogram | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Definition at line 3966 of file interface_templates.c.
References col, PointerRNA::data, Histogram::height, if(), PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_is_a(), PointerRNA::type, UI_BTYPE_GRIP, UI_BTYPE_HISTOGRAM, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconButI(), uiLayoutColumn(), and uiLayoutGetBlock().
icon_scale | Scale of the icon, 1x == button height. |
Definition at line 3785 of file interface_templates.c.
References NULL, UI_BTYPE_LABEL, UI_BUT_ICON_PREVIEW, ui_def_but_icon(), UI_HAS_ICON, UI_UNIT_X, UI_UNIT_Y, uiDefIconBut(), and uiLayoutAbsoluteBlock().
void uiTemplateIconView | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
bool | show_labels, | ||
float | icon_scale, | ||
float | icon_scale_popup | ||
) |
icon_scale | Scale of the icon, 1x == button height. |
Definition at line 3893 of file interface_templates.c.
References uiBlock::evil_C, IconViewMenuArgs::icon_scale, MEM_callocN, MEM_freeN, NULL, IconViewMenuArgs::prop, PROP_ENUM, IconViewMenuArgs::ptr, ptr, RNA_enum_icon_from_value(), RNA_property_editable(), RNA_property_enum_get(), RNA_property_enum_items(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, IconViewMenuArgs::show_labels, PointerRNA::type, UI_BTYPE_LABEL, UI_BUT_ICON_PREVIEW, ui_def_but_icon(), UI_HAS_ICON, ui_icon_view_menu_cb(), UI_UNIT_X, UI_UNIT_Y, uiDefBlockButN(), uiDefIconBut(), and uiLayoutAbsoluteBlock().
void uiTemplateID | ( | uiLayout * | layout, |
const struct bContext * | C, | ||
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
const char * | newop, | ||
const char * | openop, | ||
const char * | unlinkop, | ||
int | filter, | ||
bool | live_icon, | ||
const char * | text | ||
) |
Referenced by nla_panel_animdata(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::ed::space_node::node_composit_buts_image(), blender::nodes::node_composite_keyingscreen_cc::node_composit_buts_keyingscreen(), blender::nodes::node_composite_mask_cc::node_composit_buts_mask(), blender::nodes::node_composite_movieclip_cc::node_composit_buts_movieclip(), blender::nodes::node_composite_movieclip_cc::node_composit_buts_movieclip_ex(), blender::nodes::node_composite_moviedistortion_cc::node_composit_buts_moviedistortion(), blender::nodes::node_composite_planetrackdeform_cc::node_composit_buts_planetrackdeform(), blender::nodes::node_composite_stabilize2d_cc::node_composit_buts_stabilize2d(), blender::nodes::node_composite_trackpos_cc::node_composit_buts_trackpos(), blender::nodes::node_composite_image_cc::node_composit_buts_viewlayers(), blender::nodes::node_geo_string_to_curves_cc::node_layout(), blender::ed::space_node::node_shader_buts_tex_environment(), blender::ed::space_node::node_shader_buts_tex_image(), blender::ed::space_node::node_texture_buts_image(), panel_draw(), blender::ed::space_node::std_node_socket_draw(), texture_panel_draw(), uiTemplateImage(), uiTemplateMovieClip(), and weightvg_ui_common().
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 * | text | ||
) |
Definition at line 1794 of file interface_templates.c.
References C, filter(), NULL, ptr, UI_ID_BROWSE, UI_ID_RENAME, and ui_template_id().
Referenced by blender::ed::space_node::node_draw_buttons_group().
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, | ||
bool | hide_buttons | ||
) |
Definition at line 1823 of file interface_templates.c.
References C, filter(), NULL, ptr, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_PREVIEWS, UI_ID_RENAME, and ui_template_id().
void uiTemplateIDTabs | ( | uiLayout * | layout, |
struct bContext * | C, | ||
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
const char * | newop, | ||
const char * | menu, | ||
int | filter | ||
) |
Version of uiTemplateID using tabs.
Definition at line 1882 of file interface_templates.c.
References C, filter(), NULL, ptr, UI_ID_BROWSE, UI_ID_RENAME, and ui_template_id().
void uiTemplateImage | ( | uiLayout * | layout, |
struct bContext * | C, | ||
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
struct PointerRNA * | userptr, | ||
bool | compact, | ||
bool | multiview | ||
) |
Definition at line 722 of file image_buttons.c.
References BKE_image_acquire_ibuf(), BKE_image_acquire_renderresult(), BKE_image_has_alpha(), BKE_image_has_filepath(), BKE_image_has_packedfile(), BKE_image_is_animated(), BKE_image_is_dirty(), BKE_image_release_ibuf(), BKE_image_release_renderresult(), BKE_image_user_frame_calc(), C, RenderData::cfra, col, Image::colorspace_settings, CTX_data_scene(), CTX_wm_space_image(), PointerRNA::data, ImBuf::flags, Image::gen_type, IB_halffloat, IFACE_, IMA_GENTYPE_BLANK, IMA_SRC_GENERATED, IMA_SRC_MOVIE, IMA_SRC_VIEWER, IMA_TYPE_COMPOSITE, IMA_TYPE_MULTILAYER, IMA_TYPE_R_RESULT, IMB_colormanagement_space_name_is_data(), RNAUpdateCb::iuser, SpaceImage::iuser, lock, MEM_callocN, ColorManagedColorspaceSettings::name, NULL, RNAUpdateCb::prop, PROP_POINTER, RNAUpdateCb::ptr, ptr, Scene::r, R_MULTIVIEW, ImBuf::rect_float, Image::render_slot, RNA_boolean_get(), RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), rna_update_cb(), Image::rr, RenderData::scemode, scene, Image::source, Image::type, PointerRNA::type, UI_block_funcN_set(), UI_DPI_FAC, UI_ITEM_R_EXPAND, UI_TEMPLATE_ID_FILTER_ALL, UI_UNIT_Y, uiblock_layer_pass_buttons(), uiDefAutoButR(), uiItemO(), uiItemR(), uiItemS(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetActive(), uiLayoutSetContextPointer(), uiLayoutSetEnabled(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), uiTemplateColorspaceSettings(), uiTemplateID(), uiTemplateImageInfo(), and uiTemplateImageViews().
Referenced by blender::ed::space_node::node_composit_buts_image_ex(), blender::ed::space_node::node_shader_buts_tex_environment_ex(), blender::ed::space_node::node_shader_buts_tex_image_ex(), and blender::ed::space_node::node_texture_buts_image_ex().
void uiTemplateImageFormatViews | ( | uiLayout * | layout, |
struct PointerRNA * | imfptr, | ||
struct PointerRNA * | ptr | ||
) |
Definition at line 1123 of file image_buttons.c.
References PointerRNA::data, ImageFormatData::imtype, NULL, ptr, R_IMF_IMTYPE_MULTILAYER, RNA_boolean_get(), RNA_property_pointer_get(), RNA_struct_find_property(), uiItemR(), and uiTemplateViewsFormat().
Referenced by image_open_draw(), image_save_as_draw(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), and sequencer_add_draw().
void uiTemplateImageInfo | ( | uiLayout * | layout, |
struct bContext * | C, | ||
struct Image * | ima, | ||
struct ImageUser * | iuser | ||
) |
Definition at line 1167 of file image_buttons.c.
References Image::anims, BKE_image_acquire_ibuf(), BKE_image_has_anim(), BKE_image_release_ibuf(), BKE_image_user_frame_get(), BLI_path_slash_rfind(), BLI_snprintf(), BLI_snprintf_rlen(), BLI_strncpy_rlen(), C, RenderData::cfra, ImBuf::channels, col, CTX_data_scene(), ELEM, ListBase::first, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, IMB_anim_get_duration(), IMB_TC_RECORD_RUN, len, lock, MAX_IMAGE_INFO_LEN, ImBuf::name, NULL, ImBuf::planes, Scene::r, R_IMF_PLANES_RGBA, ImBuf::rect_float, scene, Image::source, str, TIP_, UI_LAYOUT_ALIGN_RIGHT, uiItemL(), uiLayoutColumn(), uiLayoutSetAlignment(), ImBuf::x, ImBuf::y, ImBuf::zbuf, and ImBuf::zbuf_float.
Referenced by uiTemplateImage().
void uiTemplateImageLayers | ( | uiLayout * | layout, |
struct bContext * | C, | ||
struct Image * | ima, | ||
struct ImageUser * | iuser | ||
) |
Definition at line 1148 of file image_buttons.c.
References BKE_image_acquire_renderresult(), BKE_image_release_renderresult(), C, CTX_data_scene(), IMA_TYPE_R_RESULT, NULL, Image::render_slot, scene, Image::type, UI_DPI_FAC, and uiblock_layer_pass_buttons().
void uiTemplateImageSettings | ( | uiLayout * | layout, |
struct PointerRNA * | imfptr, | ||
bool | color_management | ||
) |
Definition at line 960 of file image_buttons.c.
References BKE_imtype_requires_linear_float(), BKE_imtype_supports_compress(), BKE_imtype_supports_quality(), BKE_imtype_supports_zbuf(), BKE_imtype_valid_depths(), col, ImageFormatData::color_management, PointerRNA::data, ELEM, GS, id, ID_SCE, IFACE_, ImageFormatData::imtype, ID::name, NULL, PointerRNA::owner_id, R_IMF_CHAN_DEPTH_1, R_IMF_CHAN_DEPTH_10, R_IMF_CHAN_DEPTH_12, R_IMF_CHAN_DEPTH_16, R_IMF_CHAN_DEPTH_24, R_IMF_CHAN_DEPTH_32, R_IMF_CHAN_DEPTH_8, R_IMF_COLOR_MANAGEMENT_OVERRIDE, R_IMF_IMTYPE_CINEON, R_IMF_IMTYPE_DPX, R_IMF_IMTYPE_JP2, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_TIFF, RNA_pointer_get(), TIP_, UI_ITEM_R_EXPAND, uiItemL(), uiItemR(), uiItemS(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), and uiTemplateColormanagedViewSettings().
Referenced by image_save_as_draw(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), and screenshot_draw().
void uiTemplateImageStereo3d | ( | uiLayout * | layout, |
struct PointerRNA * | stereo3d_format_ptr | ||
) |
Definition at line 1058 of file image_buttons.c.
References ATTR_FALLTHROUGH, col, PointerRNA::data, Stereo3dFormat::display_mode, NULL, S3D_DISPLAY_ANAGLYPH, S3D_DISPLAY_INTERLACE, S3D_DISPLAY_SIDEBYSIDE, S3D_DISPLAY_TOPBOTTOM, uiItemR(), and uiLayoutColumn().
Referenced by uiTemplateViewsFormat().
void uiTemplateImageViews | ( | uiLayout * | layout, |
struct PointerRNA * | imaptr | ||
) |
Definition at line 1105 of file image_buttons.c.
References PointerRNA::data, IMA_TYPE_MULTILAYER, NULL, RNA_property_pointer_get(), RNA_struct_find_property(), Image::type, and uiTemplateViewsFormat().
Referenced by uiTemplateImage().
Definition at line 6371 of file interface_templates.c.
References C, col, CTX_wm_window(), CTX_wm_workspace(), NULL, WorkSpace::status_text, TIP_, UI_LAYOUT_ALIGN_LEFT, uiItemL(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetAlignment(), WM_window_cursor_keymap_status_get(), and WM_window_modal_keymap_status_draw().
void uiTemplateKeymapItemProperties | ( | uiLayout * | layout, |
struct PointerRNA * | ptr | ||
) |
Definition at line 6596 of file interface_templates.c.
References uiBlock::buttons, PointerRNA::data, keymap_item_modified(), ListBase::last, uiBut::next, NULL, ptr, RNA_pointer_get(), uiBut::rnaprop, template_keymap_item_properties(), UI_but_flag_enable(), UI_but_func_set(), UI_BUT_UPDATE_DELAY, uiLayoutGetBlock(), and WM_operator_properties_sanitize().
void uiTemplateLayers | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
struct PointerRNA * | used_ptr, | ||
const char * | used_propname, | ||
int | active_layer | ||
) |
Definition at line 5909 of file interface_templates.c.
References col, handle_layer_buttons(), NULL, POINTER_FROM_INT, ptr, RNA_property_array_length(), RNA_property_boolean_get_index(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiBut::type, PointerRNA::type, UI_BTYPE_TOGGLE, UI_but_func_set(), UI_UNIT_X, UI_UNIT_Y, uiDefAutoButR(), uiLayoutColumn(), uiLayoutGetBlock(), and uiLayoutRow().
void uiTemplateList | ( | uiLayout * | layout, |
struct bContext * | C, | ||
const char * | listtype_name, | ||
const char * | list_id, | ||
struct PointerRNA * | dataptr, | ||
const char * | propname, | ||
struct PointerRNA * | active_dataptr, | ||
const char * | active_propname, | ||
const char * | item_dyntip_propname, | ||
int | rows, | ||
int | maxrows, | ||
int | layout_type, | ||
int | columns, | ||
enum uiTemplateListFlags | flags | ||
) |
Definition at line 1229 of file interface_template_list.cc.
References C, and uiTemplateList_ex().
Referenced by blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), panel_draw(), and uiTemplateCacheFileLayers().
struct uiList* uiTemplateList_ex | ( | uiLayout * | layout, |
struct bContext * | C, | ||
const char * | listtype_name, | ||
const char * | list_id, | ||
struct PointerRNA * | dataptr, | ||
const char * | propname, | ||
struct PointerRNA * | active_dataptr, | ||
const char * | active_propname, | ||
const char * | item_dyntip_propname, | ||
int | rows, | ||
int | maxrows, | ||
int | layout_type, | ||
int | columns, | ||
enum uiTemplateListFlags | flags, | ||
void * | customdata | ||
) |
Definition at line 1158 of file interface_template_list.cc.
References TemplateListInputData::active_item_idx, C, TemplateListLayoutDrawData::columns, uiListDyn::customdata, uiListType::draw_filter, TemplateListLayoutDrawData::draw_filter, uiListType::draw_item, TemplateListLayoutDrawData::draw_item, uiList::dyn_data, uiListType::filter_items, uiList::flag, uiList::list_last_activei, TemplateListLayoutDrawData::maxrows, MEM_SAFE_FREE, TemplateListLayoutDrawData::rows, ui_list_ensure(), ui_template_list_collect_display_items(), ui_template_list_data_retrieve(), ui_template_list_free_items(), ui_template_list_layout_draw(), UI_TEMPLATE_LIST_SORT_LOCK, UI_TEMPLATE_LIST_SORT_REVERSE, uilist_draw_filter_default(), uilist_draw_item_default(), uilist_filter_items_default(), and UILST_SCROLL_TO_ACTIVE_ITEM.
Referenced by uiTemplateAssetView(), and uiTemplateList().
void uiTemplateMarker | ( | struct uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
struct PointerRNA * | userptr, | ||
struct PointerRNA * | trackptr, | ||
bool | compact | ||
) |
Definition at line 377 of file clip_buttons.c.
References add_v2_v2v2(), B_MARKER_FLAG, B_MARKER_OFFSET, B_MARKER_PAT_DIM, B_MARKER_POS, B_MARKER_SEARCH_DIM, B_MARKER_SEARCH_POS, BKE_movieclip_get_size(), BKE_movieclip_remap_scene_to_clip_frame(), BKE_tracking_marker_get(), BKE_tracking_marker_pattern_minmax(), MarkerUpdateCb::clip, col, MarkerUpdateCb::compact, PointerRNA::data, MovieTrackingMarker::flag, MarkerUpdateCb::framenr, height, IFACE_, MarkerUpdateCb::marker, marker_block_handler(), MARKER_DISABLED, MarkerUpdateCb::marker_flag, MarkerUpdateCb::marker_pat, MarkerUpdateCb::marker_pos, MarkerUpdateCb::marker_search, MarkerUpdateCb::marker_search_pos, marker_update_cb(), MEM_callocN, mul_v2_fl(), NULL, MovieTrackingMarker::pos, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), MovieTrackingMarker::search_max, MovieTrackingMarker::search_min, sub_v2_v2v2(), TIP_, to_pixel_space(), MarkerUpdateCb::track, TRACK_LOCKED, MarkerUpdateCb::track_offset, PointerRNA::type, UI_block_align_begin(), UI_block_align_end(), UI_block_func_handle_set(), UI_block_funcN_set(), UI_BTYPE_CHECKBOX_N, UI_BTYPE_LABEL, UI_BTYPE_NUM, UI_BTYPE_TOGGLE_N, UI_but_drawflag_enable(), UI_but_funcN_set(), UI_BUT_ICON_REVERSE, UI_but_number_precision_set(), UI_but_number_step_size_set(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButBitI(), uiDefButF(), uiDefIconButBitI(), uiLayoutAbsoluteBlock(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutSetActive(), MarkerUpdateCb::user, and width.
Definition at line 1157 of file interface_template_search_menu.cc.
References UI_block_layout_set_current(), UI_but_func_menu_search(), UI_UNIT_X, UI_UNIT_Y, uiDefSearchBut(), and uiLayoutGetBlock().
void uiTemplateMovieClip | ( | struct uiLayout * | layout, |
struct bContext * | C, | ||
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
bool | compact | ||
) |
Definition at line 87 of file clip_buttons.c.
References C, col, PointerRNA::data, IFACE_, NULL, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), blender::io::alembic::split(), PointerRNA::type, UI_BTYPE_LABEL, UI_TEMPLATE_ID_FILTER_ALL, uiDefBut(), uiItemO(), uiItemR(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetContextPointer(), uiLayoutSplit(), uiTemplateColorspaceSettings(), and uiTemplateID().
void uiTemplateMovieclipInformation | ( | struct uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
struct PointerRNA * | userptr | ||
) |
Definition at line 757 of file clip_buttons.c.
References MovieClip::anim, BKE_movieclip_filename_for_frame(), BKE_movieclip_get_ibuf_flag(), BKE_movieclip_get_size(), BKE_movieclip_remap_scene_to_clip_frame(), BLI_path_slash_rfind(), BLI_snprintf(), BLI_snprintf_rlen(), BLI_strncpy_rlen(), ImBuf::channels, col, PointerRNA::data, file, FILE_MAX, MovieClip::flag, height, IMB_anim_get_fps(), IMB_freeImBuf(), len, MovieClip::len, MCLIP_SRC_SEQUENCE, MOVIECLIP_CACHE_SKIP, NULL, ImBuf::planes, PROP_POINTER, ptr, R_IMF_PLANES_RGBA, ImBuf::rect_float, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), MovieClip::source, str, TIP_, PointerRNA::type, UI_LAYOUT_ALIGN_RIGHT, uiItemL(), uiLayoutColumn(), uiLayoutSetAlignment(), and width.
void uiTemplateNodeLink | ( | uiLayout * | layout, |
struct bContext * | C, | ||
struct bNodeTree * | ntree, | ||
struct bNode * | node, | ||
struct bNodeSocket * | input | ||
) |
Definition at line 710 of file node_templates.cc.
References C, uiBut::flag, uiBut::func_argN, input, node, blender::ed::space_node::NodeLinkArg::node, NODE_ACTIVE_TEXTURE, blender::ed::space_node::node_socket_color_get(), ntree, blender::ed::space_node::NodeLinkArg::ntree, uiBut::poin, RNA_pointer_create(), blender::ed::space_node::NodeLinkArg::sock, SOCK_HIDE_VALUE, SOCK_SHADER, UI_block_layout_set_current(), UI_but_drawflag_enable(), UI_BUT_ICON_LEFT, UI_BUT_NODE_ACTIVE, UI_but_node_link_set(), UI_but_type_set_menu_from_pulldown(), UI_MAX_NAME_STR, blender::ed::space_node::ui_node_sock_name(), blender::ed::space_node::ui_template_node_link_menu(), UI_UNIT_X, UI_UNIT_Y, uiDefIconMenuBut(), uiDefMenuBut(), and uiLayoutGetBlock().
Referenced by blender::ed::space_node::ui_node_draw_input().
void uiTemplateNodeView | ( | uiLayout * | layout, |
struct bContext * | C, | ||
struct bNodeTree * | ntree, | ||
struct bNode * | node, | ||
struct bNodeSocket * | input | ||
) |
Definition at line 910 of file node_templates.cc.
References C, ListBase::first, bNode::flag, input, bNode::next, node, NODE_TEST, bNodeTree::nodes, ntree, blender::ed::space_node::ui_node_draw_input(), and blender::ed::space_node::ui_node_draw_node().
void uiTemplateOperatorPropertyButs | ( | const struct bContext * | C, |
uiLayout * | layout, | ||
struct wmOperator * | op, | ||
eButLabelAlign | label_align, | ||
short | flag | ||
) |
Draw Operator property buttons for redoing execution with different settings. This function does not initialize the layout, functions can be called on the layout before and after.
Referenced by file_panel_operator(), wm_block_create_redo(), wm_block_dialog_create(), and wm_operator_ui_create().
Referenced by hud_panel_operator_redo_draw().
Definition at line 115 of file interface_template_search_operator.c.
References UI_block_layout_set_current(), UI_but_func_operator_search(), UI_UNIT_X, UI_UNIT_Y, uiDefSearchBut(), and uiLayoutGetBlock().
void uiTemplatePalette | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
bool | colors | ||
) |
void uiTemplatePathBuilder | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
struct PointerRNA * | root_ptr, | ||
const char * | text | ||
) |
This is creating/editing RNA-Paths
Referenced by graph_panel_driverVar__singleProp().
void uiTemplatePreview | ( | uiLayout * | layout, |
struct bContext * | C, | ||
struct ID * | id, | ||
bool | show_buttons, | ||
struct ID * | parent, | ||
struct MTex * | slot, | ||
const char * | preview_id | ||
) |
Definition at line 3093 of file interface_templates.c.
References B_MATPRV, BKE_idtype_idcode_to_name(), BKE_scene_uses_blender_eevee(), BLI_addtail(), BLI_findstring(), BLI_snprintf(), BLI_strncpy(), BLT_I18NCONTEXT_ID_LIGHT, C, col, CTX_data_scene(), CTX_IFACE_, CTX_wm_region(), do_preview_buttons(), ED_preview_draw(), ELEM, GS, uiPreview::height, id, Material::id, ID_LA, ID_LS, ID_MA, ID_TE, ID_WO, IFACE_, MEM_callocN, ID::name, NULL, uiPreview::preview_id, RNA_pointer_create(), RNA_warning, tex, TEX_PR_BOTH, TEX_PR_OTHER, TEX_PR_TEXTURE, UI_block_func_handle_set(), UI_BTYPE_EXTRA, UI_BTYPE_GRIP, UI_BTYPE_ROW, UI_but_func_drawextra_set(), UI_ITEM_R_EXPAND, UI_MAX_NAME_STR, ARegion::ui_previews, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButS(), uiDefIconButS(), uiItemR(), uiItemS(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetKeepAspect(), and uiLayoutSetScaleX().
int uiTemplateRecentFiles | ( | struct uiLayout * | layout, |
int | rows | ||
) |
Definition at line 7047 of file interface_templates.c.
References BLI_path_basename(), BLO_has_bfile_extension(), G, LISTBASE_FOREACH_INDEX, NULL, ptr, RNA_boolean_set(), RNA_string_set(), uiItemFullO(), and WM_OP_INVOKE_DEFAULT.
Definition at line 6271 of file interface_templates.c.
References BKE_reports_last_displayable(), BLF_width(), C, uiBut::col, CTX_wm_reports(), wmTimer::customdata, if(), Report::len, max_ii(), Report::message, min_ii(), NULL, ReportList::reporttimer, SPACE_INFO, TIP_, Report::type, UI_block_align_begin(), UI_block_align_end(), UI_block_emboss_get(), UI_block_emboss_set(), UI_BTYPE_BUT, UI_BTYPE_ROUNDBOX, UI_DPI_FAC, UI_EMBOSS_NONE, UI_fontstyle_set(), UI_GetThemeColorType4ubv(), UI_icon_colorid_from_report_type(), UI_icon_from_report_type(), UI_style_get(), UI_text_colorid_from_report_type(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButO(), uiDefIconButO(), uiFontStyle::uifont_id, uiLayoutAbsolute(), uiLayoutGetBlock(), uiStyle::widgetlabel, width, ReportTimerInfo::widthfac, and WM_OP_INVOKE_REGION_WIN.
Definition at line 6056 of file interface_templates.c.
References blender::compositor::active, blender::compositor::area(), B_STOPANIM, B_STOPCLIP, B_STOPCOMPO, B_STOPFILE, B_STOPOTHER, B_STOPRENDER, B_STOPSEQ, BLI_snprintf(), uiButProgressbar::but, C, CTX_data_main(), CTX_wm_area(), CTX_wm_manager(), do_running_jobs(), ED_screen_animation_no_scrub(), G, IFACE_, wmWindowManager::is_interface_locked, LISTBASE_FOREACH, MEM_freeN, MEM_mallocN, NULL, ProgressTooltip_Store::owner, uiButProgressbar::progress, progress_tooltip_func(), scene, Main::scenes, SPACE_NODE, TIP_, UI_block_func_handle_set(), UI_block_layout_set_current(), UI_BTYPE_BUT, UI_BTYPE_LABEL, UI_BTYPE_PROGRESS_BAR, UI_but_func_tooltip_set(), UI_fontstyle_string_width(), UI_FSTYLE_WIDGET, UI_UNIT_X, UI_UNIT_Y, uiDefIconTextBut(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetActive(), ProgressTooltip_Store::wm, WM_JOB_TYPE_ANY, WM_JOB_TYPE_CLIP_BUILD_PROXY, WM_JOB_TYPE_CLIP_PREFETCH, WM_JOB_TYPE_CLIP_SOLVE_CAMERA, WM_JOB_TYPE_CLIP_TRACK_MARKERS, WM_JOB_TYPE_COMPOSITE, WM_JOB_TYPE_DPAINT_BAKE, WM_JOB_TYPE_FILESEL_READDIR, WM_JOB_TYPE_OBJECT_BAKE, WM_JOB_TYPE_OBJECT_BAKE_TEXTURE, WM_JOB_TYPE_OBJECT_SIM_FLUID, WM_JOB_TYPE_OBJECT_SIM_OCEAN, WM_JOB_TYPE_POINTCACHE, WM_JOB_TYPE_RENDER, WM_JOB_TYPE_SEQ_BUILD_PREVIEW, WM_JOB_TYPE_SEQ_BUILD_PROXY, WM_JOB_TYPE_SEQ_DRAW_THUMBNAIL, WM_jobs_is_stopped(), WM_jobs_name(), WM_jobs_progress(), and WM_jobs_test().
void uiTemplateSearch | ( | uiLayout * | layout, |
struct bContext * | C, | ||
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
struct PointerRNA * | searchptr, | ||
const char * | searchpropname, | ||
const char * | newop, | ||
const char * | unlinkop | ||
) |
Search menu to pick an item from a collection. A version of uiTemplateID that works for non-ID types.
Definition at line 2175 of file interface_templates.c.
References C, MEM_freeN, NULL, ptr, template_search_buttons(), and template_search_setup().
void uiTemplateSearchPreview | ( | uiLayout * | layout, |
struct bContext * | C, | ||
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
struct PointerRNA * | searchptr, | ||
const char * | searchpropname, | ||
const char * | newop, | ||
const char * | unlinkop, | ||
int | rows, | ||
int | cols | ||
) |
Definition at line 2192 of file interface_templates.c.
References C, MEM_freeN, NULL, TemplateSearch::preview_cols, TemplateSearch::preview_rows, ptr, template_search_buttons(), template_search_setup(), and TemplateSearch::use_previews.
Check if the shader effect panels don't match the data and rebuild the panels if so.
Definition at line 6410 of file interface_templates.c.
References BKE_blender_version_blendfile_string_from_values(), BLF_width(), C, uiBut::col, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), ED_info_statusbar_string(), ED_info_statusbar_string_ex(), Main::has_forward_compatibility_issues, max_ii(), NULL, scene, SNPRINTF, SPACE_INFO, STATUSBAR_SHOW_VERSION, TH_INFO_WARNING, TH_INFO_WARNING_TEXT, TIP_, UI_block_align_begin(), UI_block_align_end(), UI_block_emboss_get(), UI_block_emboss_set(), UI_BTYPE_BUT, UI_BTYPE_ROUNDBOX, UI_DPI_FAC, UI_EMBOSS_NONE, UI_fontstyle_set(), UI_GetThemeColorType4ubv(), UI_style_get(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconBut(), uiFontStyle::uifont_id, uiItemL(), uiLayoutAbsolute(), uiLayoutGetBlock(), Main::versionfile, uiStyle::widgetlabel, and width.
void uiTemplateTextureShow | ( | uiLayout * | layout, |
const struct bContext * | C, | ||
struct PointerRNA * | ptr, | ||
struct PropertyRNA * | prop | ||
) |
Button to quickly show texture in Properties Editor texture tab.
Referenced by template_ID().
Definition at line 536 of file buttons_texture.c.
References BLI_strncpy(), C, CTX_wm_space_properties(), uiBut::flag, ButsTextureUser::icon, ButsTextureUser::name, NULL, template_texture_user_menu(), SpaceProperties::texuser, TIP_, UI_BUT_ICON_SUBMENU, UI_but_type_set_menu_from_pulldown(), UI_MAX_NAME_STR, UI_UNIT_X, UI_UNIT_Y, uiDefIconTextMenuBut(), uiDefMenuBut(), uiItemL(), uiLayoutGetBlock(), and ButsContextTexture::user.
void uiTemplateTrack | ( | struct uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Definition at line 146 of file clip_buttons.c.
References col, PointerRNA::data, if(), PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), MovieClipScopes::track_preview_height, PointerRNA::type, UI_BTYPE_GRIP, UI_BTYPE_TRACK_PREVIEW, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconButI(), uiLayoutColumn(), and uiLayoutGetBlock().
void uiTemplateVectorscope | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Definition at line 4078 of file interface_templates.c.
References col, PointerRNA::data, if(), PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_is_a(), PointerRNA::type, UI_BTYPE_GRIP, UI_BTYPE_VECTORSCOPE, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconButI(), uiLayoutColumn(), uiLayoutGetBlock(), and Scopes::vecscope_height.
void uiTemplateWaveform | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Definition at line 4016 of file interface_templates.c.
References col, PointerRNA::data, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_is_a(), PointerRNA::type, UI_BTYPE_GRIP, UI_BTYPE_WAVEFORM, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconButI(), uiLayoutColumn(), uiLayoutGetBlock(), and Scopes::wavefrm_height.