Blender  V2.93
Classes | Macros | Typedefs | Enumerations | Functions
UI_interface.h File Reference
#include "BLI_compiler_attrs.h"
#include "BLI_sys_types.h"
#include "UI_interface_icons.h"

Go to the source code of this file.

Classes

struct  uiStringInfo
 
struct  uiPropertySplitWrapper
 
struct  uiDragColorHandle
 
struct  uiFontStyleDraw_Params
 
struct  uiSearchItemTooltipData
 

Macros

#define UI_SEP_CHAR   '|'
 
#define UI_SEP_CHAR_S   "|"
 
#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
 
#define UI_DEFAULT_TITLE_POINTS   12
 
#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_BOX_STYLE_MARGIN   (U.widget_unit * 0.2f)
 
#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 uiLayout uiLayout
 
typedef struct uiPopupBlockHandle uiPopupBlockHandle
 
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 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, const bool is_first)
 
typedef void(* uiButSearchArgFreeFn) (void *arg)
 
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 bContext *C, 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 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 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_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 << 6 , UI_BUT_ICON_PREVIEW = 1 << 7 , UI_BUT_NODE_LINK = 1 << 8 , UI_BUT_NODE_ACTIVE = 1 << 9 ,
  UI_BUT_DRAG_LOCK = 1 << 10 , UI_BUT_DISABLED = 1 << 11 , UI_BUT_ANIMATED = 1 << 13 , UI_BUT_ANIMATED_KEY = 1 << 14 ,
  UI_BUT_DRIVEN = 1 << 15 , UI_BUT_REDALERT = 1 << 16 , UI_BUT_INACTIVE = 1 << 17 , UI_BUT_LAST_ACTIVE = 1 << 18 ,
  UI_BUT_UNDO = 1 << 19 , UI_BUT_IMMEDIATE = 1 << 20 , UI_BUT_NO_UTF8 = 1 << 21 , 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_HAS_SHORTCUT = 1 << 23 , UI_BUT_ICON_REVERSE = 1 << 24 , UI_BUT_ANIMATED_CHANGED = 1 << 25 , UI_BUT_CHECKBOX_INVERT = 1 << 26
}
 
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_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
}
 
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 , UI_SCROLL_NO_OUTLINE = 1 << 2 }
 
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_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  eFontStyle_Align { UI_STYLE_TEXT_LEFT = 0 , UI_STYLE_TEXT_CENTER = 1 , UI_STYLE_TEXT_RIGHT = 2 }
 

Functions

void UI_draw_anti_tria (float x1, float y1, float x2, float y2, float x3, float y3, const float color[4])
 
void UI_draw_anti_fan (float tri_array[][2], unsigned int length, const float color[4])
 
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_shade_x (const struct rctf *rect, bool filled, float rad, float shadetop, float shadedown, const float col[4])
 
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, const float minwidth, const size_t max_len, const 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, const bool skip_title)
 
bool UI_block_is_empty (const uiBlock *block)
 
bool UI_block_can_add_separator (const uiBlock *block)
 
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 *head)
 
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, const int retval, const 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, void(*arg_free)(void *arg))
 
void UI_popup_block_invoke_ex (struct bContext *C, uiBlockCreateFunc func, void *arg, void(*arg_free)(void *arg), 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_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)
 
char 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 ListBase *lb)
 
void UI_blocklist_free_inactive (const struct bContext *C, struct ListBase *lb)
 
void UI_screen_free_active_but (const struct bContext *C, struct bScreen *screen)
 
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)
 
void UI_but_drag_set_id (uiBut *but, struct ID *id)
 
void UI_but_drag_set_asset (uiBut *but, const char *name, const char *path, int id_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, const 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, const bool use_free)
 
bool UI_but_active_drop_name (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, const 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)
 
uiButuiDefButBitF (uiBlock *block, int type, int bit, 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, int opcontext, const char *str, int x, int y, short width, short height, const char *tip)
 
uiButuiDefButO_ptr (uiBlock *block, int type, struct wmOperatorType *ot, int 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)
 
uiButuiDefIconButF (uiBlock *block, int type, int retval, int icon, int x, int y, short width, short height, float *poin, float min, float max, float a1, float a2, const char *tip)
 
uiButuiDefIconButBitF (uiBlock *block, int type, int bit, int retval, int icon, int x, int y, short width, short height, float *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)
 
uiButuiDefIconButC (uiBlock *block, int type, 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)
 
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, int opcontext, int icon, int x, int y, short width, short height, const char *tip)
 
uiButuiDefIconButO_ptr (uiBlock *block, int type, struct wmOperatorType *ot, int 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)
 
uiButuiDefIconTextButBitF (uiBlock *block, int type, int bit, 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)
 
uiButuiDefIconTextButBitI (uiBlock *block, int type, int bit, 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)
 
uiButuiDefIconTextButS (uiBlock *block, int type, int retval, int icon, const char *str, int x, int y, short width, short height, short *poin, float min, float max, float a1, float a2, const char *tip)
 
uiButuiDefIconTextButBitS (uiBlock *block, int type, int bit, int retval, int icon, const char *str, int x, int y, short width, short height, short *poin, float min, float max, float a1, float a2, const char *tip)
 
uiButuiDefIconTextButC (uiBlock *block, int type, int retval, int icon, const char *str, int x, int y, short width, short height, char *poin, float min, float max, float a1, float a2, const char *tip)
 
uiButuiDefIconTextButBitC (uiBlock *block, int type, int bit, int retval, int icon, const char *str, int x, int y, short width, short height, char *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, int 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, int 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_unit_type_set (uiBut *but, const 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)
 
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)
 
uiButuiDefKeyevtButS (uiBlock *block, int retval, const char *str, int x, int y, short width, short height, short *spoin, const char *tip)
 
uiButuiDefHotKeyevtButS (uiBlock *block, int retval, const char *str, int x, int y, short width, short height, short *keypoin, const short *modkeypoin, 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)
 
uiButuiDefAutoButR (uiBlock *block, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, const char *name, int icon, int x, int y, int width, 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, const bool compact)
 
bool UI_search_item_add (uiSearchItems *items, const char *name, void *poin, int iconid, int state, const uint8_t name_prefix_offset)
 
void UI_but_func_search_set (uiBut *but, uiButSearchCreateFn search_create_fn, uiButSearchUpdateFn search_update_fn, void *arg, const bool free_arg, uiButSearchArgFreeFn 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, const 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_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 *argN)
 
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, void *arg)
 
struct PointerRNAUI_but_extra_operator_icon_add (uiBut *but, const char *opname, short opcontext, int icon)
 
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_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)
 
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)
 
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_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, const 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)
 
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)
 
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, int 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, const 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, const 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, const int rows, const 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 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)
 
void uiTemplateCacheFile (uiLayout *layout, const struct bContext *C, struct PointerRNA *ptr, const char *propname)
 
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, bool sort_reverse, bool sort_lock)
 
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 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, int context, int flag, struct PointerRNA *r_opptr)
 
void uiItemFullO (uiLayout *layout, const char *opname, const char *name, int icon, struct IDProperty *properties, int context, int flag, struct PointerRNA *r_opptr)
 
void uiItemFullOMenuHold_ptr (uiLayout *layout, struct wmOperatorType *ot, const char *name, int icon, struct IDProperty *properties, int 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)
 
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, int context, int flag)
 
void uiItemsFullEnumO_items (uiLayout *layout, struct wmOperatorType *ot, struct PointerRNA ptr, struct PropertyRNA *prop, struct IDProperty *properties, int 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, const bool highlight, const 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, struct bContext *C, struct PanelType *pt, const char *name, int icon)
 
void uiItemPopoverPanel (uiLayout *layout, 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 uiItemMenuEnumO_ptr (uiLayout *layout, struct bContext *C, struct wmOperatorType *ot, const char *propname, const char *name, int icon)
 
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, const int size, const eAlertIcon icon)
 
void ED_operatortypes_ui (void)
 
void ED_keymap_ui (struct wmKeyConfig *keyconf)
 User Interface Keymap. More...
 
void UI_drop_color_copy (struct wmDrag *drag, struct wmDropBox *drop)
 
bool UI_drop_color_poll (struct bContext *C, struct wmDrag *drag, const struct wmEvent *event, const char **r_tooltip)
 
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)
 
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)
 
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, const uchar col[4], const struct uiFontStyleDraw_Params *fs_params, size_t len, 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, 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)
 
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)
 
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_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)
 

Macro Definition Documentation

◆ AUTOCOMPLETE_FULL_MATCH

#define AUTOCOMPLETE_FULL_MATCH   1

Definition at line 1672 of file UI_interface.h.

◆ AUTOCOMPLETE_NO_MATCH

#define AUTOCOMPLETE_NO_MATCH   0

