Blender  V3.3
Classes | Macros | Typedefs | Enumerations | Functions
UI_interface.h File Reference
#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
 

Macros

#define UI_SEP_CHAR   '|'
 
#define UI_SEP_CHAR_S   "|"
 
#define UI_MENU_ARROW_SEP   "\xe2\x96\xb6"
 
#define UI_MAX_DRAW_STR   400
 
#define UI_MAX_NAME_STR   128
 
#define UI_MAX_SHORTCUT_STR   64
 
#define UI_REGION_OVERLAP_MARGIN   (U.widget_unit / 3)
 
#define UI_SCREEN_MARGIN   10
 
#define UI_DEFAULT_TEXT_POINTS   11.0f
 
#define UI_DEFAULT_TITLE_POINTS   11.0f
 
#define UI_PANEL_WIDTH   340
 
#define UI_COMPACT_PANEL_WIDTH   160
 
#define UI_SIDEBAR_PANEL_WIDTH   220
 
#define UI_NAVIGATION_REGION_WIDTH   UI_COMPACT_PANEL_WIDTH
 
#define UI_NARROW_NAVIGATION_REGION_WIDTH   100
 
#define UI_PANEL_CATEGORY_MARGIN_WIDTH   (U.widget_unit * 1.0f)
 
#define UI_PANEL_MARGIN_X   (U.widget_unit * 0.4f)
 
#define UI_PANEL_MARGIN_Y   (U.widget_unit * 0.1f)
 
#define UI_DPI_FAC   (U.dpi_fac)
 
#define UI_DPI_ICON_SIZE   ((float)16 * UI_DPI_FAC)
 
#define UI_BUT_POIN_TYPES   (UI_BUT_POIN_FLOAT | UI_BUT_POIN_SHORT | UI_BUT_POIN_CHAR)
 
#define BUTTYPE   (63 << 9)
 
#define UI_but_is_decorator(but)   ((but)->type == UI_BTYPE_DECORATOR)
 
#define EDTSRC_I18N_OP_NAME   "UI_OT_edittranslation"
 
#define AUTOCOMPLETE_NO_MATCH   0
 
#define AUTOCOMPLETE_FULL_MATCH   1
 
#define AUTOCOMPLETE_PARTIAL_MATCH   2
 
#define INSTANCED_PANEL_UNIQUE_STR_LEN   16
 
#define UI_UNIT_X   ((void)0, U.widget_unit)
 
#define UI_UNIT_Y   ((void)0, U.widget_unit)
 
#define UI_HEADER_OFFSET   ((void)0, 0.4f * UI_UNIT_X)
 
#define UI_ALPHA_CHECKER_DARK   100
 
#define UI_ALPHA_CHECKER_LIGHT   160
 
#define UI_UL_DEFAULT_CLASS_NAME   "UI_UL_list"
 
#define UI_TOOLTIP_DELAY   0.5
 
#define UI_TOOLTIP_DELAY_LABEL   0.2
 
#define UI_PRECISION_FLOAT_MAX   6
 
#define UI_PRECISION_FLOAT_SCALE   0.01f
 
#define UI_FSTYLE_WIDGET   (const uiFontStyle *)&(UI_style_get()->widget)
 
#define USE_UI_TOOLBAR_HACK
 
#define USE_UI_POPOVER_ONCE
 

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
 

Enumerations

enum  eUIEmbossType {
  UI_EMBOSS = 0 , UI_EMBOSS_NONE = 1 , UI_EMBOSS_PULLDOWN = 2 , UI_EMBOSS_RADIAL = 3 ,
  UI_EMBOSS_NONE_OR_STATUS = 4 , UI_EMBOSS_UNDEFINED = 255
}
 
enum  {
  UI_DIR_UP = 1 << 0 , UI_DIR_DOWN = 1 << 1 , UI_DIR_LEFT = 1 << 2 , UI_DIR_RIGHT = 1 << 3 ,
  UI_DIR_CENTER_X = 1 << 4 , UI_DIR_CENTER_Y = 1 << 5 , UI_DIR_ALL = UI_DIR_UP | UI_DIR_DOWN | UI_DIR_LEFT | UI_DIR_RIGHT
}
 
enum  {
  UI_BLOCK_LOOP = 1 << 0 , UI_BLOCK_IS_FLIP = 1 << 1 , UI_BLOCK_NO_FLIP = 1 << 2 , UI_BLOCK_NUMSELECT = 1 << 3 ,
  UI_BLOCK_NO_WIN_CLIP = 1 << 4 , UI_BLOCK_CLIPBOTTOM = 1 << 5 , UI_BLOCK_CLIPTOP = 1 << 6 , UI_BLOCK_MOVEMOUSE_QUIT = 1 << 7 ,
  UI_BLOCK_KEEP_OPEN = 1 << 8 , UI_BLOCK_POPUP = 1 << 9 , UI_BLOCK_OUT_1 = 1 << 10 , UI_BLOCK_SEARCH_MENU = 1 << 11 ,
  UI_BLOCK_POPUP_MEMORY = 1 << 12 , UI_BLOCK_CLIP_EVENTS = 1 << 13 , UI_BLOCK_POPUP_HOLD = 1 << 18 , UI_BLOCK_LIST_ITEM = 1 << 19 ,
  UI_BLOCK_RADIAL = 1 << 20 , UI_BLOCK_POPOVER = 1 << 21 , UI_BLOCK_POPOVER_ONCE = 1 << 22 , UI_BLOCK_SHOW_SHORTCUT_ALWAYS = 1 << 23 ,
  UI_BLOCK_NO_DRAW_OVERRIDDEN_STATE = 1 << 24 , UI_BLOCK_SEARCH_ONLY = 1 << 25 , UI_BLOCK_QUICK_SETUP = 1 << 26
}
 
enum  {
  UI_RETURN_CANCEL = 1 << 0 , UI_RETURN_OK = 1 << 1 , UI_RETURN_OUT = 1 << 2 , UI_RETURN_OUT_PARENT = 1 << 3 ,
  UI_RETURN_UPDATE = 1 << 4 , UI_RETURN_POPUP_OK = 1 << 5
}
 
enum  {
  UI_BUT_ICON_SUBMENU = 1 << 8 , UI_BUT_ICON_PREVIEW = 1 << 9 , UI_BUT_NODE_LINK = 1 << 10 , UI_BUT_NODE_ACTIVE = 1 << 11 ,
  UI_BUT_DRAG_LOCK = 1 << 12 , UI_BUT_DISABLED = 1 << 13 , UI_BUT_ANIMATED = 1 << 14 , UI_BUT_ANIMATED_KEY = 1 << 15 ,
  UI_BUT_DRIVEN = 1 << 16 , UI_BUT_REDALERT = 1 << 17 , UI_BUT_INACTIVE = 1 << 18 , UI_BUT_LAST_ACTIVE = 1 << 19 ,
  UI_BUT_UNDO = 1 << 20 , UI_BUT_NO_UTF8 = 1 << 22 , UI_BUT_ACTIVE_DEFAULT = 1 << 23 , UI_BUT_LIST_ITEM = 1 << 24 ,
  UI_BUT_DRAG_MULTI = 1 << 25 , UI_BUT_ACTIVATE_ON_INIT = 1 << 26 , UI_BUT_HAS_SEP_CHAR = 1 << 27 , UI_BUT_UPDATE_DELAY = 1 << 28 ,
  UI_BUT_TEXTEDIT_UPDATE = 1 << 29 , UI_BUT_VALUE_CLEAR = 1 << 30 , UI_BUT_OVERRIDDEN = 1u << 31u
}
 
enum  {
  UI_BUT_TEXT_LEFT = 1 << 1 , UI_BUT_ICON_LEFT = 1 << 2 , UI_BUT_TEXT_RIGHT = 1 << 3 , UI_BUT_NO_TOOLTIP = 1 << 4 ,
  UI_BUT_NO_TEXT_PADDING = 1 << 5 , UI_BUT_ALIGN_TOP = 1 << 14 , UI_BUT_ALIGN_LEFT = 1 << 15 , UI_BUT_ALIGN_RIGHT = 1 << 16 ,
  UI_BUT_ALIGN_DOWN = 1 << 17 , UI_BUT_ALIGN = UI_BUT_ALIGN_TOP | UI_BUT_ALIGN_LEFT | UI_BUT_ALIGN_RIGHT | UI_BUT_ALIGN_DOWN , UI_BUT_ALIGN_STITCH_TOP = 1 << 18 , UI_BUT_ALIGN_STITCH_LEFT = 1 << 19 ,
  UI_BUT_ALIGN_ALL = UI_BUT_ALIGN | UI_BUT_ALIGN_STITCH_TOP | UI_BUT_ALIGN_STITCH_LEFT , UI_BUT_BOX_ITEM = 1 << 20 , UI_BUT_ACTIVE_LEFT = 1 << 21 , UI_BUT_ACTIVE_RIGHT = 1 << 22 ,
  UI_BUT_ICON_REVERSE = 1 << 23 , UI_BUT_ANIMATED_CHANGED = 1 << 24 , UI_BUT_CHECKBOX_INVERT = 1 << 25
}
 
enum  eButPointerType {
  UI_BUT_POIN_CHAR = 32 , UI_BUT_POIN_SHORT = 64 , UI_BUT_POIN_INT = 96 , UI_BUT_POIN_FLOAT = 128 ,
  UI_BUT_POIN_BIT = 256
}
 
enum  eButType {
  UI_BTYPE_BUT = 1 << 9 , UI_BTYPE_ROW = 2 << 9 , UI_BTYPE_TEXT = 3 << 9 , UI_BTYPE_MENU = 4 << 9 ,
  UI_BTYPE_BUT_MENU = 5 << 9 , UI_BTYPE_NUM = 6 << 9 , UI_BTYPE_NUM_SLIDER = 7 << 9 , UI_BTYPE_TOGGLE = 8 << 9 ,
  UI_BTYPE_TOGGLE_N = 9 << 9 , UI_BTYPE_ICON_TOGGLE = 10 << 9 , UI_BTYPE_ICON_TOGGLE_N = 11 << 9 , UI_BTYPE_BUT_TOGGLE = 12 << 9 ,
  UI_BTYPE_CHECKBOX = 13 << 9 , UI_BTYPE_CHECKBOX_N = 14 << 9 , UI_BTYPE_COLOR = 15 << 9 , UI_BTYPE_TAB = 16 << 9 ,
  UI_BTYPE_POPOVER = 17 << 9 , UI_BTYPE_SCROLL = 18 << 9 , UI_BTYPE_BLOCK = 19 << 9 , UI_BTYPE_LABEL = 20 << 9 ,
  UI_BTYPE_KEY_EVENT = 24 << 9 , UI_BTYPE_HSVCUBE = 26 << 9 , UI_BTYPE_PULLDOWN = 27 << 9 , UI_BTYPE_ROUNDBOX = 28 << 9 ,
  UI_BTYPE_COLORBAND = 30 << 9 , UI_BTYPE_UNITVEC = 31 << 9 , UI_BTYPE_CURVE = 32 << 9 , UI_BTYPE_CURVEPROFILE = 33 << 9 ,
  UI_BTYPE_LISTBOX = 36 << 9 , UI_BTYPE_LISTROW = 37 << 9 , UI_BTYPE_HSVCIRCLE = 38 << 9 , UI_BTYPE_TRACK_PREVIEW = 40 << 9 ,
  UI_BTYPE_SEARCH_MENU = 41 << 9 , UI_BTYPE_EXTRA = 42 << 9 , UI_BTYPE_PREVIEW_TILE = 43 << 9 , UI_BTYPE_HOTKEY_EVENT = 46 << 9 ,
  UI_BTYPE_IMAGE = 47 << 9 , UI_BTYPE_HISTOGRAM = 48 << 9 , UI_BTYPE_WAVEFORM = 49 << 9 , UI_BTYPE_VECTORSCOPE = 50 << 9 ,
  UI_BTYPE_PROGRESS_BAR = 51 << 9 , UI_BTYPE_NODE_SOCKET = 53 << 9 , UI_BTYPE_SEPR = 54 << 9 , UI_BTYPE_SEPR_LINE = 55 << 9 ,
  UI_BTYPE_SEPR_SPACER = 56 << 9 , UI_BTYPE_GRIP = 57 << 9 , UI_BTYPE_DECORATOR = 58 << 9 , UI_BTYPE_VIEW_ITEM = 59 << 9
}
 
enum  eButGradientType {
  UI_GRAD_SV = 0 , UI_GRAD_HV = 1 , UI_GRAD_HS = 2 , UI_GRAD_H = 3 ,
  UI_GRAD_S = 4 , UI_GRAD_V = 5 , UI_GRAD_V_ALT = 9 , UI_GRAD_L_ALT = 10
}
 
enum  { UI_SCROLL_PRESSED = 1 << 0 , UI_SCROLL_ARROWS = 1 << 1 }
 
enum  { UI_BLOCK_THEME_STYLE_REGULAR = 0 , UI_BLOCK_THEME_STYLE_POPUP = 1 }
 
enum  eBlockBoundsCalc {
  UI_BLOCK_BOUNDS_NONE = 0 , UI_BLOCK_BOUNDS = 1 , UI_BLOCK_BOUNDS_TEXT , UI_BLOCK_BOUNDS_POPUP_MOUSE ,
  UI_BLOCK_BOUNDS_POPUP_MENU , UI_BLOCK_BOUNDS_POPUP_CENTER , UI_BLOCK_BOUNDS_PIE_CENTER
}
 
enum  uiStringInfoType {
  BUT_GET_RNAPROP_IDENTIFIER = 1 , BUT_GET_RNASTRUCT_IDENTIFIER , BUT_GET_RNAENUM_IDENTIFIER , BUT_GET_LABEL ,
  BUT_GET_RNA_LABEL , BUT_GET_RNAENUM_LABEL , BUT_GET_RNA_LABEL_CONTEXT , BUT_GET_TIP ,
  BUT_GET_RNA_TIP , BUT_GET_RNAENUM_TIP , BUT_GET_OP_KEYMAP , BUT_GET_PROP_KEYMAP
}
 
enum  {
  UI_ID_NOP = 0 , UI_ID_RENAME = 1 << 0 , UI_ID_BROWSE = 1 << 1 , UI_ID_ADD_NEW = 1 << 2 ,
  UI_ID_ALONE = 1 << 4 , UI_ID_OPEN = 1 << 3 , UI_ID_DELETE = 1 << 5 , UI_ID_LOCAL = 1 << 6 ,
  UI_ID_AUTO_NAME = 1 << 7 , UI_ID_FAKE_USER = 1 << 8 , UI_ID_PIN = 1 << 9 , UI_ID_PREVIEWS = 1 << 10 ,
  UI_ID_OVERRIDE = 1 << 11 , UI_ID_FULL
}
 
