Blender
V3.3
|
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_armature_types.h"
#include "DNA_screen_types.h"
#include "DNA_userdef_types.h"
#include "BLI_alloca.h"
#include "BLI_dynstr.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_memory_utils.h"
#include "BLI_rect.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "BKE_anim_data.h"
#include "BKE_armature.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_idprop.h"
#include "BKE_screen.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "UI_interface.h"
#include "WM_api.h"
#include "WM_types.h"
#include "interface_intern.h"
Go to the source code of this file.
Classes | |
struct | uiLayoutRoot |
struct | uiItem |
struct | uiButtonItem |
struct | uiLayout |
struct | uiLayoutItemFlow |
struct | uiLayoutItemGridFlow |
struct | uiLayoutItemBx |
struct | uiLayoutItemSplit |
struct | uiLayoutItemRoot |
struct | uiTextIconPadFactor |
struct | MenuItemLevel |
struct | UILayoutGridFlowInput |
struct | UILayoutGridFlowOutput |
Macros | |
#define | UI_PROP_DECORATE |
#define | UI_PROP_SEP_ICON_WIDTH_EXCEPTION |
#define | CASE_ITEM(id) |
Functions | |
Special RNA Items | |
int | uiLayoutGetLocalDir (const uiLayout *layout) |
static uiLayout * | ui_item_local_sublayout (uiLayout *test, uiLayout *layout, bool align) |
static void | ui_layer_but_cb (bContext *C, void *arg_but, void *arg_index) |
static void | ui_item_array (uiLayout *layout, uiBlock *block, const char *name, int icon, PointerRNA *ptr, PropertyRNA *prop, int len, int x, int y, int w, int UNUSED(h), bool expand, bool slider, int toggle, bool icon_only, bool compact, bool show_text) |
static void | ui_item_enum_expand_handle (bContext *C, void *arg1, void *arg2) |
static void | ui_item_enum_expand_elem_exec (uiLayout *layout, uiBlock *block, PointerRNA *ptr, PropertyRNA *prop, const char *uiname, const int h, const eButType but_type, const bool icon_only, const EnumPropertyItem *item, const bool is_first) |
static void | ui_item_enum_expand_exec (uiLayout *layout, uiBlock *block, PointerRNA *ptr, PropertyRNA *prop, const char *uiname, const int h, const eButType but_type, const bool icon_only) |
static void | ui_item_enum_expand (uiLayout *layout, uiBlock *block, PointerRNA *ptr, PropertyRNA *prop, const char *uiname, const int h, const bool icon_only) |
static void | ui_item_enum_expand_tabs (uiLayout *layout, bContext *C, uiBlock *block, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *ptr_highlight, PropertyRNA *prop_highlight, const char *uiname, const int h, const bool icon_only) |
static void | ui_keymap_but_cb (bContext *UNUSED(C), void *but_v, void *UNUSED(key_v)) |
static uiBut * | ui_item_with_label (uiLayout *layout, uiBlock *block, const char *name, int icon, PointerRNA *ptr, PropertyRNA *prop, int index, int x, int y, int w_hint, int h, int flag) |
void | UI_context_active_but_prop_get_filebrowser (const bContext *C, PointerRNA *r_ptr, PropertyRNA **r_prop, bool *r_is_undo, bool *r_is_userdef) |
Block Layout Search Filtering | |
static bool | block_search_panel_label_matches (const uiBlock *block, const char *search_string) |
static bool | button_matches_search_filter (uiBut *but, const char *search_filter) |
static bool | button_group_has_search_match (uiButtonGroup *button_group, const char *search_filter) |
static bool | block_search_filter_tag_buttons (uiBlock *block, const char *search_filter) |
bool | UI_block_apply_search_filter (uiBlock *block, const char *search_filter) |
Layout | |
static void | ui_item_scale (uiLayout *litem, const float scale[2]) |
static void | ui_item_estimate (uiItem *item) |
static void | ui_item_align (uiLayout *litem, short nr) |
static void | ui_item_flag (uiLayout *litem, int flag) |
static void | ui_item_layout (uiItem *item) |
static void | ui_layout_end (uiBlock *block, uiLayout *layout, int *r_x, int *r_y) |
static void | ui_layout_free (uiLayout *layout) |
static void | ui_layout_add_padding_button (uiLayoutRoot *root) |
uiLayout * | UI_block_layout (uiBlock *block, int dir, int type, int x, int y, int size, int em, int padding, const uiStyle *style) |
uiBlock * | uiLayoutGetBlock (uiLayout *layout) |
int | uiLayoutGetOperatorContext (uiLayout *layout) |
void | UI_block_layout_set_current (uiBlock *block, uiLayout *layout) |
void | ui_layout_add_but (uiLayout *layout, uiBut *but) |
static uiButtonItem * | ui_layout_find_button_item (const uiLayout *layout, const uiBut *but) |
void | ui_layout_remove_but (uiLayout *layout, const uiBut *but) |
bool | ui_layout_replace_but_ptr (uiLayout *layout, const void *old_but_ptr, uiBut *new_but) |
void | uiLayoutSetFixedSize (uiLayout *layout, bool fixed_size) |
bool | uiLayoutGetFixedSize (uiLayout *layout) |
void | uiLayoutSetOperatorContext (uiLayout *layout, wmOperatorCallContext opcontext) |
void | uiLayoutSetFunc (uiLayout *layout, uiMenuHandleFunc handlefunc, void *argv) |
void | UI_block_layout_free (uiBlock *block) |
void | UI_block_layout_resolve (uiBlock *block, int *r_x, int *r_y) |
bool | UI_block_layout_needs_resolving (const uiBlock *block) |
void | uiLayoutSetContextPointer (uiLayout *layout, const char *name, PointerRNA *ptr) |
bContextStore * | uiLayoutGetContextStore (uiLayout *layout) |
void | uiLayoutContextCopy (uiLayout *layout, bContextStore *context) |
void | uiLayoutSetTooltipFunc (uiLayout *layout, uiButToolTipFunc func, void *arg, uiCopyArgFunc copy_arg, uiFreeArgFunc free_arg) |
void | uiLayoutSetContextFromBut (uiLayout *layout, uiBut *but) |
wmOperatorType * | UI_but_operatortype_get_from_enum_menu (uiBut *but, PropertyRNA **r_prop) |
MenuType * | UI_but_menutype_get (uiBut *but) |
PanelType * | UI_but_paneltype_get (uiBut *but) |
void | UI_menutype_draw (bContext *C, MenuType *mt, struct uiLayout *layout) |
static bool | ui_layout_has_panel_label (const uiLayout *layout, const PanelType *pt) |
static void | ui_paneltype_draw_impl (bContext *C, PanelType *pt, uiLayout *layout, bool show_header) |
void | UI_paneltype_draw (bContext *C, PanelType *pt, uiLayout *layout) |
Layout (Debugging/Introspection) | |
Serialize the layout as a Python compatible dictionary,
| |
static void | ui_layout_introspect_button (DynStr *ds, uiButtonItem *bitem) |
static void | ui_layout_introspect_items (DynStr *ds, ListBase *lb) |
const char * | UI_layout_introspect (uiLayout *layout) |
Alert Box with Big Icon | |
uiLayout * | uiItemsAlertBox (uiBlock *block, const int size, const eAlertIcon icon) |
Item | |
#define | UI_ITEM_VARY_X 1 |
#define | UI_ITEM_VARY_Y 2 |
static const struct uiTextIconPadFactor | ui_text_pad_default |
static const struct uiTextIconPadFactor | ui_text_pad_compact |
static const struct uiTextIconPadFactor | ui_text_pad_none |
static const char * | ui_item_name_add_colon (const char *name, char namestr[UI_MAX_NAME_STR]) |
static int | ui_item_fit (int item, int pos, int all, int available, bool is_last, int alignment, float *extra_pixel) |
static int | ui_layout_vary_direction (uiLayout *layout) |
static bool | ui_layout_variable_size (uiLayout *layout) |
static int | ui_text_icon_width_ex (uiLayout *layout, const char *name, int icon, const struct uiTextIconPadFactor *pad_factor) |
static int | ui_text_icon_width (uiLayout *layout, const char *name, int icon, bool compact) |
static void | ui_item_size (uiItem *item, int *r_w, int *r_h) |
static void | ui_item_offset (uiItem *item, int *r_x, int *r_y) |
static void | ui_item_position (uiItem *item, int x, int y, int w, int h) |
static void | ui_item_move (uiItem *item, int delta_xmin, int delta_xmax) |
Button Items | |
typedef struct MenuItemLevel | MenuItemLevel |
static void | ui_but_tip_from_enum_item (uiBut *but, const EnumPropertyItem *item) |
static void | ui_item_disabled (uiLayout *layout, const char *name) |
static uiBut * | uiItemFullO_ptr_ex (uiLayout *layout, wmOperatorType *ot, const char *name, int icon, IDProperty *properties, wmOperatorCallContext context, int flag, PointerRNA *r_opptr) |
static void | ui_item_menu_hold (struct bContext *C, ARegion *butregion, uiBut *but) |
void | uiItemFullO_ptr (uiLayout *layout, wmOperatorType *ot, const char *name, int icon, IDProperty *properties, wmOperatorCallContext context, int flag, PointerRNA *r_opptr) |
void | uiItemFullOMenuHold_ptr (uiLayout *layout, wmOperatorType *ot, const char *name, int icon, IDProperty *properties, wmOperatorCallContext context, int flag, const char *menu_id, PointerRNA *r_opptr) |
void | uiItemFullO (uiLayout *layout, const char *opname, const char *name, int icon, IDProperty *properties, wmOperatorCallContext context, int flag, PointerRNA *r_opptr) |
static const char * | ui_menu_enumpropname (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int retval) |
void | uiItemEnumO_ptr (uiLayout *layout, 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) |
BLI_INLINE bool | ui_layout_is_radial (const uiLayout *layout) |
void | uiItemsFullEnumO_items (uiLayout *layout, wmOperatorType *ot, PointerRNA ptr, PropertyRNA *prop, IDProperty *properties, wmOperatorCallContext context, int flag, const EnumPropertyItem *item_array, int totitem) |
void | uiItemsFullEnumO (uiLayout *layout, const char *opname, const char *propname, IDProperty *properties, wmOperatorCallContext context, int flag) |
void | uiItemsEnumO (uiLayout *layout, const char *opname, const char *propname) |
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_str) |
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 | uiItemO (uiLayout *layout, const char *name, int icon, const char *opname) |
static void | ui_item_rna_size (uiLayout *layout, const char *name, int icon, PointerRNA *ptr, PropertyRNA *prop, int index, bool icon_only, bool compact, int *r_w, int *r_h) |
static bool | ui_item_rna_is_expand (PropertyRNA *prop, int index, int item_flag) |
static uiLayout * | ui_layout_heading_find (uiLayout *cur_layout) |
static void | ui_layout_heading_label_add (uiLayout *layout, uiLayout *heading_layout, bool right_align, bool respect_prop_split) |
static uiLayout * | ui_item_prop_split_layout_hack (uiLayout *layout_parent, uiLayout *layout_split) |
void | uiItemFullR (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index, int value, int flag, const char *name, int icon) |
void | uiItemR (uiLayout *layout, PointerRNA *ptr, const char *propname, int flag, const char *name, int icon) |
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) |
void | uiItemFullR_with_menu (uiLayout *layout, PointerRNA *ptr, 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, 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, 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) |
static void | search_id_collection (StructRNA *ptype, PointerRNA *r_ptr, PropertyRNA **r_prop) |
static void | ui_rna_collection_search_arg_free_fn (void *ptr) |
uiBut * | ui_but_add_search (uiBut *but, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *searchptr, PropertyRNA *searchprop, const bool results_are_suggestions) |
void | uiItemPointerR_prop (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *searchptr, PropertyRNA *searchprop, const char *name, int icon, bool results_are_suggestions) |
void | uiItemPointerR (uiLayout *layout, PointerRNA *ptr, const char *propname, PointerRNA *searchptr, const char *searchpropname, const char *name, int icon) |
void | ui_item_menutype_func (bContext *C, uiLayout *layout, void *arg_mt) |
void | ui_item_paneltype_func (bContext *C, uiLayout *layout, void *arg_pt) |
static uiBut * | ui_item_menu (uiLayout *layout, const char *name, int icon, uiMenuCreateFunc func, void *arg, void *argN, const char *tip, bool force_menu) |
void | uiItemM_ptr (uiLayout *layout, 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, PointerRNA *ptr, PropertyRNA *prop, int index) |
void | uiItemDecoratorR (uiLayout *layout, PointerRNA *ptr, const char *propname, int index) |
void | uiItemPopoverPanel_ptr (uiLayout *layout, const bContext *C, PanelType *pt, const char *name, int icon) |
void | uiItemPopoverPanel (uiLayout *layout, const bContext *C, const char *panel_type, const char *name, int icon) |
void | uiItemPopoverPanelFromGroup (uiLayout *layout, bContext *C, int space_id, int region_id, const char *context, const char *category) |
static uiBut * | uiItemL_ (uiLayout *layout, const char *name, int icon) |
void | uiItemL_ex (uiLayout *layout, const char *name, int icon, const bool highlight, const bool redalert) |
void | uiItemL (uiLayout *layout, const char *name, int icon) |
uiPropertySplitWrapper | uiItemPropertySplitWrapperCreate (uiLayout *parent_layout) |
uiLayout * | uiItemL_respect_property_split (uiLayout *layout, const char *text, int icon) |
void | uiItemLDrag (uiLayout *layout, PointerRNA *ptr, const char *name, int icon) |
void | uiItemV (uiLayout *layout, const char *name, int icon, int argval) |
void | uiItemS_ex (uiLayout *layout, float factor) |
void | uiItemS (uiLayout *layout) |
void | uiItemSpacer (uiLayout *layout) |
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) |
static void | menu_item_enum_opname_menu (bContext *UNUSED(C), uiLayout *layout, void *arg) |
void | uiItemMenuEnumFullO_ptr (uiLayout *layout, bContext *C, wmOperatorType *ot, const char *propname, const char *name, int icon, PointerRNA *r_opptr) |
void | uiItemMenuEnumFullO (uiLayout *layout, bContext *C, const char *opname, const char *propname, const char *name, int icon, PointerRNA *r_opptr) |
void | uiItemMenuEnumO (uiLayout *layout, bContext *C, const char *opname, const char *propname, const char *name, int icon) |
static void | menu_item_enum_rna_menu (bContext *UNUSED(C), uiLayout *layout, void *arg) |
void | uiItemMenuEnumR_prop (uiLayout *layout, struct PointerRNA *ptr, 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, bContext *C, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *ptr_highlight, PropertyRNA *prop_highlight, bool icon_only) |
#define UI_ITEM_PROP_SEP_DIVIDE 0.4f |
Definition at line 65 of file interface_layout.c.
#define UI_ITEM_VARY_X 1 |
Definition at line 260 of file interface_layout.c.
#define UI_ITEM_VARY_Y 2 |
Definition at line 261 of file interface_layout.c.
#define UI_OPERATOR_ERROR_RET | ( | _ot, | |
_opname, | |||
return_statement | |||
) |
Definition at line 57 of file interface_layout.c.
#define UI_PROP_DECORATE |
Definition at line 48 of file interface_layout.c.
#define UI_PROP_SEP_ICON_WIDTH_EXCEPTION |
Definition at line 51 of file interface_layout.c.
typedef struct MenuItemLevel MenuItemLevel |
typedef struct uiButtonItem uiButtonItem |
typedef enum uiItemType uiItemType |
typedef struct UILayoutGridFlowInput UILayoutGridFlowInput |
typedef struct UILayoutGridFlowOutput UILayoutGridFlowOutput |
typedef struct uiLayoutItemBx uiLayoutItemBx |
typedef struct uiLayoutItemFlow uiLayoutItemFlow |
typedef struct uiLayoutItemGridFlow uiLayoutItemGridFlow |
typedef struct uiLayoutItemRoot uiLayoutItemRoot |
typedef struct uiLayoutItemSplit uiLayoutItemSplit |
typedef struct uiLayoutRoot uiLayoutRoot |
anonymous enum |
Enumerator | |
---|---|
UI_ITEM_AUTO_FIXED_SIZE | |
UI_ITEM_FIXED_SIZE | |
UI_ITEM_BOX_ITEM | |
UI_ITEM_PROP_SEP | |
UI_ITEM_INSIDE_PROP_SEP | |
UI_ITEM_PROP_DECORATE | |
UI_ITEM_PROP_DECORATE_NO_PAD |
Definition at line 119 of file interface_layout.c.
enum uiItemType |
Definition at line 88 of file interface_layout.c.
Apply the search filter, tagging all buttons with whether they match or not. Tag every button in the group as a result if any button in the group matches.
Definition at line 5187 of file interface_layout.c.
References button_group_has_search_match(), uiBlock::button_groups, uiBut::flag, LISTBASE_FOREACH, and UI_SEARCH_FILTER_NO_MATCH.
Referenced by UI_block_apply_search_filter().
|
static |
Definition at line 5090 of file interface_layout.c.
References BLI_strcasestr(), PanelType::label, NULL, uiBlock::panel, and Panel::type.
Referenced by UI_block_apply_search_filter().
|
static |
Test for a search result within a specific button group.
Definition at line 5166 of file interface_layout.c.
References button_matches_search_filter(), uiButtonGroup::buttons, and LISTBASE_FOREACH.
Referenced by block_search_filter_tag_buttons().
Returns true if a button or the data / operator it represents matches the search filter.
Definition at line 5103 of file interface_layout.c.
References BLI_strcasestr(), free(), MEM_freeN, wmOperatorType::name, NULL, uiBut::optype, ptr, RNA_property_description(), RNA_property_enum_items_gettexted(), RNA_property_ui_name(), uiBut::rnapoin, uiBut::rnaprop, uiBut::str, uiBut::type, and UI_BTYPE_MENU.
Referenced by button_group_has_search_match().
Definition at line 3443 of file interface_layout.c.
References uiLayoutRoot::block, PointerRNA::data, uiBlock::flag, uiBut::func_argN, NULL, MenuItemLevel::opcontext, MenuItemLevel::opname, uiBut::opptr, MenuItemLevel::propname, uiLayout::root, UI_block_direction_set(), UI_BLOCK_IS_FLIP, UI_DIR_DOWN, uiItemsFullEnumO(), and uiLayoutSetOperatorContext().
Referenced by UI_but_operatortype_get_from_enum_menu(), and uiItemMenuEnumFullO_ptr().
Definition at line 3535 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::flag, MenuItemLevel::opcontext, MenuItemLevel::propname, MenuItemLevel::rnapoin, uiLayout::root, UI_BLOCK_IS_FLIP, uiItemsEnumR(), and uiLayoutSetOperatorContext().
Referenced by uiItemMenuEnumR_prop().
|
static |
Definition at line 2688 of file interface_layout.c.
References G_MAIN, NULL, PROP_COLLECTION, RNA_main_pointer_create(), RNA_property_pointer_type(), RNA_property_type(), RNA_STRUCT_BEGIN, and RNA_STRUCT_END.
Referenced by ui_but_add_search().
Apply property search behavior, setting panel flags and deactivating buttons that don't match.
Definition at line 5204 of file interface_layout.c.
References BLI_assert, block_search_filter_tag_buttons(), block_search_panel_label_matches(), PanelType::flag, NULL, uiBlock::panel, PANEL_TYPE_NO_SEARCH, Panel::type, and ui_panel_tag_search_filter_match().
Referenced by ed_panel_draw(), and panel_property_search().
uiLayout* UI_block_layout | ( | uiBlock * | block, |
int | dir, | ||
int | type, | ||
int | x, | ||
int | y, | ||
int | size, | ||
int | em, | ||
int | padding, | ||
const uiStyle * | style | ||
) |
Definition at line 5491 of file interface_layout.c.
References uiLayout::active, BLI_addtail(), uiLayoutRoot::block, uiLayout::context, uiBlock::curlayout, ELEM, uiLayout::emboss, uiLayoutRoot::emh, uiLayoutRoot::emw, uiLayout::enabled, uiItem::flag, uiLayout::h, uiLayout::item, ITEM_LAYOUT_COLUMN, ITEM_LAYOUT_ROOT, uiLayoutRoot::layout, uiBlock::layouts, MEM_callocN, NULL, uiLayoutRoot::opcontext, uiLayoutRoot::padding, padding(), uiLayout::root, size(), uiLayout::space, uiLayoutRoot::style, uiStyle::templatespace, uiLayoutRoot::type, uiItem::type, type, UI_EMBOSS_UNDEFINED, UI_ITEM_PROP_DECORATE, ui_layout_add_padding_button(), UI_LAYOUT_HORIZONTAL, UI_LAYOUT_MENU, UI_LAYOUT_PIEMENU, UI_LAYOUT_VERT_BAR, UI_UNIT_X, UI_UNIT_Y, uiLayout::w, WM_OP_INVOKE_REGION_WIN, x, uiLayout::x, uiLayout::y, and y.
Referenced by uiItemsAlertBox().
Used for property search when the layout process needs to be cancelled in order to avoid computing the locations for buttons, but the layout items created while adding the buttons must still be freed.
Definition at line 5665 of file interface_layout.c.
References uiBlock::layouts, LISTBASE_FOREACH_MUTABLE, MEM_freeN, and ui_layout_free().
Referenced by panel_property_search().
Definition at line 5704 of file interface_layout.c.
References BLI_listbase_is_empty(), and uiBlock::layouts.
Referenced by ui_textedit_begin().
Definition at line 5673 of file interface_layout.c.
References uiBlock::active, BLI_assert, BLI_listbase_clear(), uiBlock::curlayout, uiBlock::layouts, LISTBASE_FOREACH_MUTABLE, MEM_freeN, NULL, ui_layout_add_padding_button(), ui_layout_end(), ui_layout_free(), and UI_template_fix_linking().
Referenced by blender::ed::space_node::draw_tree_path(), ed_panel_draw(), ED_region_header_layout(), ED_time_scrub_channel_search_draw(), blender::ed::space_node::node_update_basis(), spreadsheet_footer_region_draw(), UI_block_end_ex(), ui_block_func_PIE(), ui_block_func_POPOVER(), ui_block_func_POPUP(), and UI_popup_menu_end_or_cancel().
Definition at line 5555 of file interface_layout.c.
References uiBlock::curlayout.
Referenced by blender::ui::TreeViewLayoutBuilder::build_from_tree(), blender::ui::GridViewLayoutBuilder::build_from_view(), blender::ui::TreeViewLayoutBuilder::build_row(), colorband_tools_func(), ED_time_scrub_channel_search_draw(), file_create_asset_catalog_tree_view_in_layout(), blender::ed::spreadsheet::spreadsheet_data_set_panel_draw(), ui_def_but_rna__menu(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_array(), ui_item_disabled(), ui_item_enum_expand_exec(), ui_item_menu(), ui_item_with_label(), ui_layout_box(), blender::ed::space_node::ui_node_menu_column(), blender::ed::space_node::ui_template_node_link_menu(), uiItemDecoratorR_prop(), uiItemFullO_ptr_ex(), uiItemFullR(), uiItemL_(), uiItemL_respect_property_split(), uiItemS_ex(), uiItemsFullEnumO_items(), uiItemSpacer(), uiItemTabsEnumR_prop(), uiItemV(), uiLayoutAbsolute(), uiLayoutColumn(), uiLayoutColumnFlow(), uiLayoutGridFlow(), uiLayoutOverlap(), uiLayoutRadial(), uiLayoutRow(), uiLayoutSplit(), uiTemplateMenuSearch(), uiTemplateNodeLink(), uiTemplateOperatorSearch(), and uiTemplateRunningJobs().
uiBut* ui_but_add_search | ( | uiBut * | but, |
PointerRNA * | ptr, | ||
PropertyRNA * | prop, | ||
PointerRNA * | searchptr, | ||
PropertyRNA * | searchprop, | ||
bool | results_are_suggestions | ||
) |
Definition at line 2717 of file interface_layout.c.
References uiBut::block, uiRNACollectionSearch::butstore, uiRNACollectionSearch::butstore_block, uiBut::drawflag, uiBut::flag, uiBut::hardmax, MAX2, MEM_mallocN, NULL, PointerRNA_NULL, PROP_ENUM, PROP_POINTER, PROP_STRING, ptr, RNA_property_is_unlink(), RNA_property_pointer_type(), RNA_property_string_search_flag(), RNA_property_type(), uiButSearch::rnasearchpoin, uiButSearch::rnasearchprop, uiRNACollectionSearch::search_but, search_id_collection(), uiRNACollectionSearch::search_prop, uiRNACollectionSearch::search_ptr, uiBut::str, uiRNACollectionSearch::target_prop, uiRNACollectionSearch::target_ptr, uiBut::type, UI_BTYPE_SEARCH_MENU, ui_but_change_type(), UI_BUT_DISABLED, UI_but_func_search_set(), UI_but_func_search_set_results_are_suggestions(), UI_BUT_ICON_LEFT, UI_BUT_TEXT_LEFT, UI_BUT_VALUE_CLEAR, UI_butstore_create(), UI_butstore_register(), ui_rna_collection_search_arg_free_fn(), ui_rna_collection_search_update_fn(), and ui_searchbox_create_generic().
Referenced by uiDefAutoButR(), uiItemFullR(), and uiItemPointerR_prop().
This is a bit of a hack but best keep it in one place at least.
Definition at line 5792 of file interface_layout.c.
References uiBut::menu_create_func, NULL, uiBut::poin, and ui_item_menutype_func().
Referenced by menu_items_from_ui_create(), shortcut_get_operator_property(), ui_but_copy_menu(), ui_but_event_operator_string(), ui_but_event_operator_string_from_menu(), ui_but_is_user_menu_compatible(), UI_but_string_info_get(), ui_but_user_menu_add(), and ui_but_user_menu_find().
wmOperatorType* UI_but_operatortype_get_from_enum_menu | ( | struct uiBut * | but, |
struct PropertyRNA ** | r_prop | ||
) |
This is a bit of a hack but best keep it in one place at least.
Definition at line 5775 of file interface_layout.c.
References uiBut::func_argN, uiBut::menu_create_func, menu_item_enum_opname_menu(), NULL, MenuItemLevel::opname, ot, MenuItemLevel::propname, RNA_struct_type_find_property(), wmOperatorType::srna, and WM_operatortype_find().
Referenced by UI_but_string_info_get(), and ui_layout_introspect_button().
This is a bit of a hack but best keep it in one place at least.
Definition at line 5800 of file interface_layout.c.
References uiBut::menu_create_func, NULL, uiBut::poin, and ui_item_paneltype_func().
Referenced by button_activate_state(), shortcut_get_operator_property(), ui_but_copy_popover(), ui_but_event_operator_string(), ui_but_event_operator_string_from_panel(), and UI_but_string_info_get().
|
static |
Update a buttons tip with an enum's description if possible.
Definition at line 1177 of file interface_layout.c.
References EnumPropertyItem::description, wmOperatorType::get_description, NULL, uiBut::optype, and uiBut::tip.
Referenced by uiItemsEnumR(), and uiItemsFullEnumO_items().
void UI_context_active_but_prop_get_filebrowser | ( | const bContext * | C, |
PointerRNA * | r_ptr, | ||
PropertyRNA ** | r_prop, | ||
bool * | r_is_undo, | ||
bool * | r_is_userdef | ||
) |
Definition at line 1130 of file interface_layout.c.
References uiBlock::buttons, C, CTX_wm_menu(), CTX_wm_region(), uiBut::flag, LISTBASE_FOREACH, NULL, PROP_STRING, RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, UI_but_is_userdef(), UI_BUT_LAST_ACTIVE, UI_BUT_UNDO, and ARegion::uiblocks.
|
static |
Definition at line 3838 of file interface_layout.c.
References PIE_MAX_ITEMS, ui_but_pie_dir(), and ui_radial_dir_order.
Referenced by ui_litem_layout_radial().
Definition at line 5329 of file interface_layout.c.
References uiBut::alignnr, uiButtonItem::but, ITEM_BUTTON, ITEM_LAYOUT_ABSOLUTE, ITEM_LAYOUT_BOX, ITEM_LAYOUT_OVERLAP, uiLayout::items, LISTBASE_FOREACH_BACKWARD, uiLayoutItemBx::roundbox, and ui_but_can_align().
Referenced by ui_item_layout().
|
static |
Definition at line 518 of file interface_layout.c.
References Freestyle::a, uiBut::a1, bArmature::act_bone, bArmature::act_edbone, usdtokens::b(), uiLayoutRoot::block, uiStyle::buttonspacex, col, PointerRNA::data, bArmature::edbo, ELEM, uiBlock::emboss, uiTextIconPadFactor::icon, uiTextIconPadFactor::icon_only, EditBone::layer, Bone::layer, bArmature::layer_used, len, MEM_callocN, MEM_freeN, min_ii(), NULL, POINTER_FROM_INT, PROP_AXISANGLE, PROP_BOOLEAN, PROP_COLOR, PROP_COLOR_GAMMA, PROP_DIRECTION, PROP_LAYER, PROP_LAYER_MEMBER, PROP_MATRIX, PROP_UNIT_ROTATION, ptr, RNA_property_array_dimension(), RNA_property_array_item_char(), RNA_property_boolean_get_array(), RNA_property_subtype(), RNA_property_type(), uiLayout::root, uiButNumber::step_size, str, uiLayoutRoot::style, uiBut::type, type, PointerRNA::type, UI_block_align_begin(), UI_block_align_end(), UI_block_layout_set_current(), UI_BTYPE_CHECKBOX, UI_BTYPE_LABEL, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_TOGGLE, UI_BTYPE_UNITVEC, ui_but_change_type(), UI_but_func_set(), UI_but_unit_type_set(), UI_EMBOSS_NONE, UI_EMBOSS_PULLDOWN, ui_item_local_sublayout(), ui_layer_but_cb(), ui_text_icon_width(), UI_UNIT_X, UI_UNIT_Y, uiDefAutoButR(), uiDefBut(), uiDefButR_prop(), uiLayoutAbsolute(), w(), x, and y.
Referenced by uiItemFullR().
Definition at line 1188 of file interface_layout.c.
References uiLayoutRoot::block, NULL, uiLayout::root, UI_block_layout_set_current(), UI_BTYPE_LABEL, UI_but_disable(), ui_text_icon_width(), UI_UNIT_Y, uiDefBut(), and w().
Referenced by uiItemDecoratorR(), uiItemEnumO(), uiItemEnumR(), uiItemEnumR_prop(), uiItemEnumR_string(), uiItemEnumR_string_prop(), uiItemFullR_with_menu(), uiItemFullR_with_popover(), uiItemMenuEnumFullO(), uiItemMenuEnumR(), uiItemR(), uiItemsEnumR(), and uiItemsFullEnumO().
|
static |
Definition at line 916 of file interface_layout.c.
References uiTextIconPadFactor::icon_only, ptr, UI_BTYPE_ROW, and ui_item_enum_expand_exec().
Referenced by uiItemFullR().
|
static |
Draw a single enum button, a utility for ui_item_enum_expand_exec
Definition at line 775 of file interface_layout.c.
References BLI_assert, ceilf, uiBlock::curlayout, uiBut::drawflag, ELEM, uiBut::flag, uiBut::func, uiBlock::func, uiTextIconPadFactor::icon, EnumPropertyItem::icon, uiTextIconPadFactor::icon_only, EnumPropertyItem::name, NULL, POINTER_FROM_INT, PROP_ENUM_FLAG, ptr, RNA_property_flag(), UI_BTYPE_TAB, UI_BUT_DRAG_LOCK, UI_but_func_set(), UI_BUT_TEXT_LEFT, ui_item_enum_expand_handle(), UI_LAYOUT_HORIZONTAL, ui_text_icon_width(), uiDefButR_prop(), uiDefIconButR_prop(), uiDefIconTextButR_prop(), uiLayoutGetLocalDir(), EnumPropertyItem::value, and w().
Referenced by ui_item_enum_expand_exec().
|
static |
Definition at line 824 of file interface_layout.c.
References BLI_assert, uiBlock::curlayout, ELEM, uiBlock::evil_C, free(), uiTextIconPadFactor::icon_only, EnumPropertyItem::identifier, uiLayout::item, ITEM_LAYOUT_COLUMN_FLOW, ITEM_LAYOUT_GRID_FLOW, ITEM_LAYOUT_RADIAL, uiLayoutRoot::layout, MEM_freeN, NULL, PROP_ENUM, ptr, RNA_property_enum_items_gettexted(), RNA_property_enum_items_gettexted_all(), RNA_property_type(), uiLayout::root, uiLayoutRoot::type, uiItem::type, UI_block_layout_set_current(), ui_item_enum_expand_elem_exec(), ui_item_local_sublayout(), UI_LAYOUT_MENU, UI_LAYOUT_PIEMENU, uiItemL(), uiItemS(), and uiLayoutRadial().
Referenced by ui_item_enum_expand(), and ui_item_enum_expand_tabs().
Definition at line 753 of file interface_layout.c.
References C, CTX_wm_window(), wmWindow::eventstate, KM_SHIFT, wmEvent::modifier, POINTER_AS_INT, RNA_property_enum_get(), RNA_property_enum_set(), uiBut::rnapoin, and uiBut::rnaprop.
Referenced by ui_item_enum_expand_elem_exec().
|
static |
Definition at line 926 of file interface_layout.c.
References BLI_assert, uiBlock::buttons, C, CTX_wm_region(), ListBase::first, uiTextIconPadFactor::icon_only, ListBase::last, uiBut::next, NULL, ptr, RNA_property_array_length(), RNA_property_boolean_get_array(), SET_FLAG_FROM_TEST, UI_BTYPE_TAB, ui_but_align_opposite_to_area_align_get(), UI_but_drawflag_enable(), UI_BUT_INACTIVE, and ui_item_enum_expand_exec().
Referenced by uiItemTabsEnumR_prop().
Definition at line 5268 of file interface_layout.c.
References BLI_listbase_is_empty(), uiLayout::h, uiLayout::item, ITEM_BUTTON, ITEM_LAYOUT_ABSOLUTE, ITEM_LAYOUT_BOX, ITEM_LAYOUT_COLUMN, ITEM_LAYOUT_COLUMN_FLOW, ITEM_LAYOUT_GRID_FLOW, ITEM_LAYOUT_OVERLAP, ITEM_LAYOUT_ROOT, ITEM_LAYOUT_ROW, ITEM_LAYOUT_SPLIT, uiLayout::items, LISTBASE_FOREACH, uiLayout::scale, uiItem::type, ui_item_scale(), ui_litem_estimate_absolute(), ui_litem_estimate_box(), ui_litem_estimate_column(), ui_litem_estimate_column_flow(), ui_litem_estimate_grid_flow(), ui_litem_estimate_overlap(), ui_litem_estimate_root(), ui_litem_estimate_row(), ui_litem_estimate_split(), UI_UNIT_X, UI_UNIT_Y, uiLayout::units, and uiLayout::w.
Referenced by ui_layout_end().
|
static |
Definition at line 227 of file interface_layout.c.
References all(), ELEM, pos, UI_LAYOUT_ALIGN_EXPAND, and width.
Referenced by ui_litem_layout_row().
Definition at line 5361 of file interface_layout.c.
References uiButtonItem::but, uiBut::flag, ITEM_BUTTON, uiLayout::items, and LISTBASE_FOREACH_BACKWARD.
Referenced by ui_item_layout().
Definition at line 3852 of file interface_layout.c.
References ITEM_BUTTON, uiItem::type, and UI_BTYPE_LABEL.
Referenced by ui_litem_layout_radial().
|
static |
Definition at line 3862 of file interface_layout.c.
References uiButtonItem::but, ELEM, uiBut::type, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, and UI_BTYPE_SEPR_SPACER.
Referenced by ui_litem_layout_radial().
Definition at line 5374 of file interface_layout.c.
References uiLayout::active, uiLayout::align, uiBlock::alignnr, BLI_listbase_is_empty(), uiLayoutRoot::block, uiButtonItem::but, uiBut::drawflag, uiLayout::enabled, uiItem::flag, uiLayout::item, ITEM_BUTTON, ITEM_LAYOUT_ABSOLUTE, ITEM_LAYOUT_BOX, ITEM_LAYOUT_COLUMN, ITEM_LAYOUT_COLUMN_FLOW, ITEM_LAYOUT_GRID_FLOW, ITEM_LAYOUT_OVERLAP, ITEM_LAYOUT_RADIAL, ITEM_LAYOUT_ROOT, ITEM_LAYOUT_ROW, ITEM_LAYOUT_SPLIT, uiLayout::items, LISTBASE_FOREACH, uiLayout::root, uiItem::type, UI_BUT_BOX_ITEM, UI_BUT_DISABLED, UI_BUT_INACTIVE, ui_item_align(), UI_ITEM_BOX_ITEM, ui_item_flag(), ui_litem_layout_absolute(), ui_litem_layout_box(), ui_litem_layout_column(), ui_litem_layout_column_flow(), ui_litem_layout_grid_flow(), ui_litem_layout_overlap(), ui_litem_layout_radial(), ui_litem_layout_root(), ui_litem_layout_row(), and ui_litem_layout_split().
Referenced by ui_layout_end().
Definition at line 476 of file interface_layout.c.
References uiLayout::space, UI_LAYOUT_HORIZONTAL, uiLayoutColumn(), uiLayoutGetLocalDir(), and uiLayoutRow().
Referenced by ui_item_array(), ui_item_enum_expand_exec(), and uiLayoutRadial().
|
static |
Definition at line 2909 of file interface_layout.c.
References uiLayoutRoot::block, ELEM, uiBut::func_argN, uiTextIconPadFactor::icon, uiTextIconPadFactor::icon_only, uiBut::poin, uiLayout::root, uiTextIconPadFactor::text, uiLayoutRoot::type, UI_block_layout_set_current(), ui_block_new_button_group(), UI_but_drawflag_enable(), UI_BUT_ICON_LEFT, UI_but_type_set_menu_from_pulldown(), UI_LAYOUT_HEADER, ui_layout_heading_find(), ui_layout_heading_label_add(), UI_LAYOUT_MENU, UI_LAYOUT_PANEL, UI_LAYOUT_TOOLBAR, ui_text_icon_width_ex(), ui_text_pad_compact, UI_UNIT_Y, uiDefIconMenuBut(), uiDefIconTextMenuBut(), uiDefMenuBut(), and w().
Referenced by uiItemM_ptr(), uiItemMenuEnumFullO_ptr(), uiItemMenuEnumR_prop(), uiItemMenuF(), uiItemMenuFN(), and uiItemPopoverPanel_ptr().
Definition at line 1300 of file interface_layout.c.
References ARegion::alignment, uiLayoutRoot::block, C, uiBut::drawstr, uiBlock::flag, uiBut::hold_argN, RGN_ALIGN_BOTTOM, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, uiLayout::root, TIP_, UI_block_direction_set(), UI_BLOCK_IS_FLIP, UI_BLOCK_POPUP_HOLD, UI_DIR_DOWN, UI_DIR_LEFT, UI_DIR_RIGHT, UI_DIR_UP, UI_menutype_draw(), UI_popup_menu_begin(), UI_popup_menu_but_set(), UI_popup_menu_end(), UI_popup_menu_layout(), uiItemL(), uiLayoutSetContextFromBut(), and WM_menutype_find().
Referenced by uiItemFullOMenuHold_ptr().
Definition at line 2890 of file interface_layout.c.
References uiLayoutRoot::block, C, uiBlock::flag, uiLayout::root, UI_BLOCK_IS_FLIP, and UI_menutype_draw().
Referenced by UI_but_menutype_get(), ui_def_but_rna__menu_type(), and uiItemM_ptr().
Definition at line 430 of file interface_layout.c.
References uiButtonItem::but, ITEM_BUTTON, uiBut::rect, uiItem::type, ui_but_update(), uiLayout::w, uiLayout::x, rctf::xmax, and rctf::xmin.
Referenced by ui_litem_layout_row().
|
static |
Definition at line 213 of file interface_layout.c.
References len, and UI_MAX_NAME_STR.
Referenced by uiItemFullR(), uiItemL_respect_property_split(), and uiItemPointerR_prop().
Definition at line 386 of file interface_layout.c.
References uiButtonItem::but, ITEM_BUTTON, uiBut::rect, uiItem::type, rctf::xmin, and rctf::ymin.
Referenced by ui_item_scale(), ui_litem_estimate_absolute(), and ui_litem_layout_absolute().
Definition at line 2900 of file interface_layout.c.
References uiLayoutRoot::block, C, uiBlock::flag, uiLayout::root, UI_BLOCK_IS_FLIP, and UI_paneltype_draw().
Referenced by UI_but_paneltype_get(), ui_def_but_rna__panel_type(), UI_popover_panel_invoke(), and uiItemPopoverPanel_ptr().
Definition at line 408 of file interface_layout.c.
References uiButtonItem::but, uiLayout::h, ITEM_BUTTON, uiBut::rect, uiItem::type, ui_but_update(), w(), uiLayout::w, x, uiLayout::x, rctf::xmax, rctf::xmin, uiLayout::y, y, rctf::ymax, and rctf::ymin.
Referenced by ui_item_scale(), ui_litem_layout_absolute(), ui_litem_layout_column(), ui_litem_layout_column_flow(), ui_litem_layout_grid_flow(), ui_litem_layout_overlap(), ui_litem_layout_radial(), ui_litem_layout_root_radial(), ui_litem_layout_row(), and ui_litem_layout_split().
|
static |
Hack to add further items in a row into the second part of the split layout, so the label part keeps a fixed size.
Definition at line 1996 of file interface_layout.c.
References uiLayout::child_items_layout, uiItem::flag, uiLayout::item, ITEM_LAYOUT_ROW, uiItem::type, UI_ITEM_INSIDE_PROP_SEP, uiLayoutRow(), and uiLayoutSetPropSep().
Referenced by uiItemFullR(), and uiItemPropertySplitWrapperCreate().
|
static |
Definition at line 1940 of file interface_layout.c.
References ELEM, PROP_COLOR, PROP_COLOR_GAMMA, PROP_DIRECTION, RNA_NO_INDEX, RNA_property_array_check(), RNA_property_subtype(), and UI_ITEM_R_EXPAND.
Referenced by uiItemDecoratorR_prop(), and uiItemFullR().
|
static |
Definition at line 1838 of file interface_layout.c.
References uiLayoutRoot::block, ceilf, ELEM, uiBlock::evil_C, uiItem::flag, free(), uiTextIconPadFactor::icon, uiTextIconPadFactor::icon_only, EnumPropertyItem::identifier, uiLayout::item, len, max_ii(), MEM_freeN, NULL, PROP_BOOLEAN, PROP_ENUM, PROP_FLOAT, PROP_INT, PROP_LAYER, PROP_LAYER_MEMBER, PROP_MATRIX, PROP_POINTER, PROP_STRING, ptr, RNA_ENUM_VALUE, RNA_NO_INDEX, RNA_property_array_length(), RNA_property_enum_items_gettexted(), RNA_property_subtype(), RNA_property_type(), uiLayout::root, sqrtf, type, UI_ITEM_PROP_SEP, ui_layout_variable_size(), ui_text_icon_width(), UI_UNIT_X, UI_UNIT_Y, and w().
Referenced by uiItemFullR(), and uiItemPointerR_prop().
Definition at line 5241 of file interface_layout.c.
References ITEM_BUTTON, uiLayout::items, LISTBASE_FOREACH_BACKWARD, ui_item_offset(), ui_item_position(), ui_item_size(), w(), x, and y.
Referenced by ui_item_estimate().
Definition at line 362 of file interface_layout.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), uiButtonItem::but, uiLayout::h, ITEM_BUTTON, uiBut::rect, uiItem::type, and uiLayout::w.
Referenced by ui_item_scale(), ui_layout_add_but(), ui_litem_estimate_absolute(), ui_litem_estimate_column(), ui_litem_estimate_column_flow(), ui_litem_estimate_overlap(), ui_litem_estimate_row(), ui_litem_grid_flow_compute(), ui_litem_layout_absolute(), ui_litem_layout_column(), ui_litem_layout_column_flow(), ui_litem_layout_grid_flow(), ui_litem_layout_overlap(), ui_litem_layout_radial(), ui_litem_layout_root_radial(), ui_litem_layout_row(), and ui_litem_layout_split().
|
static |
Create label + button for RNA property
w_hint | For varying width layout, this becomes the label width. Otherwise it's used to fit both items into it. |
Definition at line 984 of file interface_layout.c.
References uiLayout::align, PointerRNA::data, ELEM, uiItem::flag, uiTextIconPadFactor::icon, uiLayout::item, NULL, PROP_DIRPATH, PROP_ENUM, PROP_FILEPATH, ptr, RNA_property_subtype(), RNA_property_type(), RNA_struct_identifier(), RNA_struct_is_a(), RNA_warning, uiLayout::space, str, type, PointerRNA::type, UI_block_layout_set_current(), UI_BTYPE_BUT, UI_BTYPE_HOTKEY_EVENT, UI_BTYPE_KEY_EVENT, UI_BTYPE_LABEL, UI_BUT_ACTIVATE_ON_INIT, UI_but_flag_enable(), UI_but_func_set(), UI_ITEM_PROP_DECORATE, UI_ITEM_PROP_DECORATE_NO_PAD, UI_ITEM_PROP_SEP, UI_ITEM_R_EVENT, UI_ITEM_R_FULL_EVENT, UI_ITEM_R_ICON_ONLY, UI_ITEM_R_IMMEDIATE, ui_keymap_but_cb(), ui_layout_variable_size(), UI_PROP_DECORATE, ui_text_icon_width_ex(), ui_text_pad_none, UI_UNIT_X, uiDefAutoButR(), uiDefBut(), uiDefButR_prop(), uiDefIconButO(), uiItemL(), uiItemL_respect_property_split(), uiLayoutRow(), WM_keymap_item_to_string(), WM_OP_INVOKE_DEFAULT, x, and y.
Referenced by uiItemFullR(), and uiItemPointerR_prop().
Definition at line 962 of file interface_layout.c.
References BLI_assert, KM_ALT, KM_CTRL, KM_MOD_HELD, KM_NOTHING, KM_OSKEY, KM_SHIFT, uiButHotkeyEvent::modifier_key, RNA_int_set(), uiBut::rnapoin, uiBut::type, and UI_BTYPE_HOTKEY_EVENT.
Referenced by ui_item_with_label().
Definition at line 490 of file interface_layout.c.
References uiBut::block, uiBlock::buttons, C, CTX_wm_window(), wmWindow::eventstate, KM_SHIFT, len, LISTBASE_FOREACH, wmEvent::modifier, POINTER_AS_INT, ptr, RNA_property_array_length(), RNA_property_boolean_set_index(), RNA_property_update(), uiBut::rnapoin, uiBut::rnaprop, and ui_but_update().
Referenced by ui_item_array().
Definition at line 5560 of file interface_layout.c.
References BLI_addtail(), uiButtonItem::but, uiLayout::child_items_layout, uiBut::context, uiLayout::context, uiBut::emboss, uiLayout::emboss, uiItem::flag, uiButtonItem::item, ITEM_BUTTON, uiLayout::items, uiBut::layout, MEM_callocN, uiBut::str, uiItem::type, ui_button_group_add_but(), UI_EMBOSS_UNDEFINED, UI_ITEM_FIXED_SIZE, ui_item_size(), UI_UNIT_X, uiLayoutGetBlock(), bContextStore::used, and w().
Referenced by ui_def_but().
|
static |
Definition at line 5477 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::curlayout, uiLayoutRoot::layout, NULL, uiLayoutRoot::padding, UI_BTYPE_SEPR, and uiDefBut().
Referenced by UI_block_layout(), and UI_block_layout_resolve().
|
static |
Definition at line 4808 of file interface_layout.c.
References uiLayoutRoot::block, uiStyle::columnspace, uiLayout::item, ITEM_LAYOUT_BOX, uiLayoutItemBx::litem, MEM_callocN, NULL, uiLayout::root, uiLayoutItemBx::roundbox, uiLayout::space, uiLayoutRoot::style, uiItem::type, type, UI_block_layout_set_current(), ui_litem_init_from_parent(), and uiDefBut().
Referenced by uiLayoutBox(), and uiLayoutListBox().
Definition at line 5443 of file interface_layout.c.
References uiLayoutRoot::argv, uiLayoutRoot::handlefunc, uiLayout::item, uiLayout::root, UI_block_func_handle_set(), ui_item_estimate(), ui_item_layout(), uiLayout::x, and uiLayout::y.
Referenced by UI_block_layout_resolve().
|
static |
Definition at line 5594 of file interface_layout.c.
References uiButtonItem::but, uiLayout::child_items_layout, ITEM_BUTTON, uiLayout::items, LISTBASE_FOREACH, and NULL.
Referenced by ui_layout_remove_but(), and ui_layout_replace_but_ptr().
Definition at line 5460 of file interface_layout.c.
References uiButtonItem::but, ITEM_BUTTON, uiLayout::items, uiBut::layout, LISTBASE_FOREACH_MUTABLE, MEM_freeN, and NULL.
Referenced by UI_block_layout_free(), and UI_block_layout_resolve().
Definition at line 5830 of file interface_layout.c.
References uiButtonItem::but, uiBut::flag, ITEM_BUTTON, uiLayout::items, PanelType::label, LISTBASE_FOREACH, uiBut::str, STREQ, and UI_HIDDEN.
Referenced by ui_paneltype_draw_impl().
Find first layout ancestor (or self) with a heading set.
Definition at line 1956 of file interface_layout.c.
References NULL, and uiLayout::parent.
Referenced by ui_item_menu(), and uiItemFullR().
|
static |
Definition at line 1967 of file interface_layout.c.
References uiLayout::alignment, uiLayout::heading, UI_LAYOUT_ALIGN_RIGHT, uiItemL(), uiItemL_respect_property_split(), and uiLayoutSetAlignment().
Referenced by ui_item_menu(), and uiItemFullR().
Definition at line 4724 of file interface_layout.c.
References BLI_assert, uiLayout::heading, and STRNCPY.
Referenced by uiLayoutColumnWithHeading(), and uiLayoutRowWithHeading().
const char* UI_layout_introspect | ( | uiLayout * | layout | ) |
Evaluate layout items as a Python dictionary.
Definition at line 6019 of file interface_layout.c.
References BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), uiLayout::item, uiItem::next, NULL, uiItem::prev, result, and ui_layout_introspect_items().
Referenced by bpy_rna_uilayout_introspect().
|
static |
Definition at line 5925 of file interface_layout.c.
References BLI_dynstr_appendf(), uiBut::block, uiButtonItem::but, uiBut::drawstr, uiBlock::evil_C, MEM_freeN, NULL, uiBut::opptr, uiBut::optype, ot, RNA_property_identifier(), RNA_struct_identifier(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, uiBut::tip, uiBut::type, PointerRNA::type, UI_but_operatortype_get_from_enum_menu(), and WM_operator_pystring_ex().
Referenced by ui_layout_introspect_items().
Definition at line 5960 of file interface_layout.c.
References BLI_dynstr_append(), CASE_ITEM, ListBase::first, ITEM_BUTTON, ITEM_LAYOUT_ABSOLUTE, ITEM_LAYOUT_BOX, ITEM_LAYOUT_COLUMN, ITEM_LAYOUT_COLUMN_FLOW, ITEM_LAYOUT_GRID_FLOW, ITEM_LAYOUT_OVERLAP, ITEM_LAYOUT_RADIAL, ITEM_LAYOUT_ROOT, ITEM_LAYOUT_ROW, ITEM_LAYOUT_ROW_FLOW, ITEM_LAYOUT_SPLIT, ListBase::last, uiItem::next, uiItem::type, and ui_layout_introspect_button().
Referenced by UI_layout_introspect().
BLI_INLINE bool ui_layout_is_radial | ( | const uiLayout * | layout | ) |
Definition at line 1455 of file interface_layout.c.
References uiLayout::item, ITEM_LAYOUT_RADIAL, ITEM_LAYOUT_ROOT, uiLayout::root, uiLayoutRoot::type, uiItem::type, and UI_LAYOUT_PIEMENU.
Referenced by uiItemsFullEnumO(), and uiItemsFullEnumO_items().
Check all buttons defined in this layout, and set any button flagged as UI_BUT_LIST_ITEM as active/selected. Needed to handle correctly text colors of active (selected) list item.
Definition at line 4854 of file interface_layout.c.
References ITEM_BUTTON, uiLayout::items, LISTBASE_FOREACH, UI_but_flag_enable(), UI_BUT_LIST_ITEM, ui_layout_list_set_labels_active(), and UI_SELECT.
Referenced by ui_layout_list_set_labels_active(), and ui_template_list_layout_draw().
Definition at line 5618 of file interface_layout.c.
References BLI_freelinkN(), uiLayout::items, and ui_layout_find_button_item().
Referenced by UI_but_active_only_ex().
Definition at line 5628 of file interface_layout.c.
References uiButtonItem::but, and ui_layout_find_button_item().
Referenced by ui_but_change_type().
Definition at line 271 of file interface_layout.c.
References UI_ITEM_VARY_X, ui_layout_vary_direction(), and uiLayout::variable_size.
Referenced by ui_item_rna_size(), ui_item_with_label(), and ui_text_icon_width_ex().
|
static |
Definition at line 263 of file interface_layout.c.
References uiLayout::alignment, ELEM, uiLayout::root, uiLayoutRoot::type, UI_ITEM_VARY_X, UI_ITEM_VARY_Y, UI_LAYOUT_ALIGN_EXPAND, UI_LAYOUT_HEADER, and UI_LAYOUT_PIEMENU.
Referenced by ui_layout_variable_size().
Definition at line 4535 of file interface_layout.c.
References uiLayout::h, uiLayout::items, LISTBASE_FOREACH, MAX2, min_ii(), ui_item_offset(), ui_item_size(), and uiLayout::w.
Referenced by ui_item_estimate().
Definition at line 3988 of file interface_layout.c.
References uiStyle::boxspace, uiLayout::h, uiLayout::root, uiLayoutRoot::style, uiLayoutRoot::type, UI_LAYOUT_HEADER, ui_litem_estimate_column(), and uiLayout::w.
Referenced by ui_item_estimate().
Definition at line 3784 of file interface_layout.c.
References ListBase::first, uiItem::flag, uiLayout::h, uiLayout::item, uiLayout::items, LISTBASE_FOREACH, MAX2, uiLayout::space, UI_ITEM_FIXED_SIZE, ui_item_size(), and uiLayout::w.
Referenced by ui_item_estimate(), and ui_litem_estimate_box().
Definition at line 4046 of file interface_layout.c.
References uiStyle::buttonspacey, col, uiLayoutRoot::emw, uiLayout::h, uiLayout::items, LISTBASE_FOREACH, MAX2, max_ii(), min_ii(), uiLayoutItemFlow::number, uiLayout::root, uiLayout::space, uiLayoutRoot::style, uiLayoutItemFlow::totcol, ui_item_size(), uiLayout::w, x, uiLayout::y, and y.
Referenced by ui_item_estimate().
Definition at line 4344 of file interface_layout.c.
References uiStyle::buttonspacey, ceilf, uiLayoutItemGridFlow::columns_len, uiStyle::columnspace, uiLayoutItemGridFlow::even_columns, uiLayoutItemGridFlow::even_rows, uiLayout::h, if(), uiLayout::items, max_ii(), min_ii(), uiLayout::root, uiLayoutItemGridFlow::row_major, uiLayoutRoot::style, uiLayoutItemGridFlow::tot_columns, uiLayoutItemGridFlow::tot_items, uiLayoutItemGridFlow::tot_rows, ui_litem_grid_flow_compute(), and uiLayout::w.
Referenced by ui_item_estimate().
Definition at line 4667 of file interface_layout.c.
References uiLayout::h, uiLayout::items, LISTBASE_FOREACH, MAX2, ui_item_size(), and uiLayout::w.
Referenced by ui_item_estimate().
Definition at line 3949 of file interface_layout.c.
Referenced by ui_item_estimate().
Definition at line 3604 of file interface_layout.c.
References uiItem::flag, uiLayout::h, uiLayout::item, uiLayout::items, LISTBASE_FOREACH, MAX2, uiLayout::space, UI_ITEM_FIXED_SIZE, ui_item_size(), and uiLayout::w.
Referenced by ui_item_estimate(), and ui_litem_estimate_split().
Definition at line 4618 of file interface_layout.c.
References uiItem::flag, uiLayout::item, UI_ITEM_FIXED_SIZE, and ui_litem_estimate_row().
Referenced by ui_item_estimate().
|
static |
Definition at line 4197 of file interface_layout.c.
References BLI_array_alloca, BLI_assert, ceilf, col, UILayoutGridFlowOutput::cos_x_array, UILayoutGridFlowOutput::cos_y_array, ListBase::first, float(), UILayoutGridFlowOutput::global_avg_w, UILayoutGridFlowOutput::global_max_h, UILayoutGridFlowOutput::heights_array, LISTBASE_FOREACH, max_ii(), NULL, parameters, UILayoutGridFlowOutput::tot_h, UILayoutGridFlowOutput::tot_items, UILayoutGridFlowOutput::tot_w, ui_item_size(), and UILayoutGridFlowOutput::widths_array.
Referenced by ui_litem_estimate_grid_flow(), and ui_litem_layout_grid_flow().
Definition at line 4699 of file interface_layout.c.
References uiLayout::active, uiLayout::align, BLI_addtail(), uiLayout::child_items_layout, uiLayout::context, uiLayout::emboss, uiLayout::enabled, uiItem::flag, uiLayout::item, ITEM_LAYOUT_GRID_FLOW, uiLayout::items, uiLayout::parent, uiLayout::redalert, uiLayout::root, uiItem::type, UI_ITEM_INSIDE_PROP_SEP, UI_ITEM_PROP_DECORATE, UI_ITEM_PROP_SEP, uiLayout::variable_size, and uiLayout::w.
Referenced by ui_layout_box(), uiLayoutAbsolute(), uiLayoutColumn(), uiLayoutColumnFlow(), uiLayoutGridFlow(), uiLayoutOverlap(), uiLayoutRadial(), uiLayoutRow(), and uiLayoutSplit().
Definition at line 4558 of file interface_layout.c.
References float(), uiLayout::h, uiLayout::items, LISTBASE_FOREACH, max_ii(), min_ii(), ui_item_offset(), ui_item_position(), ui_item_size(), uiLayout::w, x, uiLayout::x, uiLayout::y, and y.
Referenced by ui_item_layout().
Definition at line 4002 of file interface_layout.c.
References uiStyle::boxspace, uiLayout::h, uiBut::rect, uiLayout::root, uiLayoutItemBx::roundbox, uiLayoutRoot::style, uiLayoutRoot::type, UI_LAYOUT_HEADER, ui_litem_layout_column(), w(), uiLayout::w, uiLayout::x, rctf::xmax, rctf::xmin, uiLayout::y, rctf::ymax, and rctf::ymin.
Referenced by ui_item_layout().
Definition at line 3810 of file interface_layout.c.
References ListBase::first, uiLayout::h, uiLayout::items, LISTBASE_FOREACH, uiLayout::space, UI_ITEM_BOX_ITEM, ui_item_position(), ui_item_size(), uiLayout::w, x, uiLayout::x, uiLayout::y, and y.
Referenced by ui_item_layout(), ui_litem_layout_box(), and ui_litem_layout_root().
Definition at line 4109 of file interface_layout.c.
References uiLayout::alignment, uiStyle::buttonspacey, col, uiStyle::columnspace, uiLayout::h, uiLayout::items, LISTBASE_FOREACH, min_ii(), uiLayout::root, uiLayoutRoot::style, uiLayoutItemFlow::totcol, ui_item_position(), ui_item_size(), UI_LAYOUT_ALIGN_EXPAND, w(), uiLayout::w, x, uiLayout::x, uiLayout::y, and y.
Referenced by ui_item_layout().
Definition at line 4471 of file interface_layout.c.
References uiLayout::alignment, BLI_array_alloca, BLI_assert, uiStyle::buttonspacey, col, uiStyle::columnspace, uiLayout::h, uiLayout::items, LISTBASE_FOREACH_INDEX, min_ii(), uiLayout::root, uiLayoutItemGridFlow::row_major, uiLayoutRoot::style, uiLayoutItemGridFlow::tot_columns, uiLayoutItemGridFlow::tot_items, uiLayoutItemGridFlow::tot_rows, ui_item_position(), ui_item_size(), UI_LAYOUT_ALIGN_EXPAND, ui_litem_grid_flow_compute(), w(), uiLayout::w, uiLayout::x, and uiLayout::y.
Referenced by ui_item_layout().
Definition at line 4681 of file interface_layout.c.
References uiLayout::h, uiLayout::items, LISTBASE_FOREACH, MAX2, ui_item_position(), ui_item_size(), uiLayout::w, x, uiLayout::x, uiLayout::y, and y.
Referenced by ui_item_layout().
Definition at line 3872 of file interface_layout.c.
References uiLayoutRoot::block, uiButtonItem::but, uiBut::drawflag, uiBut::emboss, PieMenuData::flags, uiLayout::h, ITEM_BUTTON, uiLayout::items, LISTBASE_FOREACH, max_ii(), min_ii(), uiBlock::pie_data, uiBut::pie_dir, uiBut::rect, uiLayout::root, UI_BUT_ICON_LEFT, UI_DPI_FAC, UI_EMBOSS_RADIAL, ui_get_radialbut_vec(), ui_item_is_radial_displayable(), ui_item_is_radial_drawable(), ui_item_position(), ui_item_size(), UI_PIE_DEGREES_RANGE_LARGE, UI_UNIT_X, uiLayout::w, x, uiLayout::x, rctf::xmax, uiLayout::y, y, and rctf::ymax.
Referenced by ui_item_layout().
Definition at line 3971 of file interface_layout.c.
References uiLayout::root, uiLayoutRoot::type, UI_LAYOUT_HEADER, UI_LAYOUT_MENU, UI_LAYOUT_PIEMENU, ui_litem_layout_column(), ui_litem_layout_root_radial(), and ui_litem_layout_row().
Referenced by ui_item_layout().
Definition at line 3954 of file interface_layout.c.
References ListBase::first, ITEM_BUTTON, uiLayout::items, uiItem::type, ui_item_position(), ui_item_size(), x, uiLayout::x, uiLayout::y, and y.
Referenced by ui_litem_layout_root().
Definition at line 3635 of file interface_layout.c.
References uiLayout::alignment, ELEM, uiItem::flag, uiLayout::h, ITEM_BUTTON, uiLayout::items, ListBase::last, LISTBASE_FOREACH, min_ii(), uiItem::next, NULL, offset, uiLayout::space, UI_ITEM_AUTO_FIXED_SIZE, ui_item_fit(), UI_ITEM_FIXED_SIZE, ui_item_move(), ui_item_position(), ui_item_size(), UI_LAYOUT_ALIGN_CENTER, UI_LAYOUT_ALIGN_EXPAND, UI_LAYOUT_ALIGN_RIGHT, ui_litem_min_width(), w(), uiLayout::w, x, uiLayout::x, uiLayout::y, and y.
Referenced by ui_item_layout(), and ui_litem_layout_root().
Definition at line 4624 of file interface_layout.c.
References BLI_listbase_count(), uiLayout::h, uiLayout::items, LISTBASE_FOREACH, MAX2, NULL, uiLayout::space, blender::io::alembic::split(), ui_item_position(), ui_item_size(), w(), uiLayout::w, width, x, uiLayout::x, uiLayout::y, and y.
Referenced by ui_item_layout().
|
static |
Definition at line 3630 of file interface_layout.c.
References MIN2, and UI_UNIT_X.
Referenced by ui_litem_layout_row().
|
static |
Definition at line 1389 of file interface_layout.c.
References uiLayoutRoot::block, CTX_IFACE_, uiBlock::evil_C, free(), MEM_freeN, NULL, ptr, RNA_enum_name(), RNA_property_enum_items(), RNA_property_translation_context(), and uiLayout::root.
Referenced by uiItemEnumO_ptr(), uiItemEnumO_string(), and uiItemEnumO_value().
Definition at line 5808 of file interface_layout.c.
References C, uiLayout::context, CTX_store_set(), MenuType::draw, G, G_DEBUG_WM, MenuType::idname, Menu::layout, and NULL.
Referenced by blender::ed::asset_browser::AssetCatalogTreeViewItem::build_context_menu(), menu_items_from_ui_create(), ui_item_menu_hold(), ui_item_menutype_func(), UI_pie_menu_invoke(), ui_popup_context_menu_for_button(), UI_popup_menu_invoke(), uiItemMContents(), wm_block_create_about(), and wm_block_create_splash().
Used for popup panels only.
Definition at line 5899 of file interface_layout.c.
References C, uiLayout::context, CTX_store_set(), NULL, and ui_paneltype_draw_impl().
Referenced by ui_item_paneltype_func(), and UI_popover_panel_invoke().
|
static |
Definition at line 5850 of file interface_layout.c.
References BLI_assert, C, PanelType::children, col, CTX_IFACE_, Panel_Runtime::custom_data_ptr, PanelType::draw, PanelType::draw_header, Panel::flag, uiLayout::items, PanelType::label, ListBase::last, Panel::layout, LISTBASE_FOREACH, MEM_callocN, MEM_freeN, NULL, PNL_POPOVER, PanelType::poll, Panel::runtime, PanelType::translation_context, Panel::type, ui_layout_has_panel_label(), uiItemL(), uiItemS(), uiLayoutColumn(), and uiLayoutRow().
Referenced by UI_paneltype_draw().
Definition at line 2710 of file interface_layout.c.
References uiRNACollectionSearch::butstore, uiRNACollectionSearch::butstore_block, MEM_freeN, ptr, and UI_butstore_free().
Referenced by ui_but_add_search().
|
static |
Definition at line 356 of file interface_layout.c.
References uiTextIconPadFactor::icon, ui_text_icon_width_ex(), ui_text_pad_compact, and ui_text_pad_default.
Referenced by ui_item_array(), ui_item_disabled(), ui_item_enum_expand_elem_exec(), ui_item_rna_size(), uiItemFullO_ptr_ex(), and uiItemV().
|
static |
Estimated size of text + icon.
Definition at line 321 of file interface_layout.c.
References uiLayout::alignment, uiBlock::aspect, uiLayoutRoot::block, ceilf, uiItem::flag, uiTextIconPadFactor::icon, uiTextIconPadFactor::icon_only, uiLayout::item, uiLayout::root, uiLayout::scale, uiTextIconPadFactor::text, UI_fontstyle_string_width_with_block_aspect(), UI_FSTYLE_WIDGET, UI_ITEM_FIXED_SIZE, UI_LAYOUT_ALIGN_EXPAND, ui_layout_variable_size(), and UI_UNIT_X.
Referenced by ui_item_menu(), ui_item_with_label(), ui_text_icon_width(), and uiItemL_().
void uiItemBooleanO | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
const char * | opname, | ||
const char * | propname, | ||
int | value | ||
) |
Definition at line 1761 of file interface_layout.c.
References PointerRNA::data, uiTextIconPadFactor::icon, NULL, uiLayoutRoot::opcontext, ot, ptr, RNA_boolean_set(), uiLayout::root, UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by modifier_ops_extra_draw(), parent_set_invoke_menu(), pose_ik_add_invoke(), ui_popup_context_menu_for_button(), and uv_mark_seam_invoke().
void uiItemDecoratorR | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
int | index | ||
) |
Insert a decorator item for a button with the same property as prop. To force inserting a blank dummy element, NULL can be passed for ptr and propname.
Definition at line 3100 of file interface_layout.c.
References NULL, ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), and uiItemDecoratorR_prop().
Referenced by add_attribute_search_or_value_buttons(), data_panel_draw(), panel_draw(), blender::ed::space_node::ui_node_draw_input(), and uiTemplateCacheFileTimeSettings().
void uiItemDecoratorR_prop | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
struct PropertyRNA * | prop, | ||
int | index | ||
) |
Insert a decorator item for a button with the same property as prop. To force inserting a blank dummy element, NULL can be passed for ptr and prop.
Definition at line 3042 of file interface_layout.c.
References uiLayoutRoot::block, uiButDecorator::but, col, ELEM, uiBut::flag, NULL, ptr, RNA_property_animateable(), RNA_property_array_check(), RNA_property_array_length(), uiButDecorator::rnaindex, uiButDecorator::rnapoin, uiButDecorator::rnaprop, uiLayout::root, TIP_, UI_block_layout_set_current(), UI_BTYPE_DECORATOR, ui_but_anim_decorate_cb(), UI_BUT_DISABLED, UI_BUT_DRAG_LOCK, UI_but_func_set(), UI_BUT_UNDO, UI_EMBOSS_NONE, ui_item_rna_is_expand(), UI_UNIT_X, UI_UNIT_Y, uiDefIconBut(), and uiLayoutColumn().
Referenced by uiItemDecoratorR(), and uiItemFullR().
void uiItemEnumO | ( | uiLayout * | layout, |
const char * | opname, | ||
const char * | name, | ||
int | icon, | ||
const char * | propname, | ||
int | value | ||
) |
Definition at line 1437 of file interface_layout.c.
References uiTextIconPadFactor::icon, ot, RNA_warning, ui_item_disabled(), uiItemEnumO_ptr(), and WM_operatortype_find().
Referenced by armature_parent_clear_invoke(), armature_parent_set_invoke(), and blender::ed::space_node::node_group_separate_invoke().
void uiItemEnumO_ptr | ( | uiLayout * | layout, |
wmOperatorType * | ot, | ||
const char * | name, | ||
int | icon, | ||
const char * | propname, | ||
int | value | ||
) |
Definition at line 1413 of file interface_layout.c.
References PointerRNA::data, uiTextIconPadFactor::icon, NULL, uiLayoutRoot::opcontext, ot, ptr, RNA_property_enum_set(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::root, PointerRNA::type, ui_menu_enumpropname(), uiItemFullO_ptr(), and WM_operator_properties_create_ptr().
Referenced by parent_set_invoke_menu(), text_resolve_conflict_invoke(), and uiItemEnumO().
void uiItemEnumO_string | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
const char * | opname, | ||
const char * | propname, | ||
const char * | value_str | ||
) |
Definition at line 1713 of file interface_layout.c.
References uiLayoutRoot::block, PointerRNA::data, uiBlock::evil_C, free(), uiTextIconPadFactor::icon, MEM_freeN, NULL, uiLayoutRoot::opcontext, ot, ptr, RNA_enum_value_from_id(), RNA_property_enum_items(), RNA_property_enum_set(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::root, PointerRNA::type, ui_menu_enumpropname(), UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by panel_draw().
void uiItemEnumO_value | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
const char * | opname, | ||
const char * | propname, | ||
int | value | ||
) |
For use in cases where we have.
Definition at line 1683 of file interface_layout.c.
References PointerRNA::data, uiTextIconPadFactor::icon, NULL, uiLayoutRoot::opcontext, ot, ptr, RNA_property_enum_set(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::root, PointerRNA::type, ui_menu_enumpropname(), UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by ui_template_palette_menu().
void uiItemEnumR | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
int | value | ||
) |
Definition at line 2543 of file interface_layout.c.
References NULL, ptr, RNA_ENUM_VALUE, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), and uiItemFullR().
void uiItemEnumR_prop | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
struct PointerRNA * | ptr, | ||
PropertyRNA * | prop, | ||
int | value | ||
) |
Definition at line 2526 of file interface_layout.c.
References PROP_ENUM, ptr, RNA_ENUM_VALUE, RNA_property_identifier(), RNA_property_type(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), and uiItemFullR().
Referenced by uiItemsEnumR().
void uiItemEnumR_string | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
const char * | value, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 2612 of file interface_layout.c.
References NULL, ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), uiItemEnumR_string_prop(), and UNLIKELY.
void uiItemEnumR_string_prop | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
PropertyRNA * | prop, | ||
const char * | value, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 2561 of file interface_layout.c.
References Freestyle::a, uiLayoutRoot::block, CTX_IFACE_, uiBlock::evil_C, free(), EnumPropertyItem::identifier, MEM_freeN, NULL, PROP_ENUM, ptr, RNA_ENUM_VALUE, RNA_enum_value_from_id(), RNA_property_enum_items(), RNA_property_identifier(), RNA_property_translation_context(), RNA_property_type(), RNA_struct_identifier(), RNA_warning, uiLayout::root, PointerRNA::type, ui_item_disabled(), UI_ITEM_R_ICON_ONLY, uiItemFullR(), and UNLIKELY.
Referenced by uiItemEnumR_string().
void uiItemFloatO | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
const char * | opname, | ||
const char * | propname, | ||
float | value | ||
) |
Definition at line 1795 of file interface_layout.c.
References PointerRNA::data, uiTextIconPadFactor::icon, NULL, uiLayoutRoot::opcontext, ot, ptr, RNA_float_set(), uiLayout::root, UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
void uiItemFullO | ( | uiLayout * | layout, |
const char * | opname, | ||
const char * | name, | ||
int | icon, | ||
IDProperty * | properties, | ||
wmOperatorCallContext | context, | ||
int | flag, | ||
PointerRNA * | r_opptr | ||
) |
Definition at line 1368 of file interface_layout.c.
References blender::compositor::context, uiTextIconPadFactor::icon, ot, PointerRNA_NULL, UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), and WM_operatortype_find().
Referenced by add_attribute_search_or_value_buttons(), blender::ed::asset_browser::AssetCatalogTreeViewItem::build_context_menu(), constraint_ops_extra_draw(), gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), modifier_ops_extra_draw(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), blender::nodes::node_composite_switchview_cc::node_composit_buts_switch_view_ex(), blender::nodes::node_composite_image_cc::node_composit_buts_viewlayers(), panel_draw(), recent_files_menu_draw(), screen_area_menu_items(), screen_area_options_invoke(), subdivisions_panel_draw(), ui_popup_context_menu_for_button(), uiItemO(), uiTemplateOperatorRedoProperties(), uiTemplateRecentFiles(), and view3d_panel_vgroup().
void uiItemFullO_ptr | ( | uiLayout * | layout, |
wmOperatorType * | ot, | ||
const char * | name, | ||
int | icon, | ||
IDProperty * | properties, | ||
wmOperatorCallContext | context, | ||
int | flag, | ||
PointerRNA * | r_opptr | ||
) |
Definition at line 1342 of file interface_layout.c.
References blender::compositor::context, uiTextIconPadFactor::icon, ot, and uiItemFullO_ptr_ex().
Referenced by dyntopo_warning_popup(), move_to_collection_menu_create(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), parent_set_invoke_menu(), poselib_add_menu_invoke__replacemenu(), screen_user_menu_draw(), template_operator_property_buts_draw_single(), ui_but_menu_add_path_operators(), ui_popup_context_menu_for_button(), uiItemBooleanO(), uiItemEnumO_ptr(), uiItemEnumO_string(), uiItemEnumO_value(), uiItemFloatO(), uiItemFullO(), uiItemIntO(), uiItemsFullEnumO_items(), uiItemStringO(), uiTemplateEditModeSelection(), unpack_menu(), WM_operator_confirm_message_ex(), and workspace_append_button().
|
static |
Operator Item
r_opptr | Optional, initialize with operator properties when not NULL. Will always be written to even in the case of errors. |
Definition at line 1210 of file interface_layout.c.
References uiLayout::active_default, BLI_assert, uiLayoutRoot::block, blender::compositor::context, PointerRNA::data, uiLayout::emboss, uiBut::flag, uiTextIconPadFactor::icon, IDP_GROUP, IDP_New(), NULL, uiBut::optype, ot, uiLayout::redalert, uiLayout::root, wmOperatorType::srna, uiLayoutRoot::type, UI_block_layout_set_current(), ui_block_new_button_group(), UI_BTYPE_BUT, UI_BUT_ACTIVE_DEFAULT, UI_but_drawflag_disable(), UI_but_flag_enable(), UI_BUT_ICON_LEFT, UI_but_operator_ptr_get(), UI_BUT_REDALERT, UI_EMBOSS_NONE_OR_STATUS, UI_ITEM_O_DEPRESS, UI_ITEM_R_ICON_ONLY, UI_ITEM_R_NO_BG, UI_LAYOUT_MENU, UI_SELECT_DRAW, ui_text_icon_width(), UI_UNIT_Y, uiDefButO_ptr(), uiDefIconButO_ptr(), uiDefIconTextButO_ptr(), w(), and WM_operatortype_name().
Referenced by uiItemFullO_ptr(), and uiItemFullOMenuHold_ptr().
void uiItemFullOMenuHold_ptr | ( | uiLayout * | layout, |
wmOperatorType * | ot, | ||
const char * | name, | ||
int | icon, | ||
IDProperty * | properties, | ||
wmOperatorCallContext | context, | ||
int | flag, | ||
const char * | menu_id, | ||
PointerRNA * | r_opptr | ||
) |
Definition at line 1354 of file interface_layout.c.
References BLI_strdup(), blender::compositor::context, uiTextIconPadFactor::icon, ot, UI_but_func_hold_set(), ui_item_menu_hold(), and uiItemFullO_ptr_ex().
void uiItemFullR | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
PropertyRNA * | prop, | ||
int | index, | ||
int | value, | ||
int | flag, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 2012 of file interface_layout.c.
References Freestyle::a, uiBut::a1, uiLayout::activate_init, BLI_assert, BLI_insertlinkafter(), BLI_remlink(), uiLayoutRoot::block, uiBlock::buttons, uiBut::drawflag, ELEM, uiBut::emboss, uiLayout::emboss, ListBase::first, uiBlock::flag, uiItem::flag, uiBut::icon, uiLayout::item, ListBase::last, len, max_ii(), uiBut::next, NULL, PROP_BOOLEAN, PROP_ENUM, PROP_ENUM_FLAG, PROP_FLOAT, PROP_ICONS_CONSECUTIVE, PROP_INT, PROP_POINTER, PROP_STRING, PROP_STRING_SEARCH_SUGGESTION, ptr, uiLayout::redalert, RNA_ENUM_VALUE, RNA_NO_INDEX, RNA_property_array_check(), RNA_property_array_item_char(), RNA_property_array_length(), RNA_property_boolean_get(), RNA_property_boolean_get_index(), RNA_property_enum_get(), RNA_property_flag(), RNA_property_string_search_flag(), RNA_property_type(), RNA_property_ui_icon(), RNA_property_ui_name(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, uiLayout::root, uiLayout::space, uiButNumber::step_size, str, uiBut::str, STRNCPY_RLEN, uiBut::type, uiLayoutRoot::type, type, UI_block_layout_set_current(), UI_BLOCK_LIST_ITEM, ui_block_new_button_group(), UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_ICON_TOGGLE_N, UI_BTYPE_LABEL, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_ROW, UI_BTYPE_TEXT, UI_BTYPE_TOGGLE, UI_BUT_ACTIVATE_ON_INIT, ui_but_add_search(), ui_but_change_type(), UI_BUT_CHECKBOX_INVERT, UI_but_flag_enable(), UI_BUT_LIST_ITEM, UI_BUT_REDALERT, UI_BUT_TEXT_LEFT, UI_BUT_TEXT_RIGHT, ui_def_but_icon_clear(), UI_EMBOSS_NONE, UI_EMBOSS_NONE_OR_STATUS, ui_item_array(), ui_item_enum_expand(), UI_ITEM_INSIDE_PROP_SEP, ui_item_name_add_colon(), UI_ITEM_PROP_DECORATE, UI_ITEM_PROP_DECORATE_NO_PAD, UI_ITEM_PROP_SEP, UI_ITEM_PROP_SEP_DIVIDE, ui_item_prop_split_layout_hack(), UI_ITEM_R_CHECKBOX_INVERT, UI_ITEM_R_COMPACT, UI_ITEM_R_EXPAND, UI_ITEM_R_FORCE_BLANK_DECORATE, UI_ITEM_R_ICON_NEVER, UI_ITEM_R_ICON_ONLY, UI_ITEM_R_NO_BG, UI_ITEM_R_SLIDER, UI_ITEM_R_SPLIT_EMPTY_NAME, UI_ITEM_R_TOGGLE, ui_item_rna_is_expand(), ui_item_rna_size(), ui_item_with_label(), ui_layout_heading_find(), ui_layout_heading_label_add(), UI_LAYOUT_HORIZONTAL, UI_LAYOUT_MENU, UI_LAYOUT_PIEMENU, UI_MAX_DRAW_STR, UI_MAX_NAME_STR, UI_UNIT_Y, uiDefAutoButR(), uiDefBut(), uiDefButR_prop(), uiDefIconButR_prop(), uiDefIconTextButR_prop(), uiItemDecoratorR_prop(), uiLayoutColumn(), uiLayoutGetLocalDir(), uiLayoutRow(), uiLayoutSplit(), and w().
Referenced by blur_panel_draw(), CurveProfile_buttons_layout(), generator_panel_draw(), intersection_panel_draw(), material_mask_panel_draw(), panel_draw(), screen_user_menu_draw(), template_keymap_item_properties(), UI_pie_menu_invoke_from_rna_enum(), uiDefAutoButsRNA(), uiItemEnumR(), uiItemEnumR_prop(), uiItemEnumR_string_prop(), uiItemFullR_with_menu(), uiItemFullR_with_popover(), uiItemR(), uilist_draw_item_default(), uiTemplateAnyID(), and uiTemplateAssetView().
void uiItemFullR_with_menu | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
PropertyRNA * | prop, | ||
int | index, | ||
int | value, | ||
int | flag, | ||
const char * | name, | ||
int | icon, | ||
const char * | menu_type | ||
) |
Definition at line 2495 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::buttons, ListBase::last, uiBut::next, NULL, ptr, RNA_property_identifier(), RNA_struct_identifier(), RNA_warning, uiBut::rnaprop, uiLayout::root, uiBut::type, PointerRNA::type, UI_BTYPE_MENU, ui_but_rna_menu_convert_to_menu_type(), ui_item_disabled(), and uiItemFullR().
void uiItemFullR_with_popover | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
struct PropertyRNA * | prop, | ||
int | index, | ||
int | value, | ||
int | flag, | ||
const char * | name, | ||
int | icon, | ||
const char * | panel_type | ||
) |
Use a wrapper function since re-implementing all the logic in this function would be messy.
Definition at line 2464 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::buttons, ELEM, ListBase::last, uiBut::next, NULL, ptr, RNA_property_identifier(), RNA_struct_identifier(), RNA_warning, uiBut::rnaprop, uiLayout::root, uiBut::type, PointerRNA::type, UI_BTYPE_COLOR, UI_BTYPE_MENU, ui_but_rna_menu_convert_to_panel_type(), ui_item_disabled(), and uiItemFullR().
void uiItemIntO | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
const char * | opname, | ||
const char * | propname, | ||
int | value | ||
) |
Definition at line 1778 of file interface_layout.c.
References PointerRNA::data, uiTextIconPadFactor::icon, NULL, uiLayoutRoot::opcontext, ot, ptr, RNA_int_set(), uiLayout::root, UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by ED_collection_hide_menu_draw(), move_to_collection_menu_create(), move_to_collection_menus_items(), pose_groups_menu_invoke(), poselib_add_menu_invoke(), repeat_history_invoke(), spreadsheet_filter_panel_draw_header(), and undo_history_draw_menu().
Definition at line 3254 of file interface_layout.c.
References uiTextIconPadFactor::icon, and uiItemL_().
Referenced by add_attribute_search_or_value_buttons(), blender::ui::BasicTreeViewItem::add_label(), bake_panel_draw(), block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_forwardcompat_dialog(), blender::ed::spreadsheet::GeometryDataSetTreeViewItem::build_row(), buttons_panel_context_draw(), chaining_panel_draw(), composition_panel_draw(), draw_constraint_header(), draw_property_for_output_socket(), driver_dvar_invalid_name_query_cb(), dyntopo_warning_popup(), edge_types_panel_draw(), face_mark_panel_draw(), face_mark_panel_draw_header(), file_forwardcompat_detailed_info_show(), fmodifier_panel_header(), generator_panel_draw(), gpencil_modifier_panel_end(), gpencil_modifier_panel_header(), graph_draw_driven_property_panel(), graph_draw_driver_settings_panel(), graph_panel_drivers_popover(), graph_panel_key_properties(), graph_panel_properties(), image_new_draw(), internal_dependencies_panel_draw(), menu_add_shortcut(), menu_change_shortcut(), metadata_panel_draw_field(), modifier_panel_end(), nla_panel_animdata(), nla_panel_stripname(), blender::ed::space_node::node_buts_image_user(), blender::nodes::node_composite_blur_cc::node_composit_buts_blur(), blender::nodes::node_composite_channel_matte_cc::node_composit_buts_channel_matte(), blender::nodes::node_composite_color_spill_cc::node_composit_buts_color_spill(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection_ex(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy(), blender::nodes::node_composite_directionalblur_cc::node_composit_buts_dblur(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::nodes::node_composite_denoise_cc::node_composit_buts_denoise(), blender::nodes::node_composite_distance_matte_cc::node_composit_buts_distance_matte(), blender::nodes::node_composite_double_edge_mask_cc::node_composit_buts_double_edge_mask(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), blender::nodes::node_composite_vec_blur_cc::node_composit_buts_vecblur(), blender::ed::space_node::node_file_output_socket_draw(), blender::nodes::node_shader_tex_sky_cc::node_shader_buts_tex_sky(), blender::nodes::node_shader_vertex_color_cc::node_shader_buts_vertex_color(), blender::ed::space_node::node_socket_button_label(), blender::ed::space_node::node_socket_undefined_draw(), blender::ed::space_node::node_socket_undefined_interface_draw(), occlusion_panel_draw(), options_light_reference_draw(), options_panel_draw(), output_attribute_panel_draw(), panel_draw(), recent_files_menu_draw(), screen_user_menu_draw(), shaderfx_panel_end(), shaderfx_panel_header(), spreadsheet_filter_panel_draw(), spreadsheet_filter_panel_draw_header(), spreadsheet_footer_region_draw(), blender::ed::space_node::std_node_socket_draw(), blender::ui::template_breadcrumbs(), template_keymap_item_properties(), template_operator_property_buts_draw_single(), template_texture_user_menu(), ui_def_but_rna__menu(), ui_def_but_rna__menu_type(), ui_def_but_rna__panel_type(), ui_item_enum_expand_exec(), ui_item_menu_hold(), ui_item_with_label(), ui_layout_heading_label_add(), blender::ed::space_node::ui_node_draw_input(), blender::ed::space_node::ui_node_menu_column(), ui_paneltype_draw_impl(), UI_popup_menu_reports(), ui_template_list_layout_draw(), blender::ed::space_node::ui_template_node_link_menu(), ui_template_palette_menu(), uiDefAutoButsRNA(), uiItemsEnumR(), uiItemsFullEnumO_items(), uilist_draw_item_default(), uiTemplateAnyID(), uiTemplateCacheFileProcedural(), uiTemplateEventFromKeymapItem(), uiTemplateImageInfo(), uiTemplateImageSettings(), uiTemplateInputStatus(), uiTemplateMovieclipInformation(), uiTemplateStatusInfo(), uiTemplateTextureUser(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_posearmature_buts(), v3d_transform_butsR(), vgroup_panel_draw(), and WM_window_modal_keymap_status_draw().
Definition at line 3191 of file interface_layout.c.
References uiLayoutRoot::block, uiBut::drawflag, uiBut::flag, uiBlock::flag, uiTextIconPadFactor::icon, NULL, uiLayout::redalert, uiLayout::root, uiLayoutRoot::type, UI_block_layout_set_current(), UI_BLOCK_LIST_ITEM, ui_block_new_button_group(), UI_BTYPE_LABEL, UI_but_flag_enable(), UI_BUT_LIST_ITEM, UI_BUT_REDALERT, UI_BUT_TEXT_LEFT, UI_BUT_TEXT_RIGHT, UI_LAYOUT_ALIGN_RIGHT, UI_LAYOUT_MENU, ui_text_icon_width_ex(), ui_text_pad_none, UI_UNIT_Y, uiDefBut(), uiDefIconBut(), uiDefIconTextBut(), uiLayoutGetAlignment(), and w().
Referenced by uiItemL(), uiItemL_ex(), uiItemL_respect_property_split(), and uiItemLDrag().
void uiItemL_ex | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
const bool | highlight, | ||
const bool | redalert | ||
) |
Definition at line 3239 of file interface_layout.c.
References uiTextIconPadFactor::icon, UI_but_flag_enable(), UI_BUT_REDALERT, UI_SELECT_DRAW, and uiItemL_().
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_forwardcompat_dialog(), and wm_block_create_about().
Helper to add a label and creates a property split layout if needed.
Definition at line 3274 of file interface_layout.c.
References uiPropertySplitWrapper::decorate_column, uiItem::flag, uiTextIconPadFactor::icon, uiLayout::item, uiPropertySplitWrapper::label_column, uiPropertySplitWrapper::property_row, uiTextIconPadFactor::text, UI_block_layout_set_current(), ui_item_name_add_colon(), UI_ITEM_PROP_SEP, UI_MAX_NAME_STR, uiItemL_(), uiItemPropertySplitWrapperCreate(), and uiLayoutGetBlock().
Referenced by graph_panel_key_properties(), template_ID(), ui_item_with_label(), and ui_layout_heading_label_add().
void uiItemLDrag | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | name, | ||
int | icon | ||
) |
Label icon for dragging.
Definition at line 3296 of file interface_layout.c.
References uiTextIconPadFactor::icon, PointerRNA::owner_id, ptr, RNA_struct_is_ID(), PointerRNA::type, UI_but_drag_set_id(), and uiItemL_().
Referenced by buttons_panel_context_draw().
Definition at line 3009 of file interface_layout.c.
References uiTextIconPadFactor::icon, NULL, RNA_warning, uiItemM_ptr(), and WM_menutype_find().
Referenced by context_menu_invoke(), and template_operator_property_buts_draw_single().
Menu.
Definition at line 2983 of file interface_layout.c.
References uiLayoutRoot::block, C, CTX_IFACE_, MenuType::description, uiBlock::evil_C, uiTextIconPadFactor::icon, MenuType::label, NULL, uiLayout::root, TIP_, MenuType::translation_context, uiLayoutRoot::type, ui_item_menu(), ui_item_menutype_func(), UI_LAYOUT_MENU, and WM_menutype_poll().
Referenced by screen_user_menu_draw(), ui_popup_context_menu_for_button(), and uiItemM().
Menu contents.
Definition at line 3019 of file interface_layout.c.
References uiLayoutRoot::block, C, uiLayout::context, CTX_store_get(), CTX_store_set(), uiBlock::evil_C, NULL, RNA_warning, uiLayout::root, UI_menutype_draw(), WM_menutype_find(), and WM_menutype_poll().
Referenced by outliner_operator_menu().
void uiItemMenuEnumFullO | ( | uiLayout * | layout, |
bContext * | C, | ||
const char * | opname, | ||
const char * | propname, | ||
const char * | name, | ||
int | icon, | ||
PointerRNA * | r_opptr | ||
) |
Definition at line 3504 of file interface_layout.c.
References C, ot, RNA_warning, wmOperatorType::srna, ui_item_disabled(), UI_OPERATOR_ERROR_RET, uiItemMenuEnumFullO_ptr(), and WM_operatortype_find().
Referenced by uiItemMenuEnumO().
void uiItemMenuEnumFullO_ptr | ( | uiLayout * | layout, |
bContext * | C, | ||
wmOperatorType * | ot, | ||
const char * | propname, | ||
const char * | name, | ||
int | icon, | ||
PointerRNA * | r_opptr | ||
) |
Definition at line 3459 of file interface_layout.c.
References BLI_assert, BLI_strncpy(), uiLayoutRoot::block, C, PointerRNA::data, uiBlock::flag, wmOperatorType::idname, wmOperatorType::invoke, MEM_callocN, menu_item_enum_opname_menu(), NULL, uiLayoutRoot::opcontext, MenuItemLevel::opcontext, MenuItemLevel::opname, uiBut::opptr, ot, wmOperatorType::prop, MenuItemLevel::propname, uiLayout::root, wmOperatorType::srna, uiLayoutRoot::type, UI_BLOCK_LOOP, ui_but_add_shortcut(), ui_item_menu(), UI_LAYOUT_MENU, WM_key_event_operator_string(), WM_operator_properties_alloc(), WM_operator_properties_create_ptr(), and WM_operatortype_name().
Referenced by uiItemMenuEnumFullO().
void uiItemMenuEnumO | ( | uiLayout * | layout, |
bContext * | C, | ||
const char * | opname, | ||
const char * | propname, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 3525 of file interface_layout.c.
References C, NULL, and uiItemMenuEnumFullO().
Referenced by file_panel_asset_catalog_buttons_draw(), graph_panel_modifiers(), and nla_panel_modifiers().
void uiItemMenuEnumR | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 3569 of file interface_layout.c.
References ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), and uiItemMenuEnumR_prop().
void uiItemMenuEnumR_prop | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
PropertyRNA * | prop, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 3544 of file interface_layout.c.
References BLI_strncpy(), MEM_callocN, menu_item_enum_rna_menu(), NULL, uiLayoutRoot::opcontext, MenuItemLevel::opcontext, MenuItemLevel::propname, ptr, RNA_property_description(), RNA_property_identifier(), RNA_property_ui_name(), MenuItemLevel::rnapoin, uiLayout::root, uiLayoutRoot::type, ui_item_menu(), and UI_LAYOUT_MENU.
Referenced by uiItemMenuEnumR().
void uiItemMenuF | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
uiMenuCreateFunc | func, | ||
void * | arg | ||
) |
Level items.
Definition at line 3415 of file interface_layout.c.
References uiTextIconPadFactor::icon, NULL, and ui_item_menu().
Referenced by draw_constraint_header(), gpencil_modifier_panel_header(), modifier_panel_header(), move_to_collection_menus_items(), poselib_add_menu_invoke(), shaderfx_panel_header(), ui_popup_context_menu_for_button(), and workspace_add_invoke().
void uiItemMenuFN | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
uiMenuCreateFunc | func, | ||
void * | argN | ||
) |
Version of uiItemMenuF that free's argN
.
Definition at line 3424 of file interface_layout.c.
References uiTextIconPadFactor::icon, and ui_item_menu().
Referenced by workspace_add_invoke().
Definition at line 1831 of file interface_layout.c.
References uiTextIconPadFactor::icon, NULL, uiLayoutRoot::opcontext, uiLayout::root, and uiItemFullO().
Referenced by bake_panel_draw(), blender::ed::asset_browser::AssetCatalogTreeViewItem::build_context_menu(), buttons_panel_context_draw(), colorband_tools_func(), constraint_ops_extra_draw(), draw_constraint_header(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), ED_screens_navigation_bar_tools_menu_create(), file_panel_asset_catalog_buttons_draw(), file_panel_execution_cancel_button(), file_panel_execution_execute_button(), generate_panel_draw(), gpencil_modifier_ops_extra_draw(), gpencil_modifier_panel_header(), gpencil_shaderfx_ops_extra_draw(), graph_draw_driver_settings_panel(), graph_panel_cursor(), graph_panel_drivers_popover(), graph_panel_modifiers(), modifier_ops_extra_draw(), modifier_panel_header(), nla_panel_actclip(), nla_panel_modifiers(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy_ex(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), blender::nodes::node_shader_script_cc::node_shader_buts_script(), override_idtemplate_menu_draw(), panel_draw(), parent_set_invoke_menu(), screen_area_menu_items(), shaderfx_panel_header(), shape_panel_draw(), spreadsheet_row_filters_layout(), subdivisions_panel_draw(), ui_popup_context_menu_for_button(), uiTemplateAssetView(), uiTemplateCacheFile(), uiTemplateCacheFileLayers(), uiTemplateImage(), uiTemplateMovieClip(), uiTemplateOperatorRedoProperties(), and workspace_add_invoke().
void uiItemPointerR | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
const char * | propname, | ||
PointerRNA * | searchptr, | ||
const char * | searchpropname, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 2865 of file interface_layout.c.
References ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, and uiItemPointerR_prop().
Referenced by draw_property_for_socket(), edbm_blend_from_shape_ui(), fading_panel_draw(), gpencil_modifier_masking_panel_draw(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__transChan(), layers_panel_draw(), modifier_vgroup_ui(), blender::nodes::node_composite_keyingscreen_cc::node_composit_buts_keyingscreen(), blender::nodes::node_composite_planetrackdeform_cc::node_composit_buts_planetrackdeform(), blender::nodes::node_composite_trackpos_cc::node_composit_buts_trackpos(), blender::nodes::node_shader_normal_map_cc::node_shader_buts_normal_map(), blender::nodes::node_shader_tangent_cc::node_shader_buts_tangent(), blender::nodes::node_shader_tex_pointdensity_cc::node_shader_buts_tex_pointdensity(), blender::nodes::node_shader_uvmap_cc::node_shader_buts_uvmap(), blender::nodes::node_shader_vertex_color_cc::node_shader_buts_vertex_color(), panel_draw(), texture_panel_draw(), vertex_group_panel_draw(), vgroup_panel_draw(), and weightvg_ui_common().
void uiItemPointerR_prop | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
PropertyRNA * | prop, | ||
PointerRNA * | searchptr, | ||
PropertyRNA * | searchprop, | ||
const char * | name, | ||
int | icon, | ||
bool | results_are_suggestions | ||
) |
Definition at line 2806 of file interface_layout.c.
References ELEM, uiItem::flag, uiLayout::item, PROP_COLLECTION, PROP_ENUM, PROP_POINTER, PROP_STRING, ptr, RNA_property_identifier(), RNA_property_pointer_type(), RNA_property_type(), RNA_property_ui_name(), RNA_struct_identifier(), RNA_struct_ui_icon(), RNA_warning, type, PointerRNA::type, ui_block_new_button_group(), ui_but_add_search(), ui_item_name_add_colon(), UI_ITEM_PROP_SEP, ui_item_rna_size(), ui_item_with_label(), UI_MAX_NAME_STR, UI_UNIT_X, uiLayoutGetBlock(), and w().
Referenced by uiItemPointerR().
void uiItemPopoverPanel | ( | uiLayout * | layout, |
const bContext * | C, | ||
const char * | panel_type, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 3147 of file interface_layout.c.
References C, uiTextIconPadFactor::icon, NULL, RNA_warning, uiItemPopoverPanel_ptr(), and WM_paneltype_find().
void uiItemPopoverPanel_ptr | ( | uiLayout * | layout, |
const bContext * | C, | ||
PanelType * | pt, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 3118 of file interface_layout.c.
References C, CTX_IFACE_, PanelType::description, PanelType::draw_header, uiBut::flag, uiTextIconPadFactor::icon, PanelType::label, NULL, PNL_POPOVER, PanelType::poll, uiLayout::root, PanelType::translation_context, uiBut::type, uiLayoutRoot::type, Panel::type, UI_BTYPE_POPOVER, UI_BUT_DISABLED, ui_item_menu(), ui_item_paneltype_func(), UI_LAYOUT_MENU, and uiLayoutRow().
Referenced by uiItemPopoverPanel(), and uiItemPopoverPanelFromGroup().
void uiItemPopoverPanelFromGroup | ( | uiLayout * | layout, |
bContext * | C, | ||
int | space_id, | ||
int | region_id, | ||
const char * | context, | ||
const char * | category | ||
) |
Definition at line 3158 of file interface_layout.c.
References BKE_regiontype_from_id(), BKE_spacetype_from_id(), C, blender::compositor::context, LISTBASE_FOREACH, NULL, ARegionType::paneltypes, RNA_warning, usdtokens::st(), STREQ, and uiItemPopoverPanel_ptr().
uiPropertySplitWrapper uiItemPropertySplitWrapperCreate | ( | uiLayout * | parent_layout | ) |
Normally, we handle the split layout in uiItemFullR(), but there are other cases where the logic is needed. Ideally, uiItemFullR() could just call this, but it currently has too many special needs.
Definition at line 3259 of file interface_layout.c.
References uiLayout::alignment, uiPropertySplitWrapper::decorate_column, uiPropertySplitWrapper::label_column, NULL, uiPropertySplitWrapper::property_row, UI_ITEM_PROP_SEP_DIVIDE, ui_item_prop_split_layout_hack(), UI_LAYOUT_ALIGN_RIGHT, uiLayoutColumn(), uiLayoutRow(), and uiLayoutSplit().
Referenced by blender::ed::space_node::ui_node_draw_input(), and uiItemL_respect_property_split().
void uiItemR | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
const char * | propname, | ||
int | flag, | ||
const char * | name, | ||
int | icon | ||
) |
Definition at line 2450 of file interface_layout.c.
References ptr, RNA_NO_INDEX, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), and uiItemFullR().
Referenced by add_attribute_search_button(), add_attribute_search_or_value_buttons(), advanced_panel_draw(), apply_armature_pose2bones_ui(), axis_mapping_panel_draw(), bake_panel_draw(), block_create_autorun_warning(), blur_panel_draw(), cache_file_layer_item(), caps_panel_draw(), chaining_panel_draw(), clamp_panel_draw(), colorband_buttons_layout(), component_menu(), composition_panel_draw(), constant_offset_draw(), constant_offset_header_draw(), curvature_header_draw(), curvature_panel_draw(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), custom_range_header_draw(), custom_range_panel_draw(), cycles_panel_draw(), data_panel_draw(), draw_constraint_header(), draw_fill_tile(), draw_property_for_socket(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), ed_screens_statusbar_menu_create(), ED_time_scrub_channel_search_draw(), edbm_bevel_ui(), edbm_blend_from_shape_ui(), edbm_decimate_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), edge_data_panel_draw(), edge_panel_draw(), edge_panel_draw_header(), edge_types_panel_draw(), envelope_panel_draw(), face_corner_panel_draw(), face_corner_panel_draw_header(), face_corner_uv_panel_draw(), face_corner_vcol_panel_draw(), face_mark_panel_draw(), face_mark_panel_draw_header(), face_panel_draw(), face_panel_draw_header(), fade_header_draw(), fade_panel_draw(), fading_header_draw(), fading_panel_draw(), falloff_panel_draw(), file_panel_asset_catalog_buttons_draw(), fmodifier_frame_range_draw(), fmodifier_frame_range_header_draw(), fmodifier_influence_draw(), fmodifier_panel_header(), fn_generator_panel_draw(), blender::nodes::node_fn_align_euler_to_vector_cc::fn_node_align_euler_to_vector_layout(), blender::nodes::node_fn_boolean_math_cc::fn_node_boolean_math_layout(), blender::nodes::fn_node_combine_color_layout(), blender::nodes::node_fn_float_to_int_cc::fn_node_float_to_int_layout(), blender::nodes::node_fn_input_bool_cc::fn_node_input_bool_layout(), blender::nodes::node_fn_input_color_cc::fn_node_input_color_layout(), blender::nodes::node_fn_input_int_cc::fn_node_input_int_layout(), blender::nodes::node_fn_input_string_cc::fn_node_input_string_layout(), blender::nodes::node_fn_input_vector_cc::fn_node_input_vector_layout(), blender::nodes::node_fn_random_value_cc::fn_node_random_value_layout(), blender::nodes::node_fn_rotate_euler_cc::fn_node_rotate_euler_layout(), blender::nodes::fn_node_separate_color_layout(), frame_range_header_draw(), frame_range_panel_draw(), generate_panel_draw(), generator_panel_draw(), blender::nodes::node_fn_compare_cc::geo_node_compare_layout(), blender::ed::geometry::geometry_attribute_convert_ui(), blender::ed::geometry::geometry_color_attribute_add_ui(), geometry_panel_draw(), gpencil_interpolate_seq_ui(), gpencil_modifier_curve_header_draw(), gpencil_modifier_masking_panel_draw(), gpencil_modifier_panel_header(), gpencil_stroke_normalize_ui(), graph_draw_driver_settings_panel(), graph_panel_cursor(), graph_panel_cursor_header(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__transChan(), graph_panel_key_properties(), graph_panel_properties(), image_new_draw(), image_save_as_draw(), intersection_panel_draw(), limits_panel_draw(), material_mask_panel_draw(), material_mask_panel_draw_header(), materials_panel_draw(), menu_add_shortcut(), menu_change_shortcut(), mix_mode_panel_draw(), modifier_panel_header(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time(), nla_panel_animated_strip_time_header(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_properties(), nla_panel_stripname(), blender::ed::space_node::node_buts_combsep_color(), blender::ed::space_node::node_buts_frame_ex(), blender::ed::space_node::node_buts_image_user(), blender::ed::space_node::node_buts_image_views(), blender::ed::space_node::node_buts_math(), blender::ed::space_node::node_buts_mix_rgb(), blender::ed::space_node::node_buts_normal(), blender::nodes::node_shader_output_linestyle_cc::node_buts_output_linestyle(), blender::ed::space_node::node_buts_output_shader(), blender::ed::space_node::node_buts_rgb(), blender::ed::space_node::node_buts_texture(), blender::ed::space_node::node_buts_time(), blender::ed::space_node::node_buts_value(), blender::nodes::node_composite_alpha_over_cc::node_composit_buts_alphaover(), blender::nodes::node_composite_antialiasing_cc::node_composit_buts_antialiasing(), blender::nodes::node_composite_bilateralblur_cc::node_composit_buts_bilateralblur(), blender::nodes::node_composite_blur_cc::node_composit_buts_blur(), blender::nodes::node_composite_bokehblur_cc::node_composit_buts_bokehblur(), blender::nodes::node_composite_bokehimage_cc::node_composit_buts_bokehimage(), blender::nodes::node_composite_boxmask_cc::node_composit_buts_boxmask(), blender::nodes::node_composite_brightness_cc::node_composit_buts_brightcontrast(), blender::nodes::node_composite_channel_matte_cc::node_composit_buts_channel_matte(), blender::nodes::node_composite_chroma_matte_cc::node_composit_buts_chroma_matte(), blender::nodes::node_composite_color_matte_cc::node_composit_buts_color_matte(), blender::nodes::node_composite_color_spill_cc::node_composit_buts_color_spill(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance_ex(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection_ex(), blender::ed::space_node::node_composit_buts_combsep_color(), blender::nodes::node_composite_composite_cc::node_composit_buts_composite(), blender::nodes::node_composite_convert_color_space_cc::node_composit_buts_convert_colorspace(), blender::nodes::node_composite_crop_cc::node_composit_buts_crop(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy(), blender::nodes::node_composite_directionalblur_cc::node_composit_buts_dblur(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::nodes::node_composite_denoise_cc::node_composit_buts_denoise(), blender::nodes::node_composite_despeckle_cc::node_composit_buts_despeckle(), blender::nodes::node_composite_diff_matte_cc::node_composit_buts_diff_matte(), blender::nodes::node_composite_dilate_cc::node_composit_buts_dilateerode(), blender::nodes::node_composite_distance_matte_cc::node_composit_buts_distance_matte(), blender::nodes::node_composite_double_edge_mask_cc::node_composit_buts_double_edge_mask(), blender::nodes::node_composite_ellipsemask_cc::node_composit_buts_ellipsemask(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), blender::nodes::node_composite_filter_cc::node_composit_buts_filter(), blender::nodes::node_composite_flip_cc::node_composit_buts_flip(), blender::nodes::node_composite_glare_cc::node_composit_buts_glare(), blender::nodes::node_composite_id_mask_cc::node_composit_buts_id_mask(), blender::nodes::node_composite_inpaint_cc::node_composit_buts_inpaint(), blender::nodes::node_composite_invert_cc::node_composit_buts_invert(), blender::nodes::node_composite_keying_cc::node_composit_buts_keying(), blender::nodes::node_composite_lensdist_cc::node_composit_buts_lensdist(), blender::nodes::node_composite_luma_matte_cc::node_composit_buts_luma_matte(), blender::nodes::node_composite_map_range_cc::node_composit_buts_map_range(), blender::nodes::node_composite_map_uv_cc::node_composit_buts_map_uv(), blender::nodes::node_composite_map_value_cc::node_composit_buts_map_value(), blender::nodes::node_composite_mask_cc::node_composit_buts_mask(), blender::nodes::node_composite_moviedistortion_cc::node_composit_buts_moviedistortion(), blender::nodes::node_composite_planetrackdeform_cc::node_composit_buts_planetrackdeform(), blender::nodes::node_composite_premulkey_cc::node_composit_buts_premulkey(), blender::nodes::node_composite_rotate_cc::node_composit_buts_rotate(), blender::nodes::node_composite_scale_cc::node_composit_buts_scale(), blender::nodes::node_composite_setalpha_cc::node_composit_buts_set_alpha(), blender::nodes::node_composite_split_viewer_cc::node_composit_buts_splitviewer(), blender::nodes::node_composite_stabilize2d_cc::node_composit_buts_stabilize2d(), blender::nodes::node_composite_sunbeams_cc::node_composit_buts_sunbeams(), blender::nodes::node_composite_switch_cc::node_composit_buts_switch(), blender::nodes::node_composite_tonemap_cc::node_composit_buts_tonemap(), blender::nodes::node_composite_trackpos_cc::node_composit_buts_trackpos(), blender::nodes::node_composite_transform_cc::node_composit_buts_transform(), blender::nodes::node_composite_translate_cc::node_composit_buts_translate(), blender::nodes::node_composite_vec_blur_cc::node_composit_buts_vecblur(), blender::nodes::node_composite_levels_cc::node_composit_buts_view_levels(), blender::nodes::node_composite_viewer_cc::node_composit_buts_viewer(), blender::nodes::node_composite_viewer_cc::node_composit_buts_viewer_ex(), blender::nodes::node_composite_image_cc::node_composit_buts_viewlayers(), blender::ed::space_node::node_composit_buts_ycc(), blender::nodes::node_composite_zcombine_cc::node_composit_buts_zcombine(), blender::nodes::node_geo_accumulate_field_cc::node_layout(), blender::nodes::node_geo_attribute_capture_cc::node_layout(), blender::nodes::node_geo_attribute_domain_size_cc::node_layout(), blender::nodes::node_geo_attribute_statistic_cc::node_layout(), blender::nodes::node_geo_boolean_cc::node_layout(), blender::nodes::node_geo_collection_info_cc::node_layout(), blender::nodes::node_geo_curve_fill_cc::node_layout(), blender::nodes::node_geo_curve_fillet_cc::node_layout(), blender::nodes::node_geo_curve_handle_type_selection_cc::node_layout(), blender::nodes::node_geo_curve_primitive_arc_cc::node_layout(), blender::nodes::node_geo_curve_primitive_bezier_segment_cc::node_layout(), blender::nodes::node_geo_curve_primitive_circle_cc::node_layout(), blender::nodes::node_geo_curve_primitive_line_cc::node_layout(), blender::nodes::node_geo_curve_primitive_quadrilateral_cc::node_layout(), blender::nodes::node_geo_curve_resample_cc::node_layout(), blender::nodes::node_geo_curve_sample_cc::node_layout(), blender::nodes::node_geo_curve_set_handle_type_cc::node_layout(), blender::nodes::node_geo_curve_spline_type_cc::node_layout(), blender::nodes::node_geo_curve_to_points_cc::node_layout(), blender::nodes::node_geo_curve_trim_cc::node_layout(), blender::nodes::node_geo_delete_geometry_cc::node_layout(), blender::nodes::node_geo_distribute_points_on_faces_cc::node_layout(), blender::nodes::node_geo_duplicate_elements_cc::node_layout(), blender::nodes::node_geo_extrude_mesh_cc::node_layout(), blender::nodes::node_geo_field_at_index_cc::node_layout(), blender::nodes::node_geo_image_texture_cc::node_layout(), blender::nodes::node_geo_input_material_cc::node_layout(), blender::nodes::node_geo_input_named_attribute_cc::node_layout(), blender::nodes::node_geo_interpolate_domain_cc::node_layout(), blender::nodes::node_geo_merge_by_distance_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_circle_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cone_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cylinder_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_line_cc::node_layout(), blender::nodes::node_geo_mesh_to_points_cc::node_layout(), blender::nodes::node_geo_mesh_to_volume_cc::node_layout(), blender::nodes::node_geo_object_info_cc::node_layout(), blender::nodes::node_geo_points_to_volume_cc::node_layout(), blender::nodes::node_geo_proximity_cc::node_layout(), blender::nodes::node_geo_raycast_cc::node_layout(), blender::nodes::node_geo_realize_instances_cc::node_layout(), blender::nodes::node_geo_scale_elements_cc::node_layout(), blender::nodes::node_geo_separate_geometry_cc::node_layout(), blender::nodes::node_geo_set_curve_handles_cc::node_layout(), blender::nodes::node_geo_store_named_attribute_cc::node_layout(), blender::nodes::node_geo_subdivision_surface_cc::node_layout(), blender::nodes::node_geo_switch_cc::node_layout(), blender::nodes::node_geo_transfer_attribute_cc::node_layout(), blender::nodes::node_geo_triangulate_cc::node_layout(), blender::nodes::node_geo_uv_unwrap_cc::node_layout(), blender::nodes::node_geo_viewer_cc::node_layout(), blender::nodes::node_geo_volume_to_mesh_cc::node_layout(), blender::nodes::node_geo_string_to_curves_cc::node_layout(), blender::nodes::node_shader_ambient_occlusion_cc::node_shader_buts_ambient_occlusion(), blender::nodes::node_shader_bsdf_anisotropic_cc::node_shader_buts_anisotropic(), blender::nodes::node_shader_attribute_cc::node_shader_buts_attribute(), blender::nodes::node_shader_bevel_cc::node_shader_buts_bevel(), blender::nodes::node_shader_bump_cc::node_shader_buts_bump(), blender::nodes::node_shader_clamp_cc::node_shader_buts_clamp(), blender::ed::space_node::node_shader_buts_displacement(), blender::ed::space_node::node_shader_buts_glossy(), blender::nodes::node_shader_bsdf_hair_cc::node_shader_buts_hair(), blender::nodes::node_shader_ies_light_cc::node_shader_buts_ies(), blender::nodes::node_shader_map_range_cc::node_shader_buts_map_range(), blender::nodes::node_shader_mapping_cc::node_shader_buts_mapping(), blender::nodes::node_shader_normal_map_cc::node_shader_buts_normal_map(), blender::nodes::node_shader_output_aov_cc::node_shader_buts_output_aov(), blender::nodes::node_shader_bsdf_principled_cc::node_shader_buts_principled(), blender::nodes::node_shader_bsdf_hair_principled_cc::node_shader_buts_principled_hair(), blender::nodes::node_shader_script_cc::node_shader_buts_script(), blender::nodes::node_shader_script_cc::node_shader_buts_script_ex(), blender::nodes::node_shader_subsurface_scattering_cc::node_shader_buts_subsurface(), blender::nodes::node_shader_tangent_cc::node_shader_buts_tangent(), blender::nodes::node_shader_tex_brick_cc::node_shader_buts_tex_brick(), blender::nodes::node_shader_tex_coord_cc::node_shader_buts_tex_coord(), blender::ed::space_node::node_shader_buts_tex_environment(), blender::ed::space_node::node_shader_buts_tex_environment_ex(), blender::nodes::node_shader_tex_gradient_cc::node_shader_buts_tex_gradient(), blender::ed::space_node::node_shader_buts_tex_image(), blender::nodes::node_shader_tex_magic_cc::node_shader_buts_tex_magic(), blender::nodes::node_shader_tex_musgrave_cc::node_shader_buts_tex_musgrave(), blender::nodes::node_shader_tex_noise_cc::node_shader_buts_tex_noise(), blender::nodes::node_shader_tex_pointdensity_cc::node_shader_buts_tex_pointdensity(), blender::nodes::node_shader_tex_sky_cc::node_shader_buts_tex_sky(), blender::nodes::node_shader_tex_voronoi_cc::node_shader_buts_tex_voronoi(), blender::nodes::node_shader_tex_wave_cc::node_shader_buts_tex_wave(), blender::nodes::node_shader_bsdf_toon_cc::node_shader_buts_toon(), blender::nodes::node_shader_uv_along_stroke_cc::node_shader_buts_uvalongstroke(), blender::nodes::node_shader_uvmap_cc::node_shader_buts_uvmap(), blender::nodes::node_shader_vector_math_cc::node_shader_buts_vect_math(), blender::nodes::node_shader_vector_transform_cc::node_shader_buts_vect_transform(), blender::nodes::node_shader_vector_rotate_cc::node_shader_buts_vector_rotate(), blender::nodes::node_shader_tex_white_noise_cc::node_shader_buts_white_noise(), blender::nodes::node_shader_wireframe_cc::node_shader_buts_wireframe(), blender::ed::space_node::node_texture_buts_bricks(), blender::ed::space_node::node_texture_buts_combsep_color(), blender::ed::space_node::node_texture_buts_output(), blender::ed::space_node::node_texture_buts_proc(), noise_panel_draw(), normals_panel_draw(), object_add_ui(), object_convert_ui(), object_offset_draw(), object_offset_header_draw(), occlusion_panel_draw(), offset_panel_draw(), options_light_reference_draw(), options_panel_draw(), panel_draw(), path_panel_draw(), path_panel_draw_header(), position_panel_draw(), profile_panel_draw(), random_header_draw(), random_panel_draw(), random_panel_header_draw(), relative_offset_draw(), relative_offset_header_draw(), restrictions_panel_draw(), segment_list_item(), blender::ed::sculpt_paint::select_random::select_random_ui(), sequencer_split_ui(), shaderfx_panel_header(), shading_panel_draw(), solver_options_panel_draw(), spreadsheet_filter_panel_draw(), spreadsheet_filter_panel_draw_header(), blender::ed::space_node::std_node_socket_draw(), blender::ed::space_node::std_node_socket_interface_draw(), stepped_panel_draw(), symmetry_panel_draw(), symmetry_panel_header_draw(), texture_paint_add_texture_paint_slot_ui(), texture_panel_draw(), tile_add_draw(), time_panel_draw(), time_remapping_panel_draw(), transform_panel_draw(), blender::ed::space_node::ui_node_draw_input(), ui_popup_context_menu_for_panel(), uilist_draw_filter_default(), uiTemplateCacheFile(), uiTemplateCacheFileProcedural(), uiTemplateCacheFileTimeSettings(), uiTemplateCacheFileVelocity(), uiTemplateColormanagedViewSettings(), uiTemplateColorspaceSettings(), uiTemplateImage(), uiTemplateImageFormatViews(), uiTemplateImageSettings(), uiTemplateImageStereo3d(), uiTemplateMovieClip(), uiTemplatePaintModeSelection(), uiTemplatePathBuilder(), uiTemplatePreview(), uiTemplateViewsFormat(), uv_panel_draw(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_transform_butsR(), velocity_panel_draw(), vert_vcol_panel_draw(), vertex_group_panel_draw(), vertex_panel_draw(), vertex_panel_draw_header(), vertex_vgroup_panel_draw(), vgroup_panel_draw(), view3d_panel_vgroup(), wave_header_draw(), wave_panel_draw(), weightvg_ui_common(), wm_open_mainfile_ui(), and wm_stereo3d_set_draw().
Separator item
Definition at line 3378 of file interface_layout.c.
References uiItemS_ex().
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), blender::ui::GridViewLayoutBuilder::build_from_view(), constraint_ops_extra_draw(), draw_constraint_header(), dyntopo_warning_popup(), ED_region_header_layout(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), edbm_bevel_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), file_panel_asset_catalog_buttons_draw(), fmodifier_influence_draw(), fmodifier_panel_header(), geometry_panel_draw(), gpencil_modifier_ops_extra_draw(), gpencil_modifier_panel_header(), gpencil_shaderfx_ops_extra_draw(), graph_draw_driver_settings_panel(), graph_panel_drivers_popover(), image_save_as_draw(), insert_key_menu_invoke(), modifier_ops_extra_draw(), modifier_panel_header(), move_to_collection_menu_create(), nla_panel_animdata(), nla_panel_properties(), blender::nodes::node_composite_directionalblur_cc::node_composit_buts_dblur(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), blender::nodes::node_shader_script_cc::node_shader_buts_script_ex(), outliner_operator_menu(), panel_draw(), pose_groups_menu_invoke(), screen_area_menu_items(), screen_area_options_invoke(), screen_user_menu_draw(), sequencer_split_ui(), shaderfx_panel_header(), subdivisions_panel_draw(), template_keymap_item_properties(), ui_def_but_rna__menu(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_slot_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_enum_expand_exec(), blender::ed::space_node::ui_node_draw_input(), ui_paneltype_draw_impl(), ui_popup_context_menu_for_button(), UI_popup_menu_begin_ex(), UI_popup_menu_reports(), uiItemsEnumR(), uiItemsFullEnumO_items(), uiTemplateColorPicker(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplatePreview(), workspace_add_invoke(), and workspace_add_menu().
Separator item
Definition at line 3351 of file interface_layout.c.
References uiLayoutRoot::block, NULL, uiLayout::root, UI_block_can_add_separator(), ui_block_is_menu(), UI_block_layout_set_current(), UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, UI_UNIT_X, and uiDefBut().
Referenced by blender::ui::BasicTreeViewItem::add_label(), block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_forwardcompat_dialog(), spreadsheet_filter_panel_draw_header(), uiItemS(), uiTemplateCacheFileLayers(), and wm_block_create_about().
uiLayout* uiItemsAlertBox | ( | uiBlock * | block, |
int | size, | ||
eAlertIcon | icon | ||
) |
Helper to add a big icon and create a split layout for alert popups. Returns the layout to place further items into the alert box.
Definition at line 6038 of file interface_layout.c.
References uiStyle::columnspace, float(), MAX2, uiFontStyle::points, size(), UI_block_layout(), UI_LAYOUT_ALIGN_LEFT, UI_LAYOUT_PANEL, UI_LAYOUT_VERTICAL, UI_style_get_dpi(), uiDefButAlert(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetAlignment(), uiLayoutSplit(), uiStyle::widget, and uiStyle::widgetlabel.
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), and block_create_save_file_forwardcompat_dialog().
Definition at line 1678 of file interface_layout.c.
References NULL, uiLayoutRoot::opcontext, uiLayout::root, and uiItemsFullEnumO().
Referenced by gpencil_layer_change_invoke(), keyingset_active_menu_invoke(), outliner_operator_menu(), select_orientation_invoke(), toggle_cyclic_invoke(), UI_pie_menu_invoke_from_operator_enum(), and unpack_all_invoke().
void uiItemsEnumR | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Definition at line 2628 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::buttons, uiBut::drawflag, uiBlock::evil_C, uiBlock::flag, free(), ListBase::last, MEM_freeN, PROP_ENUM, ptr, RNA_property_enum_items_gettexted(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::root, blender::io::alembic::split(), PointerRNA::type, UI_BLOCK_NO_FLIP, UI_BUT_TEXT_LEFT, ui_but_tip_from_enum_item(), ui_item_disabled(), uiItemEnumR_prop(), uiItemL(), uiItemS(), uiLayoutColumn(), and uiLayoutSplit().
Referenced by menu_item_enum_rna_menu().
void uiItemsFullEnumO | ( | uiLayout * | layout, |
const char * | opname, | ||
const char * | propname, | ||
IDProperty * | properties, | ||
wmOperatorCallContext | context, | ||
int | flag | ||
) |
Definition at line 1611 of file interface_layout.c.
References BLI_assert, uiLayoutRoot::block, blender::compositor::context, uiBlock::evil_C, free(), MEM_freeN, NULL, ot, PROP_ENUM, ptr, RNA_property_enum_items_gettexted(), RNA_property_enum_items_gettexted_all(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::root, wmOperatorType::srna, PointerRNA::type, ui_item_disabled(), ui_layout_is_radial(), uiItemsFullEnumO_items(), WM_operator_properties_create_ptr(), WM_operator_properties_sanitize(), and WM_operatortype_find().
Referenced by menu_item_enum_opname_menu(), uiItemsEnumO(), unpack_item_invoke(), and WM_menu_invoke_ex().
void uiItemsFullEnumO_items | ( | uiLayout * | layout, |
wmOperatorType * | ot, | ||
PointerRNA | ptr, | ||
PropertyRNA * | prop, | ||
IDProperty * | properties, | ||
wmOperatorCallContext | context, | ||
int | flag, | ||
const EnumPropertyItem * | item_array, | ||
int | totitem | ||
) |
Definition at line 1461 of file interface_layout.c.
References uiLayout::align, uiLayoutRoot::block, uiBlock::buttons, blender::compositor::context, PointerRNA::data, uiBlock::flag, EnumPropertyItem::icon, EnumPropertyItem::identifier, IDP_CopyProperty(), IDP_FreeProperty(), ListBase::last, EnumPropertyItem::name, NULL, ot, PIE_MAX_ITEMS, PROP_ENUM, ptr, RNA_property_enum_set(), RNA_property_identifier(), RNA_property_type(), RNA_struct_identifier(), RNA_warning, uiLayout::root, blender::io::alembic::split(), PointerRNA::type, UI_block_layout_set_current(), UI_BLOCK_NO_FLIP, UI_BTYPE_LABEL, ui_but_tip_from_enum_item(), UI_ITEM_R_ICON_ONLY, UI_LAYOUT_HORIZONTAL, ui_layout_is_radial(), ui_pie_menu_level_create(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconBut(), uiItemFullO_ptr(), uiItemL(), uiItemS(), uiLayoutColumn(), uiLayoutGetLocalDir(), uiLayoutRadial(), uiLayoutSplit(), EnumPropertyItem::value, and WM_operator_properties_create_ptr().
Referenced by uiItemsFullEnumO().
Flexible spacing.
Definition at line 3383 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::direction, NULL, uiLayout::root, ui_block_is_popup_any(), UI_block_layout_set_current(), UI_BTYPE_SEPR_SPACER, UI_DIR_RIGHT, UI_UNIT_X, UI_UNIT_Y, and uiDefBut().
Referenced by buttons_panel_context_draw(), and spreadsheet_footer_region_draw().
void uiItemStringO | ( | uiLayout * | layout, |
const char * | name, | ||
int | icon, | ||
const char * | opname, | ||
const char * | propname, | ||
const char * | value | ||
) |
Definition at line 1813 of file interface_layout.c.
References PointerRNA::data, uiTextIconPadFactor::icon, NULL, uiLayoutRoot::opcontext, ot, ptr, RNA_string_set(), uiLayout::root, UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by insert_key_menu_invoke(), modifier_panel_header(), and select_grouped_collection().
void uiItemTabsEnumR_prop | ( | uiLayout * | layout, |
bContext * | C, | ||
PointerRNA * | ptr, | ||
PropertyRNA * | prop, | ||
PointerRNA * | ptr_highlight, | ||
PropertyRNA * | prop_highlight, | ||
bool | icon_only | ||
) |
Definition at line 3582 of file interface_layout.c.
References uiLayoutRoot::block, C, NULL, ptr, uiLayout::root, UI_block_layout_set_current(), ui_item_enum_expand_tabs(), and UI_UNIT_Y.
Value item
Definition at line 3307 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::handle, uiTextIconPadFactor::icon, NULL, uiPopupBlockHandle::retvalue, uiLayout::root, uiLayoutRoot::type, UI_block_layout_set_current(), UI_BTYPE_BUT, UI_LAYOUT_MENU, ui_text_icon_width(), UI_UNIT_Y, uiDefButI(), uiDefIconButI(), uiDefIconTextButI(), and w().
Definition at line 4887 of file interface_layout.c.
References uiLayoutRoot::block, uiLayout::item, ITEM_LAYOUT_ABSOLUTE, MEM_callocN, uiLayout::root, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by ui_item_array(), uiLayoutAbsoluteBlock(), uiTemplateReportsBanner(), and uiTemplateStatusInfo().
Definition at line 4899 of file interface_layout.c.
References uiLayoutAbsolute(), and uiLayoutGetBlock().
Referenced by image_panel_uv(), uiTemplateColorRamp(), uiTemplateHeader(), uiTemplateIcon(), uiTemplateIconView(), uiTemplateMarker(), v3d_editvertex_buts(), v3d_object_dimension_buts(), and view3d_panel_vgroup().
Definition at line 4849 of file interface_layout.c.
References UI_BTYPE_ROUNDBOX, and ui_layout_box().
Referenced by blender::ui::TreeViewLayoutBuilder::build_from_tree(), graph_draw_driver_settings_panel(), and template_keymap_item_properties().
Definition at line 4752 of file interface_layout.c.
References uiLayoutRoot::block, uiStyle::buttonspacey, uiLayout::item, ITEM_LAYOUT_COLUMN, MEM_callocN, uiLayout::root, uiLayout::space, uiLayoutRoot::style, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by advanced_panel_draw(), axis_mapping_panel_draw(), bake_panel_draw(), block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_forwardcompat_dialog(), blur_panel_draw(), blender::ui::TreeViewLayoutBuilder::build_from_tree(), blender::ui::GridViewLayoutBuilder::build_from_view(), caps_panel_draw(), clamp_panel_draw(), component_menu(), composition_panel_draw(), constant_offset_draw(), constraint_ops_extra_draw(), curvature_panel_draw(), curvemap_buttons_layout(), custom_range_panel_draw(), cycles_panel_draw(), data_panel_draw(), draw_fill_tile(), ED_screens_header_tools_menu_create(), edbm_bevel_ui(), edbm_decimate_ui(), edge_data_panel_draw(), edge_types_panel_draw(), envelope_panel_draw(), fade_panel_draw(), fading_panel_draw(), file_forwardcompat_detailed_info_show(), file_panel_asset_catalog_buttons_draw(), fmodifier_frame_range_draw(), fn_generator_panel_draw(), blender::nodes::node_fn_input_bool_cc::fn_node_input_bool_layout(), blender::nodes::node_fn_input_int_cc::fn_node_input_int_layout(), blender::nodes::node_fn_input_vector_cc::fn_node_input_vector_layout(), frame_range_panel_draw(), generate_panel_draw(), generator_panel_draw(), gpencil_interpolate_seq_ui(), gpencil_modifier_masking_panel_draw(), gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), graph_draw_driver_settings_panel(), graph_panel_cursor(), graph_panel_cursor_header(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__singleProp(), graph_panel_driverVar__transChan(), graph_panel_key_properties(), graph_panel_properties(), hud_panel_operator_redo_draw(), image_new_draw(), image_save_as_draw(), intersection_panel_draw(), layers_panel_draw(), limits_panel_draw(), material_mask_panel_draw(), materials_panel_draw(), modifier_ops_extra_draw(), nla_panel_actclip(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time_header(), nla_panel_properties(), blender::ed::space_node::node_buts_image_user(), blender::ed::space_node::node_buts_image_views(), blender::ed::space_node::node_buts_mix_rgb(), blender::nodes::node_shader_output_linestyle_cc::node_buts_output_linestyle(), blender::ed::space_node::node_buts_rgb(), blender::ed::space_node::node_buts_time(), blender::nodes::node_composite_alpha_over_cc::node_composit_buts_alphaover(), blender::nodes::node_composite_antialiasing_cc::node_composit_buts_antialiasing(), blender::nodes::node_composite_bilateralblur_cc::node_composit_buts_bilateralblur(), blender::nodes::node_composite_blur_cc::node_composit_buts_blur(), blender::nodes::node_composite_channel_matte_cc::node_composit_buts_channel_matte(), blender::nodes::node_composite_chroma_matte_cc::node_composit_buts_chroma_matte(), blender::nodes::node_composite_color_matte_cc::node_composit_buts_color_matte(), blender::nodes::node_composite_color_spill_cc::node_composit_buts_color_spill(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), blender::nodes::node_composite_crop_cc::node_composit_buts_crop(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy(), blender::nodes::node_composite_directionalblur_cc::node_composit_buts_dblur(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::nodes::node_composite_despeckle_cc::node_composit_buts_despeckle(), blender::nodes::node_composite_diff_matte_cc::node_composit_buts_diff_matte(), blender::nodes::node_composite_distance_matte_cc::node_composit_buts_distance_matte(), blender::nodes::node_composite_double_edge_mask_cc::node_composit_buts_double_edge_mask(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), blender::nodes::node_composite_invert_cc::node_composit_buts_invert(), blender::nodes::node_composite_keyingscreen_cc::node_composit_buts_keyingscreen(), blender::nodes::node_composite_lensdist_cc::node_composit_buts_lensdist(), blender::nodes::node_composite_luma_matte_cc::node_composit_buts_luma_matte(), blender::nodes::node_composite_map_range_cc::node_composit_buts_map_range(), blender::nodes::node_composite_map_value_cc::node_composit_buts_map_value(), blender::nodes::node_composite_planetrackdeform_cc::node_composit_buts_planetrackdeform(), blender::nodes::node_composite_split_viewer_cc::node_composit_buts_splitviewer(), blender::nodes::node_composite_tonemap_cc::node_composit_buts_tonemap(), blender::nodes::node_composite_trackpos_cc::node_composit_buts_trackpos(), blender::nodes::node_composite_vec_blur_cc::node_composit_buts_vecblur(), blender::nodes::node_composite_viewer_cc::node_composit_buts_viewer_ex(), blender::nodes::node_composite_image_cc::node_composit_buts_viewlayers(), blender::nodes::node_composite_zcombine_cc::node_composit_buts_zcombine(), blender::nodes::node_shader_tex_brick_cc::node_shader_buts_tex_brick(), blender::nodes::node_shader_tex_sky_cc::node_shader_buts_tex_sky(), blender::ed::space_node::node_texture_buts_bricks(), blender::ed::space_node::node_texture_buts_proc(), noise_panel_draw(), normals_panel_draw(), object_add_ui(), object_offset_draw(), occlusion_panel_draw(), options_light_reference_draw(), options_panel_draw(), panel_draw(), path_panel_draw(), position_panel_draw(), profile_panel_draw(), relative_offset_draw(), solver_options_panel_draw(), blender::ed::space_node::std_node_socket_draw(), blender::ed::space_node::std_node_socket_interface_draw(), stepped_panel_draw(), symmetry_panel_draw(), template_add_button_search_menu(), template_operator_property_buts_draw_single(), texture_paint_add_texture_paint_slot_ui(), texture_panel_draw(), tile_add_draw(), time_panel_draw(), ui_def_but_rna__menu(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_local_sublayout(), blender::ed::space_node::ui_node_draw_input(), blender::ed::space_node::ui_node_menu_column(), ui_paneltype_draw_impl(), ui_popup_context_menu_for_button(), ui_template_list_layout_draw(), blender::ed::space_node::ui_template_node_link_menu(), uiDefAutoButsRNA(), uiItemDecoratorR_prop(), uiItemFullR(), uiItemPropertySplitWrapperCreate(), uiItemsAlertBox(), uiItemsEnumR(), uiItemsFullEnumO_items(), uiLayoutColumnWithHeading(), uiTemplateAssetView(), uiTemplateCacheFileLayers(), uiTemplateColormanagedViewSettings(), uiTemplateColorPicker(), uiTemplateHistogram(), uiTemplateImage(), uiTemplateImageInfo(), uiTemplateImageSettings(), uiTemplateImageStereo3d(), uiTemplateInputStatus(), uiTemplateLayers(), uiTemplateMarker(), uiTemplateMovieClip(), uiTemplateMovieclipInformation(), uiTemplatePalette(), uiTemplatePreview(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateViewsFormat(), uiTemplateWaveform(), undo_history_draw_menu(), uv_panel_draw(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_posearmature_buts(), v3d_transform_butsR(), vertex_group_panel_draw(), vgroup_panel_draw(), view3d_panel_transform(), view3d_panel_vgroup(), wm_block_create_about(), wm_block_create_redo(), wm_block_dialog_create(), wm_open_mainfile_ui(), and wm_stereo3d_set_draw().
Definition at line 4772 of file interface_layout.c.
References uiLayout::align, uiLayoutRoot::block, uiStyle::columnspace, uiLayout::item, ITEM_LAYOUT_COLUMN_FLOW, uiLayoutItemFlow::litem, MEM_callocN, uiLayoutItemFlow::number, uiLayout::root, uiLayout::space, uiLayoutRoot::style, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by template_keymap_item_properties().
Variant of uiLayoutColumn() that sets a heading label for the layout if the first item is added through uiItemFullR(). If split layout is used and the item has no string to add to the first split-column, the heading is added there instead. Otherwise the heading inserted with a new row.
Definition at line 4765 of file interface_layout.c.
References ui_layout_heading_set(), and uiLayoutColumn().
Referenced by chaining_panel_draw(), edbm_bevel_ui(), nla_panel_properties(), panel_draw(), and shading_panel_draw().
void uiLayoutContextCopy | ( | uiLayout * | layout, |
bContextStore * | context | ||
) |
Definition at line 5720 of file interface_layout.c.
References uiLayoutRoot::block, blender::compositor::context, uiLayout::context, uiBlock::contexts, CTX_store_add_all(), and uiLayout::root.
Referenced by ui_popover_create_block(), ui_popup_context_menu_for_button(), and ui_popup_menu_create().
Definition at line 5023 of file interface_layout.c.
References uiLayout::activate_init.
Definition at line 5013 of file interface_layout.c.
References uiLayout::active.
Definition at line 5018 of file interface_layout.c.
References uiLayout::active_default.
int uiLayoutGetAlignment | ( | uiLayout * | layout | ) |
Definition at line 5043 of file interface_layout.c.
References uiLayout::alignment.
Referenced by uiItemL_().
Definition at line 5545 of file interface_layout.c.
References uiLayoutRoot::block, and uiLayout::root.
Referenced by add_attribute_search_button(), asset_view_draw_item(), blender::ui::PreviewGridItem::build_grid_tile(), constraint_ops_extra_draw(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), draw_constraint_header(), envelope_panel_draw(), file_create_asset_catalog_tree_view_in_layout(), file_panel_execution_buttons_draw(), file_panel_operator(), fmodifier_panel_header(), gpencil_modifier_ops_extra_draw(), gpencil_modifier_panel_get_property_pointers(), gpencil_shaderfx_ops_extra_draw(), graph_draw_driver_settings_panel(), graph_panel_key_properties(), graph_panel_modifiers(), modifier_ops_extra_draw(), modifier_panel_get_property_pointers(), modifier_panel_header(), move_to_collection_menu_create(), nla_panel_actclip(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time(), nla_panel_animated_strip_time_header(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_modifiers(), nla_panel_properties(), nla_panel_stripname(), blender::ed::space_node::node_file_output_socket_draw(), blender::ed::space_node::node_geometry_add_attribute_search_button(), panel_draw(), shaderfx_panel_header(), blender::ed::spreadsheet::spreadsheet_data_set_panel_draw(), template_ID(), template_ID_tabs(), template_keymap_item_properties(), template_operator_property_buts_draw_single(), template_search_buttons(), template_texture_user_menu(), ui_but_change_type(), ui_def_but_rna__menu(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_slot_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_layout_add_but(), blender::ed::space_node::ui_node_draw_input(), blender::ed::space_node::ui_node_menu_column(), ui_popup_context_menu_for_button(), ui_popup_context_menu_for_panel(), ui_template_list_layout_draw(), blender::ed::space_node::ui_template_node_link_menu(), uiblock_layer_pass_buttons(), uiItemL_respect_property_split(), uiItemPointerR_prop(), uiLayoutAbsoluteBlock(), uiTemplateColorPicker(), uiTemplateComponentMenu(), uiTemplateConstraintHeader(), uiTemplateCryptoPicker(), uiTemplateCurveMapping(), uiTemplateCurveProfile(), uiTemplateFileSelectPath(), uiTemplateHistogram(), uiTemplateImage(), uiTemplateKeymapItemProperties(), uiTemplateLayers(), uiTemplateMarker(), uiTemplateMenuSearch(), uiTemplateMovieClip(), uiTemplateNodeLink(), uiTemplateNodeSocket(), uiTemplateOperatorRedoProperties(), uiTemplateOperatorSearch(), uiTemplatePalette(), uiTemplatePreview(), uiTemplateReportsBanner(), uiTemplateRunningJobs(), uiTemplateStatusInfo(), uiTemplateTextureShow(), uiTemplateTextureUser(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateWaveform(), view3d_panel_transform(), wm_block_dialog_create(), and workspace_add_menu().
bContextStore* uiLayoutGetContextStore | ( | uiLayout * | layout | ) |
Definition at line 5715 of file interface_layout.c.
References uiLayout::context.
Referenced by UI_panel_context_pointer_set(), ui_popup_context_menu_for_button(), and ui_template_list_layout_draw().
eUIEmbossType uiLayoutGetEmboss | ( | uiLayout * | layout | ) |
Definition at line 5073 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::emboss, uiLayout::emboss, uiLayout::root, and UI_EMBOSS_UNDEFINED.
Definition at line 5028 of file interface_layout.c.
References uiLayout::enabled.
Definition at line 5649 of file interface_layout.c.
References uiItem::flag, uiLayout::item, and UI_ITEM_FIXED_SIZE.
Definition at line 5038 of file interface_layout.c.
References uiLayout::keepaspect.
int uiLayoutGetLocalDir | ( | const uiLayout * | layout | ) |
Definition at line 458 of file interface_layout.c.
References uiLayout::item, ITEM_LAYOUT_ABSOLUTE, ITEM_LAYOUT_BOX, ITEM_LAYOUT_COLUMN, ITEM_LAYOUT_COLUMN_FLOW, ITEM_LAYOUT_GRID_FLOW, ITEM_LAYOUT_OVERLAP, ITEM_LAYOUT_ROOT, ITEM_LAYOUT_ROW, ITEM_LAYOUT_SPLIT, uiItem::type, UI_LAYOUT_HORIZONTAL, and UI_LAYOUT_VERTICAL.
Referenced by ui_item_enum_expand_elem_exec(), ui_item_local_sublayout(), uiItemFullR(), and uiItemsFullEnumO_items().
int uiLayoutGetOperatorContext | ( | uiLayout * | layout | ) |
Definition at line 5550 of file interface_layout.c.
References uiLayoutRoot::opcontext, and uiLayout::root.
Definition at line 5003 of file interface_layout.c.
References uiItem::flag, uiLayout::item, and UI_ITEM_PROP_DECORATE.
Definition at line 4993 of file interface_layout.c.
References uiItem::flag, uiLayout::item, and UI_ITEM_PROP_SEP.
Definition at line 5033 of file interface_layout.c.
References uiLayout::redalert.
Definition at line 5053 of file interface_layout.c.
References uiLayout::scale.
Definition at line 5058 of file interface_layout.c.
References uiLayout::scale.
Definition at line 5063 of file interface_layout.c.
References uiLayout::units.
Referenced by ui_block_func_POPUP().
Definition at line 5068 of file interface_layout.c.
References uiLayout::units.
int uiLayoutGetWidth | ( | uiLayout * | layout | ) |
Definition at line 5048 of file interface_layout.c.
References uiLayout::w.
Referenced by blender::ui::GridViewLayoutBuilder::build_from_view(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), ED_region_header_layout(), ui_popup_context_menu_for_button(), ui_template_list_layout_draw(), and uiTemplatePalette().
uiLayout* uiLayoutGridFlow | ( | uiLayout * | layout, |
bool | row_major, | ||
int | columns_len, | ||
bool | even_columns, | ||
bool | even_rows, | ||
bool | align | ||
) |
Definition at line 4786 of file interface_layout.c.
References uiLayout::align, uiLayoutRoot::block, uiLayoutItemGridFlow::columns_len, uiStyle::columnspace, uiLayoutItemGridFlow::even_columns, uiLayoutItemGridFlow::even_rows, uiLayout::item, ITEM_LAYOUT_GRID_FLOW, uiLayoutItemGridFlow::litem, MEM_callocN, uiLayout::root, uiLayoutItemGridFlow::row_major, uiLayout::space, uiLayoutRoot::style, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by blender::ui::GridViewLayoutBuilder::build_from_view(), and ui_template_list_layout_draw().
uiLayout* uiLayoutListBox | ( | uiLayout * | layout, |
uiList * | ui_list, | ||
PointerRNA * | actptr, | ||
PropertyRNA * | actprop | ||
) |
Definition at line 4866 of file interface_layout.c.
References uiBut::custom_data, uiBut::flag, RNA_property_description(), uiBut::rnapoin, uiBut::rnaprop, uiLayoutItemBx::roundbox, uiBut::tip, UI_BTYPE_LISTBOX, UI_BUT_UNDO, and ui_layout_box().
Referenced by ui_template_list_layout_draw().
Definition at line 4907 of file interface_layout.c.
References uiLayoutRoot::block, uiLayout::item, ITEM_LAYOUT_OVERLAP, MEM_callocN, uiLayout::root, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by blender::ui::TreeViewLayoutBuilder::build_row(), and ui_template_list_layout_draw().
Definition at line 4823 of file interface_layout.c.
References uiLayoutRoot::block, uiLayout::item, ITEM_LAYOUT_RADIAL, uiLayout::items, uiLayoutRoot::layout, LISTBASE_FOREACH, MEM_callocN, uiLayout::root, uiLayoutRoot::type, uiItem::type, UI_block_layout_set_current(), ui_item_local_sublayout(), UI_LAYOUT_PIEMENU, and ui_litem_init_from_parent().
Referenced by ui_item_enum_expand_exec(), UI_pie_menu_invoke_from_operator_enum(), UI_pie_menu_invoke_from_rna_enum(), ui_pie_menu_level_invoke(), and uiItemsFullEnumO_items().
Definition at line 4732 of file interface_layout.c.
References uiLayoutRoot::block, uiStyle::buttonspacex, uiLayout::item, ITEM_LAYOUT_ROW, MEM_callocN, uiLayout::root, uiLayout::space, uiLayoutRoot::style, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by add_attribute_search_or_value_buttons(), advanced_panel_draw(), armature_parent_clear_invoke(), armature_parent_set_invoke(), blender::ui::TreeViewLayoutBuilder::build_row(), buttons_panel_context_draw(), cache_file_layer_item(), clamp_panel_draw(), colorband_buttons_layout(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), data_panel_draw(), draw_constraint_header(), draw_property_for_output_socket(), draw_property_for_socket(), ED_collection_hide_menu_draw(), ed_panel_draw(), edbm_bevel_ui(), edbm_decimate_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), edge_types_panel_draw(), envelope_panel_draw(), falloff_panel_draw(), file_panel_asset_catalog_buttons_draw(), file_panel_execution_buttons_draw(), file_panel_execution_cancel_button(), file_panel_execution_execute_button(), fmodifier_influence_draw(), fmodifier_panel_header(), generate_panel_draw(), generator_panel_draw(), geometry_panel_draw(), gpencil_interpolate_seq_ui(), gpencil_modifier_masking_panel_draw(), gpencil_modifier_panel_end(), gpencil_modifier_panel_header(), gpencil_stroke_normalize_ui(), graph_draw_driven_property_panel(), graph_draw_driver_settings_panel(), graph_panel_driverVar__singleProp(), graph_panel_modifiers(), internal_dependencies_panel_draw(), intersection_panel_draw(), material_mask_panel_draw(), metadata_panel_draw_field(), mix_mode_panel_draw(), modifier_panel_end(), modifier_panel_header(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_animdata(), nla_panel_modifiers(), nla_panel_properties(), nla_panel_stripname(), blender::ed::space_node::node_buts_mix_rgb(), blender::nodes::node_shader_output_linestyle_cc::node_buts_output_linestyle(), blender::nodes::node_composite_blur_cc::node_composit_buts_blur(), blender::nodes::node_composite_boxmask_cc::node_composit_buts_boxmask(), blender::nodes::node_composite_channel_matte_cc::node_composit_buts_channel_matte(), blender::nodes::node_composite_color_spill_cc::node_composit_buts_color_spill(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection_ex(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy(), blender::nodes::node_composite_distance_matte_cc::node_composit_buts_distance_matte(), blender::nodes::node_composite_ellipsemask_cc::node_composit_buts_ellipsemask(), blender::nodes::node_composite_output_file_cc::node_composit_buts_file_output_ex(), blender::nodes::node_composite_scale_cc::node_composit_buts_scale(), blender::nodes::node_composite_split_viewer_cc::node_composit_buts_splitviewer(), blender::nodes::node_composite_image_cc::node_composit_buts_viewlayers(), blender::ed::space_node::node_file_output_socket_draw(), blender::nodes::node_shader_ies_light_cc::node_shader_buts_ies(), blender::nodes::node_shader_script_cc::node_shader_buts_script(), blender::nodes::node_shader_tangent_cc::node_shader_buts_tangent(), blender::ed::space_node::node_texture_buts_proc(), blender::ed::space_node::node_update_basis(), options_panel_draw(), panel_draw(), profile_panel_draw(), segment_list_item(), sequencer_split_ui(), shaderfx_panel_end(), shaderfx_panel_header(), shape_panel_draw(), spreadsheet_filter_panel_draw_header(), subdivisions_panel_draw(), template_add_button_search_menu(), blender::ui::template_breadcrumbs(), template_keymap_item_properties(), template_operator_property_buts_draw_single(), template_search_buttons(), ui_item_local_sublayout(), ui_item_prop_split_layout_hack(), ui_item_with_label(), blender::ed::space_node::ui_node_draw_input(), ui_paneltype_draw_impl(), ui_template_id(), ui_template_list_layout_draw(), ui_template_palette_menu(), uiblock_layer_pass_buttons(), uiItemFullR(), uiItemPopoverPanel_ptr(), uiItemPropertySplitWrapperCreate(), uiItemsAlertBox(), uiLayoutRowWithHeading(), uilist_draw_filter_default(), uiTemplateAnyID(), uiTemplateAssetView(), uiTemplateCacheFile(), uiTemplateCacheFileLayers(), uiTemplateCacheFileProcedural(), uiTemplateCacheFileTimeSettings(), uiTemplateColorPicker(), uiTemplateEditModeSelection(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateInputStatus(), uiTemplateLayers(), uiTemplateMovieClip(), uiTemplatePaintModeSelection(), uiTemplatePalette(), uiTemplatePathBuilder(), uiTemplatePreview(), uiTemplateRunningJobs(), undo_history_draw_menu(), vertex_group_panel_draw(), vgroup_panel_draw(), view3d_panel_vgroup(), wm_block_create_about(), WM_window_modal_keymap_status_draw(), and workspace_add_menu().
See uiLayoutColumnWithHeading().
Definition at line 4745 of file interface_layout.c.
References ui_layout_heading_set(), and uiLayoutRow().
Referenced by advanced_panel_draw(), data_panel_draw(), edbm_decimate_ui(), edge_types_panel_draw(), fmodifier_influence_draw(), intersection_panel_draw(), limits_panel_draw(), material_mask_panel_draw(), nla_panel_actclip(), options_panel_draw(), panel_draw(), restrictions_panel_draw(), stepped_panel_draw(), and uiTemplateCacheFileTimeSettings().
Definition at line 4943 of file interface_layout.c.
References uiLayout::activate_init.
Referenced by uiDefAutoButsRNA().
Definition at line 4933 of file interface_layout.c.
References blender::compositor::active, and uiLayout::active.
Referenced by advanced_panel_draw(), clamp_panel_draw(), composition_panel_draw(), constant_offset_draw(), curvature_panel_draw(), curve_header_draw(), curve_panel_draw(), custom_range_header_draw(), custom_range_panel_draw(), data_panel_draw(), ED_screens_header_tools_menu_create(), edbm_bevel_ui(), edbm_decimate_ui(), edge_panel_draw(), edge_types_panel_draw(), face_corner_panel_draw(), face_corner_uv_panel_draw(), face_corner_vcol_panel_draw(), face_mark_panel_draw(), face_panel_draw(), fade_panel_draw(), falloff_panel_draw(), fmodifier_frame_range_draw(), fmodifier_get_pointers(), fmodifier_influence_draw(), geometry_panel_draw(), gpencil_modifier_masking_panel_draw(), graph_panel_cursor(), internal_dependencies_panel_draw(), intersection_panel_draw(), limits_panel_draw(), material_mask_panel_draw(), material_mask_panel_draw_header(), materials_panel_draw(), modifier_panel_header(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_properties(), blender::ed::space_node::node_buts_image_user(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::nodes::node_composite_lensdist_cc::node_composit_buts_lensdist(), blender::nodes::node_composite_map_value_cc::node_composit_buts_map_value(), blender::ed::space_node::node_texture_buts_proc(), blender::ed::space_node::node_update_basis(), object_add_ui(), object_offset_draw(), occlusion_panel_draw(), offset_panel_draw(), options_light_reference_draw(), options_panel_draw(), panel_draw(), path_panel_draw(), profile_panel_draw(), random_panel_draw(), relative_offset_draw(), shaderfx_panel_header(), shading_panel_draw(), spreadsheet_filter_panel_draw(), spreadsheet_filter_panel_draw_header(), spreadsheet_row_filters_layout(), stepped_panel_draw(), symmetry_panel_draw(), template_keymap_item_properties(), uiTemplateCacheFileProcedural(), uiTemplateCacheFileTimeSettings(), uiTemplateImage(), uiTemplateMarker(), uiTemplateRunningJobs(), v3d_transform_butsR(), vert_vcol_panel_draw(), vertex_group_panel_draw(), vertex_panel_draw(), vertex_vgroup_panel_draw(), wave_panel_draw(), and wm_open_mainfile_ui().
Definition at line 4938 of file interface_layout.c.
References uiLayout::active_default.
Referenced by file_panel_execution_execute_button().
Definition at line 4963 of file interface_layout.c.
References uiLayout::alignment.
Referenced by add_attribute_search_or_value_buttons(), buttons_panel_context_draw(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), draw_property_for_output_socket(), fmodifier_panel_header(), gpencil_modifier_panel_header(), graph_draw_driven_property_panel(), graph_draw_driver_settings_panel(), internal_dependencies_panel_draw(), modifier_panel_header(), nla_panel_animdata(), blender::ed::space_node::node_update_basis(), spreadsheet_footer_region_draw(), blender::ui::template_breadcrumbs(), ui_layout_heading_label_add(), blender::ed::space_node::ui_node_draw_input(), uiItemsAlertBox(), uiTemplateAnyID(), uiTemplateImageInfo(), uiTemplateInputStatus(), uiTemplateMovieclipInformation(), and wm_block_create_about().
Definition at line 5760 of file interface_layout.c.
References PointerRNA::data, NULL, uiBut::opptr, RNA_pointer_create(), uiBut::rnapoin, uiBut::rnaprop, and uiLayoutSetContextPointer().
Referenced by graph_panel_drivers_popover(), ui_item_menu_hold(), and ui_popup_context_menu_for_button().
void uiLayoutSetContextPointer | ( | uiLayout * | layout, |
const char * | name, | ||
PointerRNA * | ptr | ||
) |
Definition at line 5709 of file interface_layout.c.
References uiLayoutRoot::block, uiLayout::context, uiBlock::contexts, CTX_store_add(), ptr, and uiLayout::root.
Referenced by asset_view_draw_item(), colorband_tools_func(), constraint_ops_extra_draw(), draw_constraint_header(), gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), graph_panel_drivers_popover(), modifier_ops_extra_draw(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_image(), blender::ed::space_node::node_composit_buts_image_ex(), blender::ed::space_node::node_shader_buts_tex_environment(), blender::ed::space_node::node_shader_buts_tex_image(), blender::ed::space_node::node_update_basis(), template_ID(), UI_panel_context_pointer_set(), uiLayoutSetContextFromBut(), uiTemplateCacheFile(), uiTemplateCacheFileLayers(), uiTemplateCacheFileProcedural(), uiTemplateCacheFileTimeSettings(), uiTemplateCacheFileVelocity(), uiTemplateImage(), and uiTemplateMovieClip().
void uiLayoutSetEmboss | ( | uiLayout * | layout, |
eUIEmbossType | emboss | ||
) |
Definition at line 4988 of file interface_layout.c.
References uiLayout::emboss.
Referenced by buttons_panel_context_draw(), draw_constraint_header(), fmodifier_panel_header(), gpencil_modifier_panel_header(), modifier_panel_header(), shaderfx_panel_header(), spreadsheet_filter_panel_draw_header(), and v3d_transform_butsR().
Definition at line 4948 of file interface_layout.c.
References enabled, and uiLayout::enabled.
Referenced by armature_parent_clear_invoke(), armature_parent_set_invoke(), bake_panel_draw(), chaining_panel_draw(), constraint_ops_extra_draw(), edge_types_panel_draw(), face_mark_panel_draw(), face_mark_panel_draw_header(), gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), graph_panel_properties(), hud_panel_operator_redo_draw(), intersection_panel_draw(), material_mask_panel_draw(), material_mask_panel_draw_header(), modifier_ops_extra_draw(), nla_panel_animated_strip_time(), nla_panel_evaluation(), blender::ed::space_node::node_buts_image_user(), occlusion_panel_draw(), options_light_reference_draw(), options_panel_draw(), panel_draw(), shape_panel_draw(), subdivisions_panel_draw(), ui_popup_context_menu_for_button(), uiTemplateCacheFileProcedural(), uiTemplateImage(), undo_history_draw_menu(), vgroup_panel_draw(), view3d_panel_vgroup(), wm_block_create_redo(), and wm_open_mainfile_ui().
Definition at line 5639 of file interface_layout.c.
References uiItem::flag, uiLayout::item, and UI_ITEM_FIXED_SIZE.
Referenced by file_panel_execution_cancel_button(), and file_panel_execution_execute_button().
void uiLayoutSetFunc | ( | uiLayout * | layout, |
uiMenuHandleFunc | handlefunc, | ||
void * | argv | ||
) |
Definition at line 5659 of file interface_layout.c.
References uiLayoutRoot::argv, uiLayoutRoot::handlefunc, and uiLayout::root.
Definition at line 4958 of file interface_layout.c.
References uiLayout::keepaspect.
Referenced by uiTemplatePreview().
void uiLayoutSetOperatorContext | ( | uiLayout * | layout, |
wmOperatorCallContext | opcontext | ||
) |
Definition at line 5654 of file interface_layout.c.
References uiLayoutRoot::opcontext, and uiLayout::root.
Referenced by constraint_ops_extra_draw(), draw_constraint_header(), ED_collection_hide_menu_draw(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), ED_screens_navigation_bar_tools_menu_create(), file_panel_execution_buttons_draw(), gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), menu_item_enum_opname_menu(), menu_item_enum_rna_menu(), menu_items_from_ui_create(), modifier_ops_extra_draw(), move_to_collection_invoke(), blender::ed::space_node::node_group_separate_invoke(), outliner_operator_menu(), poselib_add_menu_invoke(), poselib_add_menu_invoke__replacemenu(), recent_files_menu_draw(), ui_popover_create_block(), ui_popup_context_menu_for_button(), UI_popup_menu_begin_ex(), ui_popup_menu_create(), unpack_all_invoke(), unpack_item_invoke(), uv_mark_seam_invoke(), and WM_menu_invoke_ex().
Definition at line 5008 of file interface_layout.c.
References uiItem::flag, uiLayout::item, SET_FLAG_FROM_TEST, and UI_ITEM_PROP_DECORATE.
Referenced by cycles_panel_draw(), data_panel_draw(), draw_fill_tile(), draw_property_for_socket(), edbm_bevel_ui(), edbm_blend_from_shape_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), envelope_panel_draw(), fmodifier_frame_range_draw(), fn_generator_panel_draw(), blender::nodes::node_fn_align_euler_to_vector_cc::fn_node_align_euler_to_vector_layout(), generator_panel_draw(), blender::ed::geometry::geometry_attribute_convert_ui(), blender::ed::geometry::geometry_color_attribute_add_ui(), gpencil_interpolate_seq_ui(), gpencil_modifier_masking_panel_draw(), gpencil_stroke_normalize_ui(), graph_panel_cursor(), graph_panel_key_properties(), graph_panel_properties(), image_new_draw(), image_save_as_draw(), limits_panel_draw(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_animdata(), nla_panel_properties(), blender::nodes::node_geo_attribute_capture_cc::node_layout(), blender::nodes::node_geo_extrude_mesh_cc::node_layout(), blender::nodes::node_geo_merge_by_distance_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_circle_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cone_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cylinder_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_line_cc::node_layout(), blender::nodes::node_geo_mesh_to_volume_cc::node_layout(), blender::nodes::node_geo_points_to_volume_cc::node_layout(), blender::nodes::node_geo_store_named_attribute_cc::node_layout(), blender::nodes::node_geo_uv_unwrap_cc::node_layout(), blender::nodes::node_geo_volume_to_mesh_cc::node_layout(), blender::nodes::node_geo_string_to_curves_cc::node_layout(), noise_panel_draw(), output_attribute_panel_draw(), panel_draw(), profile_panel_draw(), screenshot_draw(), sequencer_split_ui(), spreadsheet_filter_panel_draw(), stepped_panel_draw(), template_operator_property_buts_draw_single(), texture_paint_add_texture_paint_slot_ui(), tile_add_draw(), blender::ed::space_node::ui_node_draw_input(), uiTemplateCacheFileTimeSettings(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateViewsFormat(), and wm_stereo3d_set_draw().
Definition at line 4998 of file interface_layout.c.
References uiItem::flag, uiLayout::item, SET_FLAG_FROM_TEST, and UI_ITEM_PROP_SEP.
Referenced by advanced_panel_draw(), axis_mapping_panel_draw(), bake_panel_draw(), blur_panel_draw(), caps_panel_draw(), chaining_panel_draw(), clamp_panel_draw(), composition_panel_draw(), constant_offset_draw(), curvature_panel_draw(), CurveProfile_buttons_layout(), custom_range_panel_draw(), cycles_panel_draw(), data_panel_draw(), draw_fill_tile(), edbm_average_normals_ui(), edbm_bevel_ui(), edbm_blend_from_shape_ui(), edbm_decimate_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), edbm_point_normals_ui(), edge_data_panel_draw(), edge_panel_draw(), edge_types_panel_draw(), envelope_panel_draw(), face_corner_panel_draw(), face_corner_uv_panel_draw(), face_corner_vcol_panel_draw(), face_mark_panel_draw(), face_panel_draw(), fade_panel_draw(), fading_panel_draw(), falloff_panel_draw(), fmodifier_frame_range_draw(), fn_generator_panel_draw(), blender::nodes::node_fn_align_euler_to_vector_cc::fn_node_align_euler_to_vector_layout(), frame_range_panel_draw(), generate_panel_draw(), generator_panel_draw(), blender::ed::geometry::geometry_attribute_convert_ui(), blender::ed::geometry::geometry_color_attribute_add_ui(), geometry_panel_draw(), gpencil_interpolate_seq_ui(), gpencil_modifier_masking_panel_draw(), gpencil_stroke_normalize_ui(), graph_panel_cursor(), graph_panel_key_properties(), graph_panel_properties(), image_new_draw(), image_save_as_draw(), intersection_panel_draw(), layers_panel_draw(), limits_panel_draw(), material_mask_panel_draw(), materials_panel_draw(), mix_mode_panel_draw(), nla_panel_actclip(), nla_panel_animated_strip_time(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_properties(), blender::nodes::node_geo_attribute_capture_cc::node_layout(), blender::nodes::node_geo_extrude_mesh_cc::node_layout(), blender::nodes::node_geo_merge_by_distance_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_circle_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cone_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cylinder_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_line_cc::node_layout(), blender::nodes::node_geo_mesh_to_volume_cc::node_layout(), blender::nodes::node_geo_points_to_volume_cc::node_layout(), blender::nodes::node_geo_store_named_attribute_cc::node_layout(), blender::nodes::node_geo_uv_unwrap_cc::node_layout(), blender::nodes::node_geo_volume_to_mesh_cc::node_layout(), blender::nodes::node_geo_string_to_curves_cc::node_layout(), noise_panel_draw(), normals_panel_draw(), object_add_ui(), object_convert_ui(), object_offset_draw(), occlusion_panel_draw(), offset_panel_draw(), options_light_reference_draw(), options_panel_draw(), output_attribute_panel_draw(), override_layers_panel_draw(), panel_draw(), path_panel_draw(), position_panel_draw(), profile_panel_draw(), random_panel_draw(), relative_offset_draw(), render_procedural_panel_draw(), restrictions_panel_draw(), screenshot_draw(), sequencer_split_ui(), shading_panel_draw(), solver_options_panel_draw(), spreadsheet_filter_panel_draw(), stepped_panel_draw(), symmetry_panel_draw(), template_operator_property_buts_draw_single(), texture_paint_add_texture_paint_slot_ui(), texture_panel_draw(), tile_add_draw(), time_panel_draw(), time_remapping_panel_draw(), transform_panel_draw(), ui_item_prop_split_layout_hack(), blender::ed::space_node::ui_node_draw_node(), uiDefAutoButsRNA(), uiTemplateCacheFile(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateViewsFormat(), uv_panel_draw(), velocity_panel_draw(), vert_vcol_panel_draw(), vertex_group_panel_draw(), vertex_panel_draw(), vertex_vgroup_panel_draw(), vgroup_panel_draw(), wave_panel_draw(), weightvg_ui_common(), and wm_stereo3d_set_draw().
Definition at line 4953 of file interface_layout.c.
References uiLayout::redalert.
Referenced by axis_mapping_panel_draw(), draw_constraint_header(), gpencil_modifier_masking_panel_draw(), gpencil_modifier_panel_header(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__singleProp(), graph_panel_driverVar__transChan(), modifier_panel_header(), panel_draw(), and shaderfx_panel_header().
Definition at line 4968 of file interface_layout.c.
References uiLayout::scale.
Referenced by file_panel_execution_cancel_button(), file_panel_execution_execute_button(), and uiTemplatePreview().
Definition at line 4973 of file interface_layout.c.
References uiLayout::scale.
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_forwardcompat_dialog(), ED_region_header_layout(), ED_time_scrub_channel_search_draw(), file_forwardcompat_detailed_info_show(), and file_panel_execution_buttons_draw().
void uiLayoutSetTooltipFunc | ( | uiLayout * | layout, |
uiButToolTipFunc | func, | ||
void * | arg, | ||
uiCopyArgFunc | copy_arg, | ||
uiFreeArgFunc | free_arg | ||
) |
Set tooltip function for all buttons in the layout. func, arg and free_arg are passed on to UI_but_func_tooltip_set, so their meaning is the same.
func | The callback function that gets called to get tooltip content |
arg | An optional opaque pointer that gets passed to func |
free_arg | An optional callback for freeing arg (can be set to e.g. MEM_freeN) |
copy_arg | An optional callback for duplicating arg in case UI_but_func_tooltip_set is being called on multiple buttons (can be set to e.g. MEM_dupallocN). If set to NULL, arg will be passed as-is to all buttons. |
Definition at line 5726 of file interface_layout.c.
References uiButtonItem::but, ITEM_BUTTON, uiLayout::items, LISTBASE_FOREACH, NULL, uiBut::type, UI_BTYPE_DECORATOR, UI_but_func_tooltip_set(), and uiLayoutSetTooltipFunc().
Referenced by blender::ed::space_node::node_socket_add_tooltip(), and uiLayoutSetTooltipFunc().
Definition at line 4978 of file interface_layout.c.
References uiLayout::units.
Referenced by constraint_ops_extra_draw(), gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), and modifier_ops_extra_draw().
Definition at line 4983 of file interface_layout.c.
References uiLayout::units.
Definition at line 4919 of file interface_layout.c.
References uiLayoutRoot::block, uiStyle::columnspace, ITEM_LAYOUT_SPLIT, MEM_callocN, uiLayout::root, blender::io::alembic::split(), uiLayoutRoot::style, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by add_attribute_search_or_value_buttons(), block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_forwardcompat_dialog(), colorband_buttons_layout(), curvemap_buttons_layout(), draw_property_for_output_socket(), generator_panel_draw(), graph_panel_key_properties(), internal_dependencies_panel_draw(), blender::ed::space_node::node_buts_image_user(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), blender::nodes::node_shader_tangent_cc::node_shader_buts_tangent(), blender::ed::space_node::std_node_socket_draw(), ui_def_but_rna__menu(), blender::ed::space_node::ui_template_node_link_menu(), uiItemFullR(), uiItemPropertySplitWrapperCreate(), uiItemsAlertBox(), uiItemsEnumR(), uiItemsFullEnumO_items(), uiTemplateAnyID(), uiTemplateMovieClip(), undo_history_draw_menu(), v3d_transform_butsR(), and view3d_panel_vgroup().
|
static |
ui_text_pad_default scaled down.
Definition at line 271 of file interface_layout.c.
Referenced by ui_item_menu(), and ui_text_icon_width().
|
static |
This adds over an icons width of padding even when no icon is used, this is done because most buttons need additional space (drop-down chevron for example). menus and labels use much smaller text
values compared to this default.
Definition at line 271 of file interface_layout.c.
Referenced by ui_text_icon_width().
|
static |
Least amount of padding not to clip the text or icon.
Definition at line 271 of file interface_layout.c.
Referenced by ui_item_with_label(), and uiItemL_().