Definition at line 1671 of file UI_interface.h.

◆ AUTOCOMPLETE_PARTIAL_MATCH

#define AUTOCOMPLETE_PARTIAL_MATCH   2

Definition at line 1673 of file UI_interface.h.

◆ BUTTYPE

#define BUTTYPE   (63 << 9)

Definition at line 395 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 1732 of file UI_interface.h.

◆ UI_ALPHA_CHECKER_DARK

#define UI_ALPHA_CHECKER_DARK   100

Definition at line 1845 of file UI_interface.h.

◆ UI_ALPHA_CHECKER_LIGHT

#define UI_ALPHA_CHECKER_LIGHT   160

Definition at line 1846 of file UI_interface.h.

◆ UI_but_is_decorator

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

Definition at line 543 of file UI_interface.h.

◆ UI_BUT_POIN_TYPES

#define UI_BUT_POIN_TYPES   (UI_BUT_POIN_FLOAT | UI_BUT_POIN_SHORT | UI_BUT_POIN_CHAR)

Definition at line 330 of file UI_interface.h.

◆ UI_COMPACT_PANEL_WIDTH

#define UI_COMPACT_PANEL_WIDTH   160

Definition at line 244 of file UI_interface.h.

◆ UI_DEFAULT_TEXT_POINTS

#define UI_DEFAULT_TEXT_POINTS   11

Definition at line 238 of file UI_interface.h.

◆ UI_DEFAULT_TITLE_POINTS

#define UI_DEFAULT_TITLE_POINTS   12

Definition at line 241 of file UI_interface.h.

◆ UI_DPI_FAC

#define UI_DPI_FAC   (U.dpi_fac)

Definition at line 309 of file UI_interface.h.

◆ UI_DPI_ICON_SIZE

#define UI_DPI_ICON_SIZE   ((float)16 * UI_DPI_FAC)

Definition at line 311 of file UI_interface.h.

◆ UI_FSTYLE_WIDGET

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

Definition at line 2608 of file UI_interface.h.

◆ UI_HEADER_OFFSET

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

Definition at line 1831 of file UI_interface.h.

◆ UI_MAX_DRAW_STR

#define UI_MAX_DRAW_STR   400

Definition at line 90 of file UI_interface.h.

◆ UI_MAX_NAME_STR

#define UI_MAX_NAME_STR   128

Definition at line 91 of file UI_interface.h.

◆ UI_MAX_SHORTCUT_STR

#define UI_MAX_SHORTCUT_STR   64

Definition at line 92 of file UI_interface.h.

◆ UI_NARROW_NAVIGATION_REGION_WIDTH

#define UI_NARROW_NAVIGATION_REGION_WIDTH   100

Definition at line 247 of file UI_interface.h.

◆ UI_NAVIGATION_REGION_WIDTH

#define UI_NAVIGATION_REGION_WIDTH   UI_COMPACT_PANEL_WIDTH

Definition at line 246 of file UI_interface.h.

◆ UI_PANEL_BOX_STYLE_MARGIN

#define UI_PANEL_BOX_STYLE_MARGIN   (U.widget_unit * 0.2f)

Definition at line 251 of file UI_interface.h.

◆ UI_PANEL_CATEGORY_MARGIN_WIDTH

#define UI_PANEL_CATEGORY_MARGIN_WIDTH   (U.widget_unit * 1.0f)

Definition at line 249 of file UI_interface.h.

◆ UI_PANEL_WIDTH

#define UI_PANEL_WIDTH   340

Definition at line 243 of file UI_interface.h.

◆ UI_PRECISION_FLOAT_MAX

#define UI_PRECISION_FLOAT_MAX   6

Definition at line 2603 of file UI_interface.h.

◆ UI_PRECISION_FLOAT_SCALE

#define UI_PRECISION_FLOAT_SCALE   0.01f

Definition at line 2605 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 100 of file UI_interface.h.

◆ UI_SCREEN_MARGIN

#define UI_SCREEN_MARGIN   10

Definition at line 103 of file UI_interface.h.

◆ UI_SEP_CHAR

#define UI_SEP_CHAR   '|'

Definition at line 86 of file UI_interface.h.

◆ UI_SEP_CHAR_S

#define UI_SEP_CHAR_S   "|"

Definition at line 87 of file UI_interface.h.

◆ UI_SIDEBAR_PANEL_WIDTH

#define UI_SIDEBAR_PANEL_WIDTH   220

Definition at line 245 of file UI_interface.h.

◆ UI_TOOLTIP_DELAY

#define UI_TOOLTIP_DELAY   0.5

Definition at line 2599 of file UI_interface.h.

◆ UI_TOOLTIP_DELAY_LABEL

#define UI_TOOLTIP_DELAY_LABEL   0.2

Definition at line 2600 of file UI_interface.h.

◆ UI_UL_DEFAULT_CLASS_NAME

#define UI_UL_DEFAULT_CLASS_NAME   "UI_UL_list"

Definition at line 2147 of file UI_interface.h.

◆ UI_UNIT_X

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

Definition at line 1789 of file UI_interface.h.

◆ UI_UNIT_Y

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

Definition at line 1790 of file UI_interface.h.

◆ USE_UI_POPOVER_ONCE

#define USE_UI_POPOVER_ONCE

Definition at line 2627 of file UI_interface.h.

◆ USE_UI_TOOLBAR_HACK

#define USE_UI_TOOLBAR_HACK

Definition at line 2624 of file UI_interface.h.

Typedef Documentation

◆ AutoComplete

typedef struct AutoComplete AutoComplete

Definition at line 1658 of file UI_interface.h.

◆ eButGradientType

Gradient types, for color picker UI_BTYPE_HSVCUBE etc.

◆ eFontStyle_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 620 of file UI_interface.h.

◆ uiBlockCreateFunc

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

Definition at line 619 of file UI_interface.h.

◆ uiBlockHandleFunc

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

Definition at line 525 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 496 of file UI_interface.h.

◆ uiButHandleFunc

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

Definition at line 492 of file UI_interface.h.

◆ uiButHandleHoldFunc

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

Definition at line 495 of file UI_interface.h.

◆ uiButHandleNFunc

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

Definition at line 494 of file UI_interface.h.

◆ uiButHandleRenameFunc

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

Definition at line 493 of file UI_interface.h.

◆ uiButPushedStateFunc

typedef int(* uiButPushedStateFunc) (struct bContext *C, void *arg)

Definition at line 523 of file UI_interface.h.

◆ uiButSearchArgFreeFn

typedef void(* uiButSearchArgFreeFn) (void *arg)

Definition at line 510 of file UI_interface.h.

◆ uiButSearchContextMenuFn

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

Definition at line 511 of file UI_interface.h.

◆ uiButSearchCreateFn

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

Definition at line 496 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 511 of file UI_interface.h.

◆ uiButSearchUpdateFn

typedef void(* uiButSearchUpdateFn) (const struct bContext *C, void *arg, const char *str, uiSearchItems *items, const bool is_first)

Definition at line 505 of file UI_interface.h.

◆ uiButStore

typedef struct uiButStore uiButStore

Definition at line 2559 of file UI_interface.h.

◆ uiButStoreElem

Definition at line 2559 of file UI_interface.h.

◆ uiButToolTipFunc

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

Definition at line 522 of file UI_interface.h.

◆ uiDragColorHandle

◆ 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 1735 of file UI_interface.h.

◆ uiMenuCreateFunc

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

Definition at line 529 of file UI_interface.h.

◆ uiMenuHandleFunc

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

Definition at line 530 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 537 of file UI_interface.h.

◆ uiPieMenu

typedef struct uiPieMenu uiPieMenu

Definition at line 589 of file UI_interface.h.

◆ uiPopover

typedef struct uiPopover uiPopover

Definition at line 574 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 547 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 467 of file UI_interface.h.

◆ uiStringInfo

typedef struct uiStringInfo uiStringInfo

◆ uiStringInfoType

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 121 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_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 139 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 174 of file UI_interface.h.

◆ anonymous enum

anonymous enum
Enumerator
UI_BUT_ICON_SUBMENU 

Warning, the first 6 flags are internal.

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_IMMEDIATE 
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 textedit 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 190 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_HAS_SHORTCUT 

Button has shortcut text.

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 
UI_SCROLL_NO_OUTLINE 

Definition at line 456 of file UI_interface.h.

◆ anonymous enum

anonymous enum
Enumerator
UI_BLOCK_THEME_STYLE_REGULAR 
UI_BLOCK_THEME_STYLE_POPUP 

Definition at line 669 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_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 1415 of file UI_interface.h.

◆ anonymous enum

anonymous enum
Enumerator
UI_LAYOUT_HORIZONTAL 
UI_LAYOUT_VERTICAL 

Definition at line 1775 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 1780 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 1792 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 1799 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 1834 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 1854 of file UI_interface.h.