enum  { UI_TEMPLATE_ID_FILTER_ALL = 0 , UI_TEMPLATE_ID_FILTER_AVAILABLE = 1 }
 
enum  eButLabelAlign { UI_BUT_LABEL_ALIGN_NONE , UI_BUT_LABEL_ALIGN_COLUMN , UI_BUT_LABEL_ALIGN_SPLIT_COLUMN }
 
enum  eAutoPropButsReturn { UI_PROP_BUTS_NONE_ADDED = 1 << 0 , UI_PROP_BUTS_ANY_FAILED_CHECK = 1 << 1 }
 
enum  { UI_LAYOUT_HORIZONTAL = 0 , UI_LAYOUT_VERTICAL = 1 }
 
enum  {
  UI_LAYOUT_PANEL = 0 , UI_LAYOUT_HEADER = 1 , UI_LAYOUT_MENU = 2 , UI_LAYOUT_TOOLBAR = 3 ,
  UI_LAYOUT_PIEMENU = 4 , UI_LAYOUT_VERT_BAR = 5
}
 
enum  { UI_LAYOUT_ALIGN_EXPAND = 0 , UI_LAYOUT_ALIGN_LEFT = 1 , UI_LAYOUT_ALIGN_CENTER = 2 , UI_LAYOUT_ALIGN_RIGHT = 3 }
 
enum  {
  UI_ITEM_R_EXPAND = 1 << 1 , UI_ITEM_R_SLIDER = 1 << 2 , UI_ITEM_R_TOGGLE = 1 << 3 , UI_ITEM_R_ICON_NEVER = 1 << 4 ,
  UI_ITEM_R_ICON_ONLY = 1 << 5 , UI_ITEM_R_EVENT = 1 << 6 , UI_ITEM_R_FULL_EVENT = 1 << 7 , UI_ITEM_R_NO_BG = 1 << 8 ,
  UI_ITEM_R_IMMEDIATE = 1 << 9 , UI_ITEM_O_DEPRESS = 1 << 10 , UI_ITEM_R_COMPACT = 1 << 11 , UI_ITEM_R_CHECKBOX_INVERT = 1 << 12 ,
  UI_ITEM_R_FORCE_BLANK_DECORATE = 1 << 13 , UI_ITEM_R_SPLIT_EMPTY_NAME = 1 << 14
}
 
enum  {
  UI_TEMPLATE_OP_PROPS_SHOW_TITLE = 1 << 0 , UI_TEMPLATE_OP_PROPS_SHOW_EMPTY = 1 << 1 , UI_TEMPLATE_OP_PROPS_COMPACT = 1 << 2 , UI_TEMPLATE_OP_PROPS_HIDE_ADVANCED = 1 << 3 ,
  UI_TEMPLATE_OP_PROPS_NO_SPLIT_LAYOUT = 1 << 4
}
 
enum  {
  UI_CNR_TOP_LEFT = 1 << 0 , UI_CNR_TOP_RIGHT = 1 << 1 , UI_CNR_BOTTOM_RIGHT = 1 << 2 , UI_CNR_BOTTOM_LEFT = 1 << 3 ,
  UI_CNR_NONE = 0 , UI_CNR_ALL = (UI_CNR_TOP_LEFT | UI_CNR_TOP_RIGHT | UI_CNR_BOTTOM_RIGHT | UI_CNR_BOTTOM_LEFT)
}
 
enum  uiTemplateListFlags {
  UI_TEMPLATE_LIST_FLAG_NONE = 0 , UI_TEMPLATE_LIST_SORT_REVERSE = (1 << 0) , UI_TEMPLATE_LIST_SORT_LOCK = (1 << 1) , UI_TEMPLATE_LIST_NO_GRIP = (1 << 2) ,
  UI_TEMPLATE_LIST_NO_FILTER_OPTIONS = (1 << 3) , UI_TEMPLATE_LIST_NO_NAMES = (1 << 4) , UI_TEMPLATE_LIST_FLAGS_LAST
}
 
enum  { UI_TEMPLATE_ASSET_DRAW_NO_NAMES = (1 << 0) , UI_TEMPLATE_ASSET_DRAW_NO_FILTER = (1 << 1) , UI_TEMPLATE_ASSET_DRAW_NO_LIBRARY = (1 << 2) }
 
enum  eFontStyle_Align { UI_STYLE_TEXT_LEFT = 0 , UI_STYLE_TEXT_CENTER = 1 , UI_STYLE_TEXT_RIGHT = 2 }
 

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 uiListUI_list_find_mouse_over (const struct ARegion *region, const struct wmEvent *event)
 
uiPopupMenuUI_popup_menu_begin (struct bContext *C, const char *title, int icon) ATTR_NONNULL()
 
uiPopupMenuUI_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 uiLayoutUI_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)
 
uiPopoverUI_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 uiLayoutUI_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 uiPieMenuUI_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 uiLayoutUI_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)
 
uiBlockUI_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)
 
uiButUI_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)
 
uiButuiDefBut (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)
 
uiButuiDefButF (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)
 
uiButuiDefButI (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)
 
uiButuiDefButBitI (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)
 
uiButuiDefButS (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)
 
uiButuiDefButBitS (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)
 
uiButuiDefButC (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)
 
uiButuiDefButBitC (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)
 
uiButuiDefButR (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)
 
uiButuiDefButR_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)
 
uiButuiDefButO (uiBlock *block, int type, const char *opname, wmOperatorCallContext opcontext, const char *str, int x, int y, short width, short height, const char *tip)
 
uiButuiDefButO_ptr (uiBlock *block, int type, struct wmOperatorType *ot, wmOperatorCallContext opcontext, const char *str, int x, int y, short width, short height, const char *tip)
 
uiButuiDefIconBut (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)
 
uiButuiDefIconButI (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)
 
uiButuiDefIconButBitI (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)
 
uiButuiDefIconButS (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)
 
uiButuiDefIconButBitS (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)
 
uiButuiDefIconButBitC (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)
 
uiButuiDefIconButR (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)
 
uiButuiDefIconButR_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)
 
uiButuiDefIconButO (uiBlock *block, int type, const char *opname, wmOperatorCallContext opcontext, int icon, int x, int y, short width, short height, const char *tip)
 
uiButuiDefIconButO_ptr (uiBlock *block, int type, struct wmOperatorType *ot, wmOperatorCallContext opcontext, int icon, int x, int y, short width, short height, const char *tip)
 
uiButuiDefButImage (uiBlock *block, void *imbuf, int x, int y, short width, short height, const uchar color[4])
 
uiButuiDefButAlert (uiBlock *block, int icon, int x, int y, short width, short height)
 
uiButuiDefIconTextBut (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)
 
uiButuiDefIconTextButF (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)
 
uiButuiDefIconTextButI (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)
 
uiButuiDefIconTextButR (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)
 
uiButuiDefIconTextButR_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)
 
uiButuiDefIconTextButO (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)
 
uiButuiDefIconTextButO_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 PointerRNAUI_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 PointerRNAUI_but_context_ptr_get (const uiBut *but, const char *name, const StructRNA *type CPP_ARG_DEFAULT(nullptr))
 
struct bContextStoreUI_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])
 
uiButuiDefPulldownBut (uiBlock *block, uiBlockCreateFunc func, void *arg, const char *str, int x, int y, short width, short height, const char *tip)
 
uiButuiDefMenuBut (uiBlock *block, uiMenuCreateFunc func, void *arg, const char *str, int x, int y, short width, short height, const char *tip)
 
uiButuiDefIconTextMenuBut (uiBlock *block, uiMenuCreateFunc func, void *arg, int icon, const char *str, int x, int y, short width, short height, const char *tip)
 
uiButuiDefIconMenuBut (uiBlock *block, uiMenuCreateFunc func, void *arg, int icon, int x, int y, short width, short height, const char *tip)
 
uiButuiDefBlockBut (uiBlock *block, uiBlockCreateFunc func, void *arg, const char *str, int x, int y, short width, short height, const char *tip)
 
uiButuiDefBlockButN (uiBlock *block, uiBlockCreateFunc func, void *argN, const char *str, int x, int y, short width, short height, const char *tip)
 
uiButuiDefIconBlockBut (uiBlock *block, uiBlockCreateFunc func, void *arg, int retval, int icon, int x, int y, short width, short height, const char *tip)
 
uiButuiDefIconTextBlockBut (uiBlock *block, uiBlockCreateFunc func, void *arg, int icon, const char *str, int x, int y, short width, short height, const char *tip)
 
uiButuiDefSearchBut (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)
 
uiButuiDefSearchButO_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)
 
uiButuiDefAutoButR (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 PointerRNAUI_but_extra_operator_icon_add (uiBut *but, const char *opname, wmOperatorCallContext opcontext, int icon)
 
struct wmOperatorTypeUI_but_extra_operator_icon_optype_get (struct uiButExtraOpIcon *extra_icon)
 
struct PointerRNAUI_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)
 
AutoCompleteUI_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 PanelUI_panel_find_by_type (struct ListBase *lb, const struct PanelType *pt)
 
struct PanelUI_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 PanelCategoryDynUI_panel_category_find (const struct ARegion *region, const char *idname)
 
struct PanelCategoryStackUI_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 PointerRNAUI_panel_custom_data_get (const struct Panel *panel)
 
struct PointerRNAUI_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 PanelUI_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)
 
uiLayoutUI_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)
 
uiBlockuiLayoutGetBlock (uiLayout *layout)
 
void uiLayoutSetFunc (uiLayout *layout, uiMenuHandleFunc handlefunc, void *argv)
 
void uiLayoutSetContextPointer (uiLayout *layout, const char *name, struct PointerRNA *ptr)
 
struct bContextStoreuiLayoutGetContextStore (uiLayout *layout)
 
void uiLayoutContextCopy (uiLayout *layout, struct bContextStore *context)
 
void uiLayoutSetTooltipFunc (uiLayout *layout, uiButToolTipFunc func, void *arg, uiCopyArgFunc copy_arg, uiFreeArgFunc free_arg)
 
struct wmOperatorTypeUI_but_operatortype_get_from_enum_menu (struct uiBut *but, struct PropertyRNA **r_prop)
 
struct MenuTypeUI_but_menutype_get (uiBut *but)
 
struct PanelTypeUI_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)
 
uiLayoutuiLayoutRow (uiLayout *layout, bool align)
 
uiLayoutuiLayoutRowWithHeading (uiLayout *layout, bool align, const char *heading)
 
uiLayoutuiLayoutColumn (uiLayout *layout, bool align)
 
uiLayoutuiLayoutColumnWithHeading (uiLayout *layout, bool align, const char *heading)
 
uiLayoutuiLayoutColumnFlow (uiLayout *layout, int number, bool align)
 
uiLayoutuiLayoutGridFlow (uiLayout *layout, bool row_major, int columns_len, bool even_columns, bool even_rows, bool align)
 
uiLayoutuiLayoutBox (uiLayout *layout)
 
uiLayoutuiLayoutListBox (uiLayout *layout, struct uiList *ui_list, struct PointerRNA *actptr, struct PropertyRNA *actprop)
 
uiLayoutuiLayoutAbsolute (uiLayout *layout, bool align)
 
uiLayoutuiLayoutSplit (uiLayout *layout, float percentage, bool align)
 
uiLayoutuiLayoutOverlap (uiLayout *layout)
 
uiBlockuiLayoutAbsoluteBlock (uiLayout *layout)
 
uiLayoutuiLayoutRadial (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)
 
uiLayoutuiTemplateGpencilModifier (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 uiListuiTemplateList_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 PointerRNAUI_list_custom_activate_operator_set (struct uiList *ui_list, const char *opname, bool create_properties)
 
struct PointerRNAUI_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)
 
uiLayoutuiItemL_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)
 
uiLayoutuiItemsAlertBox (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)
 
uiButUI_context_active_but_get (const struct bContext *C)
 
uiButUI_context_active_but_get_respect_menu (const struct bContext *C)
 
uiButUI_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 wmOperatorUI_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 IDUI_context_active_but_get_tab_ID (struct bContext *C)
 
uiButUI_region_active_but_get (const struct ARegion *region)
 
uiButUI_region_but_find_rect_over (const struct ARegion *region, const struct rcti *rect_px)
 
uiBlockUI_region_block_find_mouse_over (const struct ARegion *region, const int xy[2], bool only_clip)
 
struct ARegionUI_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 uiStyleUI_style_get (void)
 
const struct uiStyleUI_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)
 
uiButStoreUI_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 ARegionUI_tooltip_create_from_button (struct bContext *C, struct ARegion *butregion, uiBut *but, bool is_label)
 
struct ARegionUI_tooltip_create_from_button_or_extra_icon (struct bContext *C, struct ARegion *butregion, uiBut *but, uiButExtraOpIcon *extra_icon, bool is_label)
 
struct ARegionUI_tooltip_create_from_gizmo (struct bContext *C, struct wmGizmo *gz)
 
void UI_tooltip_free (struct bContext *C, struct bScreen *screen, struct ARegion *region)
 
struct ARegionUI_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)
 
uiViewItemHandleUI_region_views_find_item_at (const struct ARegion *region, const int xy[2]) ATTR_NONNULL()
 
uiViewItemHandleUI_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)
 

Macro Definition Documentation

◆ AUTOCOMPLETE_FULL_MATCH

#define AUTOCOMPLETE_FULL_MATCH   1

Definition at line 1760 of file UI_interface.h.

◆ AUTOCOMPLETE_NO_MATCH

#define AUTOCOMPLETE_NO_MATCH   0

Definition at line 1759 of file UI_interface.h.

◆ AUTOCOMPLETE_PARTIAL_MATCH

#define AUTOCOMPLETE_PARTIAL_MATCH   2

Definition at line 1761 of file UI_interface.h.

◆ BUTTYPE

#define BUTTYPE   (63 << 9)

Definition at line 396 of file UI_interface.h.

◆ EDTSRC_I18N_OP_NAME

#define EDTSRC_I18N_OP_NAME   "UI_OT_edittranslation"

Definition at line 1381 of file UI_interface.h.

◆ INSTANCED_PANEL_UNIQUE_STR_LEN

#define INSTANCED_PANEL_UNIQUE_STR_LEN   16

Definition at line 1900 of file UI_interface.h.

◆ UI_ALPHA_CHECKER_DARK

