|
Blender V4.5
|
#include <algorithm>#include <cmath>#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "DNA_screen_types.h"#include "DNA_userdef_types.h"#include "BLI_array.hh"#include "BLI_dynstr.h"#include "BLI_listbase.h"#include "BLI_math_base.h"#include "BLI_path_utils.hh"#include "BLI_rect.h"#include "BLI_string.h"#include "BLI_string_ref.hh"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_idprop.hh"#include "BKE_lib_id.hh"#include "BKE_path_templates.hh"#include "BKE_screen.hh"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "UI_interface.hh"#include "ED_id_management.hh"#include "WM_api.hh"#include "WM_types.hh"#include "fmt/format.h"#include "interface_intern.hh"Go to the source code of this file.
Classes | |
| struct | uiLayoutRoot |
| struct | uiButtonItem |
| struct | uiLayoutItemFlow |
| struct | uiLayoutItemGridFlow |
| struct | uiLayoutItemBx |
| struct | uiLayoutItemPanelHeader |
| struct | uiLayoutItemPanelBody |
| struct | uiLayoutItemSplit |
| struct | uiLayoutItemRoot |
| struct | uiTextIconPadFactor |
| struct | MenuItemLevel |
| struct | UILayoutGridFlowInput |
| struct | UILayoutGridFlowOutput |
Namespaces | |
| namespace | blender |
| namespace | blender::ui |
Macros | |
| #define | UI_PROP_DECORATE |
| #define | UI_PROP_SEP_ICON_WIDTH_EXCEPTION |
| #define | CASE_ITEM(type, name) |
Enumerations | |
| enum class | blender::ui::ItemType : int8_t { blender::ui::Button , blender::ui::LayoutRow , blender::ui::LayoutPanelHeader , blender::ui::LayoutPanelBody , blender::ui::LayoutColumn , blender::ui::LayoutColumnFlow , blender::ui::LayoutRowFlow , blender::ui::LayoutGridFlow , blender::ui::LayoutBox , blender::ui::LayoutAbsolute , blender::ui::LayoutSplit , blender::ui::LayoutOverlap , blender::ui::LayoutRadial , blender::ui::LayoutRoot } |
| enum class | blender::ui::ItemInternalFlag : uint8_t { blender::ui::AutoFixedSize = 1 << 0 , blender::ui::FixedSize = 1 << 1 , blender::ui::BoxItem = 1 << 2 , blender::ui::PropSep = 1 << 3 , blender::ui::InsidePropSep = 1 << 4 , blender::ui::PropDecorate = 1 << 5 , blender::ui::PropDecorateNoPad = 1 << 6 } |
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 StringRef name, int icon, PointerRNA *ptr, PropertyRNA *prop, const int len, int x, const int y, int w, const int, const bool expand, const bool slider, const int toggle, const bool icon_only, const bool compact, const 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 std::optional< StringRef > 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 std::optional< StringRef > 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 std::optional< StringRef > 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 std::optional< StringRef > uiname, const int h, const bool icon_only) |
| static void | ui_keymap_but_cb (bContext *, void *but_v, void *) |
| static uiBut * | ui_item_with_label (uiLayout *layout, uiBlock *block, const StringRef name, const int icon, PointerRNA *ptr, PropertyRNA *prop, const int index, const int x, const int y, const int w_hint, const int h, const 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) |
Button Items | |
| 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, std::optional< StringRef > name, int icon, const wmOperatorCallContext context, const eUI_Item_Flag flag, PointerRNA *r_opptr) |
| static void | ui_item_menu_hold (bContext *C, ARegion *butregion, uiBut *but) |
| void | uiItemFullOMenuHold_ptr (uiLayout *layout, wmOperatorType *ot, std::optional< StringRef > name, int icon, const wmOperatorCallContext context, const eUI_Item_Flag flag, const char *menu_id, PointerRNA *r_opptr) |
| static StringRef | ui_menu_enumpropname (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int retval) |
| void | uiItemEnumO_ptr (uiLayout *layout, wmOperatorType *ot, std::optional< StringRef > name, int icon, const StringRefNull propname, int value) |
| void | uiItemEnumO (uiLayout *layout, const StringRefNull opname, const std::optional< StringRef > name, int icon, const StringRefNull propname, int value) |
| BLI_INLINE bool | ui_layout_is_radial (const uiLayout *layout) |
| void | uiItemsFullEnumO_items (uiLayout *layout, wmOperatorType *ot, const PointerRNA &ptr, PropertyRNA *prop, IDProperty *properties, wmOperatorCallContext context, eUI_Item_Flag flag, const EnumPropertyItem *item_array, int totitem, int active) |
| void | uiItemsFullEnumO (uiLayout *layout, const StringRefNull opname, const StringRefNull propname, IDProperty *properties, wmOperatorCallContext context, eUI_Item_Flag flag, const int active) |
| void | uiItemsEnumO (uiLayout *layout, const StringRefNull opname, const StringRefNull propname) |
| void | uiItemEnumO_value (uiLayout *layout, const StringRefNull name, int icon, const StringRefNull opname, const StringRefNull propname, int value) |
| void | uiItemEnumO_string (uiLayout *layout, const StringRef name, int icon, const StringRefNull opname, const StringRefNull propname, const char *value_str) |
| static void | ui_item_rna_size (uiLayout *layout, StringRef 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, const eUI_Item_Flag 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_with_popover (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index, int value, const eUI_Item_Flag flag, const std::optional< StringRefNull > name, int icon, const char *panel_type) |
| void | uiItemFullR_with_menu (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index, int value, const eUI_Item_Flag flag, const std::optional< StringRefNull > name, int icon, const char *menu_type) |
| void | uiItemEnumR_prop (uiLayout *layout, const std::optional< StringRefNull > name, int icon, PointerRNA *ptr, PropertyRNA *prop, int value) |
| void | uiItemEnumR_string_prop (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, const char *value, const std::optional< StringRefNull > name, int icon) |
| void | uiItemEnumR_string (uiLayout *layout, PointerRNA *ptr, const StringRefNull propname, const char *value, const std::optional< StringRefNull > name, int icon) |
| void | uiItemsEnumR (uiLayout *layout, PointerRNA *ptr, const StringRefNull propname) |
| static void | search_id_collection (StructRNA *ptype, PointerRNA *r_ptr, PropertyRNA **r_prop) |
| static void | ui_rna_collection_search_arg_free_fn (void *ptr) |
| uiBut * | ui_but_add_search (uiBut *but, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *searchptr, PropertyRNA *searchprop, const bool results_are_suggestions) |
| void | uiItemPointerR_prop (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *searchptr, PropertyRNA *searchprop, const std::optional< StringRefNull > name_opt, int icon, bool results_are_suggestions) |
| void | uiItemPointerR (uiLayout *layout, PointerRNA *ptr, const StringRefNull propname, PointerRNA *searchptr, const StringRefNull searchpropname, const std::optional< StringRefNull > 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 StringRef name, int icon, uiMenuCreateFunc func, void *arg, void *argN, const std::optional< StringRef > tip, bool force_menu, uiButArgNFree func_argN_free_fn=MEM_freeN, uiButArgNCopy func_argN_copy_fn=MEM_dupallocN) |
| void | uiItemMContents (uiLayout *layout, const StringRef menuname) |
| void | uiItemDecoratorR_prop (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index) |
| void | uiItemDecoratorR (uiLayout *layout, PointerRNA *ptr, const std::optional< StringRefNull > propname, int index) |
| void | uiItemPopoverPanel_ptr (uiLayout *layout, const bContext *C, PanelType *pt, const std::optional< StringRef > name_opt, int icon) |
| void | uiItemPopoverPanel (uiLayout *layout, const bContext *C, const StringRef panel_type, std::optional< blender::StringRef > name_opt, 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 StringRef name, int icon) |
| uiBut * | uiItemL_ex (uiLayout *layout, const StringRef name, int icon, const bool highlight, const bool redalert) |
| uiPropertySplitWrapper | uiItemPropertySplitWrapperCreate (uiLayout *parent_layout) |
| uiLayout * | uiItemL_respect_property_split (uiLayout *layout, StringRef text, int icon) |
| void | uiItemLDrag (uiLayout *layout, PointerRNA *ptr, StringRef name, int icon) |
| void | uiItemProgressIndicator (uiLayout *layout, const char *text, const float factor, const eButProgressType progress_type) |
| void | uiItemSpacer (uiLayout *layout) |
| static int | menu_item_enum_opname_menu_active (bContext *C, uiBut *but, MenuItemLevel *lvl) |
| static void | menu_item_enum_opname_menu (bContext *C, uiLayout *layout, void *arg) |
| void | uiItemMenuEnumFullO_ptr (uiLayout *layout, const bContext *C, wmOperatorType *ot, const StringRefNull propname, std::optional< StringRefNull > name, int icon, PointerRNA *r_opptr) |
| void | uiItemMenuEnumFullO (uiLayout *layout, const bContext *C, const StringRefNull opname, const StringRefNull propname, StringRefNull name, int icon, PointerRNA *r_opptr) |
| void | uiItemMenuEnumO (uiLayout *layout, const bContext *C, const StringRefNull opname, const StringRefNull propname, StringRefNull name, int icon) |
| static void | menu_item_enum_rna_menu (bContext *, uiLayout *layout, void *arg) |
| void | uiItemMenuEnumR_prop (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, const std::optional< StringRefNull > name, int icon) |
| void | uiItemTabsEnumR_prop (uiLayout *layout, bContext *C, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *ptr_highlight, PropertyRNA *prop_highlight, bool icon_only) |
Layout Items | |
| static void | ui_litem_estimate_row (uiLayout *litem) |
| static int | ui_litem_min_width (int itemw) |
| static void | ui_litem_layout_row (uiLayout *litem) |
| static int | spaces_after_column_item (const uiLayout *litem, const uiItem *item, const uiItem *next_item, const bool is_box) |
| static void | ui_litem_estimate_column (uiLayout *litem, bool is_box) |
| static void | ui_litem_layout_column (uiLayout *litem, bool is_box, bool is_menu) |
| static RadialDirection | ui_get_radialbut_vec (float vec[2], short itemnum) |
| static bool | ui_item_is_radial_displayable (uiItem *item) |
| static bool | ui_item_is_radial_drawable (uiButtonItem *bitem) |
| static void | ui_litem_layout_radial (uiLayout *litem) |
| static void | ui_litem_estimate_root (uiLayout *) |
| static void | ui_litem_layout_root_radial (uiLayout *litem) |
| static void | ui_litem_layout_root (uiLayout *litem) |
| static void | ui_litem_estimate_panel_header (uiLayout *litem) |
| static void | ui_litem_layout_panel_header (uiLayout *litem) |
| static void | ui_litem_estimate_panel_body (uiLayout *litem) |
| static void | ui_litem_layout_panel_body (uiLayout *litem) |
| static void | ui_litem_estimate_box (uiLayout *litem) |
| static void | ui_litem_layout_box (uiLayout *litem) |
| static void | ui_litem_estimate_column_flow (uiLayout *litem) |
| static void | ui_litem_layout_column_flow (uiLayout *litem) |
| static void | ui_litem_grid_flow_compute (blender::Span< uiItem * > items, const UILayoutGridFlowInput *parameters, UILayoutGridFlowOutput *results) |
| static void | ui_litem_estimate_grid_flow (uiLayout *litem) |
| static void | ui_litem_layout_grid_flow (uiLayout *litem) |
| static void | ui_litem_estimate_absolute (uiLayout *litem) |
| static void | ui_litem_layout_absolute (uiLayout *litem) |
| static void | ui_litem_estimate_split (uiLayout *litem) |
| static void | ui_litem_layout_split (uiLayout *litem) |
| static void | ui_litem_estimate_overlap (uiLayout *litem) |
| static void | ui_litem_layout_overlap (uiLayout *litem) |
| static void | ui_litem_init_from_parent (uiLayout *litem, uiLayout *layout, int align) |
| static void | ui_layout_heading_set (uiLayout *layout, const StringRef heading) |
| bool | uiLayoutEndsWithPanelHeader (const uiLayout &layout) |
| static uiLayoutItemBx * | ui_layout_box (uiLayout *layout, int type) |
| void | ui_layout_list_set_labels_active (uiLayout *layout) |
| void | uiLayoutSetActive (uiLayout *layout, bool active) |
| void | uiLayoutSetActiveDefault (uiLayout *layout, bool active_default) |
| void | uiLayoutSetActivateInit (uiLayout *layout, bool activate_init) |
| void | uiLayoutSetEnabled (uiLayout *layout, bool enabled) |
| void | uiLayoutSetRedAlert (uiLayout *layout, bool redalert) |
| void | uiLayoutSetKeepAspect (uiLayout *layout, bool keepaspect) |
| void | uiLayoutSetAlignment (uiLayout *layout, char alignment) |
| void | uiLayoutSetScaleX (uiLayout *layout, float scale) |
| void | uiLayoutSetScaleY (uiLayout *layout, float scale) |
| void | uiLayoutSetUnitsX (uiLayout *layout, float unit) |
| void | uiLayoutSetUnitsY (uiLayout *layout, float unit) |
| void | uiLayoutSetEmboss (uiLayout *layout, blender::ui::EmbossType emboss) |
| bool | uiLayoutGetPropSep (uiLayout *layout) |
| void | uiLayoutSetPropSep (uiLayout *layout, bool is_sep) |
| bool | uiLayoutGetPropDecorate (uiLayout *layout) |
| void | uiLayoutSetPropDecorate (uiLayout *layout, bool is_sep) |
| void | uiLayoutSetSearchWeight (uiLayout *layout, const float weight) |
| float | uiLayoutGetSearchWeight (uiLayout *layout) |
| Panel * | uiLayoutGetRootPanel (uiLayout *layout) |
| bool | uiLayoutGetActive (uiLayout *layout) |
| bool | uiLayoutGetActiveDefault (uiLayout *layout) |
| bool | uiLayoutGetActivateInit (uiLayout *layout) |
| bool | uiLayoutGetEnabled (uiLayout *layout) |
| bool | uiLayoutGetRedAlert (uiLayout *layout) |
| bool | uiLayoutGetKeepAspect (uiLayout *layout) |
| int | uiLayoutGetAlignment (uiLayout *layout) |
| int | uiLayoutGetWidth (uiLayout *layout) |
| float | uiLayoutGetScaleX (uiLayout *layout) |
| float | uiLayoutGetScaleY (uiLayout *layout) |
| float | uiLayoutGetUnitsX (uiLayout *layout) |
| float | uiLayoutGetUnitsY (uiLayout *layout) |
| blender::ui::EmbossType | uiLayoutGetEmboss (uiLayout *layout) |
| int | uiLayoutListItemPaddingWidth () |
| void | uiLayoutListItemAddPadding (uiLayout *layout) |
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 (const uiButtonGroup &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) |
| wmOperatorCallContext | uiLayoutGetOperatorContext (uiLayout *layout) |
| void | UI_block_layout_set_current (uiBlock *block, uiLayout *layout) |
| void | ui_layout_add_but (uiLayout *layout, uiBut *but) |
| static uiButtonItem * | ui_layout_find_button_item (const uiLayout *layout, const uiBut *but) |
| void | ui_layout_remove_but (uiLayout *layout, const uiBut *but) |
| bool | ui_layout_replace_but_ptr (uiLayout *layout, const void *old_but_ptr, uiBut *new_but) |
| void | uiLayoutSetFixedSize (uiLayout *layout, bool fixed_size) |
| bool | uiLayoutGetFixedSize (uiLayout *layout) |
| void | uiLayoutSetOperatorContext (uiLayout *layout, wmOperatorCallContext opcontext) |
| void | uiLayoutSetFunc (uiLayout *layout, uiMenuHandleFunc handlefunc, void *argv) |
| void | UI_block_layout_free (uiBlock *block) |
| void | UI_block_layout_resolve (uiBlock *block, int *r_x, int *r_y) |
| bool | UI_block_layout_needs_resolving (const uiBlock *block) |
| void | uiLayoutSetContextPointer (uiLayout *layout, StringRef name, PointerRNA *ptr) |
| void | uiLayoutSetContextString (uiLayout *layout, StringRef name, blender::StringRef value) |
| void | uiLayoutSetContextInt (uiLayout *layout, StringRef name, int64_t value) |
| bContextStore * | uiLayoutGetContextStore (uiLayout *layout) |
| void | uiLayoutContextCopy (uiLayout *layout, const bContextStore *context) |
| void | uiLayoutSetTooltipFunc (uiLayout *layout, uiButToolTipFunc func, void *arg, uiCopyArgFunc copy_arg, uiFreeArgFunc free_arg) |
| void | uiLayoutSetContextFromBut (uiLayout *layout, uiBut *but) |
| wmOperatorType * | UI_but_operatortype_get_from_enum_menu (uiBut *but, PropertyRNA **r_prop) |
| MenuType * | UI_but_menutype_get (const uiBut *but) |
| PanelType * | UI_but_paneltype_get (const uiBut *but) |
| std::optional< blender::StringRefNull > | UI_but_asset_shelf_type_idname_get (const uiBut *but) |
| void | UI_menutype_draw (bContext *C, MenuType *mt, 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, const uiButtonItem *bitem) |
| static void | ui_layout_introspect_items (DynStr *ds, blender::Span< uiItem * > items) |
| const char * | UI_layout_introspect (uiLayout *layout) |
Alert Box with Big Icon | |
| uiLayout * | uiItemsAlertBox (uiBlock *block, const uiStyle *style, const int dialog_width, const eAlertIcon icon, const int icon_size) |
| uiLayout * | uiItemsAlertBox (uiBlock *block, const int size, const eAlertIcon icon) |
Structs and Defines | |
| #define | UI_OPERATOR_ERROR_RET(_ot, _opname, return_statement) |
| #define | UI_ITEM_PROP_SEP_DIVIDE 0.4f |
| using | uiItemType = blender::ui::ItemType |
| using | uiItemInternalFlag = blender::ui::ItemInternalFlag |
Item | |
| #define | UI_ITEM_VARY_X 1 |
| #define | UI_ITEM_VARY_Y 2 |
| constexpr uiTextIconPadFactor | ui_text_pad_default = {1.50f, 0.25f, 0.0f} |
| constexpr uiTextIconPadFactor | ui_text_pad_compact = {1.25f, 0.35f, 0.0f} |
| constexpr uiTextIconPadFactor | ui_text_pad_none = {0.25f, 1.50f, 0.0f} |
| static StringRef | ui_item_name_add_colon (StringRef name, char namestr[UI_MAX_NAME_STR]) |
| static StringRefNull | ui_item_name_add_colon (StringRefNull name, char namestr[UI_MAX_NAME_STR]) |
| static int | ui_item_fit (const int item, const int pos, const int all, const int available, const bool is_last, const int alignment, float *extra_pixel) |
| static int | ui_layout_vary_direction (uiLayout *layout) |
| static bool | ui_layout_variable_size (uiLayout *layout) |
| static int | ui_text_icon_width_ex (uiLayout *layout, const StringRef name, int icon, const uiTextIconPadFactor &pad_factor, const uiFontStyle *fstyle) |
| static int | ui_text_icon_width (uiLayout *layout, const StringRef name, const int icon, const bool compact) |
| static void | ui_item_size (const uiItem *item, int *r_w, int *r_h) |
| static void | ui_item_offset (const uiItem *item, int *r_x, int *r_y) |
| static void | ui_item_position (uiItem *item, const int x, const int y, const int w, const int h) |
| static void | ui_item_move (uiItem *item, const int delta_xmin, const int delta_xmax) |
| #define CASE_ITEM | ( | type, | |
| name ) |
Referenced by ui_layout_introspect_items().
| #define UI_ITEM_PROP_SEP_DIVIDE 0.4f |
Definition at line 73 of file interface_layout.cc.
Referenced by uiLayout::prop(), and uiItemPropertySplitWrapperCreate().
| #define UI_ITEM_VARY_X 1 |
Definition at line 258 of file interface_layout.cc.
Referenced by ui_layout_variable_size(), and ui_layout_vary_direction().
| #define UI_ITEM_VARY_Y 2 |
Definition at line 259 of file interface_layout.cc.
Referenced by ui_layout_vary_direction().
| #define UI_OPERATOR_ERROR_RET | ( | _ot, | |
| _opname, | |||
| return_statement ) |
Definition at line 65 of file interface_layout.cc.
Referenced by uiLayout::op(), uiItemEnumO_string(), uiItemEnumO_value(), and uiItemMenuEnumFullO().
| #define UI_PROP_DECORATE |
Definition at line 56 of file interface_layout.cc.
Referenced by ui_item_with_label().
| #define UI_PROP_SEP_ICON_WIDTH_EXCEPTION |
Definition at line 59 of file interface_layout.cc.
Definition at line 141 of file interface_layout.cc.
| using uiItemType = blender::ui::ItemType |
Definition at line 140 of file interface_layout.cc.
|
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 5390 of file interface_layout.cc.
References button_group_has_search_match(), uiBlock::button_groups, uiButtonGroup::buttons, uiBut::flag, and UI_SEARCH_FILTER_NO_MATCH.
Referenced by UI_block_apply_search_filter().
|
static |
Definition at line 5294 of file interface_layout.cc.
References BLI_strcasestr(), PanelType::label, 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 5370 of file interface_layout.cc.
References button_matches_search_filter(), and uiButtonGroup::buttons.
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 5307 of file interface_layout.cc.
References BLI_strcasestr(), free(), i, MEM_freeN(), wmOperatorType::name, 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 3413 of file interface_layout.cc.
References active, uiLayoutRoot::block, C, PointerRNA::data, uiBut::func_argN, menu_item_enum_opname_menu_active(), MenuItemLevel::opcontext, MenuItemLevel::opname, uiBut::opptr, MenuItemLevel::propname, uiLayout::root_, UI_block_direction_set(), UI_DIR_DOWN, UI_ITEM_NONE, uiItemsFullEnumO(), and uiLayoutSetOperatorContext().
Referenced by UI_but_operatortype_get_from_enum_menu(), and uiItemMenuEnumFullO_ptr().
|
static |
Definition at line 3385 of file interface_layout.cc.
References active, C, free(), MEM_freeN(), MenuItemLevel::opname, ot, MenuItemLevel::propname, ptr, RNA_enum_from_name(), RNA_property_enum_items_gettexted(), RNA_struct_find_property(), uiBut::str, WM_operator_properties_create_ptr(), WM_operator_properties_sanitize(), and WM_operatortype_find().
Referenced by menu_item_enum_opname_menu().
Definition at line 3519 of file interface_layout.cc.
References MenuItemLevel::opcontext, MenuItemLevel::propname, MenuItemLevel::rnapoin, uiItemsEnumR(), and uiLayoutSetOperatorContext().
Referenced by uiItemMenuEnumR_prop().
|
static |
Definition at line 2615 of file interface_layout.cc.
References G_MAIN, 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().
|
static |
Definition at line 3787 of file interface_layout.cc.
References ELEM, Vector< T, InlineBufferCapacity, Allocator >::first(), uiLayout::items_, and uiItem::type_.
Referenced by ui_litem_estimate_column(), and ui_litem_layout_column().
| 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 5406 of file interface_layout.cc.
References block_search_filter_tag_buttons(), block_search_panel_label_matches(), PanelType::flag, 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 5712 of file interface_layout.cc.
References uiLayout::active_, BLI_addtail(), uiLayoutRoot::block, uiLayout::context_, uiBlock::curlayout, ELEM, uiLayout::emboss_, uiLayoutRoot::emh, uiLayoutRoot::emw, uiLayout::enabled_, uiItem::flag_, uiLayout::h_, uiLayoutRoot::layout, uiBlock::layouts, MEM_callocN(), uiLayoutRoot::opcontext, padding(), uiLayoutRoot::padding, uiLayout::root_, size(), uiLayout::space_, uiLayoutRoot::style, uiStyle::templatespace, uiLayoutRoot::type, uiItem::type_, ui_layout_add_padding_button(), UI_LAYOUT_HORIZONTAL, UI_LAYOUT_MENU, UI_LAYOUT_PIEMENU, UI_LAYOUT_VERT_BAR, UI_UNIT_X, UI_UNIT_Y, blender::ui::Undefined, uiLayout::w_, WM_OP_INVOKE_REGION_WIN, x, uiLayout::x_, y, and uiLayout::y_.
Referenced by colorband_tools_fn(), component_menu(), blender::ed::space_node::draw_tree_path(), ed_panel_draw(), ED_region_header_layout(), ED_time_scrub_channel_search_draw(), menu_add_shortcut(), menu_change_shortcut(), menu_items_from_ui_create(), blender::ed::space_node::node_update_basis_buttons(), blender::ed::space_node::node_update_basis_from_declaration(), blender::ed::space_node::node_update_basis_socket(), panel_property_search(), blender::ed::asset::shelf::region_layout(), blender::ed::spreadsheet::spreadsheet_footer_region_draw(), UI_pie_menu_begin(), ui_popover_create_block(), ui_popup_menu_create_block(), uiItemsAlertBox(), wm_block_about_create(), wm_block_create_redo(), wm_block_dialog_create(), wm_block_insert_unicode_create(), wm_block_splash_create(), and wm_operator_ui_create().
| 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 5896 of file interface_layout.cc.
References uiBlock::layouts, LISTBASE_FOREACH_MUTABLE, MEM_freeN(), and ui_layout_free().
Referenced by panel_property_search().
| bool UI_block_layout_needs_resolving | ( | const uiBlock * | block | ) |
Definition at line 5929 of file interface_layout.cc.
References BLI_listbase_is_empty(), and uiBlock::layouts.
Referenced by ui_textedit_begin().
| void UI_block_layout_resolve | ( | uiBlock * | block, |
| int * | r_x, | ||
| int * | r_y ) |
Definition at line 5904 of file interface_layout.cc.
References uiBlock::active, BLI_assert, BLI_listbase_clear(), uiBlock::curlayout, uiBlock::layouts, LISTBASE_FOREACH_MUTABLE, MEM_freeN(), ui_layout_add_padding_button(), ui_layout_end(), and ui_layout_free().
Referenced by blender::ed::space_node::draw_tree_path(), ed_panel_draw(), ED_region_header_layout(), ED_time_scrub_channel_search_draw(), blender::ed::space_node::node_update_basis_buttons(), blender::ed::space_node::node_update_basis_from_declaration(), blender::ed::space_node::node_update_basis_socket(), blender::ed::asset::shelf::region_layout(), blender::ed::spreadsheet::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 5776 of file interface_layout.cc.
References uiBlock::curlayout.
Referenced by uiLayout::absolute(), blender::ui::TreeViewLayoutBuilder::build_from_tree(), blender::ui::GridViewLayoutBuilder::build_from_view(), blender::ui::GridViewBuilder::build_grid_view(), blender::ed::asset::shelf::AssetCatalogSelectorTree::Item::build_row(), blender::ui::TreeViewLayoutBuilder::build_row(), blender::ui::TreeViewBuilder::build_tree_view(), colorband_tools_fn(), uiLayout::column(), uiLayout::column_flow(), ED_time_scrub_channel_search_draw(), blender::ed::asset_browser::file_create_asset_catalog_tree_view_in_layout(), uiLayout::grid_flow(), uiLayout::menu_pie(), uiLayout::overlap(), uiLayout::panel_prop(), uiLayout::prop(), uiLayout::row(), uiLayout::separator(), uiLayout::split(), blender::ed::spreadsheet::spreadsheet_data_set_panel_draw(), ui_def_but_rna__menu(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_array(), ui_item_disabled(), ui_item_enum_expand_exec(), ui_item_menu(), ui_item_with_label(), ui_layout_box(), blender::ed::space_node::ui_node_menu_column(), blender::ed::space_node::ui_template_node_link_menu(), uiItemDecoratorR_prop(), uiItemFullO_ptr_ex(), uiItemL_(), uiItemL_respect_property_split(), uiItemProgressIndicator(), uiItemsFullEnumO_items(), uiItemSpacer(), uiItemTabsEnumR_prop(), uiLayoutListItemAddPadding(), uiTemplateMenuSearch(), uiTemplateNodeLink(), uiTemplateOperatorSearch(), and uiTemplateRunningJobs().
| uiBut * ui_but_add_search | ( | uiBut * | but, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| PointerRNA * | searchptr, | ||
| PropertyRNA * | searchprop, | ||
| bool | results_are_suggestions ) |
Definition at line 2644 of file interface_layout.cc.
References uiBut::block, uiRNACollectionSearch::butstore, uiRNACollectionSearch::butstore_block, uiBut::drawflag, uiBut::flag, uiBut::hardmax, PointerRNA_NULL, PROP_ENUM, PROP_POINTER, PROP_STRING, ptr, RNA_property_is_unlink(), RNA_property_pointer_type(), RNA_property_string_search_flag(), RNA_property_type(), uiButSearch::rnasearchpoin, uiButSearch::rnasearchprop, uiRNACollectionSearch::search_but, search_id_collection(), uiRNACollectionSearch::search_prop, uiRNACollectionSearch::search_ptr, uiBut::str, uiRNACollectionSearch::target_prop, uiRNACollectionSearch::target_ptr, uiBut::type, UI_BTYPE_SEARCH_MENU, ui_but_change_type(), UI_BUT_DISABLED, UI_but_func_search_set(), UI_but_func_search_set_results_are_suggestions(), UI_BUT_ICON_LEFT, UI_BUT_TEXT_LEFT, UI_BUT_VALUE_CLEAR, UI_butstore_create(), UI_butstore_register(), ui_rna_collection_search_arg_free_fn(), ui_rna_collection_search_update_fn(), and ui_searchbox_create_generic().
Referenced by uiLayout::prop(), uiDefAutoButR(), and uiItemPointerR_prop().
| std::optional< blender::StringRefNull > UI_but_asset_shelf_type_idname_get | ( | const uiBut * | but | ) |
This is a bit of a hack but best keep it in one place at least.
Definition at line 6045 of file interface_layout.cc.
References UI_asset_shelf_idname_from_button_context().
Referenced by shortcut_get_operator_property().
This is a bit of a hack but best keep it in one place at least.
Definition at line 6029 of file interface_layout.cc.
References uiBut::menu_create_func, uiBut::poin, and ui_item_menutype_func().
Referenced by menu_items_from_ui_create(), shortcut_get_operator_property(), ui_block_open_begin(), 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_get_rna_label(), UI_but_string_get_rna_label_context(), UI_but_string_get_rna_struct_identifier(), UI_but_string_get_rna_tooltip(), ui_but_user_menu_add(), and ui_but_user_menu_find().
| wmOperatorType * UI_but_operatortype_get_from_enum_menu | ( | uiBut * | but, |
| PropertyRNA ** | r_prop ) |
This is a bit of a hack but best keep it in one place at least.
Definition at line 6012 of file interface_layout.cc.
References uiBut::func_argN, uiBut::menu_create_func, menu_item_enum_opname_menu(), MenuItemLevel::opname, ot, MenuItemLevel::propname, RNA_struct_type_find_property(), and WM_operatortype_find().
Referenced by ui_but_is_user_menu_compatible(), UI_but_string_get_rna_label(), UI_but_string_get_rna_tooltip(), ui_but_user_menu_add(), ui_but_user_menu_find(), and ui_layout_introspect_button().
This is a bit of a hack but best keep it in one place at least.
Definition at line 6037 of file interface_layout.cc.
References uiBut::menu_create_func, uiBut::poin, and ui_item_paneltype_func().
Referenced by button_activate_state(), menu_items_from_ui_create(), shortcut_get_operator_property(), ui_but_copy_popover(), ui_but_event_operator_string(), ui_but_event_operator_string_from_panel(), UI_but_string_get_rna_label(), and UI_but_string_get_rna_struct_identifier().
|
static |
Update a buttons tip with an enum's description if possible.
Definition at line 1200 of file interface_layout.cc.
References EnumPropertyItem::description, wmOperatorType::get_description, 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 1154 of file interface_layout.cc.
References C, CTX_wm_region(), CTX_wm_region_popup(), uiBut::flag, LISTBASE_FOREACH, PROP_STRING, RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, ARegion::runtime, UI_but_is_userdef(), UI_BUT_LAST_ACTIVE, and UI_BUT_UNDO.
Referenced by file_browse_invoke().
|
static |
Definition at line 3873 of file interface_layout.cc.
References PIE_MAX_ITEMS, printf, ui_but_pie_dir(), and ui_radial_dir_order.
Referenced by ui_litem_layout_radial().
|
static |
Definition at line 5538 of file interface_layout.cc.
References uiLayout::align_, uiBut::alignnr, uiButtonItem::but, uiLayout::items_, Vector< T, InlineBufferCapacity, Allocator >::rbegin(), Vector< T, InlineBufferCapacity, Allocator >::rend(), uiLayoutItemBx::roundbox, uiItem::type_, ui_but_can_align(), and ui_item_align().
Referenced by ui_item_align(), and ui_item_layout().
|
static |
Definition at line 507 of file interface_layout.cc.
References uiLayout::absolute(), b, uiLayoutRoot::block, uiStyle::buttonspacex, col, ELEM, uiBlock::emboss, blender::StringRefBase::is_empty(), len, MEM_calloc_arrayN(), MEM_freeN(), min_ii(), blender::ui::None, POINTER_FROM_INT, uiButNumber::precision, uiButNumberSlider::precision, PROP_AXISANGLE, PROP_BOOLEAN, PROP_COLOR, PROP_COLOR_GAMMA, PROP_DIRECTION, PROP_LAYER, PROP_LAYER_MEMBER, PROP_MATRIX, PROP_UNIT_ROTATION, ptr, blender::ui::Pulldown, 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, uiButNumberSlider::step_size, str, uiLayoutRoot::style, uiBut::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_item_local_sublayout(), ui_layer_but_cb(), ui_text_icon_width(), UI_UNIT_X, UI_UNIT_Y, uiDefAutoButR(), uiDefBut(), uiDefButR_prop(), w(), x, and y.
Referenced by uiLayout::prop().
|
static |
Definition at line 1212 of file interface_layout.cc.
References uiLayoutRoot::block, 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 uiLayout::prop(), uiItemDecoratorR(), uiItemEnumO(), uiItemEnumR_prop(), uiItemEnumR_string(), uiItemEnumR_string_prop(), uiItemFullR_with_menu(), uiItemFullR_with_popover(), uiItemMenuEnumFullO(), uiItemsEnumR(), and uiItemsFullEnumO().
|
static |
Definition at line 897 of file interface_layout.cc.
References ptr, UI_BTYPE_ROW, and ui_item_enum_expand_exec().
Referenced by uiLayout::prop().
|
static |
Draw a single enum button, a utility for ui_item_enum_expand_exec
Definition at line 753 of file interface_layout.cc.
References BLI_assert, ceilf, uiBlock::curlayout, uiBut::drawflag, ELEM, uiBut::flag, uiBlock::func, uiBut::func, EnumPropertyItem::icon, EnumPropertyItem::name, POINTER_FROM_INT, PROP_ENUM_FLAG, ptr, RNA_property_flag(), U, 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 802 of file interface_layout.cc.
References BLI_assert, uiBlock::curlayout, ELEM, uiBlock::evil_C, free(), EnumPropertyItem::identifier, uiLayout::label(), uiLayoutRoot::layout, MEM_freeN(), uiLayout::menu_pie(), PROP_ENUM, ptr, RNA_property_enum_items_gettexted(), RNA_property_enum_items_gettexted_all(), RNA_property_type(), uiLayout::root_, uiLayout::separator(), uiLayoutRoot::type, uiItem::type_, UI_block_layout_set_current(), ui_item_enum_expand_elem_exec(), ui_item_local_sublayout(), UI_LAYOUT_MENU, and UI_LAYOUT_PIEMENU.
Referenced by ui_item_enum_expand(), and ui_item_enum_expand_tabs().
|
static |
Definition at line 731 of file interface_layout.cc.
References C, CTX_wm_window(), wmWindow::eventstate, KM_SHIFT, wmEvent::modifier, POINTER_AS_INT, RNA_property_enum_get(), RNA_property_enum_set(), uiBut::rnapoin, and uiBut::rnaprop.
Referenced by ui_item_enum_expand_elem_exec().
|
static |
Definition at line 907 of file interface_layout.cc.
References BLI_assert, uiBlock::buttons, C, CTX_wm_region(), blender::Array< T, InlineBufferCapacity, Allocator >::data(), uiBut::flag, i, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), ptr, RNA_property_array_length(), RNA_property_boolean_get_array(), SET_FLAG_FROM_TEST, Vector< T, InlineBufferCapacity, Allocator >::size(), UI_BTYPE_TAB, ui_but_align_opposite_to_area_align_get(), UI_but_drawflag_enable(), UI_BUT_HAS_QUICK_TOOLTIP, UI_BUT_INACTIVE, and ui_item_enum_expand_exec().
Referenced by uiItemTabsEnumR_prop().
|
static |
Definition at line 5471 of file interface_layout.cc.
References uiLayout::h_, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), uiLayout::items_, uiLayout::scale_, uiItem::type_, ui_item_estimate(), 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_panel_body(), ui_litem_estimate_panel_header(), 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_item_estimate(), and ui_layout_end().
|
static |
Definition at line 220 of file interface_layout.cc.
References all(), ELEM, pos, and UI_LAYOUT_ALIGN_EXPAND.
Referenced by ui_litem_layout_row().
|
static |
Definition at line 5574 of file interface_layout.cc.
References uiButtonItem::but, flag, uiBut::flag, uiLayout::items_, Vector< T, InlineBufferCapacity, Allocator >::rbegin(), Vector< T, InlineBufferCapacity, Allocator >::rend(), uiItem::type_, and ui_item_flag().
Referenced by ui_item_flag(), and ui_item_layout().
|
static |
Definition at line 3887 of file interface_layout.cc.
References uiItem::type_, and UI_BTYPE_LABEL.
Referenced by ui_litem_layout_radial().
|
static |
Definition at line 3899 of file interface_layout.cc.
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 5588 of file interface_layout.cc.
References uiLayout::active_, uiLayout::align_, uiBlock::alignnr, uiLayoutRoot::block, uiButtonItem::but, uiBut::drawflag, uiLayout::enabled_, uiItem::flag_, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), uiLayout::items_, uiLayout::root_, uiItem::type_, UI_BUT_BOX_ITEM, UI_BUT_DISABLED, UI_BUT_INACTIVE, ui_item_align(), ui_item_flag(), ui_item_layout(), 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_panel_body(), ui_litem_layout_panel_header(), ui_litem_layout_radial(), ui_litem_layout_root(), ui_litem_layout_row(), and ui_litem_layout_split().
Referenced by ui_item_layout(), and ui_layout_end().
Definition at line 466 of file interface_layout.cc.
References uiLayout::column(), uiLayout::row(), uiLayout::space_, UI_LAYOUT_HORIZONTAL, and uiLayoutGetLocalDir().
Referenced by uiLayout::menu_pie(), ui_item_array(), and ui_item_enum_expand_exec().
|
static |
Definition at line 2827 of file interface_layout.cc.
References uiLayoutRoot::block, ELEM, uiBut::func_argN, uiBut::func_argN_copy_fn, uiBut::func_argN_free_fn, uiTextIconPadFactor::icon_only, blender::StringRefBase::is_empty(), MEM_dupallocN(), MEM_freeN(), uiBut::poin, uiLayout::root_, uiTextIconPadFactor::text, uiLayoutRoot::type, UI_block_layout_set_current(), ui_block_new_button_group(), UI_but_drawflag_enable(), UI_BUT_ICON_LEFT, UI_but_type_set_menu_from_pulldown(), UI_FSTYLE_WIDGET, UI_LAYOUT_HEADER, ui_layout_heading_find(), ui_layout_heading_label_add(), UI_LAYOUT_MENU, UI_LAYOUT_PANEL, UI_LAYOUT_TOOLBAR, ui_text_icon_width_ex(), ui_text_pad_compact, UI_UNIT_Y, uiDefIconMenuBut(), uiDefIconTextMenuBut(), uiDefMenuBut(), and w().
Referenced by uiLayout::menu(), uiLayout::menu_fn(), uiLayout::menu_fn_argN_free(), uiItemMenuEnumFullO_ptr(), uiItemMenuEnumR_prop(), and uiItemPopoverPanel_ptr().
Definition at line 1317 of file interface_layout.cc.
References ARegion::alignment, uiLayoutRoot::block, C, uiBut::drawstr, uiBlock::flag, uiBut::hold_argN, uiLayout::label(), RGN_ALIGN_BOTTOM, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, uiLayout::root_, RPT_, UI_block_direction_set(), 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(), uiLayoutSetContextFromBut(), and WM_menutype_find().
Referenced by uiItemFullOMenuHold_ptr().
Definition at line 2815 of file interface_layout.cc.
References C, and UI_menutype_draw().
Referenced by uiLayout::menu(), UI_but_menutype_get(), ui_def_but_rna__menu_type(), and ui_popup_menu_create_from_menutype().
|
static |
Definition at line 418 of file interface_layout.cc.
References uiButtonItem::but, uiBut::rect, uiItem::type_, ui_but_update(), uiLayout::w_, uiLayout::x_, rctf::xmax, and rctf::xmin.
Referenced by ui_litem_layout_row().
Definition at line 192 of file interface_layout.cc.
References blender::StringRefBase::data(), len, blender::StringRefBase::size(), and UI_MAX_NAME_STR.
Referenced by uiLayout::prop(), uiItemL_respect_property_split(), and uiItemPointerR_prop().
|
static |
Definition at line 206 of file interface_layout.cc.
References blender::StringRefBase::data(), len, blender::StringRefBase::size(), and UI_MAX_NAME_STR.
|
static |
Definition at line 374 of file interface_layout.cc.
References uiButtonItem::but, 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 2821 of file interface_layout.cc.
References C, and UI_paneltype_draw().
Referenced by blender::ui::asset_shelf_popover_invoke(), UI_but_paneltype_get(), ui_def_but_rna__panel_type(), UI_popover_panel_invoke(), and uiItemPopoverPanel_ptr().
|
static |
Definition at line 396 of file interface_layout.cc.
References uiButtonItem::but, uiLayout::h_, uiBut::rect, uiItem::type_, ui_but_update(), w(), uiLayout::w_, x, uiLayout::x_, rctf::xmax, rctf::xmin, y, uiLayout::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_panel_header(), 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 1917 of file interface_layout.cc.
References uiLayout::child_items_layout_, uiItem::flag_, uiLayout::row(), uiItem::type_, and uiLayoutSetPropSep().
Referenced by uiLayout::prop(), and uiItemPropertySplitWrapperCreate().
|
static |
Definition at line 1861 of file interface_layout.cc.
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 uiLayout::prop(), and uiItemDecoratorR_prop().
|
static |
Definition at line 1755 of file interface_layout.cc.
References uiLayoutRoot::block, ceilf, ELEM, uiBlock::evil_C, uiItem::flag_, free(), EnumPropertyItem::identifier, blender::StringRefBase::is_empty(), len, max_ii(), MEM_freeN(), 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, ui_layout_variable_size(), ui_text_icon_width(), UI_UNIT_X, UI_UNIT_Y, and w().
Referenced by uiLayout::prop(), and uiItemPointerR_prop().
|
static |
Definition at line 5443 of file interface_layout.cc.
References uiLayout::items_, Vector< T, InlineBufferCapacity, Allocator >::rbegin(), Vector< T, InlineBufferCapacity, Allocator >::rend(), uiItem::type_, ui_item_offset(), ui_item_position(), ui_item_scale(), ui_item_size(), w(), x, and y.
Referenced by ui_item_estimate(), and ui_item_scale().
|
static |
Definition at line 350 of file interface_layout.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), uiButtonItem::but, uiLayout::h_, 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_panel_header(), 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_panel_header(), 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 975 of file interface_layout.cc.
References uiLayout::align_, BKE_build_template_variables_for_prop(), BKE_path_contains_template_syntax(), BKE_path_validate_template(), BLI_assert, BLI_path_is_rel(), uiBut::drawstr, ELEM, uiBlock::evil_C, flag, uiItem::flag_, blender::StringRefBase::is_empty(), PROP_DIRPATH, PROP_ENUM, PROP_FILEPATH, PROP_NONE, PROP_PATH_SUPPORTS_BLEND_RELATIVE, PROP_PATH_SUPPORTS_TEMPLATES, ptr, RNA_property_flag(), RNA_property_string_get(), RNA_property_subtype(), RNA_property_type(), RNA_struct_identifier(), RNA_struct_is_a(), RNA_warning, uiLayout::row(), uiLayout::space_, str, uiBut::type, UI_block_layout_set_current(), UI_BTYPE_BUT, UI_BTYPE_HOTKEY_EVENT, UI_BTYPE_KEY_EVENT, UI_BTYPE_LABEL, UI_BTYPE_TEXT, UI_BUT_ACTIVATE_ON_INIT, UI_but_flag_enable(), UI_but_func_set(), UI_BUT_REDALERT, UI_FSTYLE_WIDGET, UI_ITEM_R_EVENT, UI_ITEM_R_FULL_EVENT, UI_ITEM_R_ICON_ONLY, UI_ITEM_R_IMMEDIATE, ui_keymap_but_cb(), ui_layout_variable_size(), UI_PROP_DECORATE, ui_text_icon_width_ex(), ui_text_pad_none, UI_UNIT_X, uiDefAutoButR(), uiDefBut(), uiDefButR_prop(), uiDefIconButO(), uiItemL_respect_property_split(), WM_keymap_item_to_string(), WM_OP_INVOKE_DEFAULT, x, and y.
Referenced by uiLayout::prop(), and uiItemPointerR_prop().
|
static |
Definition at line 951 of file interface_layout.cc.
References BLI_assert, KM_ALT, KM_CTRL, KM_HYPER, KM_MOD_HELD, KM_NOTHING, KM_OSKEY, KM_SHIFT, uiButHotkeyEvent::modifier_key, RNA_int_set(), uiBut::rnapoin, uiBut::type, and UI_BTYPE_HOTKEY_EVENT.
Referenced by ui_item_with_label().
|
static |
Definition at line 480 of file interface_layout.cc.
References BLI_assert, uiBut::block, uiBlock::buttons, C, CTX_wm_window(), blender::Array< T, InlineBufferCapacity, Allocator >::data(), wmWindow::eventstate, blender::Array< T, InlineBufferCapacity, Allocator >::fill(), KM_SHIFT, len, wmEvent::modifier, POINTER_AS_INT, ptr, RNA_property_array_length(), RNA_property_boolean_set_array(), RNA_property_update(), uiBut::rnapoin, uiBut::rnaprop, and ui_but_update().
Referenced by ui_item_array().
Definition at line 5781 of file interface_layout.cc.
References Vector< T, InlineBufferCapacity, Allocator >::append(), uiButtonItem::but, uiLayout::child_items_layout_, uiBut::context, uiLayout::context_, uiBut::emboss, uiLayout::emboss_, uiItem::flag_, uiLayout::items_, uiBut::layout, uiBut::search_weight, uiLayout::search_weight_, str, uiItem::type_, ui_button_group_add_but(), ui_item_size(), uiLayoutGetBlock(), blender::ui::Undefined, bContextStore::used, and w().
Referenced by ui_def_but().
|
static |
Definition at line 5698 of file interface_layout.cc.
References uiLayoutRoot::block, uiBlock::curlayout, uiLayoutRoot::layout, uiLayoutRoot::padding, UI_BTYPE_SEPR, and uiDefBut().
Referenced by UI_block_layout(), and UI_block_layout_resolve().
|
static |
Definition at line 4979 of file interface_layout.cc.
References uiLayoutRoot::block, uiStyle::columnspace, uiLayout::root_, uiLayoutItemBx::roundbox, uiLayout::space_, uiLayoutRoot::style, uiItem::type_, UI_block_layout_set_current(), ui_litem_init_from_parent(), and uiDefBut().
Referenced by uiLayout::box(), and uiLayout::list_box().
Definition at line 5663 of file interface_layout.cc.
References uiLayoutRoot::argv, uiLayoutRoot::handlefunc, 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 5816 of file interface_layout.cc.
References uiButtonItem::but, uiLayout::child_items_layout_, uiLayout::items_, and ui_layout_find_button_item().
Referenced by ui_layout_find_button_item(), and ui_layout_replace_but_ptr().
|
static |
Definition at line 5680 of file interface_layout.cc.
References uiButtonItem::but, uiLayout::items_, uiBut::layout, uiItem::type_, and ui_layout_free().
Referenced by UI_block_layout_free(), UI_block_layout_resolve(), and ui_layout_free().
Definition at line 6084 of file interface_layout.cc.
References uiButtonItem::but, CTX_IFACE_, uiBut::flag, uiLayout::items_, PanelType::label, uiBut::str, PanelType::translation_context, uiItem::type_, UI_HIDDEN, and ui_layout_has_panel_label().
Referenced by ui_layout_has_panel_label(), and ui_paneltype_draw_impl().
Find first layout ancestor (or self) with a heading set.
Definition at line 1877 of file interface_layout.cc.
References uiLayout::parent_.
Referenced by uiLayout::prop(), and ui_item_menu().
|
static |
Definition at line 1888 of file interface_layout.cc.
References uiLayout::alignment_, uiLayout::heading_, uiLayout::label(), UI_LAYOUT_ALIGN_RIGHT, uiItemL_respect_property_split(), and uiLayoutSetAlignment().
Referenced by uiLayout::prop(), and ui_item_menu().
Definition at line 4797 of file interface_layout.cc.
References blender::StringRefBase::copy_utf8_truncated(), and uiLayout::heading_.
Referenced by uiLayout::column(), and uiLayout::row().
| const char * UI_layout_introspect | ( | uiLayout * | layout | ) |
Evaluate layout items as a Python dictionary.
Definition at line 6287 of file interface_layout.cc.
References BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), result, and ui_layout_introspect_items().
Referenced by bpy_rna_uilayout_introspect().
|
static |
Definition at line 6192 of file interface_layout.cc.
References BLI_dynstr_appendf(), uiBut::block, uiButtonItem::but, uiBut::drawstr, uiBlock::evil_C, uiBut::opptr, uiBut::optype, ot, RNA_property_identifier(), RNA_struct_identifier(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, uiBut::tip, PointerRNA::type, uiBut::type, UI_but_operatortype_get_from_enum_menu(), and WM_operator_pystring_ex().
Referenced by ui_layout_introspect_items().
|
static |
Definition at line 6230 of file interface_layout.cc.
References BLI_dynstr_append(), CASE_ITEM, blender::Span< T >::last(), ui_layout_introspect_button(), and ui_layout_introspect_items().
Referenced by UI_layout_introspect(), and ui_layout_introspect_items().
| BLI_INLINE bool ui_layout_is_radial | ( | const uiLayout * | layout | ) |
Definition at line 1457 of file interface_layout.cc.
References BLI_INLINE, 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 5025 of file interface_layout.cc.
References uiButtonItem::but, uiBut::flag, uiLayout::items_, uiItem::type_, UI_but_flag_enable(), UI_BUT_LIST_ITEM, ui_layout_list_set_labels_active(), and UI_SELECT.
Referenced by blender::ui::TreeViewLayoutBuilder::build_row(), ui_layout_list_set_labels_active(), and ui_template_list_layout_draw().
Definition at line 5841 of file interface_layout.cc.
References BLI_assert, uiButtonItem::but, uiLayout::child_items_layout_, uiLayout::items_, blender::Vector< T, InlineBufferCapacity, Allocator >::remove_if(), and UNUSED_VARS_NDEBUG.
Referenced by UI_but_active_only_ex().
Definition at line 5858 of file interface_layout.cc.
References uiButtonItem::but, and ui_layout_find_button_item().
Referenced by ui_but_change_type().
|
static |
Definition at line 269 of file interface_layout.cc.
References UI_ITEM_VARY_X, ui_layout_vary_direction(), and uiLayout::variable_size_.
Referenced by ui_item_rna_size(), ui_item_with_label(), and ui_text_icon_width_ex().
|
static |
Definition at line 261 of file interface_layout.cc.
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 4606 of file interface_layout.cc.
References uiLayout::h_, uiLayout::items_, min_ii(), ui_item_offset(), ui_item_size(), and uiLayout::w_.
Referenced by ui_item_estimate().
|
static |
Definition at line 4075 of file interface_layout.cc.
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 3817 of file interface_layout.cc.
References Vector< T, InlineBufferCapacity, Allocator >::begin(), Vector< T, InlineBufferCapacity, Allocator >::end(), uiItem::flag_, uiLayout::h_, uiLayout::items_, Vector< T, InlineBufferCapacity, Allocator >::last(), nullptr, uiLayout::space_, spaces_after_column_item(), ui_item_size(), and uiLayout::w_.
Referenced by ui_item_estimate(), ui_litem_estimate_box(), and ui_litem_estimate_panel_body().
|
static |
Definition at line 4133 of file interface_layout.cc.
References uiStyle::buttonspacey, col, uiLayoutRoot::emw, uiLayout::h_, uiLayout::items_, max_ii(), min_ii(), uiLayoutItemFlow::number, uiLayout::root_, uiLayout::space_, uiLayoutRoot::style, uiLayoutItemFlow::totcol, ui_item_size(), uiLayout::w_, x, y, and uiLayout::y_.
Referenced by ui_item_estimate().
|
static |
Definition at line 4419 of file interface_layout.cc.
References uiStyle::buttonspacey, ceilf, uiLayoutItemGridFlow::columns_len, uiStyle::columnspace, uiLayoutItemGridFlow::even_columns, uiLayoutItemGridFlow::even_rows, uiLayout::h_, input, uiLayout::items_, max_ii(), min_ii(), output, uiLayout::root_, uiLayoutItemGridFlow::row_major, step, uiLayoutRoot::style, uiLayoutItemGridFlow::tot_columns, uiLayoutItemGridFlow::tot_items, uiLayoutItemGridFlow::tot_rows, ui_litem_grid_flow_compute(), uiLayout::w_, uiLayout::x_, and uiLayout::y_.
Referenced by ui_item_estimate().
|
static |
Definition at line 4740 of file interface_layout.cc.
References uiLayout::h_, uiLayout::items_, ui_item_size(), and uiLayout::w_.
Referenced by ui_item_estimate().
|
static |
Definition at line 4058 of file interface_layout.cc.
References ui_litem_estimate_column().
Referenced by ui_item_estimate().
|
static |
Definition at line 4027 of file interface_layout.cc.
References BLI_assert, Vector< T, InlineBufferCapacity, Allocator >::first(), uiLayout::h_, uiLayout::items_, Vector< T, InlineBufferCapacity, Allocator >::size(), ui_item_size(), w(), and uiLayout::w_.
Referenced by ui_item_estimate().
|
static |
Definition at line 3988 of file interface_layout.cc.
Referenced by ui_item_estimate().
|
static |
Definition at line 3584 of file interface_layout.cc.
References uiItem::flag_, uiLayout::h_, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), uiLayout::items_, Vector< T, InlineBufferCapacity, Allocator >::last(), uiLayout::space_, ui_item_size(), and uiLayout::w_.
Referenced by ui_item_estimate(), and ui_litem_estimate_split().
|
static |
Definition at line 4689 of file interface_layout.cc.
References uiItem::flag_, and ui_litem_estimate_row().
Referenced by ui_item_estimate().
|
static |
Definition at line 4282 of file interface_layout.cc.
References BLI_assert, ceilf, col, UILayoutGridFlowOutput::cos_x_array, UILayoutGridFlowOutput::cos_y_array, UILayoutGridFlowInput::even_columns, UILayoutGridFlowInput::even_rows, UILayoutGridFlowOutput::global_avg_w, UILayoutGridFlowOutput::global_max_h, UILayoutGridFlowOutput::heights_array, i, blender::Span< T >::is_empty(), UILayoutGridFlowInput::litem_w, UILayoutGridFlowInput::litem_x, UILayoutGridFlowInput::litem_y, max_ii(), UILayoutGridFlowInput::row_major, UILayoutGridFlowInput::space_x, UILayoutGridFlowInput::space_y, UILayoutGridFlowInput::tot_columns, UILayoutGridFlowOutput::tot_h, UILayoutGridFlowOutput::tot_items, UILayoutGridFlowInput::tot_rows, 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 4772 of file interface_layout.cc.
References uiLayout::active_, uiLayout::align_, Vector< T, InlineBufferCapacity, Allocator >::append(), uiLayout::child_items_layout_, uiLayout::context_, uiLayout::emboss_, uiLayout::enabled_, uiItem::flag_, uiLayout::items_, uiLayout::parent_, uiLayout::redalert_, uiLayout::root_, uiItem::type_, uiLayout::variable_size_, and uiLayout::w_.
Referenced by uiLayout::absolute(), uiLayout::column(), uiLayout::column_flow(), uiLayout::grid_flow(), uiLayout::menu_pie(), uiLayout::overlap(), uiLayout::panel_prop(), uiLayout::row(), uiLayout::split(), and ui_layout_box().
|
static |
Definition at line 4629 of file interface_layout.cc.
References uiLayout::h_, uiLayout::items_, max_ii(), min_ii(), ui_item_offset(), ui_item_position(), ui_item_size(), uiLayout::w_, x, uiLayout::x_, y, and uiLayout::y_.
Referenced by ui_item_layout().
|
static |
Definition at line 4089 of file interface_layout.cc.
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 3844 of file interface_layout.cc.
References Vector< T, InlineBufferCapacity, Allocator >::begin(), Vector< T, InlineBufferCapacity, Allocator >::end(), uiItem::flag_, uiLayout::h_, uiLayout::items_, Vector< T, InlineBufferCapacity, Allocator >::last(), nullptr, uiLayout::space_, spaces_after_column_item(), ui_item_position(), ui_item_size(), uiLayout::w_, x, uiLayout::x_, y, and uiLayout::y_.
Referenced by ui_item_layout(), ui_litem_layout_box(), ui_litem_layout_panel_body(), and ui_litem_layout_root().
|
static |
Definition at line 4196 of file interface_layout.cc.
References uiLayout::alignment_, uiStyle::buttonspacey, col, uiStyle::columnspace, uiLayout::h_, uiLayout::items_, min_ii(), uiLayout::root_, uiLayoutRoot::style, uiLayoutItemFlow::totcol, ui_item_position(), ui_item_size(), UI_LAYOUT_ALIGN_EXPAND, w(), uiLayout::w_, x, uiLayout::x_, y, and uiLayout::y_.
Referenced by ui_item_layout().
|
static |
Definition at line 4543 of file interface_layout.cc.
References uiLayout::alignment_, BLI_assert, uiStyle::buttonspacey, col, uiStyle::columnspace, blender::Array< T, InlineBufferCapacity, Allocator >::data(), uiLayoutItemGridFlow::even_columns, uiLayoutItemGridFlow::even_rows, uiLayout::h_, i, input, uiLayout::items_, min_ii(), output, 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 4754 of file interface_layout.cc.
References uiLayout::h_, uiLayout::items_, ui_item_position(), ui_item_size(), uiLayout::w_, x, uiLayout::x_, y, and uiLayout::y_.
Referenced by ui_item_layout().
|
static |
Definition at line 4063 of file interface_layout.cc.
References Vector< T, InlineBufferCapacity, Allocator >::append(), uiLayoutRoot::block, LayoutPanels::bodies, uiLayout::h_, Panel_Runtime::layout_panels, uiBlock::panel, uiStyle::panelspace, uiLayout::root_, Panel::runtime, uiLayout::space_, ui_litem_layout_column(), UI_style_get_dpi(), and uiLayout::y_.
Referenced by ui_item_layout().
|
static |
Definition at line 4038 of file interface_layout.cc.
References Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_assert, uiLayoutRoot::block, Vector< T, InlineBufferCapacity, Allocator >::first(), uiLayout::h_, LayoutPanels::headers, uiLayout::items_, Panel_Runtime::layout_panels, uiLayoutItemPanelHeader::open_prop_name, uiLayoutItemPanelHeader::open_prop_owner, uiBlock::panel, uiStyle::panelspace, uiLayout::root_, Panel::runtime, Vector< T, InlineBufferCapacity, Allocator >::size(), ui_item_position(), ui_item_size(), UI_style_get_dpi(), w(), uiLayout::w_, uiLayout::x_, and uiLayout::y_.
Referenced by ui_item_layout().
|
static |
Definition at line 3909 of file interface_layout.cc.
References uiLayoutRoot::block, uiButtonItem::but, uiBut::drawflag, ELEM, uiBut::emboss, uiLayout::h_, uiLayout::items_, max_ii(), min_ii(), uiBlock::pie_data, uiBut::pie_dir, PieMenuData::pie_dir_mask, blender::ui::PieMenu, uiBut::rect, uiLayout::root_, uiBut::type, uiItem::type_, U, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, UI_BUT_ICON_LEFT, ui_get_radialbut_vec(), ui_item_is_radial_displayable(), ui_item_is_radial_drawable(), ui_item_position(), ui_item_size(), UI_SCALE_FAC, UI_UNIT_X, uiLayout::w_, x, uiLayout::x_, rctf::xmax, y, uiLayout::y_, and rctf::ymax.
Referenced by ui_item_layout().
|
static |
Definition at line 4010 of file interface_layout.cc.
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 3993 of file interface_layout.cc.
References Vector< T, InlineBufferCapacity, Allocator >::first(), uiLayout::items_, uiItem::type_, U, ui_item_position(), ui_item_size(), UI_SCALE_FAC, x, uiLayout::x_, y, and uiLayout::y_.
Referenced by ui_litem_layout_root().
|
static |
Definition at line 3621 of file interface_layout.cc.
References uiLayout::alignment_, Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), ELEM, flag, uiItem::flag_, uiLayout::h_, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), uiLayout::items_, Vector< T, InlineBufferCapacity, Allocator >::last(), min_ii(), uiLayout::space_, uiItem::type_, ui_item_fit(), 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_, y, and uiLayout::y_.
Referenced by ui_item_layout(), and ui_litem_layout_root().
|
static |
Definition at line 4695 of file interface_layout.cc.
References uiLayout::h_, uiLayout::items_, Vector< T, InlineBufferCapacity, Allocator >::last(), Vector< T, InlineBufferCapacity, Allocator >::size(), uiLayout::space_, split(), ui_item_position(), ui_item_size(), w(), uiLayout::w_, x, uiLayout::x_, y, and uiLayout::y_.
Referenced by ui_item_layout().
|
static |
Definition at line 3616 of file interface_layout.cc.
References UI_UNIT_X.
Referenced by ui_litem_layout_row().
|
static |
Definition at line 1394 of file interface_layout.cc.
References uiLayoutRoot::block, CTX_IFACE_, uiBlock::evil_C, free(), MEM_freeN(), ptr, RNA_enum_name(), RNA_property_enum_items(), RNA_property_translation_context(), and uiLayout::root_.
Referenced by uiItemEnumO_ptr().
Definition at line 6050 of file interface_layout.cc.
References C, uiLayout::context_, CTX_store_get(), CTX_store_set(), MenuType::draw, bContextStore::entries, Vector< T, InlineBufferCapacity, Allocator >::extend(), MenuType::flag, G, G_DEBUG_WM, MenuType::idname, Menu::layout, MenuType::listener, printf, SearchOnKeyPress, Menu::type, ui_block_add_dynamic_listener(), UI_block_flag_enable(), UI_BLOCK_NO_ACCELERATOR_KEYS, and uiLayoutGetBlock().
Referenced by blender::ed::asset_browser::AssetCatalogTreeViewItem::build_context_menu(), blender::ui::bonecollections::BoneCollectionItem::build_context_menu(), blender::ui::greasepencil::LayerGroupViewItem::build_context_menu(), menu_items_from_ui_create(), ui_item_menu_hold(), ui_item_menutype_func(), UI_pie_menu_invoke(), ui_popup_context_menu_for_button(), UI_popup_menu_invoke(), uiItemMContents(), wm_block_about_create(), and wm_block_splash_create().
Used for popup panels only.
Definition at line 6166 of file interface_layout.cc.
References C, uiLayout::context_, CTX_store_set(), and ui_paneltype_draw_impl().
Referenced by ui_item_paneltype_func(), and UI_popover_panel_invoke().
|
static |
Definition at line 6106 of file interface_layout.cc.
References BKE_panel_free(), BKE_panel_new(), BLI_assert, C, PanelType::children, col, uiLayout::column(), CTX_IFACE_, Panel_Runtime::custom_data_ptr, PanelType::draw, PanelType::draw_header, Panel::flag, uiBlock::handle, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), uiLayout::items_, PanelType::label, uiLayout::label(), Vector< T, InlineBufferCapacity, Allocator >::last(), Panel::layout, LISTBASE_FOREACH, PanelType::listener, nullptr, PNL_POPOVER, PanelType::poll, uiPopupBlockHandle::region, uiLayout::row(), Panel::runtime, uiLayout::separator(), PanelType::translation_context, ui_block_add_dynamic_listener(), ui_layout_has_panel_label(), ui_paneltype_draw_impl(), UI_popup_dummy_panel_set(), and uiLayoutGetBlock().
Referenced by UI_paneltype_draw(), and ui_paneltype_draw_impl().
|
static |
Definition at line 2637 of file interface_layout.cc.
References uiRNACollectionSearch::butstore, uiRNACollectionSearch::butstore_block, ptr, and UI_butstore_free().
Referenced by ui_but_add_search().
|
static |
Definition at line 341 of file interface_layout.cc.
References UI_FSTYLE_WIDGET, ui_text_icon_width_ex(), ui_text_pad_compact, and ui_text_pad_default.
Referenced by uiLayout::panel_prop(), ui_item_array(), ui_item_disabled(), ui_item_enum_expand_elem_exec(), ui_item_rna_size(), and uiItemFullO_ptr_ex().
|
static |
Estimated size of text + icon.
Definition at line 306 of file interface_layout.cc.
References uiLayout::alignment_, uiBlock::aspect, uiLayoutRoot::block, ceilf, uiItem::flag_, uiTextIconPadFactor::icon, uiTextIconPadFactor::icon_only, blender::StringRefBase::is_empty(), uiLayout::root_, uiLayout::scale_, uiTextIconPadFactor::text, UI_fontstyle_string_width_with_block_aspect(), UI_LAYOUT_ALIGN_EXPAND, ui_layout_variable_size(), and UI_UNIT_X.
Referenced by ui_item_menu(), ui_item_with_label(), ui_text_icon_width(), and uiItemL_().
| void uiItemDecoratorR | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| std::optional< blender::StringRefNull > | 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 3009 of file interface_layout.cc.
References ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, ui_item_disabled(), and uiItemDecoratorR_prop().
Referenced by blender::nodes::add_attribute_search_or_value_buttons(), data_panel_draw(), panel_draw(), panel_draw(), template_search_buttons(), blender::ed::space_node::ui_node_draw_input(), and uiTemplateCacheFileTimeSettings().
| 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 2954 of file interface_layout.cc.
References uiLayoutRoot::block, col, uiLayout::column(), uiButDecorator::decorated_rnaindex, uiButDecorator::decorated_rnapoin, uiButDecorator::decorated_rnaprop, ELEM, uiBut::flag, i, blender::ui::None, ptr, RNA_property_animateable(), RNA_property_array_check(), RNA_property_array_length(), 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_ITEM_NONE, ui_item_rna_is_expand(), UI_UNIT_X, UI_UNIT_Y, and uiDefIconBut().
Referenced by uiLayout::prop(), and uiItemDecoratorR().
| void uiItemEnumO | ( | uiLayout * | layout, |
| const StringRefNull | opname, | ||
| const std::optional< StringRef > | name, | ||
| int | icon, | ||
| const StringRefNull | propname, | ||
| int | value ) |
Definition at line 1439 of file interface_layout.cc.
References blender::StringRefNull::c_str(), ot, RNA_warning, ui_item_disabled(), uiItemEnumO_ptr(), and WM_operatortype_find().
Referenced by armature_parent_clear_invoke(), armature_parent_set_invoke(), blender::nodes::socket_items::ui::draw_items_list_with_operators(), and blender::ed::space_node::node_group_separate_invoke().
| void uiItemEnumO_ptr | ( | uiLayout * | layout, |
| wmOperatorType * | ot, | ||
| std::optional< StringRef > | name, | ||
| int | icon, | ||
| const StringRefNull | propname, | ||
| int | value ) |
Definition at line 1419 of file interface_layout.cc.
References blender::StringRefNull::c_str(), uiLayout::op(), uiLayoutRoot::opcontext, ot, ptr, RNA_property_enum_set(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::root_, UI_ITEM_NONE, ui_menu_enumpropname(), and WM_operator_properties_create_ptr().
Referenced by blender::ed::object::parent_set_invoke_menu(), text_resolve_conflict_invoke(), and uiItemEnumO().
| void uiItemEnumO_string | ( | uiLayout * | layout, |
| const StringRef | name, | ||
| int | icon, | ||
| const StringRefNull | opname, | ||
| const StringRefNull | propname, | ||
| const char * | value_str ) |
Definition at line 1700 of file interface_layout.cc.
References uiLayoutRoot::block, blender::StringRefNull::c_str(), uiBlock::evil_C, free(), MEM_freeN(), uiLayout::op(), 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_, UI_ITEM_NONE, UI_OPERATOR_ERROR_RET, WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by blender::panel_draw().
| void uiItemEnumO_value | ( | uiLayout * | layout, |
| blender::StringRefNull | name, | ||
| int | icon, | ||
| blender::StringRefNull | opname, | ||
| blender::StringRefNull | propname, | ||
| int | value ) |
For use in cases where we have.
Definition at line 1677 of file interface_layout.cc.
References blender::StringRefNull::c_str(), uiLayout::op(), uiLayoutRoot::opcontext, ot, ptr, RNA_property_enum_set(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::root_, UI_ITEM_NONE, UI_OPERATOR_ERROR_RET, WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by ui_template_palette_menu().
| void uiItemEnumR_prop | ( | uiLayout * | layout, |
| const std::optional< StringRefNull > | name, | ||
| int | icon, | ||
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | value ) |
Definition at line 2474 of file interface_layout.cc.
References blender::StringRefNull::c_str(), uiLayout::prop(), PROP_ENUM, ptr, RNA_ENUM_VALUE, RNA_property_identifier(), RNA_property_type(), RNA_struct_identifier(), RNA_warning, ui_item_disabled(), and UI_ITEM_NONE.
Referenced by uiItemsEnumR().
| void uiItemEnumR_string | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const StringRefNull | propname, | ||
| const char * | value, | ||
| const std::optional< StringRefNull > | name, | ||
| int | icon ) |
Definition at line 2541 of file interface_layout.cc.
References blender::StringRefNull::c_str(), ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, ui_item_disabled(), uiItemEnumR_string_prop(), and UNLIKELY.
| void uiItemEnumR_string_prop | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const char * | value, | ||
| const std::optional< StringRefNull > | name, | ||
| int | icon ) |
Definition at line 2491 of file interface_layout.cc.
References uiLayoutRoot::block, blender::StringRefNull::c_str(), CTX_IFACE_, uiBlock::evil_C, flag, free(), EnumPropertyItem::identifier, blender::StringRefBase::is_empty(), MEM_freeN(), uiLayout::prop(), 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_, ui_item_disabled(), UI_ITEM_NONE, UI_ITEM_R_ICON_ONLY, and UNLIKELY.
Referenced by uiItemEnumR_string().
|
static |
Operator Item
| r_opptr | Optional, initialize with operator properties when not nullptr. Will always be written to even in the case of errors. |
Definition at line 1233 of file interface_layout.cc.
References uiLayout::active_default_, BLI_assert, uiLayoutRoot::block, blender::bke::idprop::create_group(), PointerRNA::data, uiLayout::emboss_, flag, uiBut::flag, blender::ui::NoneOrStatus, uiBut::optype, ot, uiLayout::redalert_, uiLayout::root_, 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_ensure(), UI_BUT_REDALERT, 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 uiLayout::op(), and uiItemFullOMenuHold_ptr().
| void uiItemFullOMenuHold_ptr | ( | uiLayout * | layout, |
| wmOperatorType * | ot, | ||
| std::optional< StringRef > | name, | ||
| int | icon, | ||
| const wmOperatorCallContext | context, | ||
| const eUI_Item_Flag | flag, | ||
| const char * | menu_id, | ||
| PointerRNA * | r_opptr ) |
Definition at line 1369 of file interface_layout.cc.
References BLI_strdup(), flag, ot, UI_but_func_hold_set(), ui_item_menu_hold(), and uiItemFullO_ptr_ex().
| void uiItemFullR_with_menu | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index, | ||
| int | value, | ||
| const eUI_Item_Flag | flag, | ||
| const std::optional< StringRefNull > | name, | ||
| int | icon, | ||
| const char * | menu_type ) |
Definition at line 2443 of file interface_layout.cc.
References uiLayoutRoot::block, uiBlock::buttons, blender::StringRefNull::c_str(), flag, i, uiLayout::prop(), ptr, RNA_property_identifier(), RNA_struct_identifier(), RNA_warning, uiBut::rnaprop, uiLayout::root_, Vector< T, InlineBufferCapacity, Allocator >::size(), uiBut::type, UI_BTYPE_MENU, ui_but_rna_menu_convert_to_menu_type(), and ui_item_disabled().
| void uiItemFullR_with_popover | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index, | ||
| int | value, | ||
| eUI_Item_Flag | flag, | ||
| std::optional< blender::StringRefNull > | 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 2413 of file interface_layout.cc.
References uiLayoutRoot::block, uiBlock::buttons, blender::StringRefNull::c_str(), ELEM, flag, i, uiLayout::prop(), ptr, RNA_property_identifier(), RNA_struct_identifier(), RNA_warning, uiBut::rnaprop, uiLayout::root_, Vector< T, InlineBufferCapacity, Allocator >::size(), uiBut::type, UI_BTYPE_COLOR, UI_BTYPE_MENU, ui_but_rna_menu_convert_to_panel_type(), and ui_item_disabled().
Definition at line 3116 of file interface_layout.cc.
References uiLayoutRoot::block, uiBut::drawflag, uiBlock::flag, uiBut::flag, blender::StringRefBase::is_empty(), 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_FSTYLE_WIDGET, UI_LAYOUT_ALIGN_RIGHT, UI_LAYOUT_MENU, ui_text_icon_width_ex(), ui_text_pad_none, UI_UNIT_Y, uiDefBut(), uiDefIconBut(), uiDefIconTextBut(), uiLayoutGetAlignment(), and w().
Referenced by uiLayout::label(), uiItemL_ex(), uiItemL_respect_property_split(), and uiItemLDrag().
| uiBut * uiItemL_ex | ( | uiLayout * | layout, |
| const StringRef | name, | ||
| int | icon, | ||
| const bool | highlight, | ||
| const bool | redalert ) |
Definition at line 3162 of file interface_layout.cc.
References UI_but_flag_enable(), UI_BUT_REDALERT, UI_SELECT_DRAW, and uiItemL_().
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), block_create_gpu_backend_fallback(), block_create_opengl_usage_warning(), block_create_save_file_overwrite_dialog(), blender::ui::bonecollections::BoneCollectionItem::build_row(), blender::ui::template_breadcrumbs(), uiTemplateInputStatus(), wm_block_about_create(), wm_block_create_redo(), wm_block_dialog_create(), and wm_block_insert_unicode_create().
| uiLayout * uiItemL_respect_property_split | ( | uiLayout * | layout, |
| blender::StringRef | text, | ||
| int | icon ) |
Helper to add a label using a property split layout if needed. After calling this the active layout will be the one to place the labeled items in. An additional layout may be returned to place decorator buttons in.
Definition at line 3201 of file interface_layout.cc.
References uiPropertySplitWrapper::decorate_column, uiItem::flag_, uiPropertySplitWrapper::label_column, uiPropertySplitWrapper::property_row, UI_block_layout_set_current(), ui_item_name_add_colon(), UI_MAX_NAME_STR, uiItemL_(), uiItemPropertySplitWrapperCreate(), and uiLayoutGetBlock().
Referenced by graph_panel_key_properties(), template_ID(), template_search_buttons(), ui_item_with_label(), and ui_layout_heading_label_add().
| void uiItemLDrag | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRef | name, | ||
| int | icon ) |
Label icon for dragging.
Definition at line 3221 of file interface_layout.cc.
References ptr, RNA_struct_is_ID(), UI_but_drag_set_id(), and uiItemL_().
Referenced by buttons_panel_context_draw().
| void uiItemMContents | ( | uiLayout * | layout, |
| blender::StringRef | menuname ) |
Menu contents.
Definition at line 2937 of file interface_layout.cc.
References uiLayoutRoot::block, C, uiBlock::evil_C, RNA_warning, uiLayout::root_, UI_menutype_draw(), WM_menutype_find(), and WM_menutype_poll().
Referenced by blender::ed::outliner::outliner_operator_menu(), blender::ed::object::ui_template_modifier_asset_menu_items(), blender::ed::space_node::ui_template_node_asset_menu_items(), and blender::ed::geometry::ui_template_node_operator_asset_menu_items().
| void uiItemMenuEnumFullO | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| const StringRefNull | opname, | ||
| const StringRefNull | propname, | ||
| StringRefNull | name, | ||
| int | icon, | ||
| PointerRNA * | r_opptr ) |
Definition at line 3488 of file interface_layout.cc.
References C, blender::StringRefNull::c_str(), ot, RNA_warning, ui_item_disabled(), UI_OPERATOR_ERROR_RET, uiItemMenuEnumFullO_ptr(), and WM_operatortype_find().
Referenced by uiItemMenuEnumO().
| void uiItemMenuEnumFullO_ptr | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| wmOperatorType * | ot, | ||
| blender::StringRefNull | propname, | ||
| std::optional< blender::StringRefNull > | name, | ||
| int | icon, | ||
| PointerRNA * | r_opptr ) |
Level items.
Definition at line 3432 of file interface_layout.cc.
References BLI_assert, uiLayoutRoot::block, but_func_argN_copy(), but_func_argN_free(), C, blender::StringRefNull::c_str(), PointerRNA::data, uiBlock::flag, menu_item_enum_opname_menu(), MenuItemLevel::opcontext, uiLayoutRoot::opcontext, MenuItemLevel::opname, uiBut::opptr, ot, MenuItemLevel::propname, uiLayout::root_, STRNCPY(), uiLayoutRoot::type, UI_BLOCK_LOOP, ui_but_add_shortcut(), ui_item_menu(), UI_LAYOUT_MENU, WM_key_event_operator_string(), WM_operator_properties_alloc(), WM_operator_properties_create_ptr(), and WM_operatortype_name().
Referenced by screen_user_menu_draw(), and uiItemMenuEnumFullO().
| void uiItemMenuEnumO | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| const StringRefNull | opname, | ||
| const StringRefNull | propname, | ||
| StringRefNull | name, | ||
| int | icon ) |
Definition at line 3509 of file interface_layout.cc.
References C, and uiItemMenuEnumFullO().
Referenced by file_panel_asset_catalog_buttons_draw(), graph_panel_modifiers(), and nla_panel_modifiers().
| void uiItemMenuEnumR_prop | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const std::optional< StringRefNull > | name, | ||
| int | icon ) |
Definition at line 3527 of file interface_layout.cc.
References but_func_argN_copy(), but_func_argN_free(), menu_item_enum_rna_menu(), MenuItemLevel::opcontext, uiLayoutRoot::opcontext, MenuItemLevel::propname, ptr, RNA_property_description(), RNA_property_identifier(), RNA_property_ui_name(), MenuItemLevel::rnapoin, uiLayout::root_, STRNCPY(), uiLayoutRoot::type, ui_item_menu(), and UI_LAYOUT_MENU.
| void uiItemPointerR | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const StringRefNull | propname, | ||
| PointerRNA * | searchptr, | ||
| const StringRefNull | searchpropname, | ||
| const std::optional< StringRefNull > | name, | ||
| int | icon ) |
Definition at line 2790 of file interface_layout.cc.
References blender::StringRefNull::c_str(), ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, and uiItemPointerR_prop().
Referenced by blender::nodes::node_composite_planetrackdeform_cc::cmp_node_planetrackdeform_declare(), blender::modifier::greasepencil::draw_layer_filter_settings(), blender::modifier::greasepencil::draw_material_filter_settings(), blender::nodes::draw_property_for_socket(), blender::modifier::greasepencil::draw_vertex_group_settings(), edbm_blend_from_shape_ui(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__transChan(), layers_panel_draw(), modifier_vgroup_ui(), blender::nodes::node_composite_keyingscreen_cc::node_composit_buts_keyingscreen(), blender::nodes::node_composite_trackpos_cc::node_composit_buts_trackpos(), blender::nodes::node_shader_normal_map_cc::node_shader_buts_normal_map(), blender::nodes::node_shader_tangent_cc::node_shader_buts_tangent(), blender::nodes::node_shader_tex_pointdensity_cc::node_shader_buts_tex_pointdensity(), blender::nodes::node_shader_uvmap_cc::node_shader_buts_uvmap(), blender::nodes::node_shader_vertex_color_cc::node_shader_buts_vertex_color(), blender::panel_draw(), blender::panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), texture_panel_draw(), texture_panel_draw(), vertex_group_panel_draw(), blender::vgroup_panel_draw(), and weightvg_ui_common().
| void uiItemPointerR_prop | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| PointerRNA * | searchptr, | ||
| PropertyRNA * | searchprop, | ||
| const std::optional< StringRefNull > | name_opt, | ||
| int | icon, | ||
| bool | results_are_suggestions ) |
Definition at line 2733 of file interface_layout.cc.
References ELEM, uiItem::flag_, 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, PointerRNA::type, ui_block_new_button_group(), ui_but_add_search(), ui_item_name_add_colon(), ui_item_rna_size(), ui_item_with_label(), UI_MAX_NAME_STR, UI_UNIT_X, uiLayoutGetBlock(), and w().
Referenced by uiItemPointerR().
| void uiItemPopoverPanel | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| const StringRef | panel_type, | ||
| std::optional< blender::StringRef > | name_opt, | ||
| int | icon ) |
Definition at line 3069 of file interface_layout.cc.
References C, RNA_warning, uiItemPopoverPanel_ptr(), and WM_paneltype_find().
| void uiItemPopoverPanel_ptr | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PanelType * | pt, | ||
| const std::optional< StringRef > | name_opt, | ||
| int | icon ) |
Definition at line 3031 of file interface_layout.cc.
References C, uiLayout::context_, CTX_IFACE_, CTX_store_get(), CTX_store_set(), PanelType::description, PanelType::draw_header, Panel::flag, uiBut::flag, PanelType::label, Panel::layout, PNL_POPOVER, PanelType::poll, uiLayout::root_, uiLayout::row(), Panel::runtime, TIP_, PanelType::translation_context, Panel::type, uiBut::type, uiLayoutRoot::type, UI_BTYPE_POPOVER, UI_BUT_DISABLED, ui_item_menu(), ui_item_paneltype_func(), and UI_LAYOUT_MENU.
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 3083 of file interface_layout.cc.
References BKE_regiontype_from_id(), BKE_spacetype_from_id(), C, LISTBASE_FOREACH, ARegionType::paneltypes, RNA_warning, STREQ, and uiItemPopoverPanel_ptr().
| void uiItemProgressIndicator | ( | uiLayout * | layout, |
| const char * | text, | ||
| const float | factor, | ||
| const eButProgressType | progress_type ) |
Definition at line 3280 of file interface_layout.cc.
References uiLayoutRoot::block, uiBut::drawflag, progress_bar(), uiLayout::root_, UI_block_layout_set_current(), UI_BTYPE_PROGRESS, UI_BUT_PROGRESS_TYPE_BAR, UI_BUT_PROGRESS_TYPE_RING, UI_BUT_TEXT_LEFT, UI_UNIT_X, UI_UNIT_Y, and uiDefBut().
| uiPropertySplitWrapper uiItemPropertySplitWrapperCreate | ( | uiLayout * | parent_layout | ) |
Normally, we handle the split layout in uiLayout::prop(), but there are other cases where the logic is needed. Ideally, uiLayout::prop() could just call this, but it currently has too many special needs.
The returned #uiPropertySplitWrapper.decorator_column may be null when decorators are disabled (uiLayoutGetPropDecorate() returns false).
Definition at line 3184 of file interface_layout.cc.
References uiLayout::alignment_, uiLayout::column(), uiPropertySplitWrapper::decorate_column, uiPropertySplitWrapper::label_column, uiPropertySplitWrapper::property_row, uiLayout::row(), uiLayout::split(), UI_ITEM_PROP_SEP_DIVIDE, ui_item_prop_split_layout_hack(), UI_LAYOUT_ALIGN_RIGHT, and uiLayoutGetPropDecorate().
Referenced by blender::ed::space_node::ui_node_draw_input(), and uiItemL_respect_property_split().
| uiLayout * uiItemsAlertBox | ( | uiBlock * | block, |
| const int | size, | ||
| const eAlertIcon | icon ) |
Definition at line 6336 of file interface_layout.cc.
References uiFontStyle::points, size(), UI_SCALE_FAC, UI_style_get_dpi(), uiItemsAlertBox(), and uiStyle::widget.
| uiLayout * uiItemsAlertBox | ( | uiBlock * | block, |
| const uiStyle * | style, | ||
| const int | dialog_width, | ||
| const eAlertIcon | icon, | ||
| const int | icon_size ) |
Helpers 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 6304 of file interface_layout.cc.
References uiLayout::column(), uiStyle::columnspace, uiLayout::row(), uiLayout::split(), UI_block_layout(), UI_LAYOUT_ALIGN_LEFT, UI_LAYOUT_PANEL, UI_LAYOUT_VERTICAL, UI_SCALE_FAC, uiDefButAlert(), and uiLayoutSetAlignment().
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), block_create_gpu_backend_fallback(), block_create_opengl_usage_warning(), block_create_save_file_overwrite_dialog(), uiItemsAlertBox(), and wm_block_dialog_create().
| void uiItemsEnumO | ( | uiLayout * | layout, |
| const StringRefNull | opname, | ||
| const StringRefNull | propname ) |
Definition at line 1672 of file interface_layout.cc.
References uiLayoutRoot::opcontext, uiLayout::root_, UI_ITEM_NONE, and uiItemsFullEnumO().
Referenced by keyingset_active_menu_invoke(), blender::ed::outliner::outliner_operator_menu(), blender::ed::transform::select_orientation_invoke(), toggle_cyclic_invoke(), UI_pie_menu_invoke_from_operator_enum(), and unpack_all_invoke().
| void uiItemsEnumR | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const StringRefNull | propname ) |
Definition at line 2558 of file interface_layout.cc.
References uiLayoutRoot::block, uiBlock::buttons, blender::StringRefNull::c_str(), uiBut::drawflag, uiBlock::evil_C, free(), i, uiLayout::label(), Vector< T, InlineBufferCapacity, Allocator >::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_, uiLayout::separator(), split(), uiLayout::split(), UI_BUT_TEXT_LEFT, ui_but_tip_from_enum_item(), ui_item_disabled(), and uiItemEnumR_prop().
Referenced by menu_item_enum_rna_menu().
| void uiItemsFullEnumO | ( | uiLayout * | layout, |
| blender::StringRefNull | opname, | ||
| blender::StringRefNull | propname, | ||
| IDProperty * | properties, | ||
| wmOperatorCallContext | context, | ||
| eUI_Item_Flag | flag, | ||
| const int | active = -1 ) |
Create a list of enum items.
| active | an optional item to highlight. |
Definition at line 1601 of file interface_layout.cc.
References active, BLI_assert, uiLayoutRoot::block, C, blender::StringRefNull::c_str(), uiLayout::context_, CTX_store_get(), CTX_store_set(), uiBlock::evil_C, flag, free(), MEM_freeN(), 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_, ui_item_disabled(), ui_layout_is_radial(), uiItemsFullEnumO_items(), WM_operator_properties_create_ptr(), WM_operator_properties_sanitize(), and WM_operatortype_find().
Referenced by menu_item_enum_opname_menu(), uiItemsEnumO(), unpack_item_invoke(), blender::ed::object::bake_simulation::unpack_single_bake_invoke(), and WM_menu_invoke_ex().
| void uiItemsFullEnumO_items | ( | uiLayout * | layout, |
| wmOperatorType * | ot, | ||
| const PointerRNA & | ptr, | ||
| PropertyRNA * | prop, | ||
| IDProperty * | properties, | ||
| wmOperatorCallContext | context, | ||
| eUI_Item_Flag | flag, | ||
| const EnumPropertyItem * | item_array, | ||
| int | totitem, | ||
| int | active = -1 ) |
Create UI items for enum items in item_array.
A version of uiItemsFullEnumO that takes pre-calculated item array.
| active | if not -1, will highlight that item. |
Definition at line 1463 of file interface_layout.cc.
References active, uiLayout::align_, uiLayoutRoot::block, uiBlock::buttons, blender::StringRefNull::c_str(), PointerRNA::data_as(), flag, uiBut::flag, i, EnumPropertyItem::icon, EnumPropertyItem::identifier, IDP_CopyPropertyContent(), uiLayout::label(), Vector< T, InlineBufferCapacity, Allocator >::last(), uiLayout::menu_pie(), EnumPropertyItem::name, uiLayout::op(), ot, PIE_MAX_ITEMS, PROP_ENUM, ptr, RNA_property_enum_set(), RNA_property_identifier(), RNA_property_type(), RNA_struct_identifier(), RNA_warning, uiLayout::root_, uiLayout::separator(), split(), uiLayout::split(), UI_block_layout_set_current(), 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_SELECT_DRAW, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconBut(), uiLayoutGetLocalDir(), and EnumPropertyItem::value.
Referenced by ui_pie_menu_level_invoke(), and uiItemsFullEnumO().
| void uiItemSpacer | ( | uiLayout * | layout | ) |
Flexible spacing.
Definition at line 3323 of file interface_layout.cc.
References uiLayoutRoot::block, uiBlock::direction, printf, 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 blender::ed::asset::shelf::asset_shelf_header_draw(), buttons_panel_context_draw(), and blender::ed::spreadsheet::spreadsheet_footer_region_draw().
| void uiItemTabsEnumR_prop | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| PointerRNA * | ptr_highlight, | ||
| PropertyRNA * | prop_highlight, | ||
| bool | icon_only ) |
Definition at line 3554 of file interface_layout.cc.
References uiLayoutRoot::block, C, ptr, uiLayout::root_, UI_block_layout_set_current(), ui_item_enum_expand_tabs(), and UI_UNIT_Y.
| void uiLayoutContextCopy | ( | uiLayout * | layout, |
| const bContextStore * | context ) |
Definition at line 5957 of file interface_layout.cc.
References uiLayoutRoot::block, uiLayout::context_, uiBlock::contexts, CTX_store_add_all(), and uiLayout::root_.
Referenced by menu_items_from_ui_create(), set_layout_context_from_button(), ui_popover_create_block(), and ui_popup_menu_create_block().
| bool uiLayoutEndsWithPanelHeader | ( | const uiLayout & | layout | ) |
Definition at line 4911 of file interface_layout.cc.
References Vector< T, InlineBufferCapacity, Allocator >::is_empty(), uiLayout::items_, Vector< T, InlineBufferCapacity, Allocator >::last(), and uiItem::type_.
Referenced by ed_panel_draw().
| bool uiLayoutGetActivateInit | ( | uiLayout * | layout | ) |
Definition at line 5209 of file interface_layout.cc.
References uiLayout::activate_init_.
| bool uiLayoutGetActive | ( | uiLayout * | layout | ) |
Definition at line 5199 of file interface_layout.cc.
References uiLayout::active_.
| bool uiLayoutGetActiveDefault | ( | uiLayout * | layout | ) |
Definition at line 5204 of file interface_layout.cc.
References uiLayout::active_default_.
| int uiLayoutGetAlignment | ( | uiLayout * | layout | ) |
Definition at line 5229 of file interface_layout.cc.
References uiLayout::alignment_.
Referenced by uiItemL_().
Definition at line 5766 of file interface_layout.cc.
References uiLayoutRoot::block, and uiLayout::root_.
Referenced by uiLayout::absolute_block(), blender::nodes::add_attribute_search_button(), blender::ed::asset::shelf::add_catalog_tabs(), blender::nodes::add_layer_name_search_button(), blender::ed::asset::shelf::asset_shelf_header_draw(), asset_view_draw_item(), blender::ed::asset::shelf::build_asset_view(), blender::ui::TreeViewLayoutBuilder::build_from_tree(), blender::ed::asset::shelf::AssetViewItem::build_grid_tile(), blender::ui::PreviewGridItem::build_grid_tile_button(), blender::ui::GridViewBuilder::build_grid_view(), blender::ed::asset::shelf::AssetCatalogSelectorTree::Item::build_row(), blender::ui::TreeViewBuilder::build_tree_view(), blender::ed::asset::shelf::catalog_selector_panel_draw(), blender::ed::asset::shelf::catalog_tree_draw(), create_title_button(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), draw_constraint_header(), blender::ed::spreadsheet::draw_viewer_path_panel(), envelope_panel_draw(), blender::ed::asset_browser::file_create_asset_catalog_tree_view_in_layout(), file_panel_execution_buttons_draw(), file_panel_operator(), fmodifier_panel_header(), graph_draw_driven_property_enabled_btn(), graph_draw_driver_settings_panel(), graph_panel_key_properties(), graph_panel_modifiers(), blender::ui::GridViewLayoutBuilder::GridViewLayoutBuilder(), modifier_panel_get_property_pointers(), modifier_panel_header(), nla_panel_actclip(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time(), nla_panel_animated_strip_time_header(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_modifiers(), nla_panel_properties(), nla_panel_stripname(), blender::ed::space_node::node_file_output_socket_draw(), blender::ed::space_node::node_geometry_add_attribute_search_button(), blender::ed::space_node::node_geometry_add_layer_search_button(), panel_draw(), uiLayout::panel_prop(), shaderfx_panel_header(), blender::ed::spreadsheet::spreadsheet_data_set_panel_draw(), blender::ui::template_asset_shelf_popover(), 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_menutype_draw(), blender::ed::space_node::ui_node_draw_input(), blender::ed::space_node::ui_node_menu_column(), ui_paneltype_draw_impl(), UI_popup_block_template_confirm_op(), ui_popup_context_menu_for_button(), ui_popup_context_menu_for_panel(), ui_template_list_layout_draw(), blender::ed::space_node::ui_template_node_link_menu(), uiblock_layer_pass_buttons(), uiItemL_respect_property_split(), uiItemPointerR_prop(), uiLayoutListItemAddPadding(), uiTemplateBoneCollectionTree(), uiTemplateCollectionExporters(), uiTemplateColorPicker(), uiTemplateComponentMenu(), uiTemplateConstraintHeader(), uiTemplateCryptoPicker(), uiTemplateCurveMapping(), uiTemplateCurveProfile(), uiTemplateFileSelectPath(), uiTemplateGreasePencilLayerTree(), uiTemplateHistogram(), uiTemplateImage(), uiTemplateKeymapItemProperties(), uiTemplateLayers(), uiTemplateLightLinkingCollection(), uiTemplateMarker(), uiTemplateMenuSearch(), uiTemplateMovieClip(), uiTemplateNodeLink(), uiTemplateNodeSocket(), uiTemplateNodeTreeInterface(), uiTemplateOperatorRedoProperties(), uiTemplateOperatorSearch(), uiTemplatePalette(), uiTemplatePreview(), uiTemplateRecentFiles(), uiTemplateReportsBanner(), uiTemplateRunningJobs(), uiTemplateStatusInfo(), uiTemplateTextureShow(), uiTemplateTextureUser(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateWaveform(), view3d_panel_transform(), and wm_block_dialog_create().
| bContextStore * uiLayoutGetContextStore | ( | uiLayout * | layout | ) |
Definition at line 5952 of file interface_layout.cc.
References uiLayout::context_.
Referenced by set_layout_context_from_button(), UI_panel_context_pointer_set(), and ui_template_list_layout_draw().
| blender::ui::EmbossType uiLayoutGetEmboss | ( | uiLayout * | layout | ) |
Definition at line 5259 of file interface_layout.cc.
References uiLayoutRoot::block, uiBlock::emboss, uiLayout::emboss_, uiLayout::root_, and blender::ui::Undefined.
| bool uiLayoutGetEnabled | ( | uiLayout * | layout | ) |
Definition at line 5214 of file interface_layout.cc.
References uiLayout::enabled_.
| bool uiLayoutGetFixedSize | ( | uiLayout * | layout | ) |
Definition at line 5880 of file interface_layout.cc.
References uiItem::flag_.
| bool uiLayoutGetKeepAspect | ( | uiLayout * | layout | ) |
Definition at line 5224 of file interface_layout.cc.
References uiLayout::keepaspect_.
| int uiLayoutGetLocalDir | ( | const uiLayout * | layout | ) |
Definition at line 446 of file interface_layout.cc.
References uiItem::type_, UI_LAYOUT_HORIZONTAL, and UI_LAYOUT_VERTICAL.
Referenced by uiLayout::prop(), ui_item_enum_expand_elem_exec(), ui_item_local_sublayout(), and uiItemsFullEnumO_items().
| wmOperatorCallContext uiLayoutGetOperatorContext | ( | uiLayout * | layout | ) |
Definition at line 5771 of file interface_layout.cc.
References uiLayoutRoot::opcontext, and uiLayout::root_.
Referenced by UI_popup_block_template_confirm_op().
| bool uiLayoutGetPropDecorate | ( | uiLayout * | layout | ) |
Definition at line 5174 of file interface_layout.cc.
References uiItem::flag_.
Referenced by uiItemPropertySplitWrapperCreate().
| bool uiLayoutGetPropSep | ( | uiLayout * | layout | ) |
Definition at line 5164 of file interface_layout.cc.
References uiItem::flag_.
| bool uiLayoutGetRedAlert | ( | uiLayout * | layout | ) |
Definition at line 5219 of file interface_layout.cc.
References uiLayout::redalert_.
Definition at line 5194 of file interface_layout.cc.
References uiLayoutRoot::block, uiBlock::panel, and uiLayout::root_.
Referenced by blender::nodes::draw_geometry_nodes_operator_redo_ui(), and uiLayout::panel().
| float uiLayoutGetScaleX | ( | uiLayout * | layout | ) |
Definition at line 5239 of file interface_layout.cc.
References uiLayout::scale_.
| float uiLayoutGetScaleY | ( | uiLayout * | layout | ) |
Definition at line 5244 of file interface_layout.cc.
References uiLayout::scale_.
| float uiLayoutGetSearchWeight | ( | uiLayout * | layout | ) |
Definition at line 5189 of file interface_layout.cc.
References uiLayout::search_weight_.
| float uiLayoutGetUnitsX | ( | uiLayout * | layout | ) |
Definition at line 5249 of file interface_layout.cc.
References uiLayout::units_.
Referenced by blender::ui::GridViewLayoutBuilder::build_from_view(), and ui_block_func_POPUP().
| float uiLayoutGetUnitsY | ( | uiLayout * | layout | ) |
Definition at line 5254 of file interface_layout.cc.
References uiLayout::units_.
| int uiLayoutGetWidth | ( | uiLayout * | layout | ) |
Definition at line 5234 of file interface_layout.cc.
References uiLayout::w_.
Referenced by blender::ui::GridViewLayoutBuilder::build_from_view(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), ED_region_header_layout(), ui_popup_context_menu_for_button(), ui_template_list_layout_draw(), uiTemplatePalette(), wm_block_dialog_create(), and wm_block_insert_unicode_create().
| void uiLayoutListItemAddPadding | ( | uiLayout * | layout | ) |
Definition at line 5272 of file interface_layout.cc.
References uiLayout::row(), UI_block_layout_set_current(), UI_BTYPE_SEPR, uiDefBut(), uiLayoutGetBlock(), uiLayoutListItemPaddingWidth(), and uiLayoutSetFixedSize().
Referenced by blender::ui::TreeViewLayoutBuilder::build_row(), and ui_template_list_layout_draw().
| int uiLayoutListItemPaddingWidth | ( | ) |
Definition at line 5267 of file interface_layout.cc.
References UI_SCALE_FAC.
Referenced by uiLayoutListItemAddPadding().
| void uiLayoutSetActivateInit | ( | uiLayout * | layout, |
| bool | activate_init ) |
Definition at line 5114 of file interface_layout.cc.
References uiLayout::activate_init_.
Referenced by uiDefAutoButsRNA().
| void uiLayoutSetActive | ( | uiLayout * | layout, |
| bool | active ) |
Definition at line 5104 of file interface_layout.cc.
References active, and uiLayout::active_.
Referenced by advanced_panel_draw(), advanced_panel_draw(), blender::ed::asset::shelf::AssetCatalogSelectorTree::Item::build_row(), blender::ed::spreadsheet::CurvesViewItem::build_row(), blender::ed::spreadsheet::GreasePencilViewItem::build_row(), blender::ed::spreadsheet::InstancesViewItem::build_row(), blender::ed::spreadsheet::MeshViewItem::build_row(), blender::ed::spreadsheet::PointCloudViewItem::build_row(), blender::ed::spreadsheet::VolumeGridsViewItem::build_row(), blender::ui::bonecollections::BoneCollectionItem::build_row(), blender::ui::TreeViewLayoutBuilder::build_row(), clamp_panel_draw(), blender::composition_panel_draw(), constant_offset_draw(), data_panel_draw(), blender::nodes::draw_bake_button_row(), blender::nodes::draw_common_bake_settings(), blender::nodes::draw_interface_panel_content(), blender::modifier::greasepencil::draw_layer_filter_settings(), blender::modifier::greasepencil::draw_material_filter_settings(), blender::nodes::draw_named_attributes_panel(), blender::ui::nodes::draw_node_inputs_recursive(), blender::nodes::draw_property_for_socket(), blender::modifier::greasepencil::draw_vertex_group_settings(), ED_screens_header_tools_menu_create(), edbm_bevel_ui(), edbm_decimate_ui(), edge_panel_draw(), blender::edge_types_panel_draw(), face_corner_panel_draw(), face_corner_uv_panel_draw(), face_corner_vcol_panel_draw(), blender::face_mark_panel_draw(), face_panel_draw(), falloff_panel_draw(), fmodifier_frame_range_draw(), fmodifier_get_pointers(), fmodifier_influence_draw(), geometry_panel_draw(), graph_panel_cursor(), blender::intersection_panel_draw(), limits_panel_draw(), blender::material_mask_panel_draw(), blender::material_mask_panel_draw_header(), materials_panel_draw(), modifier_panel_header(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_properties(), blender::ed::space_node::node_buts_image_user(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::nodes::node_composite_map_value_cc::node_composit_buts_map_value(), blender::nodes::node_geo_bake_cc::node_layout(), blender::nodes::node_geo_bake_cc::node_layout_ex(), blender::nodes::node_geo_simulation_cc::node_layout_ex(), blender::ed::space_node::node_texture_buts_proc(), blender::ed::space_node::node_update_basis_buttons(), blender::ed::space_node::node_update_basis_from_declaration(), blender::ed::space_node::node_update_basis_socket(), object_offset_draw(), blender::occlusion_panel_draw(), offset_panel_draw(), blender::options_light_reference_draw(), blender::options_panel_draw(), blender::panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), path_panel_draw(), preferences_extension_repo_add_ui(), profile_panel_draw(), random_panel_draw(), relative_offset_draw(), blender::ed::object::shade_auto_smooth_ui(), shaderfx_panel_header(), shading_panel_draw(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw_header(), blender::ed::spreadsheet::spreadsheet_row_filters_layout(), blender::ed::space_node::std_node_socket_draw(), blender::ed::space_node::std_node_socket_interface_draw(), stepped_panel_draw(), symmetry_panel_draw(), template_keymap_item_properties(), uiTemplateCacheFileProcedural(), uiTemplateCacheFileTimeSettings(), uiTemplateImage(), uiTemplateMarker(), uiTemplateRunningJobs(), uv_pack_islands_ui(), v3d_transform_butsR(), vert_vcol_panel_draw(), vertex_group_panel_draw(), vertex_panel_draw(), vertex_vgroup_panel_draw(), wave_panel_draw(), and wm_open_mainfile_ui().
| void uiLayoutSetActiveDefault | ( | uiLayout * | layout, |
| bool | active_default ) |
Definition at line 5109 of file interface_layout.cc.
References uiLayout::active_default_.
Referenced by file_panel_execution_execute_button().
| void uiLayoutSetAlignment | ( | uiLayout * | layout, |
| char | alignment ) |
Definition at line 5134 of file interface_layout.cc.
References uiLayout::alignment_.
Referenced by blender::nodes::add_attribute_search_or_value_buttons(), blender::nodes::add_layer_name_search_button(), buttons_panel_context_draw(), blender::nodes::node_composite_rgb_cc::cmp_node_rgb_declare(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), blender::nodes::draw_named_attributes_panel(), blender::nodes::draw_property_for_output_socket(), fmodifier_panel_header(), graph_draw_driven_property_panel(), graph_draw_driver_settings_panel(), modifier_panel_header(), nla_panel_animdata(), blender::nodes::node_fn_input_color_cc::node_declare(), blender::nodes::node_fn_input_string_cc::node_declare(), blender::nodes::node_geo_image_cc::node_declare(), blender::nodes::node_geo_input_collection_cc::node_declare(), blender::nodes::node_geo_input_material_cc::node_declare(), blender::nodes::node_geo_input_object_cc::node_declare(), blender::nodes::node_shader_rgb_cc::node_declare(), blender::ed::space_node::node_update_basis_socket(), blender::ed::spreadsheet::spreadsheet_footer_region_draw(), blender::ed::space_node::std_node_socket_draw(), blender::ui::template_breadcrumbs(), ui_layout_heading_label_add(), blender::ed::space_node::ui_node_draw_input(), uiItemsAlertBox(), uiTemplateAnyID(), uiTemplateImageInfo(), uiTemplateInputStatus(), uiTemplateMovieclipInformation(), and wm_block_about_create().
Definition at line 5998 of file interface_layout.cc.
References PointerRNA::data, uiBut::opptr, RNA_pointer_create_discrete(), uiBut::rnapoin, uiBut::rnaprop, and uiLayoutSetContextPointer().
Referenced by graph_panel_drivers_popover(), ui_item_menu_hold(), and ui_popup_context_menu_for_button().
Definition at line 5946 of file interface_layout.cc.
References uiLayoutRoot::block, uiLayout::context_, uiBlock::contexts, CTX_store_add(), and uiLayout::root_.
| void uiLayoutSetContextPointer | ( | uiLayout * | layout, |
| StringRef | name, | ||
| PointerRNA * | ptr ) |
Definition at line 5934 of file interface_layout.cc.
References uiLayoutRoot::block, uiLayout::context_, uiBlock::contexts, CTX_store_add(), ptr, and uiLayout::root_.
Referenced by asset_view_draw_item(), colorband_tools_fn(), constraint_ops_extra_draw(), draw_constraint_header(), gpencil_shaderfx_ops_extra_draw(), graph_panel_drivers_popover(), modifier_ops_extra_draw(), nla_panel_actclip(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_image(), blender::ed::space_node::node_composit_buts_image_ex(), blender::ed::space_node::node_shader_buts_tex_environment(), blender::ed::space_node::node_shader_buts_tex_image(), blender::ed::space_node::node_update_basis_buttons(), blender::ed::space_node::node_update_basis_from_declaration(), blender::ed::space_node::node_update_basis_socket(), blender::ed::asset::shelf::popover_panel_draw(), template_ID(), UI_panel_context_pointer_set(), uiLayoutSetContextFromBut(), uiTemplateCacheFile(), uiTemplateCacheFileLayers(), uiTemplateCacheFileProcedural(), uiTemplateCacheFileTimeSettings(), uiTemplateCacheFileVelocity(), uiTemplateImage(), and uiTemplateMovieClip().
| void uiLayoutSetContextString | ( | uiLayout * | layout, |
| StringRef | name, | ||
| blender::StringRef | value ) |
Definition at line 5940 of file interface_layout.cc.
References uiLayoutRoot::block, uiLayout::context_, uiBlock::contexts, CTX_store_add(), and uiLayout::root_.
Referenced by blender::ui::asset_shelf_popover_invoke(), blender::ed::asset::draw_menu_for_catalog(), blender::ui::template_asset_shelf_popover(), blender::ed::object::ui_template_modifier_asset_menu_items(), blender::ed::space_node::ui_template_node_asset_menu_items(), and blender::ed::geometry::ui_template_node_operator_asset_menu_items().
| void uiLayoutSetEmboss | ( | uiLayout * | layout, |
| blender::ui::EmbossType | emboss ) |
Definition at line 5159 of file interface_layout.cc.
References uiLayout::emboss_.
Referenced by blender::ed::asset::shelf::AssetCatalogSelectorTree::Item::build_row(), blender::ui::TreeViewLayoutBuilder::build_row(), buttons_panel_context_draw(), draw_constraint_header(), blender::ed::spreadsheet::draw_context_panel(), draw_export_controls(), draw_exporter_item(), blender::nodes::socket_items::ui::draw_item_in_list(), blender::ed::space_node::draw_node_socket_name_editable(), fmodifier_panel_header(), modifier_panel_header(), shaderfx_panel_header(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw_header(), uiTemplateStatusInfo(), and v3d_transform_butsR().
| void uiLayoutSetEnabled | ( | uiLayout * | layout, |
| bool | enabled ) |
Definition at line 5119 of file interface_layout.cc.
References enabled, and uiLayout::enabled_.
Referenced by armature_parent_clear_invoke(), armature_parent_set_invoke(), blender::bake_panel_draw(), blender::chaining_panel_draw(), constraint_ops_extra_draw(), blender::edge_types_panel_draw(), blender::face_mark_panel_draw(), blender::face_mark_panel_draw_header(), gpencil_shaderfx_ops_extra_draw(), graph_panel_properties(), hud_panel_operator_redo_draw(), blender::intersection_panel_draw(), blender::material_mask_panel_draw(), blender::material_mask_panel_draw_header(), move_to_collection_menu_create(), nla_panel_animated_strip_time(), nla_panel_evaluation(), blender::ed::space_node::node_buts_image_user(), blender::nodes::node_geo_bake_cc::node_layout(), blender::nodes::node_geo_bake_cc::node_layout_ex(), blender::nodes::node_geo_simulation_cc::node_layout_ex(), blender::occlusion_panel_draw(), blender::options_light_reference_draw(), blender::options_panel_draw(), blender::panel_draw(), panel_draw(), panel_draw(), panel_draw(), shape_panel_draw(), subdivisions_panel_draw(), ui_popup_context_menu_for_button(), uiTemplateCacheFileProcedural(), uiTemplateCollectionExporters(), uiTemplateImage(), undo_history_draw_menu(), blender::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 5870 of file interface_layout.cc.
References uiItem::flag_.
Referenced by file_panel_execution_cancel_button(), file_panel_execution_execute_button(), blender::ed::asset::shelf::popover_panel_draw(), and uiLayoutListItemAddPadding().
| void uiLayoutSetFunc | ( | uiLayout * | layout, |
| uiMenuHandleFunc | handlefunc, | ||
| void * | argv ) |
Definition at line 5890 of file interface_layout.cc.
References uiLayoutRoot::argv, uiLayoutRoot::handlefunc, and uiLayout::root_.
| void uiLayoutSetKeepAspect | ( | uiLayout * | layout, |
| bool | keepaspect ) |
Definition at line 5129 of file interface_layout.cc.
References uiLayout::keepaspect_.
Referenced by uiTemplatePreview().
| void uiLayoutSetOperatorContext | ( | uiLayout * | layout, |
| wmOperatorCallContext | opcontext ) |
Definition at line 5885 of file interface_layout.cc.
References uiLayoutRoot::opcontext, and uiLayout::root_.
Referenced by blender::ed::object::collection_hide_menu_draw(), constraint_ops_extra_draw(), draw_constraint_header(), ED_buttons_navbar_menu(), ed_panel_draw(), ED_screens_region_flip_menu_create(), file_os_operations_menu_draw(), file_panel_execution_buttons_draw(), gpencil_shaderfx_ops_extra_draw(), blender::ed::asset::shelf::library_selector_draw(), menu_item_enum_opname_menu(), menu_item_enum_rna_menu(), menu_items_from_ui_create(), modifier_ops_extra_draw(), blender::ed::object::move_to_collection_invoke(), move_to_collection_menu_create(), blender::ed::space_node::node_group_separate_invoke(), blender::ed::outliner::outliner_operator_menu(), recent_files_menu_draw(), screen_context_menu_invoke(), ui_popover_create_block(), ui_popup_context_menu_for_button(), ui_popup_menu_create_block(), unpack_all_invoke(), unpack_item_invoke(), blender::ed::object::bake_simulation::unpack_single_bake_invoke(), uv_mark_seam_invoke(), weight_sample_group_invoke(), wm_drop_import_file_invoke(), and WM_menu_invoke_ex().
| void uiLayoutSetPropDecorate | ( | uiLayout * | layout, |
| bool | is_sep ) |
Definition at line 5179 of file interface_layout.cc.
References uiItem::flag_, and SET_FLAG_FROM_TEST.
Referenced by blender::nodes::add_attribute_search_or_value_buttons(), blender::nodes::add_layer_name_search_button(), blender::ui::greasepencil::LayerGroupViewItem::build_row(), blender::ui::greasepencil::LayerViewItem::build_row(), cycles_panel_draw(), data_panel_draw(), blender::nodes::node_geo_bake_cc::draw_bake_items(), blender::nodes::draw_bake_panel(), blender::nodes::draw_common_bake_settings(), blender::modifier::greasepencil::draw_custom_curve_settings(), draw_export_properties(), draw_fill_tile(), blender::nodes::draw_geometry_nodes_modifier_ui(), blender::nodes::draw_geometry_nodes_operator_redo_ui(), blender::modifier::greasepencil::draw_layer_filter_settings(), blender::modifier::greasepencil::draw_material_filter_settings(), blender::nodes::draw_property_for_socket(), blender::nodes::node_geo_simulation_cc::draw_simulation_state(), blender::modifier::greasepencil::draw_vertex_group_settings(), 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(), blender::ed::geometry::geometry_attribute_convert_ui(), blender::ed::geometry::geometry_color_attribute_add_ui(), blender::ed::geometry::geometry_color_attribute_convert_ui(), graph_panel_cursor(), graph_panel_key_properties(), graph_panel_properties(), blender::ed::greasepencil::grease_pencil_convert_curve_type_ui(), blender::ed::sculpt_paint::greasepencil::grease_pencil_interpolate_sequence_ui(), blender::ed::greasepencil::grease_pencil_reproject_ui(), blender::ed::greasepencil::grease_pencil_simplify_ui(), image_new_draw(), image_save_as_draw(), limits_panel_draw(), blender::ed::sculpt_paint::mask::mask_from_boundary_ui(), blender::ed::sculpt_paint::mask::mask_from_cavity_ui(), blender::ed::mesh::set_attribute::mesh_set_attribute_ui(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_animdata(), nla_panel_properties(), blender::nodes::node_composite_file_output_cc::node_composit_buts_file_output_ex(), blender::nodes::node_fn_align_euler_to_vector_cc::node_layout(), blender::nodes::node_fn_align_rotation_to_vector_cc::node_layout(), blender::nodes::node_geo_attribute_capture_cc::node_layout(), blender::nodes::node_geo_extrude_mesh_cc::node_layout(), blender::nodes::node_geo_get_named_grid_cc::node_layout(), blender::nodes::node_geo_grid_info_cc::node_layout(), blender::nodes::node_geo_merge_by_distance_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_circle_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cone_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cylinder_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_line_cc::node_layout(), blender::nodes::node_geo_mesh_to_volume_cc::node_layout(), blender::nodes::node_geo_points_to_volume_cc::node_layout(), blender::nodes::node_geo_split_to_instances_cc::node_layout(), blender::nodes::node_geo_store_named_attribute_cc::node_layout(), blender::nodes::node_geo_store_named_grid_cc::node_layout(), blender::nodes::node_geo_string_to_curves_cc::node_layout(), blender::nodes::node_geo_tool_active_element_cc::node_layout(), blender::nodes::node_geo_transform_geometry_cc::node_layout(), blender::nodes::node_geo_uv_unwrap_cc::node_layout(), blender::nodes::node_geo_volume_to_mesh_cc::node_layout(), blender::nodes::node_geo_warning_cc::node_layout(), blender::nodes::node_fn_format_string_cc::node_layout_ex(), blender::nodes::node_geo_attribute_capture_cc::node_layout_ex(), blender::nodes::node_geo_foreach_geometry_element_cc::node_layout_ex(), blender::nodes::node_geo_gizmo_transform_cc::node_layout_ex(), blender::nodes::node_geo_menu_switch_cc::node_layout_ex(), blender::nodes::node_geo_repeat_cc::node_layout_ex(), blender::nodes::node_geo_simulation_cc::node_layout_ex(), noise_panel_draw(), blender::panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), preferences_extension_repo_add_ui(), profile_panel_draw(), blender::ed::geometry::run_node_group_ui(), screenshot_draw(), blender::ed::curves::select_ends_ui(), blender::ed::vse::sequencer_split_ui(), blender::ed::curves::set_attribute_ui(), blender::ed::pointcloud::set_attribute_ui(), blender::ed::object::shade_auto_smooth_ui(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw(), stepped_panel_draw(), template_operator_property_buts_draw_single(), texture_paint_add_texture_paint_slot_ui(), tile_add_draw(), blender::ed::space_node::ui_node_draw_input(), blender::ed::space_node::ui_node_draw_recursive(), uiTemplateCacheFileTimeSettings(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateViewsFormat(), unwrap_draw(), uv_pack_islands_ui(), wm_clear_recent_files_ui(), and wm_stereo3d_set_draw().
| void uiLayoutSetPropSep | ( | uiLayout * | layout, |
| bool | is_sep ) |
Definition at line 5169 of file interface_layout.cc.
References uiItem::flag_, and SET_FLAG_FROM_TEST.
Referenced by blender::nodes::add_attribute_search_or_value_buttons(), advanced_panel_draw(), advanced_panel_draw(), axis_mapping_panel_draw(), blender::bake_panel_draw(), blur_panel_draw(), blur_panel_draw(), caps_panel_draw(), blender::chaining_panel_draw(), clamp_panel_draw(), blender::composition_panel_draw(), constant_offset_draw(), CurveProfile_buttons_layout(), cycles_panel_draw(), data_panel_draw(), blender::nodes::node_geo_bake_cc::draw_bake_items(), blender::nodes::draw_bake_panel(), blender::nodes::draw_common_bake_settings(), blender::modifier::greasepencil::draw_custom_curve_settings(), draw_export_properties(), draw_fill_tile(), blender::nodes::draw_geometry_nodes_modifier_ui(), blender::nodes::draw_geometry_nodes_operator_redo_ui(), blender::modifier::greasepencil::draw_layer_filter_settings(), blender::modifier::greasepencil::draw_material_filter_settings(), blender::nodes::node_geo_simulation_cc::draw_simulation_state(), blender::modifier::greasepencil::draw_vertex_group_settings(), 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(), blender::edge_types_panel_draw(), envelope_panel_draw(), face_corner_panel_draw(), face_corner_uv_panel_draw(), face_corner_vcol_panel_draw(), blender::face_mark_panel_draw(), face_panel_draw(), falloff_panel_draw(), falloff_panel_draw(), falloff_panel_draw(), falloff_panel_draw(), fmodifier_frame_range_draw(), fn_generator_panel_draw(), generate_panel_draw(), generator_panel_draw(), blender::ed::geometry::geometry_attribute_convert_ui(), blender::ed::geometry::geometry_color_attribute_add_ui(), blender::ed::geometry::geometry_color_attribute_convert_ui(), geometry_panel_draw(), graph_panel_cursor(), graph_panel_key_properties(), graph_panel_properties(), blender::ed::greasepencil::grease_pencil_convert_curve_type_ui(), blender::ed::sculpt_paint::greasepencil::grease_pencil_interpolate_sequence_ui(), blender::ed::greasepencil::grease_pencil_reproject_ui(), blender::ed::greasepencil::grease_pencil_simplify_ui(), image_new_draw(), image_save_as_draw(), blender::intersection_panel_draw(), layers_panel_draw(), limits_panel_draw(), blender::ed::sculpt_paint::mask::mask_from_boundary_ui(), blender::ed::sculpt_paint::mask::mask_from_cavity_ui(), blender::material_mask_panel_draw(), materials_panel_draw(), blender::ed::mesh::set_attribute::mesh_set_attribute_ui(), mix_mode_panel_draw(), nla_panel_actclip(), nla_panel_animated_strip_time(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_properties(), blender::nodes::node_composite_file_output_cc::node_composit_buts_file_output_ex(), blender::nodes::node_fn_align_euler_to_vector_cc::node_layout(), blender::nodes::node_fn_align_rotation_to_vector_cc::node_layout(), blender::nodes::node_geo_attribute_capture_cc::node_layout(), blender::nodes::node_geo_extrude_mesh_cc::node_layout(), blender::nodes::node_geo_get_named_grid_cc::node_layout(), blender::nodes::node_geo_grid_info_cc::node_layout(), blender::nodes::node_geo_merge_by_distance_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_circle_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cone_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cylinder_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_line_cc::node_layout(), blender::nodes::node_geo_mesh_to_volume_cc::node_layout(), blender::nodes::node_geo_points_to_volume_cc::node_layout(), blender::nodes::node_geo_split_to_instances_cc::node_layout(), blender::nodes::node_geo_store_named_attribute_cc::node_layout(), blender::nodes::node_geo_store_named_grid_cc::node_layout(), blender::nodes::node_geo_string_to_curves_cc::node_layout(), blender::nodes::node_geo_tool_active_element_cc::node_layout(), blender::nodes::node_geo_transform_geometry_cc::node_layout(), blender::nodes::node_geo_uv_unwrap_cc::node_layout(), blender::nodes::node_geo_volume_to_mesh_cc::node_layout(), blender::nodes::node_geo_warning_cc::node_layout(), blender::nodes::node_fn_format_string_cc::node_layout_ex(), blender::nodes::node_geo_attribute_capture_cc::node_layout_ex(), blender::nodes::node_geo_foreach_geometry_element_cc::node_layout_ex(), blender::nodes::node_geo_gizmo_transform_cc::node_layout_ex(), blender::nodes::node_geo_menu_switch_cc::node_layout_ex(), blender::nodes::node_geo_repeat_cc::node_layout_ex(), blender::nodes::node_geo_simulation_cc::node_layout_ex(), noise_panel_draw(), normals_panel_draw(), normals_panel_draw(), blender::ed::object::object_convert_ui(), object_offset_draw(), blender::occlusion_panel_draw(), offset_panel_draw(), blender::options_light_reference_draw(), blender::options_panel_draw(), override_layers_panel_draw(), blender::panel_draw(), blender::panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), path_panel_draw(), position_panel_draw(), preferences_extension_repo_add_ui(), profile_panel_draw(), random_panel_draw(), relative_offset_draw(), render_procedural_panel_draw(), restrictions_panel_draw(), blender::ed::geometry::run_node_group_ui(), screenshot_draw(), blender::ed::curves::select_ends_ui(), blender::ed::vse::sequencer_split_ui(), blender::ed::curves::set_attribute_ui(), blender::ed::pointcloud::set_attribute_ui(), blender::ed::object::shade_auto_smooth_ui(), shading_panel_draw(), solver_options_panel_draw(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw(), stepped_panel_draw(), symmetry_panel_draw(), template_operator_property_buts_draw_single(), texture_paint_add_texture_paint_slot_ui(), texture_panel_draw(), texture_panel_draw(), tile_add_draw(), time_panel_draw(), time_panel_draw(), time_remapping_panel_draw(), transform_panel_draw(), ui_item_prop_split_layout_hack(), blender::ed::space_node::ui_node_draw_node(), blender::ed::space_node::ui_node_draw_recursive(), uiDefAutoButsRNA(), uiTemplateCacheFile(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateViewsFormat(), unwrap_draw(), uv_pack_islands_ui(), uv_panel_draw(), velocity_panel_draw(), vert_vcol_panel_draw(), vertex_group_panel_draw(), vertex_group_panel_draw(), vertex_panel_draw(), vertex_vgroup_panel_draw(), blender::vgroup_panel_draw(), wave_panel_draw(), weightvg_ui_common(), wm_clear_recent_files_ui(), and wm_stereo3d_set_draw().
| void uiLayoutSetRedAlert | ( | uiLayout * | layout, |
| bool | redalert ) |
Definition at line 5124 of file interface_layout.cc.
References uiLayout::redalert_.
Referenced by axis_mapping_panel_draw(), draw_constraint_header(), graph_panel_driverVar__contextProp(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__singleProp(), graph_panel_driverVar__transChan(), modifier_panel_header(), and shaderfx_panel_header().
| void uiLayoutSetScaleX | ( | uiLayout * | layout, |
| float | scale ) |
Definition at line 5139 of file interface_layout.cc.
References uiLayout::scale_.
Referenced by file_panel_execution_cancel_button(), file_panel_execution_execute_button(), blender::ui::template_asset_shelf_popover(), uiTemplateAssetView(), and uiTemplatePreview().
| void uiLayoutSetScaleY | ( | uiLayout * | layout, |
| float | scale ) |
Definition at line 5144 of file interface_layout.cc.
References uiLayout::scale_.
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), block_create_gpu_backend_fallback(), block_create_opengl_usage_warning(), block_create_save_file_overwrite_dialog(), ED_region_header_layout(), ED_time_scrub_channel_search_draw(), file_overwrite_detailed_info_show(), file_panel_execution_buttons_draw(), blender::ui::template_asset_shelf_popover(), uiTemplateAssetView(), and wm_block_dialog_create().
| void uiLayoutSetSearchWeight | ( | uiLayout * | layout, |
| const float | weight ) |
Definition at line 5184 of file interface_layout.cc.
References uiLayout::search_weight_.
| void uiLayoutSetTooltipFunc | ( | uiLayout * | layout, |
| uiButToolTipFunc | func, | ||
| void * | arg, | ||
| uiCopyArgFunc | copy_arg, | ||
| uiFreeArgFunc | free_arg ) |
Set tooltip function for all buttons in the layout. func, arg and free_arg are passed on to UI_but_func_tooltip_set, so their meaning is the same.
| func | The callback function that gets called to get tooltip content |
| arg | An optional opaque pointer that gets passed to func |
| free_arg | An optional callback for freeing arg (can be set to e.g. MEM_freeN) |
| copy_arg | An optional callback for duplicating arg in case UI_but_func_tooltip_set is being called on multiple buttons (can be set to e.g. MEM_dupallocN). If set to NULL, arg will be passed as-is to all buttons. |
Definition at line 5963 of file interface_layout.cc.
References uiButtonItem::but, uiLayout::items_, uiBut::type, uiItem::type_, UI_BTYPE_DECORATOR, UI_but_func_tooltip_set(), and uiLayoutSetTooltipFunc().
Referenced by blender::nodes::draw_interface_panel_content(), blender::ed::space_node::node_socket_add_tooltip(), blender::ed::space_node::node_socket_add_tooltip_in_node_editor(), and uiLayoutSetTooltipFunc().
| void uiLayoutSetUnitsX | ( | uiLayout * | layout, |
| float | unit ) |
Definition at line 5149 of file interface_layout.cc.
References uiLayout::units_.
Referenced by blender::ed::asset::shelf::asset_shelf_header_draw(), constraint_ops_extra_draw(), gpencil_shaderfx_ops_extra_draw(), modifier_ops_extra_draw(), blender::ed::asset::shelf::popover_panel_draw(), and blender::ui::template_asset_shelf_popover().
| void uiLayoutSetUnitsY | ( | uiLayout * | layout, |
| float | unit ) |
Definition at line 5154 of file interface_layout.cc.
References uiLayout::units_.
Referenced by uiLayout::panel_prop().
|
constexpr |
ui_text_pad_default scaled down.
Definition at line 298 of file interface_layout.cc.
Referenced by ui_item_menu(), and ui_text_icon_width().
|
constexpr |
This adds over an icons width of padding even when no icon is used, this is done because most buttons need additional space (drop-down chevron for example). menus and labels use much smaller text values compared to this default.
Definition at line 295 of file interface_layout.cc.
Referenced by ui_text_icon_width().
|
constexpr |
Least amount of padding not to clip the text or icon.
Definition at line 301 of file interface_layout.cc.
Referenced by ui_item_with_label(), and uiItemL_().