◆ eAutoPropButsReturn

Enumerator
UI_PROP_BUTS_NONE_ADDED 
UI_PROP_BUTS_ANY_FAILED_CHECK 

Definition at line 1564 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 694 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 398 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 1554 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 320 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_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 

Definition at line 333 of file UI_interface.h.

◆ eFontStyle_Align

Enumerator
UI_STYLE_TEXT_LEFT 
UI_STYLE_TEXT_CENTER 
UI_STYLE_TEXT_RIGHT 

Definition at line 2505 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 106 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 1354 of file UI_interface.h.

Function Documentation

◆ ED_keymap_ui()

void ED_keymap_ui ( struct wmKeyConfig keyconf)

User Interface Keymap.

Definition at line 1878 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  )

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

◆ 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 5137 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()

char UI_block_emboss_get ( uiBlock block)

Definition at line 3537 of file interface.c.

References uiBlock::emboss.

Referenced by uiTemplateReportsBanner().

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

◆ 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_is_empty()

bool UI_block_is_empty ( const uiBlock block)

Definition at line 533 of file interface_query.c.

References UI_block_is_empty_ex().

◆ UI_block_is_empty_ex()

bool UI_block_is_empty_ex ( const uiBlock block,
const bool  skip_title 
)

◆ UI_block_is_search_only()

bool UI_block_is_search_only ( const uiBlock block)

Definition at line 3552 of file interface.c.

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 5582 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_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)

◆ 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 3561 of file interface.c.

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_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 ListBase lb 
)

◆ UI_blocklist_free_inactive()

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

◆ UI_blocklist_min_y_get()

int UI_blocklist_min_y_get ( struct ListBase lb)

Definition at line 6015 of file interface.c.

References ListBase::first, LISTBASE_FOREACH, and min.

◆ 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 ( struct bContext C)

◆ 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,
const bool  remove_on_failure 
)

◆ UI_but_disable()

void UI_but_disable ( uiBut but,
const char *  disabled_hint 
)

◆ UI_but_drag_set_asset()

void UI_but_drag_set_asset ( uiBut but,
const char *  name,
const char *  path,
int  id_type,
int  icon,
struct ImBuf imb,
float  scale 
)

◆ 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,
const 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,
const 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)

Definition at line 6196 of file interface.c.

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

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

◆ UI_but_extra_operator_icon_add()

struct PointerRNA* UI_but_extra_operator_icon_add ( uiBut but,
const char *  opname,
short  opcontext,
int  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 ( 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 6850 of file interface.c.

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 6864 of file interface.c.

References uiBut::hold_argN, and uiBut::hold_func.

Referenced by uiItemFullOMenuHold_ptr().

◆ 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 6318 of file interface.c.

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,
void *  arg 
)

Definition at line 6332 of file interface.c.

References uiBut::pushed_state_arg, and uiBut::pushed_state_func.

◆ UI_but_func_rename_set()

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

Definition at line 6277 of file interface.c.

References uiBut::rename_arg1, and uiBut::rename_func.

Referenced by file_draw_list(), and outliner_buttons().

◆ UI_but_func_search_set()

void UI_but_func_search_set ( uiBut but,
uiButSearchCreateFn  search_create_fn,
uiButSearchUpdateFn  search_update_fn,
void *  arg,
const bool  free_arg,
uiButSearchArgFreeFn  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 6613 of file interface.c.

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, NULL, 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 merged_element_search_menu(), node_find_menu(), 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,
const 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 6683 of file interface.c.

References BLI_assert, uiButSearch::item_sep_string, uiBut::type, and UI_BTYPE_SEARCH_MENU.

Referenced by 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 *  argN 
)

◆ 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_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 6122 of file interface.c.

References uiBut::retval.

◆ UI_but_string_info_get()

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

Definition at line 6870 of file interface.c.

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, PointerRNA::data, ELEM, uiBut::flag, uiBut::hardmax, PanelType::idname, MenuType::idname, wmOperatorType::idname, PanelType::label, MenuType::label, MEM_freeN, NULL, 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_argN, uiBut::tip_func, 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(), and ui_tooltip_data_from_tool().

◆ UI_but_tooltip_refresh()

void UI_but_tooltip_refresh ( bContext C,
uiBut but 
)

Recreate tool-tip (use to update dynamic tips)

Definition at line 7836 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 ( 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 7851 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,
const 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 895 of file interface_utils.c.

References uiBlock::butstore, LISTBASE_FOREACH, and NULL.

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 802 of file interface_utils.c.

References BLI_addtail(), uiButStore::block, uiBlock::butstore, and MEM_callocN.

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 839 of file interface_utils.c.

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 834 of file interface_utils.c.

References uiButStore::block, and NULL.

◆ 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 876 of file interface_utils.c.

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 908 of file interface_utils.c.

References BLI_assert, BLI_movelisttolist(), uiBlock::butstore, ELEM, ListBase::first, LIKELY, LISTBASE_FOREACH, NULL, 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 693 of file interface_utils.c.

References BLI_assert, CLAMP, e, fabs(), KDL::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)

◆ 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 ( struct bContext C,
struct PointerRNA r_ptr,
struct PropertyRNA **  r_prop 
)

◆ UI_context_active_but_prop_handle()

void UI_context_active_but_prop_handle ( struct bContext C)

◆ UI_context_active_operator_get()

struct wmOperator* UI_context_active_operator_get ( const struct bContext C)

◆ 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_anti_fan()

void UI_draw_anti_fan ( float  tri_array[][2],
unsigned int  length,
const float  color[4] 
)

◆ UI_draw_anti_tria()

void UI_draw_anti_tria ( float  x1,
float  y1,
float  x2,
float  y2,
float  x3,
float  y3,
const float  color[4] 
)

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

◆ 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_roundbox_shade_x()

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

Referenced by nla_draw_strip().

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

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

◆ UI_drop_color_copy()

void UI_drop_color_copy ( struct wmDrag drag,
struct wmDropBox drop 
)

◆ UI_drop_color_poll()

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

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 
)

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 7128 of file interface.c.

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,
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,
const uchar  col[4],
const struct uiFontStyleDraw_Params fs_params,
size_t  len,
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] 
)

◆ UI_fontstyle_draw_simple()

void UI_fontstyle_draw_simple ( const struct uiFontStyle fs,
float  x,
float  y,
const char *  str,
const uchar  col[4] 
)

◆ 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 UI_fontstyle_height_max ( const struct uiFontStyle fs)

◆ 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_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 7111 of file interface.c.

References ui_resources_init().

Referenced by WM_init().

◆ UI_init_userdef()

void UI_init_userdef ( void  )

Definition at line 7117 of file interface.c.

References uiStyleInit().

Referenced by wm_init_userdef().

◆ UI_interface_tag_script_reload()

void UI_interface_tag_script_reload ( void  )

Definition at line 7134 of file interface.c.

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 5906 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_panel_unique_str()

void UI_list_panel_unique_str ( 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 308 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 
)

◆ UI_panel_begin()

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

◆ 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 2351 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 ( ARegion region,
const char *  category_id_active 
)

Draw vertical tabs on the left side of the region, one tab per category.

Definition at line 1393 of file interface_panel.c.

References ARegion::alignment, BLF_color3ubv(), BLF_disable(), BLF_draw(), BLF_DRAW_STR_DUMMY_MAX, BLF_enable(), BLF_KERNING_DEFAULT, 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(), uiFontStyle::kerning, 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_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 882 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 ( 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 787 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 ( 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)

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

Referenced by ed_panel_draw().

◆ UI_panel_list_matches_data()

bool UI_panel_list_matches_data ( ARegion region,
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 373 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(), uiTemplateConstraints(), uiTemplateGpencilModifiers(), uiTemplateModifiers(), and uiTemplateShaderFx().

◆ UI_panel_matches_search_filter()

bool UI_panel_matches_search_filter ( const struct Panel panel)

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

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 
)

◆ UI_paneltype_draw()

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

Used for popup panels only.

Definition at line 5783 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 ( bContext C,
int  ui_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 349 of file interface_region_popover.c.

References uiPopover::block, uiPopover::but, uiPopover::butregion, C, CTX_wm_region(), uiBlock::handle, MEM_callocN, NULL, 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 427 of file interface_region_popover.c.

References uiPopover::layout.

Referenced by UI_popover_panel_invoke().

◆ UI_popover_once_clear()

void UI_popover_once_clear ( uiPopover pup)

Definition at line 433 of file interface_region_popover.c.

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,
void(*)(void *arg)  arg_free 
)

◆ UI_popup_block_invoke_ex()

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

◆ UI_popup_block_name_exists()

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

Referenced by wm_close_file_dialog().

◆ UI_popup_handlers_add()

void UI_popup_handlers_add ( struct bContext C,
struct ListBase handlers,
uiPopupBlockHandle popup,
const 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 ( 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 445 of file interface_region_menu_popup.c.

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

◆ 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,
const int  retval,
const bool  enable 
)

Allow setting menu return value from externals. E.g. WM might need to do this for exiting files correctly.

Definition at line 10707 of file interface_handlers.c.

References uiBlock::handle, and uiPopupBlockHandle::menuretval.

Referenced by dialog_exec_cb().

◆ UI_region_active_but_get()

uiBut* UI_region_active_but_get ( const struct ARegion region)

Referenced by UI_popover_begin().

◆ 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 8413 of file interface_handlers.c.

References ui_block_find_mouse_over_ex().

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

◆ UI_reinit_font()

void UI_reinit_font ( void  )

Definition at line 7123 of file interface.c.

References uiStyleInit().

Referenced by reloadtranslation_exec().

◆ UI_screen_free_active_but()

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

◆ UI_search_item_add()

bool UI_search_item_add ( uiSearchItems items,
const char *  name,
void *  poin,
int  iconid,
int  state,
const 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 1057 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 108 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,
const float  minwidth,
const size_t  max_len,
const char  rpart_sep 
)

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 1041 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 ( bContext C,
ARegion butregion,
uiBut but,
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 
)

◆ UI_tooltip_free()

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

Definition at line 1549 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_widgetbase_draw_cache_begin()

void UI_widgetbase_draw_cache_begin ( void  )

Definition at line 1199 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 
)

◆ 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,
const bool  compact 
)

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