#define UI_ALPHA_CHECKER_DARK   100

Definition at line 2027 of file UI_interface.h.

◆ UI_ALPHA_CHECKER_LIGHT

#define UI_ALPHA_CHECKER_LIGHT   160

Definition at line 2028 of file UI_interface.h.

◆ UI_but_is_decorator

#define UI_but_is_decorator (   but)    ((but)->type == UI_BTYPE_DECORATOR)

Definition at line 611 of file UI_interface.h.

◆ UI_BUT_POIN_TYPES

Definition at line 326 of file UI_interface.h.

◆ UI_COMPACT_PANEL_WIDTH

#define UI_COMPACT_PANEL_WIDTH   160

Definition at line 241 of file UI_interface.h.

◆ UI_DEFAULT_TEXT_POINTS

#define UI_DEFAULT_TEXT_POINTS   11.0f

Definition at line 235 of file UI_interface.h.

◆ UI_DEFAULT_TITLE_POINTS

#define UI_DEFAULT_TITLE_POINTS   11.0f

Definition at line 238 of file UI_interface.h.

◆ UI_DPI_FAC

#define UI_DPI_FAC   (U.dpi_fac)

Definition at line 305 of file UI_interface.h.

◆ UI_DPI_ICON_SIZE

#define UI_DPI_ICON_SIZE   ((float)16 * UI_DPI_FAC)

Definition at line 307 of file UI_interface.h.

◆ UI_FSTYLE_WIDGET

#define UI_FSTYLE_WIDGET   (const uiFontStyle *)&(UI_style_get()->widget)

Definition at line 3166 of file UI_interface.h.

◆ UI_HEADER_OFFSET

#define UI_HEADER_OFFSET   ((void)0, 0.4f * UI_UNIT_X)

Definition at line 2013 of file UI_interface.h.

◆ UI_MAX_DRAW_STR

#define UI_MAX_DRAW_STR   400

Definition at line 91 of file UI_interface.h.

◆ UI_MAX_NAME_STR

#define UI_MAX_NAME_STR   128

Definition at line 92 of file UI_interface.h.

◆ UI_MAX_SHORTCUT_STR

#define UI_MAX_SHORTCUT_STR   64

Definition at line 93 of file UI_interface.h.

◆ UI_MENU_ARROW_SEP

#define UI_MENU_ARROW_SEP   "\xe2\x96\xb6"

Definition at line 88 of file UI_interface.h.

◆ UI_NARROW_NAVIGATION_REGION_WIDTH

#define UI_NARROW_NAVIGATION_REGION_WIDTH   100

Definition at line 244 of file UI_interface.h.

◆ UI_NAVIGATION_REGION_WIDTH

#define UI_NAVIGATION_REGION_WIDTH   UI_COMPACT_PANEL_WIDTH

Definition at line 243 of file UI_interface.h.

◆ UI_PANEL_CATEGORY_MARGIN_WIDTH

#define UI_PANEL_CATEGORY_MARGIN_WIDTH   (U.widget_unit * 1.0f)

Definition at line 246 of file UI_interface.h.

◆ UI_PANEL_MARGIN_X

#define UI_PANEL_MARGIN_X   (U.widget_unit * 0.4f)

Definition at line 250 of file UI_interface.h.

◆ UI_PANEL_MARGIN_Y

#define UI_PANEL_MARGIN_Y   (U.widget_unit * 0.1f)

Definition at line 251 of file UI_interface.h.

◆ UI_PANEL_WIDTH

#define UI_PANEL_WIDTH   340

Definition at line 240 of file UI_interface.h.

◆ UI_PRECISION_FLOAT_MAX

#define UI_PRECISION_FLOAT_MAX   6

Definition at line 3161 of file UI_interface.h.

◆ UI_PRECISION_FLOAT_SCALE

#define UI_PRECISION_FLOAT_SCALE   0.01f

Definition at line 3163 of file UI_interface.h.

◆ UI_REGION_OVERLAP_MARGIN

#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.

◆ UI_SCREEN_MARGIN

#define UI_SCREEN_MARGIN   10

Definition at line 104 of file UI_interface.h.

◆ UI_SEP_CHAR

#define UI_SEP_CHAR   '|'

Definition at line 83 of file UI_interface.h.

◆ UI_SEP_CHAR_S

#define UI_SEP_CHAR_S   "|"

Definition at line 84 of file UI_interface.h.

◆ UI_SIDEBAR_PANEL_WIDTH

#define UI_SIDEBAR_PANEL_WIDTH   220

Definition at line 242 of file UI_interface.h.

◆ UI_TOOLTIP_DELAY

#define UI_TOOLTIP_DELAY   0.5

Definition at line 3157 of file UI_interface.h.

◆ UI_TOOLTIP_DELAY_LABEL

#define UI_TOOLTIP_DELAY_LABEL   0.2

Definition at line 3158 of file UI_interface.h.

◆ UI_UL_DEFAULT_CLASS_NAME

#define UI_UL_DEFAULT_CLASS_NAME   "UI_UL_list"

Definition at line 2469 of file UI_interface.h.

◆ UI_UNIT_X

#define UI_UNIT_X   ((void)0, U.widget_unit)

Definition at line 1971 of file UI_interface.h.

◆ UI_UNIT_Y

#define UI_UNIT_Y   ((void)0, U.widget_unit)

Definition at line 1972 of file UI_interface.h.

◆ USE_UI_POPOVER_ONCE

#define USE_UI_POPOVER_ONCE

Definition at line 3195 of file UI_interface.h.

◆ USE_UI_TOOLBAR_HACK

#define USE_UI_TOOLBAR_HACK

Definition at line 3192 of file UI_interface.h.

Typedef Documentation

◆ AutoComplete

typedef struct AutoComplete AutoComplete

Definition at line 1749 of file UI_interface.h.

◆ eAutoPropButsReturn

◆ eButGradientType

Gradient types, for color picker UI_BTYPE_HSVCUBE etc.

◆ eFontStyle_Align

#uiFontStyle.align

◆ eUIEmbossType

◆ uiBlock

typedef struct uiBlock uiBlock

Definition at line 1 of file UI_interface.h.

◆ uiBlockCancelFunc

typedef void(* uiBlockCancelFunc) (struct bContext *C, void *arg1)

Definition at line 715 of file UI_interface.h.

◆ uiBlockCreateFunc

typedef uiBlock*(* uiBlockCreateFunc) (struct bContext *C, struct ARegion *region, void *arg1)

Definition at line 714 of file UI_interface.h.

◆ uiBlockHandleFunc

typedef void(* uiBlockHandleFunc) (struct bContext *C, void *arg, int event)

Definition at line 540 of file UI_interface.h.

◆ uiBlockInteraction_CallbackData

◆ uiBlockInteractionBeginFn

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.

◆ uiBlockInteractionEndFn

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.

◆ uiBlockInteractionUpdateFn

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.

◆ uiBut

typedef struct uiBut uiBut

Definition at line 1 of file UI_interface.h.

◆ uiButCompleteFunc

typedef int(* uiButCompleteFunc) (struct bContext *C, char *str, void *arg)

Definition at line 509 of file UI_interface.h.

◆ uiButExtraOpIcon

Definition at line 1 of file UI_interface.h.

◆ uiButHandleFunc

typedef void(* uiButHandleFunc) (struct bContext *C, void *arg1, void *arg2)

Definition at line 505 of file UI_interface.h.

◆ uiButHandleHoldFunc

typedef void(* uiButHandleHoldFunc) (struct bContext *C, struct ARegion *butregion, uiBut *but)

Definition at line 508 of file UI_interface.h.

◆ uiButHandleNFunc

typedef void(* uiButHandleNFunc) (struct bContext *C, void *argN, void *arg2)

Definition at line 507 of file UI_interface.h.

◆ uiButHandleRenameFunc

typedef void(* uiButHandleRenameFunc) (struct bContext *C, void *arg, char *origstr)

Definition at line 506 of file UI_interface.h.

◆ uiButIdentityCompareFunc

typedef bool(* uiButIdentityCompareFunc) (const uiBut *a, const uiBut *b)

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.

◆ uiButPushedStateFunc

typedef int(* uiButPushedStateFunc) (struct uiBut *but, const void *arg)

Definition at line 538 of file UI_interface.h.

◆ uiButSearchContextMenuFn

typedef bool(* uiButSearchContextMenuFn) (struct bContext *C, void *arg, void *active, const struct wmEvent *event)

Definition at line 526 of file UI_interface.h.

◆ uiButSearchCreateFn

typedef struct ARegion*(* uiButSearchCreateFn) (struct bContext *C, struct ARegion *butregion, struct uiButSearch *search_but)

Definition at line 513 of file UI_interface.h.

◆ uiButSearchTooltipFn

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.

◆ uiButSearchUpdateFn

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.

◆ uiButStore

typedef struct uiButStore uiButStore

Definition at line 3088 of file UI_interface.h.

◆ uiButStoreElem

Definition at line 3088 of file UI_interface.h.

◆ uiButToolTipFunc

typedef char*(* uiButToolTipFunc) (struct bContext *C, void *argN, const char *tip)

Definition at line 537 of file UI_interface.h.

◆ uiCopyArgFunc

typedef void*(* uiCopyArgFunc) (const void *arg)

Definition at line 602 of file UI_interface.h.

◆ uiDragColorHandle

◆ uiFreeArgFunc

typedef void(* uiFreeArgFunc) (void *arg)

Definition at line 603 of file UI_interface.h.

◆ uiLayout

typedef struct uiLayout uiLayout

Definition at line 1 of file UI_interface.h.

◆ uiListPanelIDFromDataFunc

typedef void(* uiListPanelIDFromDataFunc) (void *data_link, char *r_idname)

Definition at line 1907 of file UI_interface.h.

◆ uiMenuCreateFunc

typedef void(* uiMenuCreateFunc) (struct bContext *C, struct uiLayout *layout, void *arg1)

Definition at line 592 of file UI_interface.h.

◆ uiMenuHandleFunc

typedef void(* uiMenuHandleFunc) (struct bContext *C, void *arg, int event)

Definition at line 593 of file UI_interface.h.

◆ uiMenuStepFunc

typedef bool(* uiMenuStepFunc) (struct bContext *C, int direction, void *arg1)

Used for cycling menu values without opening the menu (Ctrl-Wheel).

Parameters
directionforward or backwards [1 / -1].
arg1uiBut.poin (as with uiMenuCreateFunc).
Returns
true when the button was changed.

Definition at line 600 of file UI_interface.h.

◆ uiPieMenu

typedef struct uiPieMenu uiPieMenu

Definition at line 683 of file UI_interface.h.

◆ uiPopover

typedef struct uiPopover uiPopover

Definition at line 659 of file UI_interface.h.

◆ uiPopupBlockHandle

Definition at line 1 of file UI_interface.h.

◆ uiPopupMenu

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.

◆ uiPropertySplitWrapper

◆ uiSearchItems

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.

  • UI_but_func_complete_set is for tab completion.
  • #uiButSearchFunc is for name buttons, showing a popup with matches
  • UI_block_func_set and UI_but_func_set are callbacks run when a button is used, in case events, operators or RNA are not sufficient to handle the button.
  • UI_but_funcN_set will free the argument with MEM_freeN.

Definition at line 480 of file UI_interface.h.

◆ uiStringInfo

typedef struct uiStringInfo uiStringInfo

◆ uiStringInfoType

◆ uiViewHandle

typedef struct uiViewHandle uiViewHandle

Definition at line 1 of file UI_interface.h.

◆ uiViewItemHandle

Definition at line 1 of file UI_interface.h.

Enumeration Type Documentation

◆ anonymous enum

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

anonymous enum

uiBlock.flag (controls)

Enumerator
UI_BLOCK_LOOP 
UI_BLOCK_IS_FLIP 
UI_BLOCK_NO_FLIP 
UI_BLOCK_NUMSELECT 
UI_BLOCK_NO_WIN_CLIP 

Don't apply window clipping.

UI_BLOCK_CLIPBOTTOM 
UI_BLOCK_CLIPTOP 
UI_BLOCK_MOVEMOUSE_QUIT 
UI_BLOCK_KEEP_OPEN 
UI_BLOCK_POPUP 
UI_BLOCK_OUT_1 
UI_BLOCK_SEARCH_MENU 
UI_BLOCK_POPUP_MEMORY 
UI_BLOCK_CLIP_EVENTS 
UI_BLOCK_POPUP_HOLD 
UI_BLOCK_LIST_ITEM 
UI_BLOCK_RADIAL 
UI_BLOCK_POPOVER 
UI_BLOCK_POPOVER_ONCE 
UI_BLOCK_SHOW_SHORTCUT_ALWAYS 

Always show key-maps, even for non-menus.

UI_BLOCK_NO_DRAW_OVERRIDDEN_STATE 

Don't show library override state for buttons in this block.

UI_BLOCK_SEARCH_ONLY 

The block is only used during the search process and will not be drawn. Currently just for the case of a closed panel's sub-panel (and its sub-panels).

UI_BLOCK_QUICK_SETUP 

Hack for quick setup (splash screen) to draw text centered.

Definition at line 134 of file UI_interface.h.

◆ anonymous enum

anonymous enum

uiPopupBlockHandle.menuretval

Enumerator
UI_RETURN_CANCEL 

Cancel all menus cascading.

UI_RETURN_OK 

Choice made.

UI_RETURN_OUT 

Left the menu.

UI_RETURN_OUT_PARENT 

Let the parent handle this event.

UI_RETURN_UPDATE 

Update the button that opened.

UI_RETURN_POPUP_OK 

Popup is ok to be handled.

Definition at line 171 of file UI_interface.h.

◆ anonymous enum

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

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

anonymous enum

State for scrolldrawing.

Enumerator
UI_SCROLL_PRESSED 
UI_SCROLL_ARROWS 

Definition at line 455 of file UI_interface.h.

◆ anonymous enum

anonymous enum
Enumerator
UI_BLOCK_THEME_STYLE_REGULAR 
UI_BLOCK_THEME_STYLE_POPUP 

Definition at line 768 of file UI_interface.h.

◆ anonymous enum

anonymous enum

Special Buttons

Buttons with a more specific purpose:

  • MenuBut: buttons that popup a menu (in headers usually).
  • PulldownBut: like MenuBut, but creating a uiBlock (for compatibility).
  • BlockBut: buttons that popup a block with more buttons.
  • KeyevtBut: buttons that can be used to turn key events into values.
  • PickerButtons: buttons like the color picker (for code sharing).
  • AutoButR: RNA property button with type automatically defined.
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

