|
Blender
V2.93
|
#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_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 "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 | 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) |
| 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, int 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) |
| void | uiLayoutSetContextPointer (uiLayout *layout, const char *name, PointerRNA *ptr) |
| bContextStore * | uiLayoutGetContextStore (uiLayout *layout) |
| void | uiLayoutContextCopy (uiLayout *layout, bContextStore *context) |
| 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 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 (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, int 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, int context, int flag, PointerRNA *r_opptr) |
| void | uiItemFullOMenuHold_ptr (uiLayout *layout, wmOperatorType *ot, const char *name, int icon, IDProperty *properties, int context, int flag, const char *menu_id, PointerRNA *r_opptr) |
| void | uiItemFullO (uiLayout *layout, const char *opname, const char *name, int icon, IDProperty *properties, int 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, int context, int flag, const EnumPropertyItem *item_array, int totitem) |
| void | uiItemsFullEnumO (uiLayout *layout, const char *opname, const char *propname, IDProperty *properties, int 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) |
| void | uiItemPointerR_prop (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *searchptr, PropertyRNA *searchprop, const char *name, int icon) |
| 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, bContext *C, PanelType *pt, const char *name, int icon) |
| void | uiItemPopoverPanel (uiLayout *layout, 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 | uiItemMenuEnumO_ptr (uiLayout *layout, bContext *C, wmOperatorType *ot, const char *propname, const char *name, int icon) |
| 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 CASE_ITEM | ( | id | ) |
| #define UI_ITEM_PROP_SEP_DIVIDE 0.4f |
Definition at line 77 of file interface_layout.c.
| #define UI_ITEM_VARY_X 1 |
Definition at line 272 of file interface_layout.c.
| #define UI_ITEM_VARY_Y 2 |
Definition at line 273 of file interface_layout.c.
| #define UI_OPERATOR_ERROR_RET | ( | _ot, | |
| _opname, | |||
| return_statement | |||
| ) |
Definition at line 69 of file interface_layout.c.
| #define UI_PROP_DECORATE |
Definition at line 60 of file interface_layout.c.
| #define UI_PROP_SEP_ICON_WIDTH_EXCEPTION |
Definition at line 63 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 131 of file interface_layout.c.
| enum uiItemType |
Definition at line 100 of file interface_layout.c.
|
static |
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 5115 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 5021 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 5094 of file interface_layout.c.
References button_matches_search_filter(), uiButtonGroup::buttons, and LISTBASE_FOREACH.
Referenced by block_search_filter_tag_buttons().
|
static |
Returns true if a button or the data / operator it represents matches the search filter.
Definition at line 5034 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 3382 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::flag, MenuItemLevel::opcontext, MenuItemLevel::opname, MenuItemLevel::propname, uiLayout::root, UI_block_direction_set(), UI_BLOCK_IS_FLIP, UI_DIR_DOWN, uiItemsEnumO(), and uiLayoutSetOperatorContext().
Referenced by UI_but_operatortype_get_from_enum_menu(), and uiItemMenuEnumO_ptr().
Definition at line 3450 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 2642 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().
| bool UI_block_apply_search_filter | ( | uiBlock * | block, |
| const char * | search_filter | ||
| ) |
Apply property search behavior, setting panel flags and deactivating buttons that don't match.
Definition at line 5137 of file interface_layout.c.
References BLI_assert, block_search_filter_tag_buttons(), block_search_panel_label_matches(), PanelType::flag, NULL, uiBlock::panel, PANEL_TYPE_NO_SEARCH, Panel::type, and ui_panel_tag_search_filter_match().
Referenced by ed_panel_draw(), and panel_property_search().
| 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 5424 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().
| void UI_block_layout_free | ( | uiBlock * | block | ) |
Used for property search when the layout process needs to be cancelled in order to avoid computing the locations for buttons, but the layout items created while adding the buttons must still be freed.
Definition at line 5582 of file interface_layout.c.
References uiBlock::layouts, LISTBASE_FOREACH_MUTABLE, MEM_freeN, and ui_layout_free().
Referenced by panel_property_search().
| void UI_block_layout_resolve | ( | uiBlock * | block, |
| int * | r_x, | ||
| int * | r_y | ||
| ) |
Definition at line 5590 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 ed_panel_draw(), ED_region_header_layout(), ED_time_scrub_channel_search_draw(), 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 5488 of file interface_layout.c.
References uiBlock::curlayout.
Referenced by colorband_tools_func(), ED_time_scrub_channel_search_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(), ui_node_menu_column(), 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 | ||
| ) |
Definition at line 2674 of file interface_layout.c.
References uiBut::block, uiRNACollectionSearch::butstore, uiRNACollectionSearch::butstore_block, uiBut::drawflag, uiBut::flag, uiBut::hardmax, MAX2, MEM_mallocN, NULL, PROP_ENUM, PROP_POINTER, ptr, RNA_property_is_unlink(), RNA_property_pointer_type(), 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_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 uiItemFullR(), and uiItemPointerR_prop().
Definition at line 5672 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(), 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 | ( | uiBut * | but, |
| PropertyRNA ** | r_prop | ||
| ) |
Definition at line 5654 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().
Definition at line 5681 of file interface_layout.c.
References uiBut::menu_create_func, NULL, uiBut::poin, and ui_item_paneltype_func().
Referenced by button_activate_state(), 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 1129 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 1082 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 3753 of file interface_layout.c.
References PIE_MAX_ITEMS, ui_but_pie_dir(), and ui_radial_dir_order.
Referenced by ui_litem_layout_radial().
|
static |
Definition at line 5262 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 476 of file interface_layout.c.
References Freestyle::a, uiBut::a1, bArmature::act_bone, bArmature::act_edbone, uiLayoutRoot::block, uiStyle::buttonspacex, col, PointerRNA::data, bArmature::edbo, ELEM, uiBlock::emboss, 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_Armature, 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().
|
static |
Definition at line 1140 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(), uiItemMenuEnumO(), uiItemMenuEnumR(), uiItemR(), uiItemsEnumR(), and uiItemsFullEnumO().
|
static |
Definition at line 874 of file interface_layout.c.
References 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 733 of file interface_layout.c.
References BLI_assert, ceilf, uiBlock::curlayout, uiBut::drawflag, ELEM, uiBut::flag, uiBut::func, uiBlock::func, EnumPropertyItem::icon, 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 782 of file interface_layout.c.
References BLI_assert, uiBlock::curlayout, ELEM, uiBlock::evil_C, free(), 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().
|
static |
Definition at line 711 of file interface_layout.c.
References C, CTX_wm_window(), wmWindow::eventstate, POINTER_AS_INT, RNA_property_enum_get(), RNA_property_enum_set(), uiBut::rnapoin, uiBut::rnaprop, and wmEvent::shift.
Referenced by ui_item_enum_expand_elem_exec().
|
static |
Definition at line 884 of file interface_layout.c.
References BLI_assert, uiBlock::buttons, C, CTX_wm_region(), ListBase::first, 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().
|
static |
Definition at line 5201 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 239 of file interface_layout.c.
References all(), ELEM, pos, UI_LAYOUT_ALIGN_EXPAND, and width.
Referenced by ui_litem_layout_row().
|
static |
Definition at line 5294 of file interface_layout.c.
References uiButtonItem::but, uiBut::flag, ITEM_BUTTON, uiLayout::items, and LISTBASE_FOREACH_BACKWARD.
Referenced by ui_item_layout().
|
static |
Definition at line 3767 of file interface_layout.c.
References ITEM_BUTTON, uiItem::type, and UI_BTYPE_LABEL.
Referenced by ui_litem_layout_radial().
|
static |
Definition at line 3777 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().
|
static |
Definition at line 5307 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 434 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 2838 of file interface_layout.c.
References uiLayoutRoot::block, ELEM, uiBut::func_argN, uiBut::poin, uiLayout::root, 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(), UI_UNIT_X, UI_UNIT_Y, uiDefIconMenuBut(), uiDefIconTextMenuBut(), uiDefMenuBut(), and w().
Referenced by uiItemM_ptr(), uiItemMenuEnumO_ptr(), uiItemMenuEnumR_prop(), uiItemMenuF(), uiItemMenuFN(), and uiItemPopoverPanel_ptr().
Definition at line 1252 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, 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 2819 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().
|
static |
Definition at line 388 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 225 of file interface_layout.c.
References len, and UI_MAX_NAME_STR.
Referenced by uiItemFullR(), uiItemL_respect_property_split(), and uiItemPointerR_prop().
|
static |
Definition at line 344 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 2829 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().
|
static |
Definition at line 366 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 1954 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 1898 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 1796 of file interface_layout.c.
References uiLayoutRoot::block, ceilf, ELEM, uiBlock::evil_C, uiItem::flag, free(), 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 5174 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().
|
static |
Definition at line 320 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 936 of file interface_layout.c.
References uiLayout::align, PointerRNA::data, ELEM, uiItem::flag, uiLayout::item, NULL, PROP_DIRPATH, PROP_ENUM, PROP_FILEPATH, ptr, RNA_KeyMapItem, 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_flag_enable(), UI_but_func_set(), UI_BUT_IMMEDIATE, 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_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().
|
static |
Definition at line 920 of file interface_layout.c.
References KM_ALT, KM_CTRL, KM_OSKEY, KM_SHIFT, uiBut::modifier_key, RNA_boolean_set(), and uiBut::rnapoin.
Referenced by ui_item_with_label().
|
static |
Definition at line 448 of file interface_layout.c.
References uiBut::block, uiBlock::buttons, C, CTX_wm_window(), wmWindow::eventstate, len, LISTBASE_FOREACH, POINTER_AS_INT, ptr, RNA_property_array_length(), RNA_property_boolean_set_index(), RNA_property_update(), uiBut::rnapoin, uiBut::rnaprop, wmEvent::shift, and ui_but_update().
Referenced by ui_item_array().
Definition at line 5493 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 5410 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 4734 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 5376 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 5393 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 5711 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 1914 of file interface_layout.c.
References NULL, and uiLayout::parent.
Referenced by ui_item_menu(), and uiItemFullR().
|
static |
Definition at line 1925 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().
|
static |
Definition at line 4640 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 5906 of file interface_layout.c.
References BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), uiLayout::item, uiItem::next, NULL, uiItem::prev, result, and ui_layout_introspect_items().
Referenced by bpy_rna_uilayout_introspect().
|
static |
Definition at line 5809 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 5844 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 1407 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().
| void ui_layout_list_set_labels_active | ( | uiLayout * | layout | ) |
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 4785 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 uiTemplateList().
Definition at line 5527 of file interface_layout.c.
References uiButtonItem::but, uiLayout::child_items_layout, ITEM_BUTTON, uiLayout::items, LISTBASE_FOREACH, and ui_layout_replace_but_ptr().
Referenced by ui_but_change_type(), and ui_layout_replace_but_ptr().
|
static |
Definition at line 283 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().
|
static |
Definition at line 275 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().
|
static |
Definition at line 4451 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().
|
static |
Definition at line 3903 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().
|
static |
Definition at line 3699 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().
|
static |
Definition at line 3961 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().
|
static |
Definition at line 4260 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().
|
static |
Definition at line 4583 of file interface_layout.c.
References uiLayout::h, uiLayout::items, LISTBASE_FOREACH, MAX2, ui_item_size(), and uiLayout::w.
Referenced by ui_item_estimate().
|
static |
Definition at line 3864 of file interface_layout.c.
Referenced by ui_item_estimate().
|
static |
Definition at line 3519 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().
|
static |
Definition at line 4534 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 4113 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 4615 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().
|
static |
Definition at line 4474 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().
|
static |
Definition at line 3917 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().
|
static |
Definition at line 3725 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().
|
static |
Definition at line 4024 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().
|
static |
Definition at line 4387 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().
|
static |
Definition at line 4597 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().
|
static |
Definition at line 3787 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().
|
static |
Definition at line 3886 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().
|
static |
Definition at line 3869 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().
|
static |
Definition at line 3550 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, 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().
|
static |
Definition at line 4540 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 3545 of file interface_layout.c.
References MIN2, and UI_UNIT_X.
Referenced by ui_litem_layout_row().
|
static |
Definition at line 1341 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 5689 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 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 5783 of file interface_layout.c.
References C, uiLayout::context, CTX_store_set(), NULL, and ui_paneltype_draw_impl().
Referenced by ui_item_paneltype_func(), and UI_popover_panel_invoke().
|
static |
Definition at line 5731 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().
|
static |
Definition at line 2664 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 292 of file interface_layout.c.
References uiLayout::alignment, uiItem::flag, uiLayout::item, uiLayout::scale, UI_fontstyle_string_width(), UI_FSTYLE_WIDGET, UI_ITEM_FIXED_SIZE, UI_LAYOUT_ALIGN_EXPAND, ui_layout_variable_size(), and UI_UNIT_X.
Referenced by ui_item_array(), ui_item_disabled(), ui_item_enum_expand_elem_exec(), ui_item_menu(), ui_item_rna_size(), uiItemFullO_ptr_ex(), uiItemL_(), and uiItemV().
| void uiItemBooleanO | ( | uiLayout * | layout, |
| const char * | name, | ||
| int | icon, | ||
| const char * | opname, | ||
| const char * | propname, | ||
| int | value | ||
| ) |
Definition at line 1719 of file interface_layout.c.
References PointerRNA::data, 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(), pose_ik_add_invoke(), ui_popup_context_menu_for_button(), and uv_mark_seam_invoke().
| void uiItemDecoratorR | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| int | index | ||
| ) |
Insert a decorator item for a button with the same property as prop. To force inserting a blank dummy element, NULL can be passed for ptr and propname.
Definition at line 3021 of file interface_layout.c.
References NULL, ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), and uiItemDecoratorR_prop().
Referenced by data_panel_draw(), panel_draw(), ui_node_draw_input(), and uiTemplateCacheFile().
| void uiItemDecoratorR_prop | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| 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 2959 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 1389 of file interface_layout.c.
References ot, RNA_warning, ui_item_disabled(), uiItemEnumO_ptr(), and WM_operatortype_find().
Referenced by armature_parent_set_invoke(), and node_group_separate_invoke().
| void uiItemEnumO_ptr | ( | uiLayout * | layout, |
| wmOperatorType * | ot, | ||
| const char * | name, | ||
| int | icon, | ||
| const char * | propname, | ||
| int | value | ||
| ) |
Definition at line 1365 of file interface_layout.c.
References PointerRNA::data, 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 1671 of file interface_layout.c.
References uiLayoutRoot::block, PointerRNA::data, uiBlock::evil_C, free(), 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().
| void uiItemEnumO_value | ( | uiLayout * | layout, |
| const char * | name, | ||
| int | icon, | ||
| const char * | opname, | ||
| const char * | propname, | ||
| int | value | ||
| ) |
Definition at line 1641 of file interface_layout.c.
References PointerRNA::data, 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 2497 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 2480 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 2566 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 2515 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 1753 of file interface_layout.c.
References PointerRNA::data, 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, | ||
| int | context, | ||
| int | flag, | ||
| PointerRNA * | r_opptr | ||
| ) |
Definition at line 1320 of file interface_layout.c.
References context, ot, PointerRNA_NULL, UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), and WM_operatortype_find().
Referenced by gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), modifier_ops_extra_draw(), node_composit_buts_file_output_ex(), node_composit_buts_switch_view_ex(), node_composit_buts_viewlayers(), panel_draw(), recent_files_menu_draw(), 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, | ||
| int | context, | ||
| int | flag, | ||
| PointerRNA * | r_opptr | ||
| ) |
Definition at line 1294 of file interface_layout.c.
References context, ot, and uiItemFullO_ptr_ex().
Referenced by draw_socket_list(), dyntopo_warning_popup(), make_override_library_invoke(), make_proxy_invoke(), move_to_collection_menu_create(), 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(), 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 1162 of file interface_layout.c.
References uiLayout::active_default, BLI_assert, uiLayoutRoot::block, context, PointerRNA::data, uiLayout::emboss, uiBut::flag, 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, | ||
| int | context, | ||
| int | flag, | ||
| const char * | menu_id, | ||
| PointerRNA * | r_opptr | ||
| ) |
Definition at line 1306 of file interface_layout.c.
References BLI_strdup(), context, 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 1970 of file interface_layout.c.
References Freestyle::a, uiBut::a1, uiLayout::activate_init, BLI_assert, BLI_insertlinkafter(), BLI_remlink(), uiLayoutRoot::block, uiBlock::buttons, uiBut::drawflag, ELEM, uiBut::emboss, uiLayout::emboss, ListBase::first, uiBlock::flag, uiItem::flag, uiBut::icon, uiLayout::item, ListBase::last, len, max_ii(), uiBut::next, NULL, PROP_BOOLEAN, PROP_ENUM, PROP_ENUM_FLAG, PROP_FLOAT, PROP_ICONS_CONSECUTIVE, PROP_INT, PROP_POINTER, PROP_STRING, ptr, uiLayout::redalert, RNA_ENUM_VALUE, RNA_NO_INDEX, RNA_property_array_check(), RNA_property_array_item_char(), RNA_property_array_length(), RNA_property_boolean_get(), RNA_property_boolean_get_index(), RNA_property_enum_get(), RNA_property_flag(), RNA_property_type(), RNA_property_ui_icon(), RNA_property_ui_name(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, uiLayout::root, uiLayout::space, uiButNumber::step_size, str, uiBut::str, STRNCPY_RLEN, uiBut::type, uiLayoutRoot::type, type, UI_block_layout_set_current(), UI_BLOCK_LIST_ITEM, ui_block_new_button_group(), UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_ICON_TOGGLE_N, UI_BTYPE_LABEL, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_ROW, UI_BTYPE_TEXT, UI_BTYPE_TOGGLE, UI_BUT_ACTIVATE_ON_INIT, ui_but_add_search(), ui_but_change_type(), UI_BUT_CHECKBOX_INVERT, UI_but_flag_enable(), UI_BUT_LIST_ITEM, UI_BUT_REDALERT, UI_BUT_TEXT_LEFT, UI_BUT_TEXT_RIGHT, ui_def_but_icon_clear(), UI_EMBOSS_NONE, UI_EMBOSS_NONE_OR_STATUS, ui_item_array(), ui_item_enum_expand(), UI_ITEM_INSIDE_PROP_SEP, ui_item_name_add_colon(), UI_ITEM_PROP_DECORATE, UI_ITEM_PROP_DECORATE_NO_PAD, UI_ITEM_PROP_SEP, UI_ITEM_PROP_SEP_DIVIDE, ui_item_prop_split_layout_hack(), UI_ITEM_R_CHECKBOX_INVERT, UI_ITEM_R_COMPACT, UI_ITEM_R_EXPAND, UI_ITEM_R_FORCE_BLANK_DECORATE, UI_ITEM_R_ICON_NEVER, UI_ITEM_R_ICON_ONLY, UI_ITEM_R_NO_BG, UI_ITEM_R_SLIDER, UI_ITEM_R_SPLIT_EMPTY_NAME, UI_ITEM_R_TOGGLE, ui_item_rna_is_expand(), ui_item_rna_size(), ui_item_with_label(), ui_layout_heading_find(), ui_layout_heading_label_add(), UI_LAYOUT_HORIZONTAL, UI_LAYOUT_MENU, UI_LAYOUT_PIEMENU, UI_MAX_DRAW_STR, UI_MAX_NAME_STR, UI_UNIT_Y, uiDefAutoButR(), uiDefBut(), uiDefButR_prop(), uiDefIconButR_prop(), uiDefIconTextButR_prop(), uiItemDecoratorR_prop(), uiLayoutColumn(), uiLayoutGetLocalDir(), uiLayoutRow(), uiLayoutSplit(), and w().
Referenced by blur_panel_draw(), CurveProfile_buttons_layout(), generator_panel_draw(), panel_draw(), screen_user_menu_draw(), template_keymap_item_properties(), transparency_panel_draw(), UI_pie_menu_invoke_from_rna_enum(), uiDefAutoButsRNA(), uiItemEnumR(), uiItemEnumR_prop(), uiItemEnumR_string_prop(), uiItemFullR_with_menu(), uiItemFullR_with_popover(), uiItemR(), uilist_draw_item_default(), and uiTemplateAnyID().
| 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 2449 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, |
| PointerRNA * | ptr, | ||
| 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 2418 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 1736 of file interface_layout.c.
References PointerRNA::data, 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(), and undo_history_invoke().
| void uiItemL | ( | uiLayout * | layout, |
| const char * | name, | ||
| int | icon | ||
| ) |
Definition at line 3177 of file interface_layout.c.
References uiItemL_().
Referenced by baking_panel_draw(), block_create__close_file_dialog(), block_create_autorun_warning(), buttons_panel_context_draw(), draw_constraint_header(), driver_dvar_invalid_name_query_cb(), dyntopo_warning_popup(), fmodifier_panel_header(), generator_panel_draw(), gpencil_modifier_panel_end(), gpencil_modifier_panel_header(), graph_draw_driven_property_panel(), graph_draw_driver_settings_panel(), graph_panel_drivers_popover(), graph_panel_key_properties(), graph_panel_properties(), image_new_draw(), menu_add_shortcut(), menu_change_shortcut(), metadata_panel_draw_field(), modifier_panel_end(), nla_panel_animdata(), nla_panel_stripname(), node_buts_image_user(), node_composit_buts_blur(), node_composit_buts_channel_matte(), node_composit_buts_color_spill(), node_composit_buts_colorcorrection(), node_composit_buts_colorcorrection_ex(), node_composit_buts_cryptomatte(), node_composit_buts_cryptomatte_legacy(), node_composit_buts_dblur(), node_composit_buts_defocus(), node_composit_buts_denoise(), node_composit_buts_distance_matte(), node_composit_buts_double_edge_mask(), node_composit_buts_file_output(), node_composit_buts_file_output_ex(), node_composit_buts_vecblur(), node_file_output_socket_draw(), node_shader_buts_vertex_color(), node_socket_button_label(), node_socket_undefined_draw(), node_socket_undefined_interface_draw(), node_sockets_panel(), panel_draw(), recent_files_menu_draw(), screen_user_menu_draw(), shaderfx_panel_end(), shaderfx_panel_header(), spreadsheet_footer_region_draw(), std_node_socket_draw(), template_keymap_item_properties(), template_operator_property_buts_draw_single(), template_texture_user_menu(), transparency_panel_draw(), ui_def_but_rna__menu(), ui_def_but_rna__menu_type(), ui_def_but_rna__panel_type(), ui_item_enum_expand_exec(), ui_item_menu_hold(), ui_item_with_label(), ui_layout_heading_label_add(), ui_node_draw_input(), ui_node_menu_column(), ui_paneltype_draw_impl(), UI_popup_menu_reports(), ui_template_node_link_menu(), ui_template_palette_menu(), uiDefAutoButsRNA(), uiItemsEnumR(), uiItemsFullEnumO_items(), uilist_draw_item_default(), uiTemplateAnyID(), uiTemplateEventFromKeymapItem(), uiTemplateImageInfo(), uiTemplateImageSettings(), uiTemplateInputStatus(), uiTemplateList(), uiTemplateMovieclipInformation(), uiTemplateTextureUser(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_posearmature_buts(), v3d_transform_butsR(), and WM_window_modal_keymap_status_draw().
Definition at line 3113 of file interface_layout.c.
References uiLayoutRoot::block, uiBut::drawflag, uiBut::flag, uiBlock::flag, 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(), 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 3162 of file interface_layout.c.
References UI_but_flag_enable(), UI_BUT_REDALERT, UI_SELECT_DRAW, and uiItemL_().
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), and wm_block_create_about().
Definition at line 3205 of file interface_layout.c.
References uiPropertySplitWrapper::decorate_column, uiItem::flag, uiLayout::item, uiPropertySplitWrapper::label_column, uiPropertySplitWrapper::property_row, 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, |
| PointerRNA * | ptr, | ||
| const char * | name, | ||
| int | icon | ||
| ) |
Definition at line 3227 of file interface_layout.c.
References PointerRNA::owner_id, ptr, RNA_struct_is_ID(), PointerRNA::type, UI_but_drag_set_id(), and uiItemL_().
Referenced by buttons_panel_context_draw().
| void uiItemM | ( | uiLayout * | layout, |
| const char * | menuname, | ||
| const char * | name, | ||
| int | icon | ||
| ) |
Definition at line 2932 of file interface_layout.c.
References NULL, RNA_warning, uiItemM_ptr(), and WM_menutype_find().
Referenced by context_menu_invoke(), and template_operator_property_buts_draw_single().
Definition at line 2912 of file interface_layout.c.
References CTX_IFACE_, MenuType::description, MenuType::label, NULL, uiLayout::root, TIP_, MenuType::translation_context, uiLayoutRoot::type, ui_item_menu(), ui_item_menutype_func(), and UI_LAYOUT_MENU.
Referenced by screen_user_menu_draw(), and uiItemM().
| void uiItemMContents | ( | uiLayout * | layout, |
| const char * | menuname | ||
| ) |
Definition at line 2942 of file interface_layout.c.
References uiLayoutRoot::block, C, uiBlock::evil_C, NULL, RNA_warning, uiLayout::root, UI_menutype_draw(), and WM_menutype_find().
Referenced by outliner_operator_menu().
| void uiItemMenuEnumO | ( | uiLayout * | layout, |
| bContext * | C, | ||
| const char * | opname, | ||
| const char * | propname, | ||
| const char * | name, | ||
| int | icon | ||
| ) |
Definition at line 3430 of file interface_layout.c.
References C, ot, RNA_warning, wmOperatorType::srna, ui_item_disabled(), UI_OPERATOR_ERROR_RET, uiItemMenuEnumO_ptr(), and WM_operatortype_find().
Referenced by graph_panel_modifiers(), and nla_panel_modifiers().
| void uiItemMenuEnumO_ptr | ( | uiLayout * | layout, |
| bContext * | C, | ||
| wmOperatorType * | ot, | ||
| const char * | propname, | ||
| const char * | name, | ||
| int | icon | ||
| ) |
Definition at line 3395 of file interface_layout.c.
References BLI_assert, BLI_strncpy(), uiLayoutRoot::block, C, uiBlock::flag, wmOperatorType::idname, wmOperatorType::invoke, MEM_callocN, menu_item_enum_opname_menu(), NULL, uiLayoutRoot::opcontext, MenuItemLevel::opcontext, MenuItemLevel::opname, 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(), and WM_operatortype_name().
Referenced by uiItemMenuEnumO().
| void uiItemMenuEnumR | ( | uiLayout * | layout, |
| struct PointerRNA * | ptr, | ||
| const char * | propname, | ||
| const char * | name, | ||
| int | icon | ||
| ) |
Definition at line 3484 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 3459 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 | ||
| ) |
Definition at line 3351 of file interface_layout.c.
References NULL, and ui_item_menu().
Referenced by 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 3363 of file interface_layout.c.
References ui_item_menu().
Referenced by workspace_add_invoke().
| void uiItemO | ( | uiLayout * | layout, |
| const char * | name, | ||
| int | icon, | ||
| const char * | opname | ||
| ) |
Definition at line 1789 of file interface_layout.c.
References NULL, uiLayoutRoot::opcontext, uiLayout::root, and uiItemFullO().
Referenced by baking_panel_draw(), buttons_panel_context_draw(), colorband_tools_func(), draw_constraint_header(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), ED_screens_navigation_bar_tools_menu_create(), 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(), node_composit_buts_cryptomatte_legacy_ex(), node_composit_buts_file_output_ex(), node_shader_buts_script(), panel_draw(), parent_set_invoke_menu(), shaderfx_panel_header(), shape_panel_draw(), subdivisions_panel_draw(), ui_popup_context_menu_for_button(), uiTemplateCacheFile(), 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 2793 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(), gpencil_modifier_masking_panel_draw(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__transChan(), layers_panel_draw(), modifier_vgroup_ui(), node_composit_buts_keyingscreen(), node_composit_buts_planetrackdeform(), node_composit_buts_trackpos(), node_shader_buts_normal_map(), node_shader_buts_tangent(), node_shader_buts_tex_pointdensity(), node_shader_buts_uvmap(), 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 | ||
| ) |
Definition at line 2735 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, |
| bContext * | C, | ||
| const char * | panel_type, | ||
| const char * | name, | ||
| int | icon | ||
| ) |
Definition at line 3069 of file interface_layout.c.
References C, NULL, RNA_warning, uiItemPopoverPanel_ptr(), and WM_paneltype_find().
| void uiItemPopoverPanel_ptr | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PanelType * | pt, | ||
| const char * | name, | ||
| int | icon | ||
| ) |
Definition at line 3040 of file interface_layout.c.
References C, CTX_IFACE_, PanelType::description, PanelType::draw_header, uiBut::flag, 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 3080 of file interface_layout.c.
References BKE_regiontype_from_id(), BKE_spacetype_from_id(), C, context, LISTBASE_FOREACH, NULL, ARegionType::paneltypes, RNA_warning, 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 3187 of file interface_layout.c.
References uiLayout::alignment, uiPropertySplitWrapper::decorate_column, uiPropertySplitWrapper::label_column, NULL, uiPropertySplitWrapper::property_row, UI_ITEM_PROP_SEP_DIVIDE, ui_item_prop_split_layout_hack(), UI_LAYOUT_ALIGN_RIGHT, uiLayoutColumn(), uiLayoutRow(), and uiLayoutSplit().
Referenced by ui_node_draw_input(), and uiItemL_respect_property_split().
| void uiItemR | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| int | flag, | ||
| const char * | name, | ||
| int | icon | ||
| ) |
Definition at line 2401 of file interface_layout.c.
References ptr, RNA_NO_INDEX, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), and uiItemFullR().
Referenced by advanced_panel_draw(), apply_armature_pose2bones_ui(), axis_mapping_panel_draw(), baking_panel_draw(), block_create_autorun_warning(), blur_panel_draw(), caps_panel_draw(), chaining_panel_draw(), clamp_panel_draw(), colorband_buttons_layout(), component_menu(), constant_offset_draw(), constant_offset_header_draw(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), custom_range_header_draw(), custom_range_panel_draw(), cycles_panel_draw(), data_panel_draw(), draw_constraint_header(), draw_fill_tile(), draw_property_for_socket(), draw_socket_list(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), ed_screens_statusbar_menu_create(), ED_time_scrub_channel_search_draw(), edbm_bevel_ui(), edbm_blend_from_shape_ui(), edbm_decimate_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), edge_data_panel_draw(), edge_panel_draw(), edge_panel_draw_header(), envelope_panel_draw(), face_corner_panel_draw(), face_corner_panel_draw_header(), face_corner_uv_panel_draw(), face_corner_vcol_panel_draw(), face_panel_draw(), face_panel_draw_header(), fade_header_draw(), fade_panel_draw(), falloff_panel_draw(), fmodifier_frame_range_draw(), fmodifier_frame_range_header_draw(), fmodifier_influence_draw(), fmodifier_panel_header(), fn_attribute_map_range_layout(), fn_generator_panel_draw(), fn_node_boolean_math_layout(), fn_node_input_string_layout(), fn_node_input_vector_layout(), frame_range_header_draw(), frame_range_panel_draw(), generate_panel_draw(), generator_panel_draw(), geo_node_align_rotation_to_vector_layout(), geo_node_attribute_clamp_layout(), geo_node_attribute_combine_xyz_layout(), geo_node_attribute_compare_layout(), geo_node_attribute_convert_layout(), geo_node_attribute_fill_layout(), geo_node_attribute_math_layout(), geo_node_attribute_mix_layout(), geo_node_attribute_proximity_layout(), geo_node_attribute_random_layout(), geo_node_attribute_separate_xyz_layout(), geo_node_attribute_vector_math_layout(), geo_node_boolean_layout(), geo_node_collection_info_layout(), geo_node_float_compare_layout(), geo_node_mesh_primitive_circle_layout(), geo_node_mesh_primitive_cone_layout(), geo_node_mesh_primitive_cylinder_layout(), geo_node_mesh_primitive_line_layout(), geo_node_object_info_layout(), geo_node_point_distribute_layout(), geo_node_point_instance_layout(), geo_node_point_rotate_layout(), geo_node_point_scale_layout(), geo_node_point_translate_layout(), geo_node_points_to_volume_layout(), geo_node_triangulate_layout(), geo_node_volume_to_mesh_layout(), geometry_panel_draw(), gpencil_interpolate_seq_ui(), gpencil_modifier_curve_header_draw(), gpencil_modifier_masking_panel_draw(), gpencil_modifier_panel_header(), graph_draw_driver_settings_panel(), graph_panel_cursor(), graph_panel_cursor_header(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__transChan(), graph_panel_key_properties(), graph_panel_properties(), image_new_draw(), limits_panel_draw(), materials_panel_draw(), menu_add_shortcut(), menu_change_shortcut(), mix_mode_panel_draw(), modifier_panel_header(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time(), nla_panel_animated_strip_time_header(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_properties(), nla_panel_stripname(), node_buts_frame_ex(), node_buts_image_user(), node_buts_image_views(), node_buts_math(), node_buts_mix_rgb(), node_buts_normal(), node_buts_output_linestyle(), node_buts_output_shader(), node_buts_rgb(), node_buts_texture(), node_buts_time(), node_buts_value(), node_composit_buts_alphaover(), node_composit_buts_antialiasing(), node_composit_buts_bilateralblur(), node_composit_buts_blur(), node_composit_buts_bokehblur(), node_composit_buts_bokehimage(), node_composit_buts_boxmask(), node_composit_buts_brightcontrast(), node_composit_buts_channel_matte(), node_composit_buts_chroma_matte(), node_composit_buts_color_matte(), node_composit_buts_color_spill(), node_composit_buts_colorbalance(), node_composit_buts_colorbalance_ex(), node_composit_buts_colorcorrection(), node_composit_buts_colorcorrection_ex(), node_composit_buts_composite(), node_composit_buts_crop(), node_composit_buts_cryptomatte(), node_composit_buts_cryptomatte_legacy(), node_composit_buts_dblur(), node_composit_buts_defocus(), node_composit_buts_denoise(), node_composit_buts_despeckle(), node_composit_buts_diff_matte(), node_composit_buts_dilateerode(), node_composit_buts_distance_matte(), node_composit_buts_double_edge_mask(), node_composit_buts_ellipsemask(), node_composit_buts_file_output(), node_composit_buts_file_output_ex(), node_composit_buts_filter(), node_composit_buts_flip(), node_composit_buts_glare(), node_composit_buts_id_mask(), node_composit_buts_inpaint(), node_composit_buts_invert(), node_composit_buts_keying(), node_composit_buts_lensdist(), node_composit_buts_luma_matte(), node_composit_buts_map_range(), node_composit_buts_map_uv(), node_composit_buts_map_value(), node_composit_buts_mask(), node_composit_buts_moviedistortion(), node_composit_buts_planetrackdeform(), node_composit_buts_premulkey(), node_composit_buts_rotate(), node_composit_buts_scale(), node_composit_buts_set_alpha(), node_composit_buts_splitviewer(), node_composit_buts_stabilize2d(), node_composit_buts_sunbeams(), node_composit_buts_switch(), node_composit_buts_tonemap(), node_composit_buts_trackpos(), node_composit_buts_transform(), node_composit_buts_translate(), node_composit_buts_vecblur(), node_composit_buts_view_levels(), node_composit_buts_viewer(), node_composit_buts_viewer_ex(), node_composit_buts_viewlayers(), node_composit_buts_ycc(), node_composit_buts_zcombine(), node_geometry_add_attribute_search_button(), node_shader_buts_ambient_occlusion(), node_shader_buts_anisotropic(), node_shader_buts_attribute(), node_shader_buts_bevel(), node_shader_buts_bump(), node_shader_buts_clamp(), node_shader_buts_displacement(), node_shader_buts_glossy(), node_shader_buts_hair(), node_shader_buts_ies(), node_shader_buts_map_range(), node_shader_buts_mapping(), node_shader_buts_normal_map(), node_shader_buts_output_aov(), node_shader_buts_principled(), node_shader_buts_principled_hair(), node_shader_buts_script(), node_shader_buts_script_ex(), node_shader_buts_subsurface(), node_shader_buts_tangent(), node_shader_buts_tex_brick(), node_shader_buts_tex_coord(), node_shader_buts_tex_environment(), node_shader_buts_tex_environment_ex(), node_shader_buts_tex_gradient(), node_shader_buts_tex_image(), node_shader_buts_tex_magic(), node_shader_buts_tex_musgrave(), node_shader_buts_tex_noise(), node_shader_buts_tex_pointdensity(), node_shader_buts_tex_sky(), node_shader_buts_tex_voronoi(), node_shader_buts_tex_wave(), node_shader_buts_toon(), node_shader_buts_uvalongstroke(), node_shader_buts_uvmap(), node_shader_buts_vect_math(), node_shader_buts_vect_transform(), node_shader_buts_vector_rotate(), node_shader_buts_white_noise(), node_shader_buts_wireframe(), node_texture_buts_bricks(), node_texture_buts_output(), node_texture_buts_proc(), noise_panel_draw(), normals_panel_draw(), object_add_ui(), object_convert_ui(), object_offset_draw(), object_offset_header_draw(), occlusion_panel_draw(), offset_panel_draw(), panel_draw(), path_panel_draw(), path_panel_draw_header(), position_panel_draw(), profile_panel_draw(), random_header_draw(), random_panel_draw(), random_panel_header_draw(), relative_offset_draw(), relative_offset_header_draw(), restrictions_panel_draw(), sequencer_split_ui(), shaderfx_panel_header(), shading_panel_draw(), solver_options_panel_draw(), std_node_socket_draw(), std_node_socket_interface_draw(), stepped_panel_draw(), style_panel_draw(), symmetry_panel_draw(), symmetry_panel_header_draw(), texture_panel_draw(), tile_add_draw(), time_panel_draw(), time_remapping_panel_draw(), transform_panel_draw(), transparency_panel_draw(), transparency_panel_draw_header(), ui_gpencil_import_svg_settings(), ui_node_draw_input(), ui_popup_context_menu_for_panel(), uilist_draw_filter_default(), uiTemplateCacheFile(), uiTemplateColormanagedViewSettings(), uiTemplateColorspaceSettings(), uiTemplateImage(), uiTemplateImageFormatViews(), uiTemplateImageSettings(), uiTemplateImageStereo3d(), uiTemplateMovieClip(), uiTemplatePaintModeSelection(), uiTemplatePathBuilder(), uiTemplatePreview(), uiTemplateViewsFormat(), uv_panel_draw(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_transform_butsR(), vertex_group_panel_draw(), vertex_panel_draw(), vertex_panel_draw_header(), vertex_vgroup_panel_draw(), vgroup_panel_draw(), view3d_panel_vgroup(), wave_header_draw(), wave_panel_draw(), weightvg_ui_common(), wm_open_mainfile_ui(), and wm_stereo3d_set_draw().
| void uiItemS | ( | uiLayout * | layout | ) |
Definition at line 3312 of file interface_layout.c.
References uiItemS_ex().
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), draw_constraint_header(), draw_socket_list(), dyntopo_warning_popup(), ED_region_header_layout(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), edbm_bevel_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), fmodifier_influence_draw(), fmodifier_panel_header(), geometry_panel_draw(), gpencil_modifier_ops_extra_draw(), gpencil_modifier_panel_header(), gpencil_shaderfx_ops_extra_draw(), graph_draw_driver_settings_panel(), graph_panel_drivers_popover(), modifier_ops_extra_draw(), modifier_panel_header(), move_to_collection_menu_create(), nla_panel_animdata(), nla_panel_properties(), node_composit_buts_dblur(), node_composit_buts_file_output_ex(), node_shader_buts_script_ex(), outliner_operator_menu(), panel_draw(), pose_groups_menu_invoke(), screen_area_options_invoke(), screen_user_menu_draw(), sequencer_split_ui(), shaderfx_panel_header(), subdivisions_panel_draw(), template_keymap_item_properties(), ui_def_but_rna__menu(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_slot_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_enum_expand_exec(), ui_node_draw_input(), ui_paneltype_draw_impl(), ui_popup_context_menu_for_button(), UI_popup_menu_begin_ex(), UI_popup_menu_reports(), uiItemsEnumR(), uiItemsFullEnumO_items(), uiTemplateColorPicker(), uiTemplateImage(), uiTemplatePreview(), workspace_add_invoke(), and workspace_add_menu().
Definition at line 3284 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 block_create__close_file_dialog(), block_create_autorun_warning(), uiItemS(), and wm_block_create_about().
| uiLayout* uiItemsAlertBox | ( | uiBlock * | block, |
| const int | size, | ||
| const eAlertIcon | icon | ||
| ) |
Helper to add a big icon and create a split layout for alert popups. Returns the layout to place further items into the alert box.
Definition at line 5929 of file interface_layout.c.
References uiStyle::columnspace, float(), MAX2, uiFontStyle::points, size(), UI_block_layout(), UI_LAYOUT_ALIGN_LEFT, UI_LAYOUT_PANEL, UI_LAYOUT_VERTICAL, UI_style_get_dpi(), uiDefButAlert(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetAlignment(), uiLayoutSplit(), uiStyle::widget, and uiStyle::widgetlabel.
Referenced by block_create__close_file_dialog(), and block_create_autorun_warning().
| void uiItemsEnumO | ( | uiLayout * | layout, |
| const char * | opname, | ||
| const char * | propname | ||
| ) |
Definition at line 1635 of file interface_layout.c.
References NULL, uiLayoutRoot::opcontext, uiLayout::root, and uiItemsFullEnumO().
Referenced by gpencil_layer_change_invoke(), insert_key_menu_invoke(), keyingset_active_menu_invoke(), menu_item_enum_opname_menu(), 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 2582 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, | ||
| int | context, | ||
| int | flag | ||
| ) |
Definition at line 1568 of file interface_layout.c.
References BLI_assert, uiLayoutRoot::block, 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 uiItemsEnumO(), unpack_item_invoke(), and WM_menu_invoke_ex().
| void uiItemsFullEnumO_items | ( | uiLayout * | layout, |
| wmOperatorType * | ot, | ||
| PointerRNA | ptr, | ||
| PropertyRNA * | prop, | ||
| IDProperty * | properties, | ||
| int | context, | ||
| int | flag, | ||
| const EnumPropertyItem * | item_array, | ||
| int | totitem | ||
| ) |
Create ui items for enum items in item_array.
A version of uiItemsFullEnumO that takes pre-calculated item array.
Definition at line 1418 of file interface_layout.c.
References uiLayout::align, uiLayoutRoot::block, uiBlock::buttons, 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().
| void uiItemSpacer | ( | uiLayout * | layout | ) |
Definition at line 3318 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 1771 of file interface_layout.c.
References PointerRNA::data, 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 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 3497 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.
| void uiItemV | ( | uiLayout * | layout, |
| const char * | name, | ||
| int | icon, | ||
| int | argval | ||
| ) |
Definition at line 3239 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::handle, 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 4818 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(), and uiTemplateReportsBanner().
Definition at line 4830 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 4775 of file interface_layout.c.
References UI_BTYPE_ROUNDBOX, and ui_layout_box().
Referenced by graph_draw_driver_settings_panel(), and template_keymap_item_properties().
Definition at line 4672 of file interface_layout.c.
References uiLayoutRoot::block, uiStyle::buttonspacey, uiLayout::item, ITEM_LAYOUT_COLUMN, MEM_callocN, uiLayout::root, uiLayout::space, uiLayoutRoot::style, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by advanced_panel_draw(), axis_mapping_panel_draw(), baking_panel_draw(), block_create__close_file_dialog(), block_create_autorun_warning(), blur_panel_draw(), caps_panel_draw(), clamp_panel_draw(), component_menu(), constant_offset_draw(), curvemap_buttons_layout(), custom_range_panel_draw(), cycles_panel_draw(), data_panel_draw(), draw_fill_tile(), draw_socket_list(), ED_screens_header_tools_menu_create(), edbm_bevel_ui(), edbm_decimate_ui(), edge_data_panel_draw(), envelope_panel_draw(), fade_panel_draw(), fmodifier_frame_range_draw(), fn_generator_panel_draw(), fn_node_input_vector_layout(), frame_range_panel_draw(), generate_panel_draw(), generator_panel_draw(), geo_node_align_rotation_to_vector_layout(), geo_node_attribute_combine_xyz_layout(), geo_node_attribute_mix_layout(), geo_node_point_rotate_layout(), gpencil_interpolate_seq_ui(), gpencil_modifier_masking_panel_draw(), gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), graph_draw_driver_settings_panel(), graph_panel_cursor(), graph_panel_cursor_header(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__singleProp(), graph_panel_driverVar__transChan(), graph_panel_key_properties(), graph_panel_properties(), hud_panel_operator_redo_draw(), image_new_draw(), layers_panel_draw(), limits_panel_draw(), materials_panel_draw(), modifier_ops_extra_draw(), nla_panel_actclip(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time_header(), nla_panel_properties(), node_buts_image_user(), node_buts_image_views(), node_buts_mix_rgb(), node_buts_output_linestyle(), node_buts_rgb(), node_composit_buts_alphaover(), node_composit_buts_antialiasing(), node_composit_buts_bilateralblur(), node_composit_buts_blur(), node_composit_buts_channel_matte(), node_composit_buts_chroma_matte(), node_composit_buts_color_matte(), node_composit_buts_color_spill(), node_composit_buts_colorbalance(), node_composit_buts_crop(), node_composit_buts_cryptomatte(), node_composit_buts_cryptomatte_legacy(), node_composit_buts_dblur(), node_composit_buts_defocus(), node_composit_buts_despeckle(), node_composit_buts_diff_matte(), node_composit_buts_distance_matte(), node_composit_buts_double_edge_mask(), node_composit_buts_file_output_ex(), node_composit_buts_invert(), node_composit_buts_keyingscreen(), node_composit_buts_lensdist(), node_composit_buts_luma_matte(), node_composit_buts_map_range(), node_composit_buts_map_value(), node_composit_buts_planetrackdeform(), node_composit_buts_splitviewer(), node_composit_buts_tonemap(), node_composit_buts_trackpos(), node_composit_buts_vecblur(), node_composit_buts_viewer_ex(), node_composit_buts_viewlayers(), node_composit_buts_zcombine(), node_shader_buts_tex_brick(), node_shader_buts_tex_sky(), node_texture_buts_bricks(), node_texture_buts_proc(), noise_panel_draw(), normals_panel_draw(), object_offset_draw(), occlusion_panel_draw(), panel_draw(), path_panel_draw(), position_panel_draw(), profile_panel_draw(), relative_offset_draw(), solver_options_panel_draw(), std_node_socket_draw(), std_node_socket_interface_draw(), stepped_panel_draw(), symmetry_panel_draw(), template_add_button_search_menu(), template_operator_property_buts_draw_single(), texture_panel_draw(), tile_add_draw(), time_panel_draw(), transparency_panel_draw(), ui_def_but_rna__menu(), ui_gpencil_import_svg_settings(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_local_sublayout(), ui_node_draw_input(), ui_node_menu_column(), ui_paneltype_draw_impl(), ui_popup_context_menu_for_button(), ui_template_node_link_menu(), uiDefAutoButsRNA(), uiItemDecoratorR_prop(), uiItemFullR(), uiItemPropertySplitWrapperCreate(), uiItemsAlertBox(), uiItemsEnumR(), uiItemsFullEnumO_items(), uiLayoutColumnWithHeading(), uiTemplateColormanagedViewSettings(), uiTemplateColorPicker(), uiTemplateHistogram(), uiTemplateImage(), uiTemplateImageInfo(), uiTemplateImageSettings(), uiTemplateImageStereo3d(), uiTemplateInputStatus(), uiTemplateLayers(), uiTemplateList(), uiTemplateMarker(), uiTemplateMovieClip(), uiTemplateMovieclipInformation(), uiTemplatePalette(), uiTemplatePreview(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateViewsFormat(), uiTemplateWaveform(), undo_history_invoke(), uv_panel_draw(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_posearmature_buts(), v3d_transform_butsR(), vertex_group_panel_draw(), vgroup_panel_draw(), view3d_panel_transform(), view3d_panel_vgroup(), wm_block_create_about(), wm_block_create_redo(), wm_block_dialog_create(), wm_open_mainfile_ui(), and wm_stereo3d_set_draw().
Definition at line 4698 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 4691 of file interface_layout.c.
References ui_layout_heading_set(), and uiLayoutColumn().
Referenced by chaining_panel_draw(), edbm_bevel_ui(), nla_panel_properties(), panel_draw(), and shading_panel_draw().
| void uiLayoutContextCopy | ( | uiLayout * | layout, |
| bContextStore * | context | ||
| ) |
Definition at line 5632 of file interface_layout.c.
References uiLayoutRoot::block, 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().
| bool uiLayoutGetActivateInit | ( | uiLayout * | layout | ) |
Definition at line 4954 of file interface_layout.c.
References uiLayout::activate_init.
| bool uiLayoutGetActive | ( | uiLayout * | layout | ) |
Definition at line 4944 of file interface_layout.c.
References uiLayout::active.
| bool uiLayoutGetActiveDefault | ( | uiLayout * | layout | ) |
Definition at line 4949 of file interface_layout.c.
References uiLayout::active_default.
| int uiLayoutGetAlignment | ( | uiLayout * | layout | ) |
Definition at line 4974 of file interface_layout.c.
References uiLayout::alignment.
Referenced by uiItemL_().
Definition at line 5478 of file interface_layout.c.
References uiLayoutRoot::block, and uiLayout::root.
Referenced by curvemap_buttons_layout(), CurveProfile_buttons_layout(), draw_constraint_header(), envelope_panel_draw(), file_panel_execution_buttons_draw(), file_panel_operator(), fmodifier_panel_header(), gpencil_modifier_panel_get_property_pointers(), graph_draw_driver_settings_panel(), graph_panel_key_properties(), graph_panel_modifiers(), modifier_panel_get_property_pointers(), modifier_panel_header(), move_to_collection_menu_create(), nla_panel_actclip(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time(), nla_panel_animated_strip_time_header(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_modifiers(), nla_panel_properties(), nla_panel_stripname(), node_file_output_socket_draw(), node_geometry_add_attribute_search_button(), panel_draw(), shaderfx_panel_header(), template_ID(), template_ID_tabs(), template_keymap_item_properties(), template_operator_property_buts_draw_single(), template_search_buttons(), template_texture_user_menu(), ui_but_change_type(), ui_def_but_rna__menu(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_slot_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_layout_add_but(), ui_node_draw_input(), ui_node_menu_column(), ui_popup_context_menu_for_button(), ui_popup_context_menu_for_panel(), ui_template_node_link_menu(), uiblock_layer_pass_buttons(), uiItemL_respect_property_split(), uiItemPointerR_prop(), uiLayoutAbsoluteBlock(), uiTemplateColorPicker(), uiTemplateComponentMenu(), uiTemplateConstraintHeader(), uiTemplateCryptoPicker(), uiTemplateCurveMapping(), uiTemplateCurveProfile(), uiTemplateEditModeSelection(), uiTemplateFileSelectPath(), uiTemplateHistogram(), uiTemplateImage(), uiTemplateKeymapItemProperties(), uiTemplateLayers(), uiTemplateList(), uiTemplateMarker(), uiTemplateMenuSearch(), uiTemplateMovieClip(), uiTemplateNodeLink(), uiTemplateNodeSocket(), uiTemplateOperatorRedoProperties(), uiTemplateOperatorSearch(), uiTemplatePalette(), uiTemplatePreview(), uiTemplateReportsBanner(), uiTemplateRunningJobs(), uiTemplateTextureShow(), uiTemplateTextureUser(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateWaveform(), view3d_panel_transform(), and wm_block_dialog_create().
| bContextStore* uiLayoutGetContextStore | ( | uiLayout * | layout | ) |
Definition at line 5627 of file interface_layout.c.
References uiLayout::context.
Referenced by ui_popup_context_menu_for_button(), and uiTemplateList().
| eUIEmbossType uiLayoutGetEmboss | ( | uiLayout * | layout | ) |
Definition at line 5004 of file interface_layout.c.
References uiLayoutRoot::block, uiBlock::emboss, uiLayout::emboss, uiLayout::root, and UI_EMBOSS_UNDEFINED.
| bool uiLayoutGetEnabled | ( | uiLayout * | layout | ) |
Definition at line 4959 of file interface_layout.c.
References uiLayout::enabled.
| bool uiLayoutGetFixedSize | ( | uiLayout * | layout | ) |
Definition at line 5561 of file interface_layout.c.
References uiItem::flag, uiLayout::item, and UI_ITEM_FIXED_SIZE.
| bool uiLayoutGetKeepAspect | ( | uiLayout * | layout | ) |
Definition at line 4969 of file interface_layout.c.
References uiLayout::keepaspect.
| int uiLayoutGetLocalDir | ( | const uiLayout * | layout | ) |
Definition at line 416 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 5483 of file interface_layout.c.
References uiLayoutRoot::opcontext, and uiLayout::root.
| bool uiLayoutGetPropDecorate | ( | uiLayout * | layout | ) |
Definition at line 4934 of file interface_layout.c.
References uiItem::flag, uiLayout::item, and UI_ITEM_PROP_DECORATE.
| bool uiLayoutGetPropSep | ( | uiLayout * | layout | ) |
Definition at line 4924 of file interface_layout.c.
References uiItem::flag, uiLayout::item, and UI_ITEM_PROP_SEP.
| bool uiLayoutGetRedAlert | ( | uiLayout * | layout | ) |
Definition at line 4964 of file interface_layout.c.
References uiLayout::redalert.
Definition at line 4984 of file interface_layout.c.
References uiLayout::scale.
Definition at line 4989 of file interface_layout.c.
References uiLayout::scale.
Definition at line 4994 of file interface_layout.c.
References uiLayout::units.
Referenced by ui_block_func_POPUP().
Definition at line 4999 of file interface_layout.c.
References uiLayout::units.
| int uiLayoutGetWidth | ( | uiLayout * | layout | ) |
Definition at line 4979 of file interface_layout.c.
References uiLayout::w.
Referenced by curvemap_buttons_layout(), CurveProfile_buttons_layout(), ED_region_header_layout(), ui_popup_context_menu_for_button(), and uiTemplatePalette().
| uiLayout* uiLayoutGridFlow | ( | uiLayout * | layout, |
| bool | row_major, | ||
| int | columns_len, | ||
| bool | even_columns, | ||
| bool | even_rows, | ||
| bool | align | ||
| ) |
Definition at line 4712 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().
| uiLayout* uiLayoutListBox | ( | uiLayout * | layout, |
| uiList * | ui_list, | ||
| PointerRNA * | actptr, | ||
| PropertyRNA * | actprop | ||
| ) |
Definition at line 4797 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 uiTemplateList().
Definition at line 4838 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 uiTemplateList().
Definition at line 4749 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 4649 of file interface_layout.c.
References uiLayoutRoot::block, uiStyle::buttonspacex, uiLayout::item, ITEM_LAYOUT_ROW, MEM_callocN, uiLayout::root, uiLayout::space, uiLayoutRoot::style, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by advanced_panel_draw(), buttons_panel_context_draw(), clamp_panel_draw(), colorband_buttons_layout(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), data_panel_draw(), draw_constraint_header(), draw_socket_list(), ED_collection_hide_menu_draw(), ed_panel_draw(), edbm_bevel_ui(), edbm_decimate_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), envelope_panel_draw(), falloff_panel_draw(), file_panel_execution_buttons_draw(), file_panel_execution_cancel_button(), file_panel_execution_execute_button(), fmodifier_influence_draw(), fmodifier_panel_header(), generate_panel_draw(), generator_panel_draw(), geometry_panel_draw(), gpencil_interpolate_seq_ui(), gpencil_modifier_masking_panel_draw(), gpencil_modifier_panel_end(), gpencil_modifier_panel_header(), graph_draw_driven_property_panel(), graph_draw_driver_settings_panel(), graph_panel_driverVar__singleProp(), graph_panel_modifiers(), metadata_panel_draw_field(), mix_mode_panel_draw(), modifier_panel_end(), modifier_panel_header(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_animdata(), nla_panel_modifiers(), nla_panel_properties(), nla_panel_stripname(), node_buts_mix_rgb(), node_buts_output_linestyle(), node_buts_time(), node_composit_buts_blur(), node_composit_buts_boxmask(), node_composit_buts_channel_matte(), node_composit_buts_color_spill(), node_composit_buts_colorbalance(), node_composit_buts_colorcorrection(), node_composit_buts_colorcorrection_ex(), node_composit_buts_cryptomatte(), node_composit_buts_cryptomatte_legacy(), node_composit_buts_distance_matte(), node_composit_buts_ellipsemask(), node_composit_buts_file_output_ex(), node_composit_buts_scale(), node_composit_buts_splitviewer(), node_composit_buts_viewlayers(), node_file_output_socket_draw(), node_shader_buts_ies(), node_shader_buts_script(), node_shader_buts_tangent(), node_texture_buts_proc(), node_update_basis(), object_add_ui(), panel_draw(), profile_panel_draw(), sequencer_split_ui(), shaderfx_panel_end(), shaderfx_panel_header(), shape_panel_draw(), subdivisions_panel_draw(), template_add_button_search_menu(), template_keymap_item_properties(), template_operator_property_buts_draw_single(), template_search_buttons(), transparency_panel_draw(), ui_item_local_sublayout(), ui_item_prop_split_layout_hack(), ui_item_with_label(), ui_node_draw_input(), ui_paneltype_draw_impl(), ui_template_id(), ui_template_palette_menu(), uiblock_layer_pass_buttons(), uiItemFullR(), uiItemPopoverPanel_ptr(), uiItemPropertySplitWrapperCreate(), uiItemsAlertBox(), uiLayoutRowWithHeading(), uilist_draw_filter_default(), uiTemplateAnyID(), uiTemplateCacheFile(), uiTemplateColormanagedViewSettings(), uiTemplateColorPicker(), uiTemplateEditModeSelection(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateInputStatus(), uiTemplateLayers(), uiTemplateList(), uiTemplateMovieClip(), uiTemplatePaintModeSelection(), uiTemplatePalette(), uiTemplatePathBuilder(), uiTemplatePreview(), uiTemplateRunningJobs(), vertex_group_panel_draw(), vgroup_panel_draw(), view3d_panel_vgroup(), wm_block_create_about(), WM_window_modal_keymap_status_draw(), and workspace_add_menu().
See uiLayoutColumnWithHeading().
Definition at line 4665 of file interface_layout.c.
References ui_layout_heading_set(), and uiLayoutRow().
Referenced by advanced_panel_draw(), data_panel_draw(), edbm_decimate_ui(), fmodifier_influence_draw(), limits_panel_draw(), nla_panel_actclip(), panel_draw(), restrictions_panel_draw(), stepped_panel_draw(), and uiTemplateCacheFile().
| void uiLayoutSetActivateInit | ( | uiLayout * | layout, |
| bool | activate_init | ||
| ) |
Definition at line 4874 of file interface_layout.c.
References uiLayout::activate_init.
Referenced by uiDefAutoButsRNA().
| void uiLayoutSetActive | ( | uiLayout * | layout, |
| bool | active | ||
| ) |
Definition at line 4864 of file interface_layout.c.
References blender::compositor::active, and uiLayout::active.
Referenced by advanced_panel_draw(), clamp_panel_draw(), constant_offset_draw(), curve_header_draw(), curve_panel_draw(), custom_range_header_draw(), custom_range_panel_draw(), data_panel_draw(), ED_screens_header_tools_menu_create(), edbm_bevel_ui(), edbm_decimate_ui(), edge_panel_draw(), face_corner_panel_draw(), face_corner_uv_panel_draw(), face_corner_vcol_panel_draw(), face_panel_draw(), fade_panel_draw(), falloff_panel_draw(), fmodifier_frame_range_draw(), fmodifier_get_pointers(), fmodifier_influence_draw(), geometry_panel_draw(), gpencil_modifier_masking_panel_draw(), graph_panel_cursor(), limits_panel_draw(), materials_panel_draw(), modifier_panel_header(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_properties(), node_composit_buts_defocus(), node_composit_buts_file_output_ex(), node_composit_buts_lensdist(), node_composit_buts_map_value(), node_texture_buts_proc(), node_update_basis(), object_add_ui(), object_offset_draw(), offset_panel_draw(), panel_draw(), path_panel_draw(), profile_panel_draw(), random_panel_draw(), relative_offset_draw(), shaderfx_panel_header(), shading_panel_draw(), stepped_panel_draw(), symmetry_panel_draw(), template_keymap_item_properties(), transparency_panel_draw(), uiTemplateCacheFile(), uiTemplateImage(), uiTemplateMarker(), uiTemplateRunningJobs(), v3d_transform_butsR(), vertex_group_panel_draw(), vertex_panel_draw(), vertex_vgroup_panel_draw(), wave_panel_draw(), and wm_open_mainfile_ui().
| void uiLayoutSetActiveDefault | ( | uiLayout * | layout, |
| bool | active_default | ||
| ) |
Definition at line 4869 of file interface_layout.c.
References uiLayout::active_default.
Referenced by file_panel_execution_execute_button().
| void uiLayoutSetAlignment | ( | uiLayout * | layout, |
| char | alignment | ||
| ) |
Definition at line 4894 of file interface_layout.c.
References uiLayout::alignment.
Referenced by buttons_panel_context_draw(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), fmodifier_panel_header(), gpencil_modifier_panel_header(), graph_draw_driven_property_panel(), graph_draw_driver_settings_panel(), modifier_panel_header(), nla_panel_animdata(), node_update_basis(), spreadsheet_footer_region_draw(), ui_layout_heading_label_add(), ui_node_draw_input(), uiItemsAlertBox(), uiTemplateAnyID(), uiTemplateImageInfo(), uiTemplateInputStatus(), uiTemplateMovieclipInformation(), and wm_block_create_about().
Definition at line 5638 of file interface_layout.c.
References PointerRNA::data, NULL, uiBut::opptr, RNA_pointer_create(), RNA_Property, 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 5621 of file interface_layout.c.
References uiLayoutRoot::block, uiLayout::context, uiBlock::contexts, CTX_store_add(), ptr, and uiLayout::root.
Referenced by colorband_tools_func(), draw_constraint_header(), gpencil_modifier_ops_extra_draw(), gpencil_modifier_panel_get_property_pointers(), gpencil_modifier_panel_header(), gpencil_shaderfx_ops_extra_draw(), graph_panel_drivers_popover(), modifier_ops_extra_draw(), modifier_panel_get_property_pointers(), modifier_panel_header(), node_composit_buts_cryptomatte(), node_composit_buts_image(), node_composit_buts_image_ex(), node_shader_buts_tex_environment(), node_shader_buts_tex_image(), node_update_basis(), shaderfx_panel_get_property_pointers(), template_ID(), uiLayoutSetContextFromBut(), uiTemplateCacheFile(), uiTemplateImage(), and uiTemplateMovieClip().
| void uiLayoutSetEmboss | ( | uiLayout * | layout, |
| eUIEmbossType | emboss | ||
| ) |
Definition at line 4919 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(), and v3d_transform_butsR().
| void uiLayoutSetEnabled | ( | uiLayout * | layout, |
| bool | enabled | ||
| ) |
Definition at line 4879 of file interface_layout.c.
References enabled, and uiLayout::enabled.
Referenced by baking_panel_draw(), chaining_panel_draw(), gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), graph_panel_properties(), hud_panel_operator_redo_draw(), modifier_ops_extra_draw(), nla_panel_animated_strip_time(), nla_panel_evaluation(), node_buts_image_user(), occlusion_panel_draw(), panel_draw(), shape_panel_draw(), style_panel_draw(), subdivisions_panel_draw(), transparency_panel_draw(), transparency_panel_draw_header(), ui_popup_context_menu_for_button(), uiTemplateImage(), vgroup_panel_draw(), view3d_panel_vgroup(), wm_block_create_redo(), and wm_open_mainfile_ui().
| void uiLayoutSetFixedSize | ( | uiLayout * | layout, |
| bool | fixed_size | ||
| ) |
Definition at line 5551 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 5571 of file interface_layout.c.
References uiLayoutRoot::argv, uiLayoutRoot::handlefunc, and uiLayout::root.
| void uiLayoutSetKeepAspect | ( | uiLayout * | layout, |
| bool | keepaspect | ||
| ) |
Definition at line 4889 of file interface_layout.c.
References uiLayout::keepaspect.
Referenced by uiTemplatePreview().
| void uiLayoutSetOperatorContext | ( | uiLayout * | layout, |
| int | opcontext | ||
| ) |
Definition at line 5566 of file interface_layout.c.
References uiLayoutRoot::opcontext, and uiLayout::root.
Referenced by 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(), 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().
| void uiLayoutSetPropDecorate | ( | uiLayout * | layout, |
| bool | is_sep | ||
| ) |
Definition at line 4939 of file interface_layout.c.
References uiItem::flag, uiLayout::item, SET_FLAG_FROM_TEST, and UI_ITEM_PROP_DECORATE.
Referenced by cycles_panel_draw(), data_panel_draw(), draw_fill_tile(), draw_socket_list(), edbm_bevel_ui(), edbm_blend_from_shape_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), envelope_panel_draw(), fmodifier_frame_range_draw(), fn_generator_panel_draw(), generator_panel_draw(), geo_node_align_rotation_to_vector_layout(), geo_node_attribute_combine_xyz_layout(), geo_node_attribute_compare_layout(), geo_node_attribute_fill_layout(), geo_node_attribute_math_layout(), geo_node_attribute_mix_layout(), geo_node_attribute_separate_xyz_layout(), geo_node_attribute_vector_math_layout(), geo_node_mesh_primitive_circle_layout(), geo_node_mesh_primitive_cone_layout(), geo_node_mesh_primitive_cylinder_layout(), geo_node_mesh_primitive_line_layout(), geo_node_point_rotate_layout(), geo_node_point_scale_layout(), geo_node_point_translate_layout(), geo_node_points_to_volume_layout(), geo_node_volume_to_mesh_layout(), gpencil_interpolate_seq_ui(), gpencil_modifier_masking_panel_draw(), graph_panel_cursor(), graph_panel_key_properties(), graph_panel_properties(), image_new_draw(), limits_panel_draw(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_animdata(), nla_panel_properties(), noise_panel_draw(), panel_draw(), profile_panel_draw(), screenshot_draw(), sequencer_split_ui(), stepped_panel_draw(), template_operator_property_buts_draw_single(), tile_add_draw(), transparency_panel_draw(), ui_gpencil_import_svg_settings(), ui_node_draw_input(), uiTemplateCacheFile(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateViewsFormat(), and wm_stereo3d_set_draw().
| void uiLayoutSetPropSep | ( | uiLayout * | layout, |
| bool | is_sep | ||
| ) |
Definition at line 4929 of file interface_layout.c.
References uiItem::flag, uiLayout::item, SET_FLAG_FROM_TEST, and UI_ITEM_PROP_SEP.
Referenced by advanced_panel_draw(), axis_mapping_panel_draw(), baking_panel_draw(), blur_panel_draw(), caps_panel_draw(), chaining_panel_draw(), clamp_panel_draw(), constant_offset_draw(), CurveProfile_buttons_layout(), custom_range_panel_draw(), cycles_panel_draw(), data_panel_draw(), draw_fill_tile(), draw_socket_list(), edbm_average_normals_ui(), edbm_bevel_ui(), edbm_blend_from_shape_ui(), edbm_decimate_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), edbm_point_normals_ui(), edge_data_panel_draw(), edge_panel_draw(), envelope_panel_draw(), face_corner_panel_draw(), face_corner_uv_panel_draw(), face_corner_vcol_panel_draw(), face_panel_draw(), fade_panel_draw(), falloff_panel_draw(), fmodifier_frame_range_draw(), fn_generator_panel_draw(), frame_range_panel_draw(), generate_panel_draw(), generator_panel_draw(), geo_node_align_rotation_to_vector_layout(), geo_node_attribute_combine_xyz_layout(), geo_node_attribute_compare_layout(), geo_node_attribute_fill_layout(), geo_node_attribute_math_layout(), geo_node_attribute_mix_layout(), geo_node_attribute_separate_xyz_layout(), geo_node_attribute_vector_math_layout(), geo_node_mesh_primitive_circle_layout(), geo_node_mesh_primitive_cone_layout(), geo_node_mesh_primitive_cylinder_layout(), geo_node_mesh_primitive_line_layout(), geo_node_point_rotate_layout(), geo_node_point_scale_layout(), geo_node_point_translate_layout(), geo_node_points_to_volume_layout(), geo_node_volume_to_mesh_layout(), geometry_panel_draw(), gpencil_interpolate_seq_ui(), gpencil_modifier_masking_panel_draw(), graph_panel_cursor(), graph_panel_key_properties(), graph_panel_properties(), image_new_draw(), layers_panel_draw(), limits_panel_draw(), materials_panel_draw(), mix_mode_panel_draw(), nla_panel_actclip(), nla_panel_animated_strip_time(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_properties(), noise_panel_draw(), normals_panel_draw(), object_add_ui(), object_convert_ui(), object_offset_draw(), occlusion_panel_draw(), offset_panel_draw(), panel_draw(), path_panel_draw(), position_panel_draw(), profile_panel_draw(), random_panel_draw(), relative_offset_draw(), restrictions_panel_draw(), screenshot_draw(), sequencer_split_ui(), shading_panel_draw(), solver_options_panel_draw(), stepped_panel_draw(), style_panel_draw(), symmetry_panel_draw(), template_operator_property_buts_draw_single(), texture_panel_draw(), tile_add_draw(), time_panel_draw(), time_remapping_panel_draw(), transform_panel_draw(), transparency_panel_draw(), ui_gpencil_import_svg_settings(), ui_item_prop_split_layout_hack(), ui_node_draw_node(), uiDefAutoButsRNA(), uiTemplateCacheFile(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateViewsFormat(), uv_panel_draw(), vertex_group_panel_draw(), vertex_panel_draw(), vertex_vgroup_panel_draw(), vgroup_panel_draw(), wave_panel_draw(), weightvg_ui_common(), and wm_stereo3d_set_draw().
| void uiLayoutSetRedAlert | ( | uiLayout * | layout, |
| bool | redalert | ||
| ) |
Definition at line 4884 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 4899 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 4904 of file interface_layout.c.
References uiLayout::scale.
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), ED_region_header_layout(), ED_time_scrub_channel_search_draw(), and file_panel_execution_buttons_draw().
Definition at line 4909 of file interface_layout.c.
References uiLayout::units.
Referenced by gpencil_modifier_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), and modifier_ops_extra_draw().
Definition at line 4914 of file interface_layout.c.
References uiLayout::units.
Definition at line 4850 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 block_create__close_file_dialog(), block_create_autorun_warning(), colorband_buttons_layout(), curvemap_buttons_layout(), generator_panel_draw(), graph_panel_key_properties(), node_buts_image_user(), node_composit_buts_colorbalance(), node_shader_buts_tangent(), node_sockets_panel(), std_node_socket_draw(), ui_def_but_rna__menu(), ui_template_node_link_menu(), uiItemFullR(), uiItemPropertySplitWrapperCreate(), uiItemsAlertBox(), uiItemsEnumR(), uiItemsFullEnumO_items(), uiTemplateAnyID(), uiTemplateMovieClip(), undo_history_invoke(), v3d_transform_butsR(), and view3d_panel_vgroup().