◆ 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 5112 of file interface.c.

References height, max, min, str, type, UI_BUT_POIN_CHAR, uiDefButBit(), width, x, and y.

Referenced by block_create__close_file_dialog().

◆ uiDefButBitF()

uiBut* uiDefButBitF ( uiBlock block,
int  type,
int  bit,
int  retval,
const char *  str,
int  x,
int  y,
short  width,
short  height,
float poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 4926 of file interface.c.

References height, max, min, str, type, UI_BUT_POIN_FLOAT, uiDefButBit(), width, x, and y.

◆ 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 4988 of file interface.c.

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 5050 of file interface.c.

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 5082 of file interface.c.

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 
)

Definition at line 4958 of file interface.c.

References height, max, min, str, type, UI_BUT_POIN_INT, uiDefBut(), width, x, and y.

Referenced by curvemap_buttons_layout(), ui_def_but_rna__menu(), uiItemV(), and uiTemplateList().

◆ 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,
int  opcontext,
const char *  str,
int  x,
int  y,
short  width,
short  height,
const char *  tip 
)

Definition at line 5204 of file interface.c.

References height, NULL, 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,
int  opcontext,
const char *  str,
int  x,
int  y,
short  width,
short  height,
const char *  tip 
)

Definition at line 5189 of file interface.c.

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 
)

◆ uiDefHotKeyevtButS()