anonymous enum

Ways to limit what is displayed in ID-search popup.

Note
We may want to add LOCAL, LIBRARY ... as needed.
Enumerator
UI_TEMPLATE_ID_FILTER_ALL 
UI_TEMPLATE_ID_FILTER_AVAILABLE 

Definition at line 1416 of file UI_interface.h.

◆ anonymous enum

anonymous enum
Enumerator
UI_LAYOUT_HORIZONTAL 
UI_LAYOUT_VERTICAL 

Definition at line 1957 of file UI_interface.h.

◆ anonymous enum

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

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

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

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

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

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.

◆ eAutoPropButsReturn

Enumerator
UI_PROP_BUTS_NONE_ADDED 
UI_PROP_BUTS_ANY_FAILED_CHECK 

Definition at line 1562 of file UI_interface.h.

◆ 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.

◆ 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.

◆ 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.

◆ eButPointerType

Button types, bits stored in 1 value... and a short even!

  • bits 0-4: uiBut.bitnr (0-31)
  • bits 5-7: pointer type
  • bit 8: for 'bit'
  • bit 9-15: button type (now 6 bits, 64 types)
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.

◆ eButType

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.

◆ 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.

◆ 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.

◆ uiStringInfoType

Enumerator
BUT_GET_RNAPROP_IDENTIFIER 
BUT_GET_RNASTRUCT_IDENTIFIER 
BUT_GET_RNAENUM_IDENTIFIER 
BUT_GET_LABEL 
BUT_GET_RNA_LABEL 
BUT_GET_RNAENUM_LABEL 
BUT_GET_RNA_LABEL_CONTEXT 
BUT_GET_TIP 
BUT_GET_RNA_TIP 
BUT_GET_RNAENUM_TIP 
BUT_GET_OP_KEYMAP 
BUT_GET_PROP_KEYMAP 

Definition at line 1352 of file UI_interface.h.

◆ 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.

Function Documentation

◆ ED_dropboxes_ui()

void ED_dropboxes_ui ( void  )

◆ ED_keymap_ui()

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().

◆ ED_operatortypes_ui()

void ED_operatortypes_ui ( void  )

◆ ED_uilisttypes_ui()

void ED_uilisttypes_ui ( void  )

◆ ENUM_OPERATORS() [1/2]

◆ ENUM_OPERATORS() [2/2]

ENUM_OPERATORS ( enum  uiTemplateListFlags,
UI_TEMPLATE_LIST_FLAGS_LAST   
)

◆ UI_autocomplete_begin()

AutoComplete* UI_autocomplete_begin ( const char *  startname,
size_t  maxlen 
)

◆ UI_autocomplete_end()

int UI_autocomplete_end ( AutoComplete autocpl,
char *  autoname 
)

◆ UI_autocomplete_update_name()

void UI_autocomplete_update_name ( AutoComplete autocpl,
const char *  name 
)

◆ UI_block_active_only_flagged_buttons()

bool UI_block_active_only_flagged_buttons ( const struct bContext C,
struct ARegion region,
struct uiBlock block 
)
Warning
This must run after other handlers have been added, otherwise the handler won't be removed, see: T71112.

Referenced by UI_popover_panel_invoke(), UI_popup_block_ex(), and UI_popup_block_invoke_ex().

◆ UI_block_align_begin()

void UI_block_align_begin ( uiBlock block)

◆ UI_block_align_end()

void UI_block_align_end ( uiBlock block)

◆ UI_block_apply_search_filter()

bool UI_block_apply_search_filter ( uiBlock block,
const char *  search_filter 
)

Apply property search behavior, setting panel flags and deactivating buttons that don't match.

Note
Must not be run after UI_block_layout_resolve.

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().

◆ UI_block_begin()

uiBlock* UI_block_begin ( const struct bContext C,
struct ARegion region,
const char *  name,
eUIEmbossType  emboss 
)

◆ UI_block_bounds_set_centered()

void UI_block_bounds_set_centered ( uiBlock block,
int  addval 
)

◆ UI_block_bounds_set_explicit()

void UI_block_bounds_set_explicit ( uiBlock block,
int  minx,
int  miny,
int  maxx,
int  maxy 
)

◆ UI_block_bounds_set_menu()

void UI_block_bounds_set_menu ( uiBlock block,
int  addval,
const int  bounds_offset[2] 
)

◆ UI_block_bounds_set_normal()

void UI_block_bounds_set_normal ( struct uiBlock block,
int  addval 
)

◆ UI_block_bounds_set_popup()

void UI_block_bounds_set_popup ( uiBlock block,
int  addval,
const int  bounds_offset[2] 
)

◆ UI_block_bounds_set_text()

void UI_block_bounds_set_text ( uiBlock block,
int  addval 
)

◆ UI_block_can_add_separator()

bool UI_block_can_add_separator ( const uiBlock block)

◆ UI_block_direction_set()

void UI_block_direction_set ( uiBlock block,
char  direction 
)

◆ UI_block_draw()

void UI_block_draw ( const struct bContext C,
struct uiBlock block 
)

◆ UI_block_emboss_get()

eUIEmbossType UI_block_emboss_get ( uiBlock block)

◆ UI_block_emboss_set()

void UI_block_emboss_set ( uiBlock block,
eUIEmbossType  emboss 
)

◆ UI_block_end()

void UI_block_end ( const struct bContext C,
uiBlock block 
)

◆ UI_block_end_ex()

void UI_block_end_ex ( const struct bContext C,
uiBlock block,
const int  xy[2],
int  r_xy[2] 
)

Referenced by ui_popup_block_refresh().

◆ UI_block_flag_disable()

void UI_block_flag_disable ( uiBlock block,
int  flag 
)

◆ UI_block_flag_enable()

void UI_block_flag_enable ( uiBlock block,
int  flag 
)

◆ UI_block_free()

void UI_block_free ( const struct bContext C,
uiBlock block 
)

Can be called with C==NULL.

Referenced by menu_items_from_ui_create(), and UI_popup_menu_end_or_cancel().

◆ UI_block_func_butmenu_set()

void UI_block_func_butmenu_set ( uiBlock block,
uiMenuHandleFunc  func,
void arg 
)

◆ UI_block_func_handle_set()

void UI_block_func_handle_set ( uiBlock block,
uiBlockHandleFunc  func,
void arg 
)

◆ UI_block_func_set()

void UI_block_func_set ( uiBlock block,
uiButHandleFunc  func,
void arg1,
void arg2 
)

◆ UI_block_funcN_set()

void UI_block_funcN_set ( uiBlock block,
uiButHandleNFunc  funcN,
void argN,
void arg2 
)

◆ UI_block_interaction_set()

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().

◆ UI_block_is_empty()

bool UI_block_is_empty ( const uiBlock block)

Definition at line 656 of file interface_query.cc.

References UI_block_is_empty_ex().

◆ UI_block_is_empty_ex()

bool UI_block_is_empty_ex ( const uiBlock block,
bool  skip_title 
)

◆ UI_block_is_search_only()

bool UI_block_is_search_only ( const uiBlock block)

Definition at line 3639 of file interface.cc.

References uiBlock::flag, and UI_BLOCK_SEARCH_ONLY.

Referenced by UI_panels_draw().

◆ UI_block_layout()

uiLayout* UI_block_layout ( uiBlock block,
int  dir,
int  type,
int  x,
int  y,
int  size,
int  em,
int  padding,
const struct uiStyle style 
)

◆ UI_block_layout_free()

void UI_block_layout_free ( uiBlock block)

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().

◆ UI_block_layout_needs_resolving()

bool UI_block_layout_needs_resolving ( const uiBlock block)

Definition at line 5704 of file interface_layout.c.

References BLI_listbase_is_empty(), and uiBlock::layouts.

Referenced by ui_textedit_begin().

◆ UI_block_layout_resolve()

void UI_block_layout_resolve ( uiBlock block,
int *  r_x,
int *  r_y 
)

◆ UI_block_layout_set_current()

void UI_block_layout_set_current ( uiBlock block,
uiLayout layout 
)

◆ UI_block_lock_clear()

void UI_block_lock_clear ( uiBlock block)

◆ UI_block_lock_set()

void UI_block_lock_set ( uiBlock block,
bool  val,
const char *  lockstr 
)

◆ UI_block_order_flip()

void UI_block_order_flip ( uiBlock block)

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().

◆ UI_block_region_set()

void UI_block_region_set ( uiBlock block,
struct ARegion region 
)

◆ UI_block_set_search_only()

void UI_block_set_search_only ( uiBlock block,
bool  search_only 
)

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().

◆ UI_block_theme_style_set()

void UI_block_theme_style_set ( uiBlock block,
char  theme_style 
)

◆ UI_block_translate()

void UI_block_translate ( uiBlock block,
int  x,
int  y 
)

◆ UI_block_update_from_old()

void UI_block_update_from_old ( const struct bContext C,
struct uiBlock block 
)

Referenced by ui_popup_block_refresh().

◆ UI_block_views_listen()

void UI_block_views_listen ( const uiBlock block,
const struct wmRegionListenerParams listener_params 
)

Referenced by ED_region_do_listen().

◆ UI_blocklist_draw()

void UI_blocklist_draw ( const struct bContext C,
const struct ListBase lb 
)

Referenced by ED_region_header_draw().

◆ UI_blocklist_free()

void UI_blocklist_free ( const struct bContext C,
struct ARegion region 
)

◆ UI_blocklist_free_inactive()

void UI_blocklist_free_inactive ( const struct bContext C,
struct ARegion region 
)

◆ UI_blocklist_min_y_get()

int UI_blocklist_min_y_get ( struct ListBase lb)

Definition at line 5797 of file interface.cc.

References ListBase::first, LISTBASE_FOREACH, and min.

◆ UI_blocklist_update_view_for_buttons()

void UI_blocklist_update_view_for_buttons ( const struct bContext C,
const struct ListBase lb 
)

◆ UI_blocklist_update_window_matrix()

void UI_blocklist_update_window_matrix ( const struct bContext C,
const struct ListBase lb 
)

◆ UI_but_active_drop_color()

bool UI_but_active_drop_color ( struct bContext C)

◆ UI_but_active_drop_name()

bool UI_but_active_drop_name ( const struct bContext C)

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().

◆ UI_but_active_drop_name_button()

uiBut* UI_but_active_drop_name_button ( const struct bContext C)

Referenced by drop_name_invoke(), and drop_name_poll().

◆ UI_but_active_only()

bool UI_but_active_only ( const struct bContext C,
struct ARegion region,
uiBlock block,
uiBut but 
)

◆ UI_but_active_only_ex()

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.

Returns
false when button removed.

◆ UI_but_context_get()

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().

◆ UI_but_context_ptr_get()

const struct PointerRNA* UI_but_context_ptr_get ( const uiBut but,
const char *  name,
const StructRNA *type   CPP_ARG_DEFAULTnullptr 
)

◆ UI_but_context_ptr_set()

void UI_but_context_ptr_set ( uiBlock block,
uiBut but,
const char *  name,
const struct PointerRNA ptr 
)

◆ UI_but_disable()

void UI_but_disable ( uiBut but,
const char *  disabled_hint 
)

◆ UI_but_drag_attach_image()

void UI_but_drag_attach_image ( uiBut but,
struct ImBuf imb,
float  scale 
)

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().

◆ UI_but_drag_set_asset()

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 
)
Parameters
assetMay 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().

◆ UI_but_drag_set_id()

void UI_but_drag_set_id ( uiBut but,
struct ID id 
)

◆ UI_but_drag_set_image()

void UI_but_drag_set_image ( uiBut but,
const char *  path,
int  icon,
struct ImBuf imb,
float  scale,
bool  use_free 
)

◆ UI_but_drag_set_name()

void UI_but_drag_set_name ( uiBut but,
const char *  name 
)

◆ UI_but_drag_set_path()

void UI_but_drag_set_path ( uiBut but,
const char *  path,
bool  use_free 
)

◆ UI_but_drag_set_rna()

void UI_but_drag_set_rna ( uiBut but,
struct PointerRNA ptr 
)

◆ UI_but_drag_set_value()

void UI_but_drag_set_value ( uiBut but)

Value from button itself.

Definition at line 90 of file interface_drag.cc.

References uiBut::dragtype, and WM_DRAG_VALUE.

◆ UI_but_drawflag_disable()

void UI_but_drawflag_disable ( uiBut but,
int  flag 
)

◆ UI_but_drawflag_enable()

void UI_but_drawflag_enable ( uiBut but,
int  flag 
)

◆ UI_but_ensure_in_view()

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.

Parameters
regionThe 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().

◆ UI_but_execute()

void UI_but_execute ( const struct bContext C,
struct ARegion region,
uiBut but 
)

◆ UI_but_extra_icon_string_info_get()

void UI_but_extra_icon_string_info_get ( struct bContext C,
uiButExtraOpIcon extra_icon,
  ... 
)

◆ UI_but_extra_operator_icon_add()

struct PointerRNA* UI_but_extra_operator_icon_add ( uiBut but,
const char *  opname,
wmOperatorCallContext  opcontext,
int  icon 
)

◆ UI_but_extra_operator_icon_opptr_get()

struct PointerRNA* UI_but_extra_operator_icon_opptr_get ( struct uiButExtraOpIcon extra_icon)

◆ UI_but_extra_operator_icon_optype_get()

struct wmOperatorType* UI_but_extra_operator_icon_optype_get ( struct uiButExtraOpIcon extra_icon)

◆ UI_but_flag_disable()

void UI_but_flag_disable ( uiBut but,
int  flag 
)

◆ UI_but_flag_enable()

void UI_but_flag_enable ( uiBut but,
int  flag 
)

◆ UI_but_flag_is_set()

bool UI_but_flag_is_set ( uiBut but,
int  flag 
)

◆ UI_but_focus_on_enter_event()

void UI_but_focus_on_enter_event ( struct wmWindow win,
uiBut but 
)

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().

◆ UI_but_func_complete_set()

void UI_but_func_complete_set ( uiBut but,
uiButCompleteFunc  func,
void arg 
)

◆ UI_but_func_drawextra_set()

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().

◆ UI_but_func_hold_set()

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().

◆ UI_but_func_identity_compare_set()

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().

◆ UI_but_func_menu_search()

void UI_but_func_menu_search ( uiBut but)

◆ UI_but_func_menu_step_set()

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().

◆ UI_but_func_operator_search()

void UI_but_func_operator_search ( uiBut but)

◆ UI_but_func_pushed_state_set()

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().

◆ UI_but_func_rename_set()

void UI_but_func_rename_set ( uiBut but,
uiButHandleRenameFunc  func,
void arg1 
)

◆ UI_but_func_search_set()

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 
)
Note
The item-pointer (referred to below) is a per search item user pointer passed to UI_search_item_add (stored in uiSearchItems.pointers).
Parameters
search_create_fnFunction to create the menu.
search_update_fnFunction to refresh search content after the search text has changed.
arguser value.
free_argSet to true if the argument is newly allocated memory for every redraw and should be freed when the button is destroyed.
search_arg_free_fnWhen non-null, use this function to free arg.
search_exec_fnFunction that executes the action, gets arg as the first argument. The second argument as the active item-pointer
activeWhen 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().

◆ UI_but_func_search_set_context_menu()

void UI_but_func_search_set_context_menu ( uiBut but,
uiButSearchContextMenuFn  context_menu_fn 
)

◆ UI_but_func_search_set_results_are_suggestions()

void UI_but_func_search_set_results_are_suggestions ( uiBut but,
bool  value 
)

◆ UI_but_func_search_set_sep_string()

void UI_but_func_search_set_sep_string ( uiBut but,
const char *  search_sep_string 
)
Parameters
search_sep_stringwhen 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().

◆ UI_but_func_search_set_tooltip()

void UI_but_func_search_set_tooltip ( uiBut but,
uiButSearchTooltipFn  tooltip_fn 
)

◆ UI_but_func_set()

void UI_but_func_set ( uiBut but,
uiButHandleFunc  func,
void arg1,
void arg2 
)

◆ UI_but_func_tooltip_set()

void UI_but_func_tooltip_set ( uiBut but,
uiButToolTipFunc  func,
void arg,
uiFreeArgFunc  free_arg 
)

◆ UI_but_funcN_set()

void UI_but_funcN_set ( uiBut but,
uiButHandleNFunc  funcN,
void argN,
void arg2 
)

◆ UI_but_has_tooltip_label()

bool UI_but_has_tooltip_label ( const uiBut but)

◆ UI_but_hint_drawstr_set()

void UI_but_hint_drawstr_set ( uiBut but,
const char *  string 
)

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().

◆ UI_but_is_tool()

bool UI_but_is_tool ( const uiBut but)

◆ UI_but_is_userdef()

bool UI_but_is_userdef ( const uiBut but)

◆ UI_but_is_utf8()

bool UI_but_is_utf8 ( const uiBut but)

◆ UI_but_menutype_get()

struct MenuType* UI_but_menutype_get ( uiBut but)

◆ UI_but_node_link_set()

void UI_but_node_link_set ( uiBut but,
struct bNodeSocket socket,
const float  draw_color[4] 
)

◆ UI_but_number_precision_set()

void UI_but_number_precision_set ( uiBut but,
float  precision 
)

◆ UI_but_number_step_size_set()

void UI_but_number_step_size_set ( uiBut but,
float  step_size 
)

◆ UI_but_online_manual_id()

bool UI_but_online_manual_id ( const uiBut but,
char *  r_str,
size_t  maxlength 
)

◆ UI_but_online_manual_id_from_active()

bool UI_but_online_manual_id_from_active ( const struct bContext C,
char *  r_str,
size_t  maxlength 
)

◆ UI_but_operator_ptr_get()

struct PointerRNA* UI_but_operator_ptr_get ( uiBut but)

◆ UI_but_operatortype_get_from_enum_menu()

struct wmOperatorType* UI_but_operatortype_get_from_enum_menu ( struct uiBut but,
struct PropertyRNA **  r_prop 
)

◆ UI_but_paneltype_get()

struct PanelType* UI_but_paneltype_get ( uiBut but)

◆ UI_but_return_value_get()

int UI_but_return_value_get ( uiBut but)

Definition at line 5903 of file interface.cc.

References uiBut::retval.

◆ UI_but_string_info_get()

void UI_but_string_info_get ( struct bContext C,
uiBut but,
  ... 
)

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().

◆ UI_but_tooltip_refresh()

void UI_but_tooltip_refresh ( struct bContext C,
uiBut but 
)

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().

◆ UI_but_tooltip_timer_remove()

void UI_but_tooltip_timer_remove ( struct bContext C,
uiBut but 
)

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().

◆ UI_but_type_set_menu_from_pulldown()

void UI_but_type_set_menu_from_pulldown ( uiBut but)

◆ UI_but_unit_type_get()

int UI_but_unit_type_get ( const uiBut but)

◆ UI_but_unit_type_set()

void UI_but_unit_type_set ( uiBut but,
int  unit_type 
)

◆ UI_butstore_clear()

void UI_butstore_clear ( uiBlock block)

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().

◆ UI_butstore_create()

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().

◆ UI_butstore_free()

void UI_butstore_free ( uiBlock block,
uiButStore bs 
)

◆ UI_butstore_is_registered()

bool UI_butstore_is_registered ( uiBlock block,
uiBut but 
)

Definition at line 1000 of file interface_utils.cc.

References uiBlock::butstore, and LISTBASE_FOREACH.

Referenced by ui_but_free().

◆ UI_butstore_is_valid()

bool UI_butstore_is_valid ( uiButStore bs)

Definition at line 995 of file interface_utils.cc.

References uiButStore::block.

◆ UI_butstore_register()

void UI_butstore_register ( uiButStore bs_handle,
uiBut **  but_p 
)

◆ UI_butstore_register_update()

bool UI_butstore_register_update ( uiBlock block,
uiBut but_dst,
const uiBut but_src 
)

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().

◆ UI_butstore_unregister()

void UI_butstore_unregister ( uiButStore bs_handle,
uiBut **  but_p 
)

◆ UI_butstore_update()

void UI_butstore_update ( uiBlock block)

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().

◆ UI_calc_float_precision()

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().

◆ UI_context_active_but_clear()

void UI_context_active_but_clear ( struct bContext C,
struct wmWindow win,
struct ARegion region 
)

◆ UI_context_active_but_get()

uiBut* UI_context_active_but_get ( const struct bContext C)

◆ UI_context_active_but_get_respect_menu()

uiBut* UI_context_active_but_get_respect_menu ( const struct bContext C)

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().

◆ UI_context_active_but_get_tab_ID()

struct ID* UI_context_active_but_get_tab_ID ( struct bContext C)

◆ UI_context_active_but_prop_get()

uiBut* UI_context_active_but_prop_get ( const struct bContext C,
struct PointerRNA r_ptr,
struct PropertyRNA **  r_prop,
int *  r_index 
)

◆ UI_context_active_but_prop_get_filebrowser()

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().

◆ UI_context_active_but_prop_get_templateID()

void UI_context_active_but_prop_get_templateID ( bContext C,
PointerRNA r_ptr,
PropertyRNA **  r_prop 
)

◆ UI_context_active_but_prop_handle()

void UI_context_active_but_prop_handle ( struct bContext C,
bool  handle_undo 
)

◆ UI_context_active_operator_get()

struct wmOperator* UI_context_active_operator_get ( const struct bContext C)

◆ UI_context_copy_to_selected_check()

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 
)

◆ UI_context_copy_to_selected_list()

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 
)

◆ UI_context_update_anim_flag()

void UI_context_update_anim_flag ( const struct bContext C)

◆ UI_draw_box_shadow()

void UI_draw_box_shadow ( const struct rctf rect,
unsigned char  alpha 
)

◆ UI_draw_icon_tri()

void UI_draw_icon_tri ( float  x,
float  y,
char  dir,
const float  color[4] 
)

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().

◆ UI_draw_roundbox_3fv_alpha()

void UI_draw_roundbox_3fv_alpha ( const struct rctf rect,
bool  filled,
float  rad,
const float  col[3],
float  alpha 
)

◆ UI_draw_roundbox_3ub_alpha()

void UI_draw_roundbox_3ub_alpha ( const struct rctf rect,
bool  filled,
float  rad,
const unsigned char  col[3],
unsigned char  alpha 
)

◆ UI_draw_roundbox_4fv()

void UI_draw_roundbox_4fv ( const struct rctf rect,
bool  filled,
float  rad,
const float  col[4] 
)

◆ UI_draw_roundbox_4fv_ex()

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 
)

◆ UI_draw_roundbox_aa()

void UI_draw_roundbox_aa ( const struct rctf rect,
bool  filled,
float  rad,
const float  color[4] 
)

◆ UI_draw_roundbox_corner_set()

void UI_draw_roundbox_corner_set ( int  type)

◆ UI_draw_safe_areas()

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.

Note
This function is to be used with the 2D dashed shader enabled.
Parameters
posis a #PRIM_FLOAT, 2, GPU_FETCH_FLOAT vertex attribute.
rectThe offsets for the view, not the zones.

Referenced by drawviewborder(), and sequencer_draw_borders_overlay().

◆ UI_draw_text_underline()

void UI_draw_text_underline ( int  pos_x,
int  pos_y,
int  len,
int  height,
const float  color[4] 
)

◆ UI_draw_widget_scroll()

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().

◆ UI_drop_color_copy()

void UI_drop_color_copy ( struct bContext C,
struct wmDrag drag,
struct wmDropBox drop 
)

Referenced by ED_keymap_screen().

◆ UI_drop_color_poll()

bool UI_drop_color_poll ( struct bContext C,
struct wmDrag drag,
const struct wmEvent event 
)

Referenced by ED_keymap_screen().

◆ UI_editsource_active_but_test()

void UI_editsource_active_but_test ( uiBut but)

Referenced by ui_def_but().

◆ UI_editsource_but_replace()

void UI_editsource_but_replace ( const uiBut old_but,
uiBut new_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().

◆ UI_editsource_enable_check()

bool UI_editsource_enable_check ( void  )

Referenced by ui_but_change_type(), and ui_def_but().

◆ UI_exit()

void UI_exit ( void  )

Definition at line 6787 of file interface.cc.

References ui_but_clipboard_free(), and ui_resources_free().

Referenced by WM_exit_ex().

◆ UI_fontstyle_draw()

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 
)

◆ UI_fontstyle_draw_ex()

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 
)

◆ UI_fontstyle_draw_rotated()

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.

◆ UI_fontstyle_draw_simple()

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().

◆ UI_fontstyle_draw_simple_backdrop()

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] 
)

◆ UI_fontstyle_height_max()

int int int UI_fontstyle_height_max ( const struct uiFontStyle fs)

Referenced by text_size_get().

◆ UI_fontstyle_set()

void UI_fontstyle_set ( const struct uiFontStyle fs)

◆ UI_fontstyle_string_width()

int UI_fontstyle_string_width ( const struct uiFontStyle fs,
const char *  str 
)

◆ UI_fontstyle_string_width_with_block_aspect()

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().

◆ UI_icon_colorid_from_report_type()

int UI_icon_colorid_from_report_type ( int  type)

◆ UI_icon_from_event_type()

int UI_icon_from_event_type ( short  event_type,
short  event_value 
)

◆ UI_icon_from_id()

int UI_icon_from_id ( const struct ID id)

◆ UI_icon_from_keymap_item()

int UI_icon_from_keymap_item ( const struct wmKeyMapItem kmi,
int  r_icon_mod[4] 
)

◆ UI_icon_from_report_type()

int UI_icon_from_report_type ( int  type)

◆ UI_init()

void UI_init ( void  )

Definition at line 6771 of file interface.cc.

References ui_resources_init().

Referenced by WM_init().

◆ UI_init_userdef()

void UI_init_userdef ( void  )

Definition at line 6776 of file interface.cc.

References uiStyleInit().

Referenced by wm_init_userdef().

◆ UI_interface_tag_script_reload()

void UI_interface_tag_script_reload ( void  )

Definition at line 6793 of file interface.cc.

References ui_interface_tag_script_reload_queries().

Referenced by WM_script_tag_reload().

◆ UI_layout_introspect()

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().

◆ UI_list_custom_activate_operator_set()

struct PointerRNA* UI_list_custom_activate_operator_set ( struct uiList ui_list,
const char *  opname,
bool  create_properties 
)

◆ UI_list_custom_drag_operator_set()

struct PointerRNA* UI_list_custom_drag_operator_set ( struct uiList ui_list,
const char *  opname,
bool  create_properties 
)

◆ UI_list_find_mouse_over()

struct uiList* UI_list_find_mouse_over ( const struct ARegion region,
const struct wmEvent event 
)

◆ UI_list_panel_unique_str()

void UI_list_panel_unique_str ( struct Panel panel,
char *  r_name 
)

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().

◆ UI_menutype_draw()

void UI_menutype_draw ( struct bContext C,
struct MenuType mt,
struct uiLayout layout 
)

◆ UI_panel_add_instanced()

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().

◆ UI_panel_begin()

struct Panel* UI_panel_begin ( struct ARegion region,
struct ListBase lb,
uiBlock block,
struct PanelType pt,
struct Panel panel,
bool r_open 
)

◆ UI_panel_can_be_pinned()

bool UI_panel_can_be_pinned ( const struct Panel panel)

◆ UI_panel_category_active_find()

struct PanelCategoryStack* UI_panel_category_active_find ( struct ARegion region,
const char *  idname 
)

◆ UI_panel_category_active_get()

const char* UI_panel_category_active_get ( struct ARegion region,
bool  set_fallback 
)

◆ UI_panel_category_active_set()

void UI_panel_category_active_set ( struct ARegion region,
const char *  idname 
)

◆ UI_panel_category_active_set_default()

void UI_panel_category_active_set_default ( struct ARegion region,
const char *  idname 
)

◆ UI_panel_category_add()

void UI_panel_category_add ( struct ARegion region,
const char *  name 
)

◆ UI_panel_category_clear_all()

void UI_panel_category_clear_all ( struct ARegion region)

Definition at line 2260 of file interface_panel.c.

References BLI_freelistN(), and ARegion::panels_category.

Referenced by region_panels_collect_categories().

◆ UI_panel_category_draw_all()

void UI_panel_category_draw_all ( struct ARegion region,
const char *  category_id_active 
)

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().

◆ UI_panel_category_find()

struct PanelCategoryDyn* UI_panel_category_find ( const struct ARegion region,
const char *  idname 
)

◆ UI_panel_category_is_visible()

bool UI_panel_category_is_visible ( const struct ARegion region)

◆ UI_panel_context_pointer_set()

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().

◆ UI_panel_custom_data_get()

struct PointerRNA* UI_panel_custom_data_get ( const struct Panel panel)

◆ UI_panel_custom_data_set()

void UI_panel_custom_data_set ( struct Panel panel,
struct PointerRNA custom_data 
)