uiBut* uiDefHotKeyevtButS ( uiBlock block,
int  retval,
const char *  str,
int  x,
int  y,
short  width,
short  height,
short *  keypoin,
const short *  modkeypoin,
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 5495 of file interface.c.

References height, max, min, type, UI_BUT_POIN_CHAR, uiDefIconButBit(), width, x, and y.

Referenced by draw_setting_widget().

◆ uiDefIconButBitF()

uiBut* uiDefIconButBitF ( uiBlock block,
int  type,
int  bit,
int  retval,
int  icon,
int  x,
int  y,
short  width,
short  height,
float poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 5309 of file interface.c.

References height, max, min, type, UI_BUT_POIN_FLOAT, uiDefIconButBit(), width, x, and y.

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

◆ uiDefIconButC()

uiBut* uiDefIconButC ( uiBlock block,
int  type,
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 5465 of file interface.c.

References height, max, min, type, UI_BUT_POIN_CHAR, uiDefIconBut(), width, x, and y.

◆ uiDefIconButF()

uiBut* uiDefIconButF ( uiBlock block,
int  type,
int  retval,
int  icon,
int  x,
int  y,
short  width,
short  height,
float poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 5279 of file interface.c.

References height, max, min, type, UI_BUT_POIN_FLOAT, uiDefIconBut(), width, x, and y.

◆ 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,
int  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,
int  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 5527 of file interface.c.

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 5403 of file interface.c.

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 
)

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

◆ uiDefIconTextButBitC()

uiBut* uiDefIconTextButBitC ( uiBlock block,
int  type,
int  bit,
int  retval,
int  icon,
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 5893 of file interface.c.

References height, max, min, str, type, UI_BUT_POIN_CHAR, uiDefIconTextButBit(), width, x, and y.

◆ uiDefIconTextButBitF()

uiBut* uiDefIconTextButBitF ( uiBlock block,
int  type,
int  bit,
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 5695 of file interface.c.

References height, max, min, str, type, UI_BUT_POIN_FLOAT, uiDefIconTextButBit(), width, x, and y.

◆ uiDefIconTextButBitI()

uiBut* uiDefIconTextButBitI ( uiBlock block,
int  type,
int  bit,
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 5761 of file interface.c.

References height, max, min, str, type, UI_BUT_POIN_INT, uiDefIconTextButBit(), width, x, and y.

◆ uiDefIconTextButBitS()

uiBut* uiDefIconTextButBitS ( uiBlock block,
int  type,
int  bit,
int  retval,
int  icon,
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 5827 of file interface.c.

References height, max, min, str, type, UI_BUT_POIN_SHORT, uiDefIconTextButBit(), width, x, and y.

◆ uiDefIconTextButC()

uiBut* uiDefIconTextButC ( uiBlock block,
int  type,
int  retval,
int  icon,
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 5861 of file interface.c.

References height, max, min, str, type, UI_BUT_POIN_CHAR, uiDefIconTextBut(), width, x, and y.

◆ 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 5663 of file interface.c.

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 5729 of file interface.c.

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,
int  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,
int  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 
)

◆ uiDefIconTextButS()

uiBut* uiDefIconTextButS ( uiBlock block,
int  type,
int  retval,
int  icon,
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 5795 of file interface.c.

References height, max, min, str, type, UI_BUT_POIN_SHORT, uiDefIconTextBut(), width, x, and y.

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

◆ uiDefKeyevtButS()

uiBut* uiDefKeyevtButS ( uiBlock block,
int  retval,
const char *  str,
int  x,
int  y,
short  width,
short  height,
short *  spoin,
const char *  tip 
)

Definition at line 6511 of file interface.c.

References height, str, UI_BTYPE_KEY_EVENT, UI_BUT_POIN_SHORT, ui_but_update(), ui_def_but(), width, x, and y.

◆ 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,
wmOperatorType ot,
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 6783 of file interface.c.

References PointerRNA::data, height, IDP_CopyProperty(), NULL, 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,
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 3021 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 data_panel_draw(), panel_draw(), ui_node_draw_input(), and uiTemplateCacheFile().

◆ uiItemDecoratorR_prop()

void uiItemDecoratorR_prop ( uiLayout layout,
PointerRNA ptr,
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,
int  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,
int  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,
int  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 1970 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, 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_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(), panel_draw(), screen_user_menu_draw(), template_keymap_item_properties(), transparency_panel_draw(), 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(), and uiTemplateAnyID().

◆ 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,
PointerRNA ptr,
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 3177 of file interface_layout.c.

References uiItemL_().

Referenced by baking_panel_draw(), block_create__close_file_dialog(), block_create_autorun_warning(), buttons_panel_context_draw(), draw_constraint_header(), driver_dvar_invalid_name_query_cb(), dyntopo_warning_popup(), 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(), menu_add_shortcut(), menu_change_shortcut(), metadata_panel_draw_field(), modifier_panel_end(), nla_panel_animdata(), nla_panel_stripname(), node_buts_image_user(), node_composit_buts_blur(), node_composit_buts_channel_matte(), node_composit_buts_color_spill(), node_composit_buts_colorcorrection(), node_composit_buts_colorcorrection_ex(), node_composit_buts_cryptomatte(), node_composit_buts_cryptomatte_legacy(), node_composit_buts_dblur(), node_composit_buts_defocus(), node_composit_buts_denoise(), node_composit_buts_distance_matte(), node_composit_buts_double_edge_mask(), node_composit_buts_file_output(), node_composit_buts_file_output_ex(), node_composit_buts_vecblur(), node_file_output_socket_draw(), node_shader_buts_vertex_color(), node_socket_button_label(), node_socket_undefined_draw(), node_socket_undefined_interface_draw(), node_sockets_panel(), panel_draw(), recent_files_menu_draw(), screen_user_menu_draw(), shaderfx_panel_end(), shaderfx_panel_header(), spreadsheet_footer_region_draw(), std_node_socket_draw(), template_keymap_item_properties(), template_operator_property_buts_draw_single(), template_texture_user_menu(), transparency_panel_draw(), 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(), ui_node_draw_input(), ui_node_menu_column(), ui_paneltype_draw_impl(), UI_popup_menu_reports(), ui_template_node_link_menu(), ui_template_palette_menu(), uiDefAutoButsRNA(), uiItemsEnumR(), uiItemsFullEnumO_items(), uilist_draw_item_default(), uiTemplateAnyID(), uiTemplateEventFromKeymapItem(), uiTemplateImageInfo(), uiTemplateImageSettings(), uiTemplateInputStatus(), uiTemplateList(), uiTemplateMovieclipInformation(), uiTemplateTextureUser(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_posearmature_buts(), v3d_transform_butsR(), and WM_window_modal_keymap_status_draw().

◆ uiItemL_ex()

void uiItemL_ex ( uiLayout layout,
const char *  name,
int  icon,
const bool  highlight,
const 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 
)

◆ uiItemMenuEnumO()

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

◆ uiItemMenuEnumO_ptr()

void uiItemMenuEnumO_ptr ( uiLayout layout,
struct bContext C,
struct wmOperatorType ot,
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 3363 of file interface_layout.c.

References ui_item_menu().

Referenced by workspace_add_invoke().

◆ uiItemO()

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

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

◆ uiItemPopoverPanel()

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

Definition at line 3069 of file interface_layout.c.

References C, NULL, RNA_warning, uiItemPopoverPanel_ptr(), and WM_paneltype_find().

◆ uiItemPopoverPanel_ptr()

void uiItemPopoverPanel_ptr ( uiLayout layout,
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 3187 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 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 2401 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 advanced_panel_draw(), apply_armature_pose2bones_ui(), axis_mapping_panel_draw(), baking_panel_draw(), block_create_autorun_warning(), blur_panel_draw(), caps_panel_draw(), chaining_panel_draw(), clamp_panel_draw(), colorband_buttons_layout(), component_menu(), constant_offset_draw(), constant_offset_header_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(), draw_socket_list(), 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(), envelope_panel_draw(), face_corner_panel_draw(), face_corner_panel_draw_header(), face_corner_uv_panel_draw(), face_corner_vcol_panel_draw(), face_panel_draw(), face_panel_draw_header(), fade_header_draw(), fade_panel_draw(), falloff_panel_draw(), fmodifier_frame_range_draw(), fmodifier_frame_range_header_draw(), fmodifier_influence_draw(), fmodifier_panel_header(), fn_attribute_map_range_layout(), fn_generator_panel_draw(), fn_node_boolean_math_layout(), fn_node_input_string_layout(), fn_node_input_vector_layout(), frame_range_header_draw(), frame_range_panel_draw(), generate_panel_draw(), generator_panel_draw(), geo_node_align_rotation_to_vector_layout(), geo_node_attribute_clamp_layout(), geo_node_attribute_combine_xyz_layout(), geo_node_attribute_compare_layout(), geo_node_attribute_convert_layout(), geo_node_attribute_fill_layout(), geo_node_attribute_math_layout(), geo_node_attribute_mix_layout(), geo_node_attribute_proximity_layout(), geo_node_attribute_random_layout(), geo_node_attribute_separate_xyz_layout(), geo_node_attribute_vector_math_layout(), geo_node_boolean_layout(), geo_node_collection_info_layout(), geo_node_float_compare_layout(), geo_node_mesh_primitive_circle_layout(), geo_node_mesh_primitive_cone_layout(), geo_node_mesh_primitive_cylinder_layout(), geo_node_mesh_primitive_line_layout(), geo_node_object_info_layout(), geo_node_point_distribute_layout(), geo_node_point_instance_layout(), geo_node_point_rotate_layout(), geo_node_point_scale_layout(), geo_node_point_translate_layout(), geo_node_points_to_volume_layout(), geo_node_triangulate_layout(), geo_node_volume_to_mesh_layout(), geometry_panel_draw(), gpencil_interpolate_seq_ui(), gpencil_modifier_curve_header_draw(), gpencil_modifier_masking_panel_draw(), gpencil_modifier_panel_header(), 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(), limits_panel_draw(), 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(), node_buts_frame_ex(), node_buts_image_user(), node_buts_image_views(), node_buts_math(), node_buts_mix_rgb(), node_buts_normal(), node_buts_output_linestyle(), node_buts_output_shader(), node_buts_rgb(), node_buts_texture(), node_buts_time(), node_buts_value(), node_composit_buts_alphaover(), node_composit_buts_antialiasing(), node_composit_buts_bilateralblur(), node_composit_buts_blur(), node_composit_buts_bokehblur(), node_composit_buts_bokehimage(), node_composit_buts_boxmask(), node_composit_buts_brightcontrast(), node_composit_buts_channel_matte(), node_composit_buts_chroma_matte(), node_composit_buts_color_matte(), node_composit_buts_color_spill(), node_composit_buts_colorbalance(), node_composit_buts_colorbalance_ex(), node_composit_buts_colorcorrection(), node_composit_buts_colorcorrection_ex(), node_composit_buts_composite(), node_composit_buts_crop(), node_composit_buts_cryptomatte(), node_composit_buts_cryptomatte_legacy(), node_composit_buts_dblur(), node_composit_buts_defocus(), node_composit_buts_denoise(), node_composit_buts_despeckle(), node_composit_buts_diff_matte(), node_composit_buts_dilateerode(), node_composit_buts_distance_matte(), node_composit_buts_double_edge_mask(), node_composit_buts_ellipsemask(), node_composit_buts_file_output(), node_composit_buts_file_output_ex(), node_composit_buts_filter(), node_composit_buts_flip(), node_composit_buts_glare(), node_composit_buts_id_mask(), node_composit_buts_inpaint(), node_composit_buts_invert(), node_composit_buts_keying(), node_composit_buts_lensdist(), node_composit_buts_luma_matte(), node_composit_buts_map_range(), node_composit_buts_map_uv(), node_composit_buts_map_value(), node_composit_buts_mask(), node_composit_buts_moviedistortion(), node_composit_buts_planetrackdeform(), node_composit_buts_premulkey(), node_composit_buts_rotate(), node_composit_buts_scale(), node_composit_buts_set_alpha(), node_composit_buts_splitviewer(), node_composit_buts_stabilize2d(), node_composit_buts_sunbeams(), node_composit_buts_switch(), node_composit_buts_tonemap(), node_composit_buts_trackpos(), node_composit_buts_transform(), node_composit_buts_translate(), node_composit_buts_vecblur(), node_composit_buts_view_levels(), node_composit_buts_viewer(), node_composit_buts_viewer_ex(), node_composit_buts_viewlayers(), node_composit_buts_ycc(), node_composit_buts_zcombine(), node_geometry_add_attribute_search_button(), node_shader_buts_ambient_occlusion(), node_shader_buts_anisotropic(), node_shader_buts_attribute(), node_shader_buts_bevel(), node_shader_buts_bump(), node_shader_buts_clamp(), node_shader_buts_displacement(), node_shader_buts_glossy(), node_shader_buts_hair(), node_shader_buts_ies(), node_shader_buts_map_range(), node_shader_buts_mapping(), node_shader_buts_normal_map(), node_shader_buts_output_aov(), node_shader_buts_principled(), node_shader_buts_principled_hair(), node_shader_buts_script(), node_shader_buts_script_ex(), node_shader_buts_subsurface(), node_shader_buts_tangent(), node_shader_buts_tex_brick(), node_shader_buts_tex_coord(), node_shader_buts_tex_environment(), node_shader_buts_tex_environment_ex(), node_shader_buts_tex_gradient(), node_shader_buts_tex_image(), node_shader_buts_tex_magic(), node_shader_buts_tex_musgrave(), node_shader_buts_tex_noise(), node_shader_buts_tex_pointdensity(), node_shader_buts_tex_sky(), node_shader_buts_tex_voronoi(), node_shader_buts_tex_wave(), node_shader_buts_toon(), node_shader_buts_uvalongstroke(), node_shader_buts_uvmap(), node_shader_buts_vect_math(), node_shader_buts_vect_transform(), node_shader_buts_vector_rotate(), node_shader_buts_white_noise(), node_shader_buts_wireframe(), node_texture_buts_bricks(), node_texture_buts_output(), 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(), 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(), sequencer_split_ui(), shaderfx_panel_header(), shading_panel_draw(), solver_options_panel_draw(), std_node_socket_draw(), std_node_socket_interface_draw(), stepped_panel_draw(), style_panel_draw(), symmetry_panel_draw(), symmetry_panel_header_draw(), texture_panel_draw(), tile_add_draw(), time_panel_draw(), time_remapping_panel_draw(), transform_panel_draw(), transparency_panel_draw(), transparency_panel_draw_header(), ui_gpencil_import_svg_settings(), ui_node_draw_input(), ui_popup_context_menu_for_panel(), uilist_draw_filter_default(), uiTemplateCacheFile(), uiTemplateColormanagedViewSettings(), uiTemplateColorspaceSettings(), uiTemplateImage(), uiTemplateImageFormatViews(), uiTemplateImageSettings(), uiTemplateImageStereo3d(), uiTemplateMovieClip(), uiTemplatePaintModeSelection(), uiTemplatePathBuilder(), uiTemplatePreview(), uiTemplateViewsFormat(), uv_panel_draw(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_transform_butsR(), 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)

Definition at line 3312 of file interface_layout.c.

References uiItemS_ex().

Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), draw_constraint_header(), draw_socket_list(), 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(), 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(), modifier_ops_extra_draw(), modifier_panel_header(), move_to_collection_menu_create(), nla_panel_animdata(), nla_panel_properties(), node_composit_buts_dblur(), node_composit_buts_file_output_ex(), node_shader_buts_script_ex(), outliner_operator_menu(), panel_draw(), pose_groups_menu_invoke(), 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(), 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(), uiTemplatePreview(), workspace_add_invoke(), and workspace_add_menu().

◆ uiItemS_ex()

void uiItemS_ex ( uiLayout layout,
float  factor 
)

◆ uiItemsAlertBox()

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

Helper to add a big icon and create a split layout for alert popups. Returns the layout to place further items into the alert box.

Definition at line 5929 of file interface_layout.c.

References uiStyle::columnspace, float(), MAX2, uiFontStyle::points, size(), UI_block_layout(), UI_LAYOUT_ALIGN_LEFT, UI_LAYOUT_PANEL, UI_LAYOUT_VERTICAL, UI_style_get_dpi(), uiDefButAlert(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetAlignment(), uiLayoutSplit(), uiStyle::widget, and uiStyle::widgetlabel.

Referenced by block_create__close_file_dialog(), and block_create_autorun_warning().

◆ 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,
int  context,
int  flag 
)

◆ uiItemsFullEnumO_items()

void uiItemsFullEnumO_items ( uiLayout layout,
struct wmOperatorType ot,
struct PointerRNA  ptr,
struct PropertyRNA prop,
struct IDProperty properties,
int  context,
int  flag,
const struct EnumPropertyItem item_array,
int  totitem 
)

◆ 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 4672 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(), baking_panel_draw(), block_create__close_file_dialog(), block_create_autorun_warning(), blur_panel_draw(), caps_panel_draw(), clamp_panel_draw(), component_menu(), constant_offset_draw(), curvemap_buttons_layout(), custom_range_panel_draw(), cycles_panel_draw(), data_panel_draw(), draw_fill_tile(), draw_socket_list(), ED_screens_header_tools_menu_create(), edbm_bevel_ui(), edbm_decimate_ui(), edge_data_panel_draw(), envelope_panel_draw(), fade_panel_draw(), fmodifier_frame_range_draw(), fn_generator_panel_draw(), fn_node_input_vector_layout(), frame_range_panel_draw(), generate_panel_draw(), generator_panel_draw(), geo_node_align_rotation_to_vector_layout(), geo_node_attribute_combine_xyz_layout(), geo_node_attribute_mix_layout(), geo_node_point_rotate_layout(), 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(), layers_panel_draw(), limits_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(), node_buts_image_user(), node_buts_image_views(), node_buts_mix_rgb(), node_buts_output_linestyle(), node_buts_rgb(), node_composit_buts_alphaover(), node_composit_buts_antialiasing(), node_composit_buts_bilateralblur(), node_composit_buts_blur(), node_composit_buts_channel_matte(), node_composit_buts_chroma_matte(), node_composit_buts_color_matte(), node_composit_buts_color_spill(), node_composit_buts_colorbalance(), node_composit_buts_crop(), node_composit_buts_cryptomatte(), node_composit_buts_cryptomatte_legacy(), node_composit_buts_dblur(), node_composit_buts_defocus(), node_composit_buts_despeckle(), node_composit_buts_diff_matte(), node_composit_buts_distance_matte(), node_composit_buts_double_edge_mask(), node_composit_buts_file_output_ex(), node_composit_buts_invert(), node_composit_buts_keyingscreen(), node_composit_buts_lensdist(), node_composit_buts_luma_matte(), node_composit_buts_map_range(), node_composit_buts_map_value(), node_composit_buts_planetrackdeform(), node_composit_buts_splitviewer(), node_composit_buts_tonemap(), node_composit_buts_trackpos(), node_composit_buts_vecblur(), node_composit_buts_viewer_ex(), node_composit_buts_viewlayers(), node_composit_buts_zcombine(), node_shader_buts_tex_brick(), node_shader_buts_tex_sky(), node_texture_buts_bricks(), node_texture_buts_proc(), noise_panel_draw(), normals_panel_draw(), object_offset_draw(), occlusion_panel_draw(), panel_draw(), path_panel_draw(), position_panel_draw(), profile_panel_draw(), relative_offset_draw(), solver_options_panel_draw(), std_node_socket_draw(), std_node_socket_interface_draw(), stepped_panel_draw(), symmetry_panel_draw(), template_add_button_search_menu(), template_operator_property_buts_draw_single(), texture_panel_draw(), tile_add_draw(), time_panel_draw(), transparency_panel_draw(), ui_def_but_rna__menu(), ui_gpencil_import_svg_settings(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_local_sublayout(), ui_node_draw_input(), ui_node_menu_column(), ui_paneltype_draw_impl(), ui_popup_context_menu_for_button(), ui_template_node_link_menu(), uiDefAutoButsRNA(), uiItemDecoratorR_prop(), uiItemFullR(), uiItemPropertySplitWrapperCreate(), uiItemsAlertBox(), uiItemsEnumR(), uiItemsFullEnumO_items(), uiLayoutColumnWithHeading(), uiTemplateColormanagedViewSettings(), uiTemplateColorPicker(), uiTemplateHistogram(), uiTemplateImage(), uiTemplateImageInfo(), uiTemplateImageSettings(), uiTemplateImageStereo3d(), uiTemplateInputStatus(), uiTemplateLayers(), uiTemplateList(), uiTemplateMarker(), uiTemplateMovieClip(), uiTemplateMovieclipInformation(), uiTemplatePalette(), uiTemplatePreview(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateViewsFormat(), uiTemplateWaveform(), undo_history_invoke(), 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 4691 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 4954 of file interface_layout.c.

References uiLayout::activate_init.

◆ uiLayoutGetActive()

bool uiLayoutGetActive ( uiLayout layout)

Definition at line 4944 of file interface_layout.c.

References uiLayout::active.

◆ uiLayoutGetActiveDefault()

bool uiLayoutGetActiveDefault ( uiLayout layout)

Definition at line 4949 of file interface_layout.c.

References uiLayout::active_default.

◆ uiLayoutGetAlignment()

int uiLayoutGetAlignment ( uiLayout layout)

Definition at line 4974 of file interface_layout.c.

References uiLayout::alignment.

Referenced by uiItemL_().

◆ uiLayoutGetBlock()

uiBlock* uiLayoutGetBlock ( uiLayout layout)

Definition at line 5478 of file interface_layout.c.

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

Referenced by curvemap_buttons_layout(), CurveProfile_buttons_layout(), draw_constraint_header(), envelope_panel_draw(), file_panel_execution_buttons_draw(), file_panel_operator(), fmodifier_panel_header(), gpencil_modifier_panel_get_property_pointers(), graph_draw_driver_settings_panel(), graph_panel_key_properties(), graph_panel_modifiers(), 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(), node_file_output_socket_draw(), node_geometry_add_attribute_search_button(), panel_draw(), shaderfx_panel_header(), 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(), ui_node_draw_input(), ui_node_menu_column(), ui_popup_context_menu_for_button(), ui_popup_context_menu_for_panel(), ui_template_node_link_menu(), uiblock_layer_pass_buttons(), uiItemL_respect_property_split(), uiItemPointerR_prop(), uiLayoutAbsoluteBlock(), uiTemplateColorPicker(), uiTemplateComponentMenu(), uiTemplateConstraintHeader(), uiTemplateCryptoPicker(), uiTemplateCurveMapping(), uiTemplateCurveProfile(), uiTemplateEditModeSelection(), uiTemplateFileSelectPath(), uiTemplateHistogram(), uiTemplateImage(), uiTemplateKeymapItemProperties(), uiTemplateLayers(), uiTemplateList(), uiTemplateMarker(), uiTemplateMenuSearch(), uiTemplateMovieClip(), uiTemplateNodeLink(), uiTemplateNodeSocket(), uiTemplateOperatorRedoProperties(), uiTemplateOperatorSearch(), uiTemplatePalette(), uiTemplatePreview(), uiTemplateReportsBanner(), uiTemplateRunningJobs(), uiTemplateTextureShow(), uiTemplateTextureUser(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateWaveform(), view3d_panel_transform(), and wm_block_dialog_create().

◆ uiLayoutGetContextStore()

struct bContextStore* uiLayoutGetContextStore ( uiLayout layout)

Definition at line 5627 of file interface_layout.c.

References uiLayout::context.

Referenced by ui_popup_context_menu_for_button(), and uiTemplateList().

◆ uiLayoutGetEmboss()

eUIEmbossType uiLayoutGetEmboss ( uiLayout layout)

◆ uiLayoutGetEnabled()

bool uiLayoutGetEnabled ( uiLayout layout)

Definition at line 4959 of file interface_layout.c.

References uiLayout::enabled.

◆ uiLayoutGetFixedSize()

bool uiLayoutGetFixedSize ( uiLayout layout)

Definition at line 5561 of file interface_layout.c.

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

◆ uiLayoutGetKeepAspect()

bool uiLayoutGetKeepAspect ( uiLayout layout)

Definition at line 4969 of file interface_layout.c.

References uiLayout::keepaspect.

◆ uiLayoutGetLocalDir()

int uiLayoutGetLocalDir ( const uiLayout layout)

◆ uiLayoutGetOperatorContext()

int uiLayoutGetOperatorContext ( uiLayout layout)

Definition at line 5483 of file interface_layout.c.

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

◆ uiLayoutGetPropDecorate()

bool uiLayoutGetPropDecorate ( uiLayout layout)

Definition at line 4934 of file interface_layout.c.

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

◆ uiLayoutGetPropSep()

bool uiLayoutGetPropSep ( uiLayout layout)

Definition at line 4924 of file interface_layout.c.

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

◆ uiLayoutGetRedAlert()

bool uiLayoutGetRedAlert ( uiLayout layout)

Definition at line 4964 of file interface_layout.c.

References uiLayout::redalert.

◆ uiLayoutGetScaleX()

float uiLayoutGetScaleX ( uiLayout layout)

Definition at line 4984 of file interface_layout.c.

References uiLayout::scale.

◆ uiLayoutGetScaleY()

float uiLayoutGetScaleY ( uiLayout layout)

Definition at line 4989 of file interface_layout.c.

References uiLayout::scale.

◆ uiLayoutGetUnitsX()

float uiLayoutGetUnitsX ( uiLayout layout)

Definition at line 4994 of file interface_layout.c.

References uiLayout::units.

Referenced by ui_block_func_POPUP().

◆ uiLayoutGetUnitsY()

float uiLayoutGetUnitsY ( uiLayout layout)

Definition at line 4999 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 4649 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 advanced_panel_draw(), buttons_panel_context_draw(), clamp_panel_draw(), colorband_buttons_layout(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), data_panel_draw(), draw_constraint_header(), draw_socket_list(), ED_collection_hide_menu_draw(), ed_panel_draw(), edbm_bevel_ui(), edbm_decimate_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), envelope_panel_draw(), falloff_panel_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(), graph_draw_driven_property_panel(), graph_draw_driver_settings_panel(), graph_panel_driverVar__singleProp(), graph_panel_modifiers(), 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(), node_buts_mix_rgb(), node_buts_output_linestyle(), node_buts_time(), node_composit_buts_blur(), node_composit_buts_boxmask(), node_composit_buts_channel_matte(), node_composit_buts_color_spill(), node_composit_buts_colorbalance(), node_composit_buts_colorcorrection(), node_composit_buts_colorcorrection_ex(), node_composit_buts_cryptomatte(), node_composit_buts_cryptomatte_legacy(), node_composit_buts_distance_matte(), node_composit_buts_ellipsemask(), node_composit_buts_file_output_ex(), node_composit_buts_scale(), node_composit_buts_splitviewer(), node_composit_buts_viewlayers(), node_file_output_socket_draw(), node_shader_buts_ies(), node_shader_buts_script(), node_shader_buts_tangent(), node_texture_buts_proc(), node_update_basis(), object_add_ui(), panel_draw(), profile_panel_draw(), sequencer_split_ui(), shaderfx_panel_end(), shaderfx_panel_header(), shape_panel_draw(), subdivisions_panel_draw(), template_add_button_search_menu(), template_keymap_item_properties(), template_operator_property_buts_draw_single(), template_search_buttons(), transparency_panel_draw(), ui_item_local_sublayout(), ui_item_prop_split_layout_hack(), ui_item_with_label(), ui_node_draw_input(), ui_paneltype_draw_impl(), ui_template_id(), ui_template_palette_menu(), uiblock_layer_pass_buttons(), uiItemFullR(), uiItemPopoverPanel_ptr(), uiItemPropertySplitWrapperCreate(), uiItemsAlertBox(), uiLayoutRowWithHeading(), uilist_draw_filter_default(), uiTemplateAnyID(), uiTemplateCacheFile(), uiTemplateColormanagedViewSettings(), uiTemplateColorPicker(), uiTemplateEditModeSelection(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateInputStatus(), uiTemplateLayers(), uiTemplateList(), uiTemplateMovieClip(), uiTemplatePaintModeSelection(), uiTemplatePalette(), uiTemplatePathBuilder(), uiTemplatePreview(), uiTemplateRunningJobs(), 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 4874 of file interface_layout.c.

References uiLayout::activate_init.

Referenced by uiDefAutoButsRNA().

◆ uiLayoutSetActive()

void uiLayoutSetActive ( uiLayout layout,
bool  active 
)

Definition at line 4864 of file interface_layout.c.

References blender::compositor::active, and uiLayout::active.

Referenced by advanced_panel_draw(), clamp_panel_draw(), constant_offset_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(), face_corner_panel_draw(), face_corner_uv_panel_draw(), face_corner_vcol_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(), limits_panel_draw(), materials_panel_draw(), modifier_panel_header(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_properties(), node_composit_buts_defocus(), node_composit_buts_file_output_ex(), node_composit_buts_lensdist(), node_composit_buts_map_value(), node_texture_buts_proc(), node_update_basis(), object_add_ui(), object_offset_draw(), offset_panel_draw(), panel_draw(), path_panel_draw(), profile_panel_draw(), random_panel_draw(), relative_offset_draw(), shaderfx_panel_header(), shading_panel_draw(), stepped_panel_draw(), symmetry_panel_draw(), template_keymap_item_properties(), transparency_panel_draw(), uiTemplateCacheFile(), uiTemplateImage(), uiTemplateMarker(), uiTemplateRunningJobs(), v3d_transform_butsR(), 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 4869 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 5571 of file interface_layout.c.

References uiLayoutRoot::argv, uiLayoutRoot::handlefunc, and uiLayout::root.

◆ uiLayoutSetKeepAspect()

void uiLayoutSetKeepAspect ( uiLayout layout,
bool  keepaspect 
)

Definition at line 4889 of file interface_layout.c.

References uiLayout::keepaspect.

Referenced by uiTemplatePreview().

◆ uiLayoutSetOperatorContext()

void uiLayoutSetOperatorContext ( uiLayout layout,
int  opcontext 
)

◆ uiLayoutSetPropDecorate()

void uiLayoutSetPropDecorate ( uiLayout layout,
bool  is_sep 
)

Definition at line 4939 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_socket_list(), 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(), generator_panel_draw(), geo_node_align_rotation_to_vector_layout(), geo_node_attribute_combine_xyz_layout(), geo_node_attribute_compare_layout(), geo_node_attribute_fill_layout(), geo_node_attribute_math_layout(), geo_node_attribute_mix_layout(), geo_node_attribute_separate_xyz_layout(), geo_node_attribute_vector_math_layout(), geo_node_mesh_primitive_circle_layout(), geo_node_mesh_primitive_cone_layout(), geo_node_mesh_primitive_cylinder_layout(), geo_node_mesh_primitive_line_layout(), geo_node_point_rotate_layout(), geo_node_point_scale_layout(), geo_node_point_translate_layout(), geo_node_points_to_volume_layout(), geo_node_volume_to_mesh_layout(), gpencil_interpolate_seq_ui(), gpencil_modifier_masking_panel_draw(), graph_panel_cursor(), graph_panel_key_properties(), graph_panel_properties(), image_new_draw(), limits_panel_draw(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_animdata(), nla_panel_properties(), noise_panel_draw(), panel_draw(), profile_panel_draw(), screenshot_draw(), sequencer_split_ui(), stepped_panel_draw(), template_operator_property_buts_draw_single(), tile_add_draw(), transparency_panel_draw(), ui_gpencil_import_svg_settings(), ui_node_draw_input(), uiTemplateCacheFile(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateViewsFormat(), and wm_stereo3d_set_draw().

◆ uiLayoutSetPropSep()

void uiLayoutSetPropSep ( uiLayout layout,
bool  is_sep 
)

Definition at line 4929 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(), baking_panel_draw(), blur_panel_draw(), caps_panel_draw(), chaining_panel_draw(), clamp_panel_draw(), constant_offset_draw(), CurveProfile_buttons_layout(), custom_range_panel_draw(), cycles_panel_draw(), data_panel_draw(), draw_fill_tile(), draw_socket_list(), 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(), envelope_panel_draw(), face_corner_panel_draw(), face_corner_uv_panel_draw(), face_corner_vcol_panel_draw(), face_panel_draw(), fade_panel_draw(), falloff_panel_draw(), fmodifier_frame_range_draw(), fn_generator_panel_draw(), frame_range_panel_draw(), generate_panel_draw(), generator_panel_draw(), geo_node_align_rotation_to_vector_layout(), geo_node_attribute_combine_xyz_layout(), geo_node_attribute_compare_layout(), geo_node_attribute_fill_layout(), geo_node_attribute_math_layout(), geo_node_attribute_mix_layout(), geo_node_attribute_separate_xyz_layout(), geo_node_attribute_vector_math_layout(), geo_node_mesh_primitive_circle_layout(), geo_node_mesh_primitive_cone_layout(), geo_node_mesh_primitive_cylinder_layout(), geo_node_mesh_primitive_line_layout(), geo_node_point_rotate_layout(), geo_node_point_scale_layout(), geo_node_point_translate_layout(), geo_node_points_to_volume_layout(), geo_node_volume_to_mesh_layout(), geometry_panel_draw(), gpencil_interpolate_seq_ui(), gpencil_modifier_masking_panel_draw(), graph_panel_cursor(), graph_panel_key_properties(), graph_panel_properties(), image_new_draw(), layers_panel_draw(), limits_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(), noise_panel_draw(), normals_panel_draw(), object_add_ui(), object_convert_ui(), object_offset_draw(), occlusion_panel_draw(), offset_panel_draw(), panel_draw(), path_panel_draw(), position_panel_draw(), profile_panel_draw(), random_panel_draw(), relative_offset_draw(), restrictions_panel_draw(), screenshot_draw(), sequencer_split_ui(), shading_panel_draw(), solver_options_panel_draw(), stepped_panel_draw(), style_panel_draw(), symmetry_panel_draw(), template_operator_property_buts_draw_single(), texture_panel_draw(), tile_add_draw(), time_panel_draw(), time_remapping_panel_draw(), transform_panel_draw(), transparency_panel_draw(), ui_gpencil_import_svg_settings(), ui_item_prop_split_layout_hack(), ui_node_draw_node(), uiDefAutoButsRNA(), uiTemplateCacheFile(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateViewsFormat(), uv_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 
)

◆ uiLayoutSetUnitsX()

void uiLayoutSetUnitsX ( uiLayout layout,
float  unit 
)

◆ uiLayoutSetUnitsY()

void uiLayoutSetUnitsY ( uiLayout layout,
float  unit 
)

Definition at line 4914 of file interface_layout.c.

References uiLayout::units.

◆ uiLayoutSplit()

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

◆ uiTemplateAnyID()

void uiTemplateAnyID ( uiLayout layout,
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 1584 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().

◆ uiTemplateCacheFile()

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

Referenced by 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 
)

◆ 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,
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 116 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 3462 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,
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,
const 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 
)

Definition at line 1452 of file interface_templates.c.

References C, filter(), NULL, ptr, UI_ID_BROWSE, UI_ID_RENAME, and ui_template_id().

Referenced by node_draw_buttons_group().

◆ 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,
const bool  hide_buttons 
)

◆ uiTemplateIDTabs()

void uiTemplateIDTabs ( uiLayout layout,
bContext C,
PointerRNA ptr,
const char *  propname,
const char *  newop,
const char *  menu,
int  filter 
)

Version of uiTemplateID using tabs.

Definition at line 1543 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 758 of file image_buttons.c.

References BKE_image_acquire_ibuf(), BKE_image_acquire_renderresult(), 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, image_has_alpha(), IMB_colormanagement_space_name_is_data(), RNAUpdateCb::iuser, SpaceImage::iuser, 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, uiblock_layer_pass_buttons(), uiItemO(), uiItemR(), uiItemS(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetActive(), uiLayoutSetContextPointer(), uiLayoutSetEnabled(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), uiTemplateColorspaceSettings(), uiTemplateID(), uiTemplateImageInfo(), and uiTemplateImageViews().

Referenced by node_composit_buts_image_ex(), node_shader_buts_tex_environment_ex(), node_shader_buts_tex_image_ex(), and 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,
PointerRNA ptr,
const char *  propname,
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,
bool  sort_reverse,
bool  sort_lock 
)

Definition at line 5954 of file interface_templates.c.

References BLI_addtail(), BLI_findstring(), BLI_snprintf(), BLI_strncpy(), C, col, uiBut::context, CTX_wm_menu(), CTX_wm_region(), PointerRNA::data, uiListType::draw_filter, uiListType::draw_item, uiList::dyn_data, uiListLayoutdata::end_idx, uiList::filter_flag, uiListType::filter_items, uiList::filter_sort_flag, uiList::flag, _uilist_item::flt_flag, uiListDyn::height, uiListType::idname, _uilist_item::item, uiListDyn::items_filter_flags, uiListDyn::items_filter_neworder, uiListDyn::items_len, uiListDyn::items_shown, uiList::layout_type, len, uiList::list_grip, uiList::list_id, uiList::list_last_activei, uiList::list_scroll, MEM_callocN, MEM_freeN, MEM_mallocN, MEM_SAFE_FREE, NULL, _uilist_item::org_idx, PROP_COLLECTION, PROP_INT, uiListDyn::resize, uiListDyn::resize_prev, RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_collection_length(), RNA_property_int_get(), RNA_property_int_set(), RNA_property_pointer_type(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_struct_ui_icon(), RNA_warning, uiListLayoutdata::start_idx, STREQ, TIP_, type, uiList::type, PointerRNA::type, UI_block_emboss_set(), UI_block_flag_disable(), UI_block_flag_enable(), UI_BLOCK_LIST_ITEM, UI_BTYPE_GRIP, UI_BTYPE_LISTROW, UI_BTYPE_NUM, UI_BTYPE_SCROLL, UI_BTYPE_SEPR, UI_BTYPE_TOGGLE, UI_BUT_DISABLED, UI_but_drawflag_enable(), UI_but_flag_disable(), UI_but_flag_enable(), UI_but_func_set(), UI_but_func_tooltip_set(), UI_BUT_NO_TOOLTIP, UI_BUT_UNDO, UI_EMBOSS, UI_EMBOSS_NONE, UI_icon_from_rnaptr(), ui_layout_list_set_labels_active(), UI_LIST_AUTO_SIZE_THRESHOLD, ARegion::ui_lists, UI_MAX_NAME_STR, UI_UL_DEFAULT_CLASS_NAME, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButI(), uiDefButR_prop(), uiDefIconButBitI(), uiDefIconButI(), uiDefIconTextButR_prop(), uiItemL(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutGetContextStore(), uiLayoutListBox(), uiLayoutOverlap(), uiLayoutRow(), uilist_draw_filter_default(), uilist_draw_item_default(), uilist_filter_items_default(), uilist_item_tooltip_func(), uilist_item_use_dynamic_tooltip(), uilist_prepare(), uilist_resize_update_cb(), UILST_FLT_EXCLUDE, UILST_FLT_ITEM, UILST_FLT_SHOW, UILST_FLT_SORT_LOCK, UILST_FLT_SORT_REVERSE, UILST_LAYOUT_COMPACT, UILST_LAYOUT_DEFAULT, UILST_LAYOUT_GRID, UILST_SCROLL_TO_ACTIVE_ITEM, V2D_SCROLL_WIDTH, uiListDyn::visual_height, uiListLayoutdata::visual_items, and WM_uilisttype_find().

Referenced by draw_socket_list(), and node_composit_buts_file_output_ex().

◆ uiTemplateMarker()

void uiTemplateMarker ( struct uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
struct PointerRNA userptr,
struct PointerRNA trackptr,
bool  compact 
)

Definition at line 393 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 
)

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

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

◆ 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,
bContext C,
PointerRNA ptr,
const char *  propname,
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 1843 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,
const int  rows,
const int  cols 
)

◆ uiTemplateShaderFx()

void uiTemplateShaderFx ( uiLayout layout,
struct bContext C 
)

◆ uiTemplateTextureShow()

void uiTemplateTextureShow ( uiLayout layout,
const struct bContext C,
struct PointerRNA ptr,
struct PropertyRNA prop 
)

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 
)