◆ UI_panel_end()

void UI_panel_end ( struct Panel panel,
int  width,
int  height 
)

Definition at line 836 of file interface_panel.c.

References Panel::blocksizex, Panel::blocksizey, height, and width.

Referenced by ed_panel_draw().

◆ UI_panel_find_by_type()

struct Panel* UI_panel_find_by_type ( struct ListBase lb,
const struct PanelType pt 
)

◆ UI_panel_header_buttons_begin()

void UI_panel_header_buttons_begin ( struct Panel panel)

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().

◆ UI_panel_header_buttons_end()

void UI_panel_header_buttons_end ( struct Panel panel)

◆ UI_panel_is_active()

bool UI_panel_is_active ( const struct Panel panel)

◆ UI_panel_is_closed()

bool UI_panel_is_closed ( const struct Panel panel)

Get the panel's expansion state, taking into account expansion set from property search if it applies.

Referenced by ED_region_panels_layout_ex().

◆ UI_panel_is_dragging()

bool UI_panel_is_dragging ( const struct Panel panel)

◆ UI_panel_label_offset()

void UI_panel_label_offset ( const struct uiBlock block,
int *  r_x,
int *  r_y 
)

For button layout next to label.

Referenced by ed_panel_draw().

◆ UI_panel_list_matches_data()

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.

Parameters
dataThe list of data to check against the instanced panels.
panel_idname_funcFunction 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().

◆ UI_panel_matches_search_filter()

bool UI_panel_matches_search_filter ( const struct Panel panel)

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().

◆ UI_panel_should_show_background()

bool UI_panel_should_show_background ( const struct ARegion region,
const struct PanelType panel_type 
)

◆ UI_panel_size_y()

int UI_panel_size_y ( const struct Panel panel)

◆ UI_panels_begin()

void UI_panels_begin ( const struct bContext C,
struct ARegion region 
)

◆ UI_panels_draw()

void UI_panels_draw ( const struct bContext C,
struct ARegion region 
)

Draw panels, selected (panels currently being dragged) on top.

Referenced by ED_region_panels_draw().

◆ UI_panels_end()

void UI_panels_end ( const struct bContext C,
struct ARegion region,
int *  r_x,
int *  r_y 
)

◆ UI_panels_free_instanced()

void UI_panels_free_instanced ( const struct bContext C,
struct ARegion region 
)

Remove instanced panels from the region's panel list.

Note
Can be called with NULL C, but it should be avoided because handlers might not be removed.

Referenced by ANIM_fmodifier_panels(), ED_region_property_search(), spreadsheet_row_filters_layout(), uiTemplateConstraints(), uiTemplateGpencilModifiers(), uiTemplateModifiers(), and uiTemplateShaderFx().

◆ UI_paneltype_draw()

void UI_paneltype_draw ( struct bContext C,
struct PanelType pt,
struct uiLayout layout 
)

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().

◆ UI_pie_menu_begin()

struct uiPieMenu* UI_pie_menu_begin ( struct bContext C,
const char *  title,
int  icon,
const struct wmEvent event 
)

◆ UI_pie_menu_end()

void UI_pie_menu_end ( struct bContext C,
uiPieMenu pie 
)

◆ UI_pie_menu_invoke()

int UI_pie_menu_invoke ( struct bContext C,
const char *  idname,
const struct wmEvent event 
)

◆ UI_pie_menu_invoke_from_operator_enum()

int UI_pie_menu_invoke_from_operator_enum ( struct bContext C,
const char *  title,
const char *  opname,
const char *  propname,
const struct wmEvent event 
)

◆ UI_pie_menu_invoke_from_rna_enum()

int UI_pie_menu_invoke_from_rna_enum ( struct bContext C,
const char *  title,
const char *  path,
const struct wmEvent event 
)

◆ UI_pie_menu_layout()

struct uiLayout* UI_pie_menu_layout ( struct uiPieMenu pie)

◆ UI_popover_begin()

uiPopover* UI_popover_begin ( struct bContext C,
int  menu_width,
bool  from_active_button 
)

Only return handler, and set optional title.

Parameters
from_active_buttonUse 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().

◆ UI_popover_end()

void UI_popover_end ( struct bContext C,
struct uiPopover pup,
struct wmKeyMap keymap 
)

◆ UI_popover_layout()

struct uiLayout* UI_popover_layout ( uiPopover pup)

Definition at line 409 of file interface_region_popover.cc.

References uiPopover::layout.

Referenced by UI_popover_panel_invoke().

◆ UI_popover_once_clear()

void UI_popover_once_clear ( uiPopover pup)

Definition at line 415 of file interface_region_popover.cc.

References uiPopover::is_once.

Referenced by ui_handle_menu_event().

◆ UI_popover_panel_invoke()

int UI_popover_panel_invoke ( struct bContext C,
const char *  idname,
bool  keep_open,
struct ReportList reports 
)

◆ UI_popup_block_close()

void UI_popup_block_close ( struct bContext C,
struct wmWindow win,
uiBlock block 
)

◆ UI_popup_block_ex()

void UI_popup_block_ex ( struct bContext C,
uiBlockCreateFunc  func,
uiBlockHandleFunc  popup_func,
uiBlockCancelFunc  cancel_func,
void arg,
struct wmOperator op 
)

◆ UI_popup_block_invoke()

void UI_popup_block_invoke ( struct bContext C,
uiBlockCreateFunc  func,
void arg,
uiFreeArgFunc  arg_free 
)

◆ UI_popup_block_invoke_ex()

void UI_popup_block_invoke_ex ( struct bContext C,
uiBlockCreateFunc  func,
void arg,
uiFreeArgFunc  arg_free,
bool  can_refresh 
)

◆ UI_popup_block_name_exists()

bool UI_popup_block_name_exists ( const struct bScreen screen,
const char *  name 
)

◆ UI_popup_handlers_add()

void UI_popup_handlers_add ( struct bContext C,
struct ListBase handlers,
uiPopupBlockHandle popup,
char  flag 
)

◆ UI_popup_handlers_remove()

void UI_popup_handlers_remove ( struct ListBase handlers,
uiPopupBlockHandle popup 
)

◆ UI_popup_handlers_remove_all()

void UI_popup_handlers_remove_all ( struct bContext C,
struct ListBase handlers 
)

◆ UI_popup_menu_begin()

uiPopupMenu* UI_popup_menu_begin ( struct bContext C,
const char *  title,
int  icon 
)

◆ UI_popup_menu_begin_ex()

uiPopupMenu* UI_popup_menu_begin_ex ( struct bContext C,
const char *  title,
const char *  block_name,
int  icon 
)

◆ UI_popup_menu_but_set()

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().

◆ UI_popup_menu_end()

void UI_popup_menu_end ( struct bContext C,
struct uiPopupMenu pup 
)

◆ UI_popup_menu_end_or_cancel()

bool UI_popup_menu_end_or_cancel ( struct bContext C,
struct uiPopupMenu pup 
)

◆ UI_popup_menu_invoke()

int UI_popup_menu_invoke ( struct bContext C,
const char *  idname,
struct ReportList reports 
)

Referenced by wm_call_menu_exec().

◆ UI_popup_menu_layout()

struct uiLayout* UI_popup_menu_layout ( uiPopupMenu pup)

◆ UI_popup_menu_reports()

void UI_popup_menu_reports ( struct bContext C,
struct ReportList reports 
)

◆ UI_popup_menu_retval_set()

int void UI_popup_menu_retval_set ( const uiBlock block,
int  retval,
bool  enable 
)

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().

◆ UI_preview_tile_size_x()

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().

◆ UI_preview_tile_size_y()

int UI_preview_tile_size_y ( void  )

◆ UI_preview_tile_size_y_no_label()

int UI_preview_tile_size_y_no_label ( void  )

◆ UI_region_active_but_get()

uiBut* UI_region_active_but_get ( const struct ARegion region)

◆ UI_region_block_find_mouse_over()

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().

◆ UI_region_but_find_rect_over()

uiBut* UI_region_but_find_rect_over ( const struct ARegion region,
const struct rcti rect_px 
)

Referenced by ED_region_contains_xy().

◆ UI_region_free_active_but_all()

void UI_region_free_active_but_all ( struct bContext context,
struct ARegion region 
)

◆ UI_region_handlers_add()

void UI_region_handlers_add ( struct ListBase handlers)

◆ UI_region_message_subscribe()

void UI_region_message_subscribe ( struct ARegion region,
struct wmMsgBus mbus 
)

◆ UI_region_panel_custom_data_under_cursor()

struct PointerRNA* UI_region_panel_custom_data_under_cursor ( const struct bContext C,
const struct wmEvent event 
)

◆ UI_region_searchbox_region_get()

struct ARegion* UI_region_searchbox_region_get ( const struct ARegion button_region)

Try to find a search-box region opened from a button in button_region.

Referenced by wm_searchbox_tooltip_init().

◆ UI_region_views_find_active_item()

uiViewItemHandle* UI_region_views_find_active_item ( const struct ARegion region)

◆ UI_region_views_find_item_at()

uiViewItemHandle* UI_region_views_find_item_at ( const struct ARegion region,
const int  xy[2] 
)
Parameters
xyCoordinate to find a view item at, in window space.

Referenced by ui_view_drop_invoke(), ui_view_drop_poll(), and ui_view_drop_tooltip().

◆ UI_reinit_font()

void UI_reinit_font ( void  )

Definition at line 6782 of file interface.cc.

References uiStyleInit().

Referenced by reloadtranslation_exec().

◆ UI_screen_free_active_but_highlight()

void UI_screen_free_active_but_highlight ( const struct bContext C,
struct bScreen screen 
)

Is called by notifier.

Referenced by ED_screen_set_active_region().

◆ UI_search_item_add()

bool UI_search_item_add ( uiSearchItems items,
const char *  name,
void poin,
int  iconid,
int  but_flag,
uint8_t  name_prefix_offset 
)

◆ UI_search_items_find_index()

int UI_search_items_find_index ( uiSearchItems items,
const char *  name 
)

◆ UI_searchbox_size_x()

int UI_searchbox_size_x ( void  )

◆ UI_searchbox_size_y()

int UI_searchbox_size_y ( void  )

◆ UI_style_get()

const struct uiStyle* UI_style_get ( void  )

◆ UI_style_get_dpi()

const struct uiStyle* UI_style_get_dpi ( void  )

◆ UI_style_init_default()

void UI_style_init_default ( void  )

Definition at line 1038 of file resources.c.

References BLI_freelistN(), and uiStyleInit().

Referenced by preferences_reset_default_theme_exec().

◆ UI_template_fix_linking()

void UI_template_fix_linking ( void  )

Definition at line 103 of file interface_templates.c.

Referenced by UI_block_layout_resolve().

◆ UI_text_clip_middle_ex()

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.

Note
in case this middle clipping would just remove a few chars, it rather clips right, which is more readable.

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().

◆ UI_text_colorid_from_report_type()

int UI_text_colorid_from_report_type ( int  type)

◆ UI_textbutton_activate_but()

bool UI_textbutton_activate_but ( const struct bContext C,
uiBut but 
)

◆ UI_textbutton_activate_rna()

bool UI_textbutton_activate_rna ( const struct bContext C,
struct ARegion region,
const void rna_poin_data,
const char *  rna_prop_id 
)

◆ UI_theme_init_default()

void UI_theme_init_default ( void  )

Initialize default theme.

Note
When you add new colors, created & saved themes need initialized use function below, #init_userdef_do_versions.

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().

◆ UI_tooltip_create_from_button()

struct ARegion* UI_tooltip_create_from_button ( struct bContext C,
struct ARegion butregion,
uiBut but,
bool  is_label 
)
Parameters
is_labelWhen 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().

◆ UI_tooltip_create_from_button_or_extra_icon()

struct ARegion* UI_tooltip_create_from_button_or_extra_icon ( struct bContext C,
struct ARegion butregion,
uiBut but,
uiButExtraOpIcon extra_icon,
bool  is_label 
)

◆ UI_tooltip_create_from_gizmo()

struct ARegion* UI_tooltip_create_from_gizmo ( struct bContext C,
struct wmGizmo gz 
)

◆ UI_tooltip_create_from_search_item_generic()

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().

Parameters
item_rectRectangle 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().

◆ UI_tooltip_free()

void UI_tooltip_free ( struct bContext C,
struct bScreen screen,
struct ARegion region 
)

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().

◆ UI_view_item_begin_rename()

void UI_view_item_begin_rename ( uiViewItemHandle item_handle)

◆ UI_view_item_can_drop()

bool UI_view_item_can_drop ( const uiViewItemHandle item_,
const struct wmDrag drag,
const char **  r_disabled_hint 
)

Referenced by ui_view_drop_poll().

◆ UI_view_item_can_rename()

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().

◆ UI_view_item_context_menu_build()

void UI_view_item_context_menu_build ( struct bContext C,
const uiViewItemHandle item_handle,
uiLayout column 
)

◆ UI_view_item_drag_start()

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.

Returns
True if dragging started successfully, otherwise false.

Definition at line 345 of file abstract_view_item.cc.

References C, and blender::ui::ViewItemAPIWrapper::drag_start().

Referenced by ui_but_drag_init().

◆ UI_view_item_drop_handle()

bool UI_view_item_drop_handle ( struct bContext C,
const uiViewItemHandle item_,
const struct ListBase drags 
)

Let a view item handle a drop event.

Returns
True if the drop was handled by the view item.

Referenced by ui_view_drop_invoke().

◆ UI_view_item_drop_tooltip()

char* UI_view_item_drop_tooltip ( const uiViewItemHandle item,
const struct wmDrag drag 
)

Referenced by ui_view_drop_tooltip().

◆ UI_view_item_is_active()

bool UI_view_item_is_active ( const uiViewItemHandle item_handle)

◆ UI_view_item_matches()

bool UI_view_item_matches ( const uiViewItemHandle a_handle,
const uiViewItemHandle b_handle 
)

◆ UI_widgetbase_draw_cache_begin()

void UI_widgetbase_draw_cache_begin ( void  )

Definition at line 1167 of file interface_widgets.c.

References BLI_assert, and g_widget_base_batch.

Referenced by UI_block_draw().

◆ UI_widgetbase_draw_cache_end()

void UI_widgetbase_draw_cache_end ( void  )

◆ UI_widgetbase_draw_cache_flush()

void UI_widgetbase_draw_cache_flush ( void  )

◆ uiDefAutoButR()

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 
)

◆ uiDefAutoButsArrayR()

void uiDefAutoButsArrayR ( uiBlock block,
PointerRNA ptr,
PropertyRNA prop,
const int  icon,
const int  x,
const int  y,
const int  tot_width,
const int  height 
)

◆ uiDefAutoButsRNA()

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.

Parameters
prop_activate_initProperty 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().

◆ uiDefBlockBut()

uiBut* uiDefBlockBut ( uiBlock block,
uiBlockCreateFunc  func,
void arg,
const char *  str,
int  x,
int  y,
short  width,
short  height,
const char *  tip 
)

◆ uiDefBlockButN()

uiBut* uiDefBlockButN ( uiBlock block,
uiBlockCreateFunc  func,
void argN,
const char *  str,
int  x,
int  y,
short  width,
short  height,
const char *  tip 
)

◆ uiDefBut()

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().

◆ uiDefButAlert()

uiBut* uiDefButAlert ( uiBlock block,
int  icon,
int  x,
int  y,
short  width,
short  height 
)

◆ uiDefButBitC()

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().

◆ uiDefButBitI()

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().

◆ uiDefButBitS()

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().

◆ uiDefButC()

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().

◆ uiDefButF()

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 
)

◆ uiDefButI()

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 
)

◆ uiDefButImage()

uiBut* uiDefButImage ( uiBlock block,
void imbuf,
int  x,
int  y,
short  width,
short  height,
const uchar  color[4] 
)

◆ uiDefButO()

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().

◆ uiDefButO_ptr()

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().

◆ uiDefButR()

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 
)

◆ uiDefButR_prop()

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 
)

◆ uiDefButS()

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 
)

◆ uiDefIconBlockBut()

uiBut* uiDefIconBlockBut ( uiBlock block,
uiBlockCreateFunc  func,
void arg,
int  retval,
int  icon,
int  x,
int  y,
short  width,
short  height,
const char *  tip 
)

◆ uiDefIconBut()

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 
)

◆ uiDefIconButBitC()

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().

◆ uiDefIconButBitI()

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 
)

◆ uiDefIconButBitS()

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 
)

◆ uiDefIconButI()

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 
)

◆ uiDefIconButO()

uiBut* uiDefIconButO ( uiBlock block,
int  type,
const char *  opname,
wmOperatorCallContext  opcontext,
int  icon,
int  x,
int  y,
short  width,
short  height,
const char *  tip 
)

◆ uiDefIconButO_ptr()

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 
)

◆ uiDefIconButR()

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().

◆ uiDefIconButR_prop()

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 
)

◆ uiDefIconButS()

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().

◆ uiDefIconMenuBut()

uiBut* uiDefIconMenuBut ( uiBlock block,
uiMenuCreateFunc  func,
void arg,
int  icon,
int  x,
int  y,
short  width,
short  height,
const char *  tip 
)

◆ uiDefIconTextBlockBut()

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.

◆ uiDefIconTextBut()

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 
)

◆ uiDefIconTextButF()

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.

◆ uiDefIconTextButI()

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().

◆ uiDefIconTextButO()

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 
)

◆ uiDefIconTextButO_ptr()

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 
)

◆ uiDefIconTextButR()

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 
)

◆ uiDefIconTextButR_prop()

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 
)

◆ uiDefIconTextMenuBut()

uiBut* uiDefIconTextMenuBut ( uiBlock block,
uiMenuCreateFunc  func,
void arg,
int  icon,
const char *  str,
int  x,
int  y,
short  width,
short  height,
const char *  tip 
)

◆ uiDefMenuBut()

uiBut* uiDefMenuBut ( uiBlock block,
uiMenuCreateFunc  func,
void arg,
const char *  str,
int  x,
int  y,
short  width,
short  height,
const char *  tip 
)

◆ uiDefPulldownBut()

uiBut* uiDefPulldownBut ( uiBlock block,
uiBlockCreateFunc  func,
void arg,
const char *  str,
int  x,
int  y,
short  width,
short  height,
const char *  tip 
)

◆ uiDefSearchBut()

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 
)

◆ uiDefSearchButO_ptr()

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().

◆ uiItemBooleanO()

void uiItemBooleanO ( uiLayout layout,
const char *  name,
int  icon,
const char *  opname,
const char *  propname,
int  value 
)

◆ uiItemDecoratorR()

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().

◆ uiItemDecoratorR_prop()

void uiItemDecoratorR_prop ( uiLayout layout,
struct PointerRNA ptr,
struct PropertyRNA prop,
int  index 
)

◆ uiItemEnumO()

void uiItemEnumO ( uiLayout layout,
const char *  opname,
const char *  name,
int  icon,
const char *  propname,
int  value 
)

◆ uiItemEnumO_ptr()

void uiItemEnumO_ptr ( uiLayout layout,
struct wmOperatorType ot,
const char *  name,
int  icon,
const char *  propname,
int  value 
)

◆ uiItemEnumO_string()

void uiItemEnumO_string ( uiLayout layout,
const char *  name,
int  icon,
const char *  opname,
const char *  propname,
const char *  value 
)

◆ uiItemEnumO_value()

void uiItemEnumO_value ( uiLayout layout,
const char *  name,
int  icon,
const char *  opname,
const char *  propname,
int  value 
)

◆ uiItemEnumR()

void uiItemEnumR ( uiLayout layout,
const char *  name,
int  icon,
struct PointerRNA ptr,
const char *  propname,
int  value 
)

◆ uiItemEnumR_prop()

void uiItemEnumR_prop ( uiLayout layout,
const char *  name,
int  icon,
struct PointerRNA ptr,
struct PropertyRNA prop,
int  value 
)

◆ uiItemEnumR_string()

void uiItemEnumR_string ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
const char *  value,
const char *  name,
int  icon 
)

◆ uiItemEnumR_string_prop()

void uiItemEnumR_string_prop ( uiLayout layout,
struct PointerRNA ptr,
struct PropertyRNA prop,
const char *  value,
const char *  name,
int  icon 
)

◆ uiItemFloatO()

void uiItemFloatO ( uiLayout layout,
const char *  name,
int  icon,
const char *  opname,
const char *  propname,
float  value 
)

◆ uiItemFullO()

void uiItemFullO ( uiLayout layout,
const char *  opname,
const char *  name,
int  icon,
struct IDProperty properties,
wmOperatorCallContext  context,
int  flag,
struct PointerRNA r_opptr 
)

◆ uiItemFullO_ptr()

void uiItemFullO_ptr ( uiLayout layout,
struct wmOperatorType ot,
const char *  name,
int  icon,
struct IDProperty properties,
wmOperatorCallContext  context,
int  flag,
struct PointerRNA r_opptr 
)

◆ uiItemFullOMenuHold_ptr()

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 
)

◆ uiItemFullR()

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().

◆ uiItemFullR_with_menu()

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 
)

◆ uiItemFullR_with_popover()

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 
)

◆ uiItemIntO()

void uiItemIntO ( uiLayout layout,
const char *  name,
int  icon,
const char *  opname,
const char *  propname,
int  value 
)

◆ uiItemL()

void uiItemL ( uiLayout layout,
const char *  name,
int  icon 
)

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().

◆ uiItemL_ex()

void uiItemL_ex ( uiLayout layout,
const char *  name,
int  icon,
bool  highlight,
bool  redalert 
)

◆ uiItemL_respect_property_split()

uiLayout* uiItemL_respect_property_split ( uiLayout layout,
const char *  text,
int  icon 
)

◆ uiItemLDrag()

void uiItemLDrag ( uiLayout layout,
struct PointerRNA ptr,
const char *  name,
int  icon 
)

◆ uiItemM()

void uiItemM ( uiLayout layout,
const char *  menuname,
const char *  name,
int  icon 
)

◆ uiItemM_ptr()

void uiItemM_ptr ( uiLayout layout,
struct MenuType mt,
const char *  name,
int  icon 
)

◆ uiItemMContents()

void uiItemMContents ( uiLayout layout,
const char *  menuname 
)

◆ uiItemMenuEnumFullO()

void uiItemMenuEnumFullO ( uiLayout layout,
struct bContext C,
const char *  opname,
const char *  propname,
const char *  name,
int  icon,
struct PointerRNA r_opptr 
)

◆ uiItemMenuEnumFullO_ptr()

void uiItemMenuEnumFullO_ptr ( uiLayout layout,
struct bContext C,
struct wmOperatorType ot,
const char *  propname,
const char *  name,
int  icon,
struct PointerRNA r_opptr 
)

◆ uiItemMenuEnumO()

void uiItemMenuEnumO ( uiLayout layout,
struct bContext C,
const char *  opname,
const char *  propname,
const char *  name,
int  icon 
)

◆ uiItemMenuEnumR()

void uiItemMenuEnumR ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
const char *  name,
int  icon 
)

◆ uiItemMenuEnumR_prop()

void uiItemMenuEnumR_prop ( uiLayout layout,
struct PointerRNA ptr,
struct PropertyRNA prop,
const char *  name,
int  icon 
)

◆ uiItemMenuF()

void uiItemMenuF ( uiLayout layout,
const char *  name,
int  icon,
uiMenuCreateFunc  func,
void arg 
)

◆ uiItemMenuFN()

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().

◆ uiItemO()

void uiItemO ( uiLayout layout,
const char *  name,
int  icon,
const char *  opname 
)

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().

◆ uiItemPointerR()

void uiItemPointerR ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
struct PointerRNA searchptr,
const char *  searchpropname,
const char *  name,
int  icon 
)

◆ uiItemPointerR_prop()

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 
)

◆ uiItemPopoverPanel()

void uiItemPopoverPanel ( uiLayout layout,
const struct bContext C,
const char *  panel_type,
const char *  name,
int  icon 
)

◆ uiItemPopoverPanel_ptr()

void uiItemPopoverPanel_ptr ( uiLayout layout,
const struct bContext C,
struct PanelType pt,
const char *  name,
int  icon 
)

◆ uiItemPopoverPanelFromGroup()

void uiItemPopoverPanelFromGroup ( uiLayout layout,
struct bContext C,
int  space_id,
int  region_id,
const char *  context,
const char *  category 
)

◆ uiItemPropertySplitWrapperCreate()

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().

◆ uiItemR()

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().

◆ uiItemS()

void uiItemS ( uiLayout layout)

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().

◆ uiItemS_ex()

void uiItemS_ex ( uiLayout layout,
float  factor 
)

◆ uiItemsAlertBox()

uiLayout* uiItemsAlertBox ( uiBlock block,
int  size,
eAlertIcon  icon 
)

◆ uiItemsEnumO()

void uiItemsEnumO ( uiLayout layout,
const char *  opname,
const char *  propname 
)

◆ uiItemsEnumR()

void uiItemsEnumR ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname 
)

◆ uiItemsFullEnumO()

void uiItemsFullEnumO ( uiLayout layout,
const char *  opname,
const char *  propname,
struct IDProperty properties,
wmOperatorCallContext  context,
int  flag 
)

◆ uiItemsFullEnumO_items()

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().

◆ uiItemSpacer()

void uiItemSpacer ( uiLayout layout)

◆ uiItemStringO()

void uiItemStringO ( uiLayout layout,
const char *  name,
int  icon,
const char *  opname,
const char *  propname,
const char *  value 
)

◆ uiItemTabsEnumR_prop()

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 
)

◆ uiItemV()

void uiItemV ( uiLayout layout,
const char *  name,
int  icon,
int  argval 
)

◆ uiLayoutAbsolute()

uiLayout* uiLayoutAbsolute ( uiLayout layout,
bool  align 
)

◆ uiLayoutAbsoluteBlock()

uiBlock* uiLayoutAbsoluteBlock ( uiLayout layout)

◆ uiLayoutBox()

uiLayout* uiLayoutBox ( uiLayout layout)

◆ uiLayoutColumn()

uiLayout* uiLayoutColumn ( uiLayout layout,
bool  align 
)

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().

◆ uiLayoutColumnFlow()

uiLayout* uiLayoutColumnFlow ( uiLayout layout,
int  number,
bool  align 
)

◆ uiLayoutColumnWithHeading()

uiLayout* uiLayoutColumnWithHeading ( uiLayout layout,
bool  align,
const char *  heading 
)

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().

◆ uiLayoutContextCopy()

void uiLayoutContextCopy ( uiLayout layout,
struct bContextStore context 
)

◆ uiLayoutGetActivateInit()

bool uiLayoutGetActivateInit ( uiLayout layout)

Definition at line 5023 of file interface_layout.c.

References uiLayout::activate_init.

◆ uiLayoutGetActive()

bool uiLayoutGetActive ( uiLayout layout)

Definition at line 5013 of file interface_layout.c.

References uiLayout::active.

◆ uiLayoutGetActiveDefault()

bool uiLayoutGetActiveDefault ( uiLayout layout)

Definition at line 5018 of file interface_layout.c.

References uiLayout::active_default.

◆ uiLayoutGetAlignment()

int uiLayoutGetAlignment ( uiLayout layout)

Definition at line 5043 of file interface_layout.c.

References uiLayout::alignment.

Referenced by uiItemL_().

◆ uiLayoutGetBlock()

uiBlock* uiLayoutGetBlock ( uiLayout layout)

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().

◆ uiLayoutGetContextStore()

struct bContextStore* uiLayoutGetContextStore ( uiLayout layout)

◆ uiLayoutGetEmboss()

eUIEmbossType uiLayoutGetEmboss ( uiLayout layout)

◆ uiLayoutGetEnabled()

bool uiLayoutGetEnabled ( uiLayout layout)

Definition at line 5028 of file interface_layout.c.

References uiLayout::enabled.

◆ uiLayoutGetFixedSize()

bool uiLayoutGetFixedSize ( uiLayout layout)

Definition at line 5649 of file interface_layout.c.

References uiItem::flag, uiLayout::item, and UI_ITEM_FIXED_SIZE.

◆ uiLayoutGetKeepAspect()

bool uiLayoutGetKeepAspect ( uiLayout layout)

Definition at line 5038 of file interface_layout.c.

References uiLayout::keepaspect.

◆ uiLayoutGetLocalDir()

int uiLayoutGetLocalDir ( const uiLayout layout)

◆ uiLayoutGetOperatorContext()

int uiLayoutGetOperatorContext ( uiLayout layout)

Definition at line 5550 of file interface_layout.c.

References uiLayoutRoot::opcontext, and uiLayout::root.

◆ uiLayoutGetPropDecorate()

bool uiLayoutGetPropDecorate ( uiLayout layout)

Definition at line 5003 of file interface_layout.c.

References uiItem::flag, uiLayout::item, and UI_ITEM_PROP_DECORATE.

◆ uiLayoutGetPropSep()

bool uiLayoutGetPropSep ( uiLayout layout)

Definition at line 4993 of file interface_layout.c.

References uiItem::flag, uiLayout::item, and UI_ITEM_PROP_SEP.

◆ uiLayoutGetRedAlert()

bool uiLayoutGetRedAlert ( uiLayout layout)

Definition at line 5033 of file interface_layout.c.

References uiLayout::redalert.

◆ uiLayoutGetScaleX()

float uiLayoutGetScaleX ( uiLayout layout)

Definition at line 5053 of file interface_layout.c.

References uiLayout::scale.

◆ uiLayoutGetScaleY()

float uiLayoutGetScaleY ( uiLayout layout)

Definition at line 5058 of file interface_layout.c.

References uiLayout::scale.

◆ uiLayoutGetUnitsX()

float uiLayoutGetUnitsX ( uiLayout layout)

Definition at line 5063 of file interface_layout.c.

References uiLayout::units.

Referenced by ui_block_func_POPUP().

◆ uiLayoutGetUnitsY()

float uiLayoutGetUnitsY ( uiLayout layout)

Definition at line 5068 of file interface_layout.c.

References uiLayout::units.

◆ uiLayoutGetWidth()

int uiLayoutGetWidth ( uiLayout layout)

◆ uiLayoutGridFlow()

uiLayout* uiLayoutGridFlow ( uiLayout layout,
bool  row_major,
int  columns_len,
bool  even_columns,
bool  even_rows,
bool  align 
)

◆ uiLayoutListBox()

uiLayout* uiLayoutListBox ( uiLayout layout,
struct uiList ui_list,
struct PointerRNA actptr,
struct PropertyRNA actprop 
)

◆ uiLayoutOverlap()

uiLayout* uiLayoutOverlap ( uiLayout layout)

◆ uiLayoutRadial()

uiLayout* uiLayoutRadial ( uiLayout layout)

◆ uiLayoutRow()

uiLayout* uiLayoutRow ( uiLayout layout,
bool  align 
)

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().

◆ uiLayoutRowWithHeading()

uiLayout* uiLayoutRowWithHeading ( uiLayout layout,
bool  align,
const char *  heading 
)

◆ uiLayoutSetActivateInit()

void uiLayoutSetActivateInit ( uiLayout layout,
bool  activate_init 
)

Definition at line 4943 of file interface_layout.c.

References uiLayout::activate_init.

Referenced by uiDefAutoButsRNA().

◆ uiLayoutSetActive()

void uiLayoutSetActive ( uiLayout layout,
bool  active 
)

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().

◆ uiLayoutSetActiveDefault()

void uiLayoutSetActiveDefault ( uiLayout layout,
bool  active_default 
)

Definition at line 4938 of file interface_layout.c.

References uiLayout::active_default.

Referenced by file_panel_execution_execute_button().

◆ uiLayoutSetAlignment()

void uiLayoutSetAlignment ( uiLayout layout,
char  alignment 
)

◆ uiLayoutSetContextFromBut()

void uiLayoutSetContextFromBut ( uiLayout layout,
uiBut but 
)

◆ uiLayoutSetContextPointer()

void uiLayoutSetContextPointer ( uiLayout layout,
const char *  name,
struct PointerRNA ptr 
)

◆ uiLayoutSetEmboss()

void uiLayoutSetEmboss ( uiLayout layout,
eUIEmbossType  emboss 
)

◆ uiLayoutSetEnabled()

void uiLayoutSetEnabled ( uiLayout layout,
bool  enabled 
)

◆ uiLayoutSetFixedSize()

void uiLayoutSetFixedSize ( uiLayout layout,
bool  fixed_size 
)

◆ uiLayoutSetFunc()

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.

◆ uiLayoutSetKeepAspect()

void uiLayoutSetKeepAspect ( uiLayout layout,
bool  keepaspect 
)

Definition at line 4958 of file interface_layout.c.

References uiLayout::keepaspect.

Referenced by uiTemplatePreview().

◆ uiLayoutSetOperatorContext()

void uiLayoutSetOperatorContext ( uiLayout layout,
wmOperatorCallContext  opcontext 
)

◆ uiLayoutSetPropDecorate()

void uiLayoutSetPropDecorate ( uiLayout layout,
bool  is_sep 
)

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().

◆ uiLayoutSetPropSep()

void uiLayoutSetPropSep ( uiLayout layout,
bool  is_sep 
)

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().

◆ uiLayoutSetRedAlert()

void uiLayoutSetRedAlert ( uiLayout layout,
bool  redalert 
)

◆ uiLayoutSetScaleX()

void uiLayoutSetScaleX ( uiLayout layout,
float  scale 
)

◆ uiLayoutSetScaleY()

void uiLayoutSetScaleY ( uiLayout layout,
float  scale 
)

◆ uiLayoutSetTooltipFunc()

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.

Parameters
funcThe callback function that gets called to get tooltip content
argAn optional opaque pointer that gets passed to func
free_argAn optional callback for freeing arg (can be set to e.g. MEM_freeN)
copy_argAn 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().

◆ uiLayoutSetUnitsX()

void uiLayoutSetUnitsX ( uiLayout layout,
float  unit 
)

◆ uiLayoutSetUnitsY()

void uiLayoutSetUnitsY ( uiLayout layout,
float  unit 
)

Definition at line 4983 of file interface_layout.c.

References uiLayout::units.

◆ uiLayoutSplit()

uiLayout* uiLayoutSplit ( uiLayout layout,
float  percentage,
bool  align 
)

◆ uiTemplateAnyID()

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.

Parameters
propnameproperty identifier for property that ID-pointer gets stored to.
proptypenameproperty 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().

◆ uiTemplateAssetView()

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 
)

◆ uiTemplateCacheFile()

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().

◆ uiTemplateCacheFileLayers()

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().

◆ uiTemplateCacheFilePointer()

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().

◆ uiTemplateCacheFileProcedural()

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().

◆ uiTemplateCacheFileTimeSettings()

void uiTemplateCacheFileTimeSettings ( uiLayout layout,
struct PointerRNA fileptr 
)

◆ uiTemplateCacheFileVelocity()

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().

◆ uiTemplateColormanagedViewSettings()

void uiTemplateColormanagedViewSettings ( struct uiLayout layout,
struct bContext C,
struct PointerRNA ptr,
const char *  propname 
)

Referenced by uiTemplateImageSettings().

◆ uiTemplateColorPicker()

void uiTemplateColorPicker ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
bool  value_slider,
bool  lock,
bool  lock_luminosity,
bool  cubic 
)

◆ uiTemplateColorRamp()

void uiTemplateColorRamp ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
bool  expand 
)

◆ uiTemplateColorspaceSettings()

void uiTemplateColorspaceSettings ( struct uiLayout layout,
struct PointerRNA ptr,
const char *  propname 
)

◆ uiTemplateComponentMenu()

void uiTemplateComponentMenu ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
const char *  name 
)

◆ uiTemplateConstraintHeader()

void uiTemplateConstraintHeader ( uiLayout layout,
struct PointerRNA ptr 
)

◆ uiTemplateConstraints()

void uiTemplateConstraints ( uiLayout layout,
struct bContext C,
bool  use_bone_constraints 
)

Check if the constraint panels don't match the data and rebuild the panels if so.

◆ uiTemplateCryptoPicker()

void uiTemplateCryptoPicker ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
int  icon 
)

◆ uiTemplateCurveMapping()

void uiTemplateCurveMapping ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
int  type,
bool  levels,
bool  brush,
bool  neg_slope,
bool  tone 
)

◆ uiTemplateCurveProfile()

void uiTemplateCurveProfile ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname 
)

◆ uiTemplateEditModeSelection()

void uiTemplateEditModeSelection ( uiLayout layout,
struct bContext C 
)

◆ uiTemplateEventFromKeymapItem()

bool uiTemplateEventFromKeymapItem ( struct uiLayout layout,
const char *  text,
const struct wmKeyMapItem kmi,
bool  text_fallback 
)

◆ uiTemplateFileSelectPath()

void uiTemplateFileSelectPath ( uiLayout layout,
struct bContext C,
struct FileSelectParams params 
)

◆ uiTemplateGpencilColorPreview()

void uiTemplateGpencilColorPreview ( uiLayout layout,
struct bContext C,
struct PointerRNA ptr,
const char *  propname,
int  rows,
int  cols,
float  scale,
int  filter 
)

◆ uiTemplateGpencilModifier()

uiLayout* uiTemplateGpencilModifier ( uiLayout layout,
struct bContext C,
struct PointerRNA ptr 
)

◆ uiTemplateGpencilModifiers()

void uiTemplateGpencilModifiers ( uiLayout layout,
struct bContext C 
)

◆ uiTemplateHeader()

void uiTemplateHeader ( uiLayout layout,
struct bContext C 
)

Definition at line 111 of file interface_templates.c.

References C, ED_area_header_switchbutton(), and uiLayoutAbsoluteBlock().

◆ uiTemplateHeader3D_mode()

void uiTemplateHeader3D_mode ( uiLayout layout,
struct bContext C 
)

◆ uiTemplateHistogram()

void uiTemplateHistogram ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname 
)

◆ uiTemplateIcon()

void uiTemplateIcon ( uiLayout layout,
int  icon_value,
float  icon_scale 
)
Parameters
icon_scaleScale 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().

◆ uiTemplateIconView()

void uiTemplateIconView ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
bool  show_labels,
float  icon_scale,
float  icon_scale_popup 
)

◆ uiTemplateID()

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 
)

◆ uiTemplateIDBrowse()

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 
)

◆ uiTemplateIDPreview()

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 
)

◆ uiTemplateIDTabs()

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().

◆ uiTemplateImage()

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().

◆ uiTemplateImageFormatViews()

void uiTemplateImageFormatViews ( uiLayout layout,
struct PointerRNA imfptr,
struct PointerRNA ptr 
)

◆ uiTemplateImageInfo()

void uiTemplateImageInfo ( uiLayout layout,
struct bContext C,
struct Image ima,
struct ImageUser iuser 
)

◆ uiTemplateImageLayers()

void uiTemplateImageLayers ( uiLayout layout,
struct bContext C,
struct Image ima,
struct ImageUser iuser 
)

◆ uiTemplateImageSettings()

void uiTemplateImageSettings ( uiLayout layout,
struct PointerRNA imfptr,
bool  color_management 
)

◆ uiTemplateImageStereo3d()

void uiTemplateImageStereo3d ( uiLayout layout,
struct PointerRNA stereo3d_format_ptr 
)

◆ uiTemplateImageViews()

void uiTemplateImageViews ( uiLayout layout,
struct PointerRNA imaptr 
)

◆ uiTemplateInputStatus()

void uiTemplateInputStatus ( uiLayout layout,
struct bContext C 
)

◆ uiTemplateKeymapItemProperties()

void uiTemplateKeymapItemProperties ( uiLayout layout,
struct PointerRNA ptr 
)

◆ uiTemplateLayers()

void uiTemplateLayers ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
struct PointerRNA used_ptr,
const char *  used_propname,
int  active_layer 
)

◆ uiTemplateList()

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 
)

◆ uiTemplateList_ex()

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 
)

◆ uiTemplateMarker()

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.

◆ uiTemplateMenuSearch()

void uiTemplateMenuSearch ( uiLayout layout)

◆ uiTemplateModifiers()

void uiTemplateModifiers ( uiLayout layout,
struct bContext C 
)

◆ uiTemplateMovieClip()

void uiTemplateMovieClip ( struct uiLayout layout,
struct bContext C,
struct PointerRNA ptr,
const char *  propname,
bool  compact 
)

◆ uiTemplateMovieclipInformation()

void uiTemplateMovieclipInformation ( struct uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
struct PointerRNA userptr 
)

◆ uiTemplateNodeLink()

void uiTemplateNodeLink ( uiLayout layout,
struct bContext C,
struct bNodeTree ntree,
struct bNode node,
struct bNodeSocket input 
)

◆ uiTemplateNodeSocket()

void uiTemplateNodeSocket ( uiLayout layout,
struct bContext C,
float  color[4] 
)

◆ uiTemplateNodeView()

void uiTemplateNodeView ( uiLayout layout,
struct bContext C,
struct bNodeTree ntree,
struct bNode node,
struct bNodeSocket input 
)

◆ uiTemplateOperatorPropertyButs()

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().

◆ uiTemplateOperatorRedoProperties()

void uiTemplateOperatorRedoProperties ( uiLayout layout,
const struct bContext C 
)

◆ uiTemplateOperatorSearch()

void uiTemplateOperatorSearch ( uiLayout layout)

◆ uiTemplatePalette()

void uiTemplatePalette ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
bool  colors 
)

◆ uiTemplatePathBuilder()

void uiTemplatePathBuilder ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
struct PointerRNA root_ptr,
const char *  text 
)

This is creating/editing RNA-Paths

  • ptr: struct which holds the path property
  • propname: property identifier for property that path gets stored to
  • root_ptr: struct that path gets built from

Referenced by graph_panel_driverVar__singleProp().

◆ uiTemplatePreview()

void uiTemplatePreview ( uiLayout layout,
struct bContext C,
struct ID id,
bool  show_buttons,
struct ID parent,
struct MTex slot,
const char *  preview_id 
)

◆ uiTemplateRecentFiles()

int uiTemplateRecentFiles ( struct uiLayout layout,
int  rows 
)

◆ uiTemplateReportsBanner()

void uiTemplateReportsBanner ( uiLayout layout,
struct bContext C 
)

◆ uiTemplateRunningJobs()

void uiTemplateRunningJobs ( uiLayout layout,
struct bContext C 
)

◆ uiTemplateSearch()

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().

◆ uiTemplateSearchPreview()

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 
)

◆ uiTemplateShaderFx()

void uiTemplateShaderFx ( uiLayout layout,
struct bContext C 
)

Check if the shader effect panels don't match the data and rebuild the panels if so.

◆ uiTemplateStatusInfo()

void uiTemplateStatusInfo ( uiLayout layout,
struct bContext C 
)

◆ uiTemplateTextureShow()

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().

◆ uiTemplateTextureUser()

void uiTemplateTextureUser ( uiLayout layout,
struct bContext C 
)

◆ uiTemplateTrack()

void uiTemplateTrack ( struct uiLayout layout,
struct PointerRNA ptr,
const char *  propname 
)

◆ uiTemplateVectorscope()

void uiTemplateVectorscope ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname 
)

◆ uiTemplateWaveform()

void uiTemplateWaveform ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname 
)