|
Blender V4.3
|
#include <algorithm>#include <climits>#include <cmath>#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "DNA_armature_types.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_memory_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_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 "interface_intern.hh"Go to the source code of this file.
Classes | |
| struct | uiLayoutRoot |
| struct | uiItem |
| struct | uiButtonItem |
| struct | uiLayout |
| struct | uiLayoutItemFlow |
| struct | uiLayoutItemGridFlow |
| struct | uiLayoutItemBx |
| struct | uiLayoutItemPanelHeader |
| struct | uiLayoutItemPanelBody |
| struct | uiLayoutItemSplit |
| struct | uiLayoutItemRoot |
| struct | uiTextIconPadFactor |
| struct | MenuItemLevel |
| struct | UILayoutGridFlowInput |
| struct | UILayoutGridFlowOutput |
Macros | |
| #define | UI_PROP_DECORATE |
| #define | UI_PROP_SEP_ICON_WIDTH_EXCEPTION |
| #define | CASE_ITEM(id) |
Functions | |
Special RNA Items | |
| int | uiLayoutGetLocalDir (const uiLayout *layout) |
| static uiLayout * | ui_item_local_sublayout (uiLayout *test, uiLayout *layout, bool align) |
| static void | ui_layer_but_cb (bContext *C, void *arg_but, void *arg_index) |
| static void | ui_item_array (uiLayout *layout, uiBlock *block, const char *name, int icon, PointerRNA *ptr, PropertyRNA *prop, 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 char *uiname, const int h, const eButType but_type, const bool icon_only, const EnumPropertyItem *item, const bool is_first) |
| static void | ui_item_enum_expand_exec (uiLayout *layout, uiBlock *block, PointerRNA *ptr, PropertyRNA *prop, const char *uiname, const int h, const eButType but_type, const bool icon_only) |
| static void | ui_item_enum_expand (uiLayout *layout, uiBlock *block, PointerRNA *ptr, PropertyRNA *prop, const char *uiname, const int h, const bool icon_only) |
| static void | ui_item_enum_expand_tabs (uiLayout *layout, bContext *C, uiBlock *block, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *ptr_highlight, PropertyRNA *prop_highlight, const char *uiname, const int h, const bool icon_only) |
| static void | ui_keymap_but_cb (bContext *, void *but_v, void *) |
| static uiBut * | ui_item_with_label (uiLayout *layout, uiBlock *block, const char *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, const char *name, int icon, IDProperty *properties, const wmOperatorCallContext context, const eUI_Item_Flag flag, PointerRNA *r_opptr) |
| static void | ui_item_menu_hold (bContext *C, ARegion *butregion, uiBut *but) |
| void | uiItemFullO_ptr (uiLayout *layout, wmOperatorType *ot, const char *name, const int icon, IDProperty *properties, const wmOperatorCallContext context, const eUI_Item_Flag flag, PointerRNA *r_opptr) |
| void | uiItemFullOMenuHold_ptr (uiLayout *layout, wmOperatorType *ot, const char *name, int icon, IDProperty *properties, const wmOperatorCallContext context, const eUI_Item_Flag flag, const char *menu_id, PointerRNA *r_opptr) |
| void | uiItemFullO (uiLayout *layout, const char *opname, const char *name, int icon, IDProperty *properties, wmOperatorCallContext context, const eUI_Item_Flag flag, PointerRNA *r_opptr) |
| static const char * | ui_menu_enumpropname (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int retval) |
| void | uiItemEnumO_ptr (uiLayout *layout, wmOperatorType *ot, const char *name, int icon, const char *propname, int value) |
| void | uiItemEnumO (uiLayout *layout, const char *opname, const char *name, int icon, const char *propname, int value) |
| BLI_INLINE bool | ui_layout_is_radial (const uiLayout *layout) |
| void | uiItemsFullEnumO_items (uiLayout *layout, wmOperatorType *ot, 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 char *opname, const char *propname, IDProperty *properties, wmOperatorCallContext context, eUI_Item_Flag flag, const int active) |
| void | uiItemsEnumO (uiLayout *layout, const char *opname, const char *propname) |
| void | uiItemEnumO_value (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, int value) |
| void | uiItemEnumO_string (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, const char *value_str) |
| void | uiItemBooleanO (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, int value) |
| void | uiItemIntO (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, int value) |
| void | uiItemFloatO (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, float value) |
| void | uiItemStringO (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, const char *value) |
| void | uiItemO (uiLayout *layout, const char *name, int icon, const char *opname) |
| static void | ui_item_rna_size (uiLayout *layout, const char *name, int icon, PointerRNA *ptr, PropertyRNA *prop, int index, bool icon_only, bool compact, int *r_w, int *r_h) |
| static bool | ui_item_rna_is_expand (PropertyRNA *prop, int index, 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 (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, const char *name, int icon, const char *placeholder) |
| void | uiItemR (uiLayout *layout, PointerRNA *ptr, const char *propname, const eUI_Item_Flag flag, const char *name, int icon) |
| void | uiItemFullR_with_popover (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index, int value, const eUI_Item_Flag flag, const char *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 char *name, int icon, const char *menu_type) |
| void | uiItemEnumR_prop (uiLayout *layout, const char *name, int icon, PointerRNA *ptr, PropertyRNA *prop, int value) |
| void | uiItemEnumR (uiLayout *layout, const char *name, int icon, PointerRNA *ptr, const char *propname, int value) |
| void | uiItemEnumR_string_prop (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, const char *value, const char *name, int icon) |
| void | uiItemEnumR_string (uiLayout *layout, PointerRNA *ptr, const char *propname, const char *value, const char *name, int icon) |
| void | uiItemsEnumR (uiLayout *layout, PointerRNA *ptr, const char *propname) |
| static void | search_id_collection (StructRNA *ptype, PointerRNA *r_ptr, PropertyRNA **r_prop) |
| static void | ui_rna_collection_search_arg_free_fn (void *ptr) |
| uiBut * | ui_but_add_search (uiBut *but, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *searchptr, PropertyRNA *searchprop, const bool results_are_suggestions) |
| void | uiItemPointerR_prop (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *searchptr, PropertyRNA *searchprop, const char *name, int icon, bool results_are_suggestions) |
| void | uiItemPointerR (uiLayout *layout, PointerRNA *ptr, const char *propname, PointerRNA *searchptr, const char *searchpropname, const char *name, int icon) |
| void | ui_item_menutype_func (bContext *C, uiLayout *layout, void *arg_mt) |
| void | ui_item_paneltype_func (bContext *C, uiLayout *layout, void *arg_pt) |
| static uiBut * | ui_item_menu (uiLayout *layout, const char *name, int icon, uiMenuCreateFunc func, void *arg, void *argN, const char *tip, bool force_menu, uiButArgNFree func_argN_free_fn=MEM_freeN, uiButArgNCopy func_argN_copy_fn=MEM_dupallocN) |
| void | uiItemM_ptr (uiLayout *layout, MenuType *mt, const char *name, int icon) |
| void | uiItemM (uiLayout *layout, const char *menuname, const char *name, int icon) |
| void | uiItemMContents (uiLayout *layout, const char *menuname) |
| void | uiItemDecoratorR_prop (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index) |
| void | uiItemDecoratorR (uiLayout *layout, PointerRNA *ptr, const char *propname, int index) |
| void | uiItemPopoverPanel_ptr (uiLayout *layout, const bContext *C, PanelType *pt, const char *name, int icon) |
| void | uiItemPopoverPanel (uiLayout *layout, const bContext *C, const char *panel_type, const char *name, int icon) |
| void | uiItemPopoverPanelFromGroup (uiLayout *layout, bContext *C, int space_id, int region_id, const char *context, const char *category) |
| static uiBut * | uiItemL_ (uiLayout *layout, const char *name, int icon) |
| uiBut * | uiItemL_ex (uiLayout *layout, const char *name, int icon, const bool highlight, const bool redalert) |
| void | uiItemL (uiLayout *layout, const char *name, int icon) |
| uiPropertySplitWrapper | uiItemPropertySplitWrapperCreate (uiLayout *parent_layout) |
| uiLayout * | uiItemL_respect_property_split (uiLayout *layout, const char *text, int icon) |
| void | uiItemLDrag (uiLayout *layout, PointerRNA *ptr, const char *name, int icon) |
| void | uiItemS_ex (uiLayout *layout, float factor, const LayoutSeparatorType type) |
| void | uiItemS (uiLayout *layout) |
| void | uiItemProgressIndicator (uiLayout *layout, const char *text, const float factor, const eButProgressType progress_type) |
| void | uiItemSpacer (uiLayout *layout) |
| void | uiItemMenuF (uiLayout *layout, const char *name, int icon, uiMenuCreateFunc func, void *arg) |
| void | uiItemMenuFN (uiLayout *layout, const char *name, int icon, uiMenuCreateFunc func, void *argN) |
| static 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 char *propname, const char *name, int icon, PointerRNA *r_opptr) |
| void | uiItemMenuEnumFullO (uiLayout *layout, const bContext *C, const char *opname, const char *propname, const char *name, int icon, PointerRNA *r_opptr) |
| void | uiItemMenuEnumO (uiLayout *layout, const bContext *C, const char *opname, const char *propname, const char *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 char *name, int icon) |
| void | uiItemMenuEnumR (uiLayout *layout, PointerRNA *ptr, const char *propname, const char *name, int icon) |
| void | uiItemTabsEnumR_prop (uiLayout *layout, bContext *C, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *ptr_highlight, PropertyRNA *prop_highlight, bool icon_only) |
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 char *heading) |
| uiLayout * | uiLayoutRow (uiLayout *layout, bool align) |
| PanelLayout | uiLayoutPanelProp (const bContext *C, uiLayout *layout, PointerRNA *open_prop_owner, const char *open_prop_name) |
| uiLayout * | uiLayoutPanelProp (const bContext *C, uiLayout *layout, PointerRNA *open_prop_owner, const char *open_prop_name, const char *label) |
| PanelLayout | uiLayoutPanel (const bContext *C, uiLayout *layout, const char *idname, const bool default_closed) |
| uiLayout * | uiLayoutPanel (const bContext *C, uiLayout *layout, const char *idname, const bool default_closed, const char *label) |
| bool | uiLayoutEndsWithPanelHeader (const uiLayout &layout) |
| uiLayout * | uiLayoutRowWithHeading (uiLayout *layout, bool align, const char *heading) |
| uiLayout * | uiLayoutColumn (uiLayout *layout, bool align) |
| uiLayout * | uiLayoutColumnWithHeading (uiLayout *layout, bool align, const char *heading) |
| uiLayout * | uiLayoutColumnFlow (uiLayout *layout, int number, bool align) |
| uiLayout * | uiLayoutGridFlow (uiLayout *layout, bool row_major, int columns_len, bool even_columns, bool even_rows, bool align) |
| static uiLayoutItemBx * | ui_layout_box (uiLayout *layout, int type) |
| uiLayout * | uiLayoutRadial (uiLayout *layout) |
| uiLayout * | uiLayoutBox (uiLayout *layout) |
| void | ui_layout_list_set_labels_active (uiLayout *layout) |
| uiLayout * | uiLayoutListBox (uiLayout *layout, uiList *ui_list, PointerRNA *actptr, PropertyRNA *actprop) |
| uiLayout * | uiLayoutAbsolute (uiLayout *layout, bool align) |
| uiBlock * | uiLayoutAbsoluteBlock (uiLayout *layout) |
| uiLayout * | uiLayoutOverlap (uiLayout *layout) |
| uiLayout * | uiLayoutSplit (uiLayout *layout, float percentage, bool align) |
| 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, eUIEmbossType 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) |
| eUIEmbossType | 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, const char *name, PointerRNA *ptr) |
| void | uiLayoutSetContextString (uiLayout *layout, const char *name, blender::StringRef 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 |
| enum | uiItemType { ITEM_BUTTON , ITEM_LAYOUT_ROW , ITEM_LAYOUT_PANEL_HEADER , ITEM_LAYOUT_PANEL_BODY , ITEM_LAYOUT_COLUMN , ITEM_LAYOUT_COLUMN_FLOW , ITEM_LAYOUT_ROW_FLOW , ITEM_LAYOUT_GRID_FLOW , ITEM_LAYOUT_BOX , ITEM_LAYOUT_ABSOLUTE , ITEM_LAYOUT_SPLIT , ITEM_LAYOUT_OVERLAP , ITEM_LAYOUT_RADIAL , ITEM_LAYOUT_ROOT } |
| enum | uiItemInternalFlag { UI_ITEM_AUTO_FIXED_SIZE = 1 << 0 , UI_ITEM_FIXED_SIZE = 1 << 1 , UI_ITEM_BOX_ITEM = 1 << 2 , UI_ITEM_PROP_SEP = 1 << 3 , UI_ITEM_INSIDE_PROP_SEP = 1 << 4 , UI_ITEM_PROP_DECORATE = 1 << 5 , UI_ITEM_PROP_DECORATE_NO_PAD = 1 << 6 } |
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 const char * | ui_item_name_add_colon (const char *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 char *name, int icon, const uiTextIconPadFactor &pad_factor, const uiFontStyle *fstyle) |
| static int | ui_text_icon_width (uiLayout *layout, const char *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 | ( | id | ) |
Referenced by ui_layout_introspect_items().
| #define UI_ITEM_PROP_SEP_DIVIDE 0.4f |
Definition at line 70 of file interface_layout.cc.
Referenced by uiItemFullR(), and uiItemPropertySplitWrapperCreate().
| #define UI_ITEM_VARY_X 1 |
Definition at line 275 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 276 of file interface_layout.cc.
Referenced by ui_layout_vary_direction().
| #define UI_OPERATOR_ERROR_RET | ( | _ot, | |
| _opname, | |||
| return_statement ) |
Definition at line 62 of file interface_layout.cc.
Referenced by uiItemBooleanO(), uiItemEnumO_string(), uiItemEnumO_value(), uiItemFloatO(), uiItemFullO(), uiItemIntO(), uiItemMenuEnumFullO(), and uiItemStringO().
| #define UI_PROP_DECORATE |
Definition at line 53 of file interface_layout.cc.
Referenced by ui_item_with_label().
| #define UI_PROP_SEP_ICON_WIDTH_EXCEPTION |
Definition at line 56 of file interface_layout.cc.
| enum uiItemInternalFlag |
| Enumerator | |
|---|---|
| UI_ITEM_AUTO_FIXED_SIZE | |
| UI_ITEM_FIXED_SIZE | |
| UI_ITEM_BOX_ITEM | |
| UI_ITEM_PROP_SEP | |
| UI_ITEM_INSIDE_PROP_SEP | |
| UI_ITEM_PROP_DECORATE | |
| UI_ITEM_PROP_DECORATE_NO_PAD | |
Definition at line 120 of file interface_layout.cc.
| enum uiItemType |
Definition at line 93 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 5551 of file interface_layout.cc.
References button_group_has_search_match(), uiBlock::button_groups, and UI_SEARCH_FILTER_NO_MATCH.
Referenced by UI_block_apply_search_filter().
|
static |
Definition at line 5455 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 5531 of file interface_layout.cc.
References button_matches_search_filter().
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 5468 of file interface_layout.cc.
References BLI_strcasestr(), free(), 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 3576 of file interface_layout.cc.
References uiLayoutRoot::block, 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 3548 of file interface_layout.cc.
References 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 3682 of file interface_layout.cc.
References MenuItemLevel::opcontext, MenuItemLevel::propname, MenuItemLevel::rnapoin, uiItemsEnumR(), and uiLayoutSetOperatorContext().
Referenced by uiItemMenuEnumR_prop().
|
static |
Definition at line 2767 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 3952 of file interface_layout.cc.
References ELEM, blender::Vector< T, InlineBufferCapacity, Allocator >::first(), ITEM_LAYOUT_PANEL_BODY, ITEM_LAYOUT_PANEL_HEADER, 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 5567 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 5873 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, ITEM_LAYOUT_COLUMN, ITEM_LAYOUT_ROOT, uiLayoutRoot::layout, uiBlock::layouts, uiLayoutRoot::opcontext, padding(), uiLayoutRoot::padding, uiLayout::root, size(), uiLayout::space, uiLayoutRoot::style, uiStyle::templatespace, uiItem::type, uiLayoutRoot::type, UI_EMBOSS_UNDEFINED, UI_ITEM_PROP_DECORATE, ui_layout_add_padding_button(), UI_LAYOUT_HORIZONTAL, UI_LAYOUT_MENU, UI_LAYOUT_PIEMENU, UI_LAYOUT_VERT_BAR, UI_UNIT_X, UI_UNIT_Y, uiLayout::w, WM_OP_INVOKE_REGION_WIN, uiLayout::x, x, uiLayout::y, and y.
Referenced by blender::ed::space_node::add_panel_items_recursive(), 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_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 6057 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 6090 of file interface_layout.cc.
References BLI_listbase_is_empty(), and uiBlock::layouts.
Referenced by ui_textedit_begin().
Definition at line 6065 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::add_panel_items_recursive(), 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_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 5937 of file interface_layout.cc.
References uiBlock::curlayout.
Referenced by 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(), ED_time_scrub_channel_search_draw(), blender::ed::asset_browser::file_create_asset_catalog_tree_view_in_layout(), blender::ed::spreadsheet::spreadsheet_data_set_panel_draw(), ui_def_but_rna__menu(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_array(), ui_item_disabled(), ui_item_enum_expand_exec(), ui_item_menu(), ui_item_with_label(), ui_layout_box(), blender::ed::space_node::ui_node_menu_column(), blender::ed::space_node::ui_template_node_link_menu(), uiItemDecoratorR_prop(), uiItemFullO_ptr_ex(), uiItemFullR(), uiItemL_(), uiItemL_respect_property_split(), uiItemProgressIndicator(), uiItemS_ex(), uiItemsFullEnumO_items(), uiItemSpacer(), uiItemTabsEnumR_prop(), uiLayoutAbsolute(), uiLayoutColumn(), uiLayoutColumnFlow(), uiLayoutGridFlow(), uiLayoutListItemAddPadding(), uiLayoutOverlap(), uiLayoutPanelProp(), uiLayoutRadial(), uiLayoutRow(), uiLayoutSplit(), uiTemplateMenuSearch(), uiTemplateNodeLink(), uiTemplateOperatorSearch(), and uiTemplateRunningJobs().
| uiBut * ui_but_add_search | ( | uiBut * | but, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| PointerRNA * | searchptr, | ||
| PropertyRNA * | searchprop, | ||
| bool | results_are_suggestions ) |
Definition at line 2796 of file interface_layout.cc.
References uiBut::block, uiRNACollectionSearch::butstore, uiRNACollectionSearch::butstore_block, uiBut::drawflag, uiBut::flag, uiBut::hardmax, MEM_mallocN, PointerRNA_NULL, PROP_ENUM, PROP_POINTER, PROP_STRING, ptr, RNA_property_is_unlink(), RNA_property_pointer_type(), RNA_property_string_search_flag(), RNA_property_type(), uiButSearch::rnasearchpoin, uiButSearch::rnasearchprop, uiRNACollectionSearch::search_but, search_id_collection(), uiRNACollectionSearch::search_prop, uiRNACollectionSearch::search_ptr, uiBut::str, uiRNACollectionSearch::target_prop, uiRNACollectionSearch::target_ptr, uiBut::type, UI_BTYPE_SEARCH_MENU, ui_but_change_type(), UI_BUT_DISABLED, UI_but_func_search_set(), UI_but_func_search_set_results_are_suggestions(), UI_BUT_ICON_LEFT, UI_BUT_TEXT_LEFT, UI_BUT_VALUE_CLEAR, UI_butstore_create(), UI_butstore_register(), ui_rna_collection_search_arg_free_fn(), ui_rna_collection_search_update_fn(), and ui_searchbox_create_generic().
Referenced by uiDefAutoButR(), uiItemFullR(), and uiItemPointerR_prop().
| 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 6200 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 6184 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 6167 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(), wmOperatorType::srna, 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 6192 of file interface_layout.cc.
References uiBut::menu_create_func, uiBut::poin, and ui_item_paneltype_func().
Referenced by button_activate_state(), shortcut_get_operator_property(), ui_but_copy_popover(), ui_but_event_operator_string(), ui_but_event_operator_string_from_panel(), 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 1179 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 1132 of file interface_layout.cc.
References CTX_wm_region(), CTX_wm_region_popup(), uiBut::flag, LISTBASE_FOREACH, PROP_STRING, RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, UI_but_is_userdef(), UI_BUT_LAST_ACTIVE, and UI_BUT_UNDO.
Referenced by file_browse_invoke().
|
static |
Definition at line 4036 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 5699 of file interface_layout.cc.
References uiLayout::align, uiBut::alignnr, uiButtonItem::but, ITEM_BUTTON, ITEM_LAYOUT_ABSOLUTE, ITEM_LAYOUT_BOX, ITEM_LAYOUT_OVERLAP, uiLayout::items, blender::Vector< T, InlineBufferCapacity, Allocator >::rbegin(), blender::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 525 of file interface_layout.cc.
References b, uiLayoutRoot::block, uiStyle::buttonspacex, col, ELEM, uiBlock::emboss, len, MEM_callocN, MEM_freeN(), min_ii(), 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, 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_EMBOSS_NONE, UI_EMBOSS_PULLDOWN, ui_item_local_sublayout(), ui_layer_but_cb(), ui_text_icon_width(), UI_UNIT_X, UI_UNIT_Y, uiDefAutoButR(), uiDefBut(), uiDefButR_prop(), uiLayoutAbsolute(), and w().
Referenced by uiItemFullR().
|
static |
Definition at line 1191 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 uiItemDecoratorR(), uiItemEnumO(), uiItemEnumR(), uiItemEnumR_prop(), uiItemEnumR_string(), uiItemEnumR_string_prop(), uiItemFullR_with_menu(), uiItemFullR_with_popover(), uiItemMenuEnumFullO(), uiItemMenuEnumR(), uiItemR(), uiItemsEnumR(), and uiItemsFullEnumO().
|
static |
Definition at line 914 of file interface_layout.cc.
References ptr, UI_BTYPE_ROW, and ui_item_enum_expand_exec().
Referenced by uiItemFullR().
|
static |
Draw a single enum button, a utility for ui_item_enum_expand_exec
Definition at line 770 of file interface_layout.cc.
References BLI_assert, ceilf, uiBlock::curlayout, ELEM, uiBlock::func, EnumPropertyItem::icon, EnumPropertyItem::name, POINTER_FROM_INT, PROP_ENUM_FLAG, ptr, RNA_property_flag(), UI_BTYPE_TAB, UI_BUT_DRAG_LOCK, UI_but_func_set(), UI_BUT_TEXT_LEFT, ui_item_enum_expand_handle(), UI_LAYOUT_HORIZONTAL, ui_text_icon_width(), uiDefButR_prop(), uiDefIconButR_prop(), uiDefIconTextButR_prop(), uiLayoutGetLocalDir(), EnumPropertyItem::value, and w().
Referenced by ui_item_enum_expand_exec().
|
static |
Definition at line 819 of file interface_layout.cc.
References BLI_assert, uiBlock::curlayout, ELEM, uiBlock::evil_C, free(), EnumPropertyItem::identifier, ITEM_LAYOUT_COLUMN_FLOW, ITEM_LAYOUT_GRID_FLOW, ITEM_LAYOUT_RADIAL, uiLayoutRoot::layout, MEM_freeN(), PROP_ENUM, ptr, RNA_property_enum_items_gettexted(), RNA_property_enum_items_gettexted_all(), RNA_property_type(), uiLayout::root, uiItem::type, uiLayoutRoot::type, UI_block_layout_set_current(), ui_item_enum_expand_elem_exec(), ui_item_local_sublayout(), UI_LAYOUT_MENU, UI_LAYOUT_PIEMENU, uiItemL(), uiItemS(), and uiLayoutRadial().
Referenced by ui_item_enum_expand(), and ui_item_enum_expand_tabs().
|
static |
Definition at line 748 of file interface_layout.cc.
References 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 924 of file interface_layout.cc.
References BLI_assert, uiBlock::buttons, CTX_wm_region(), blender::Array< T, InlineBufferCapacity, Allocator >::data(), ListBase::first, ListBase::last, uiBut::next, ptr, RNA_property_array_length(), RNA_property_boolean_get_array(), SET_FLAG_FROM_TEST, UI_BTYPE_TAB, ui_but_align_opposite_to_area_align_get(), UI_but_drawflag_enable(), UI_BUT_HAS_TOOLTIP_LABEL, UI_BUT_INACTIVE, and ui_item_enum_expand_exec().
Referenced by uiItemTabsEnumR_prop().
|
static |
Definition at line 5632 of file interface_layout.cc.
References uiLayout::h, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), ITEM_BUTTON, ITEM_LAYOUT_ABSOLUTE, ITEM_LAYOUT_BOX, ITEM_LAYOUT_COLUMN, ITEM_LAYOUT_COLUMN_FLOW, ITEM_LAYOUT_GRID_FLOW, ITEM_LAYOUT_OVERLAP, ITEM_LAYOUT_PANEL_BODY, ITEM_LAYOUT_PANEL_HEADER, ITEM_LAYOUT_ROOT, ITEM_LAYOUT_ROW, ITEM_LAYOUT_SPLIT, 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 237 of file interface_layout.cc.
References ELEM, int, pos, and UI_LAYOUT_ALIGN_EXPAND.
Referenced by ui_litem_layout_row().
Definition at line 5735 of file interface_layout.cc.
References uiButtonItem::but, flag, uiBut::flag, ITEM_BUTTON, uiLayout::items, blender::Vector< T, InlineBufferCapacity, Allocator >::rbegin(), blender::Vector< T, InlineBufferCapacity, Allocator >::rend(), uiItem::type, and ui_item_flag().
Referenced by ui_item_flag(), and ui_item_layout().
|
static |
Definition at line 4050 of file interface_layout.cc.
References ITEM_BUTTON, uiItem::type, and UI_BTYPE_LABEL.
Referenced by ui_litem_layout_radial().
|
static |
Definition at line 4062 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 5749 of file interface_layout.cc.
References uiLayout::active, uiLayout::align, uiBlock::alignnr, uiLayoutRoot::block, uiButtonItem::but, uiBut::drawflag, uiLayout::enabled, uiItem::flag, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), ITEM_BUTTON, ITEM_LAYOUT_ABSOLUTE, ITEM_LAYOUT_BOX, ITEM_LAYOUT_COLUMN, ITEM_LAYOUT_COLUMN_FLOW, ITEM_LAYOUT_GRID_FLOW, ITEM_LAYOUT_OVERLAP, ITEM_LAYOUT_PANEL_BODY, ITEM_LAYOUT_PANEL_HEADER, ITEM_LAYOUT_RADIAL, ITEM_LAYOUT_ROOT, ITEM_LAYOUT_ROW, ITEM_LAYOUT_SPLIT, uiLayout::items, uiLayout::root, uiItem::type, UI_BUT_BOX_ITEM, UI_BUT_DISABLED, UI_BUT_INACTIVE, ui_item_align(), UI_ITEM_BOX_ITEM, ui_item_flag(), ui_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 483 of file interface_layout.cc.
References uiLayout::space, UI_LAYOUT_HORIZONTAL, uiLayoutColumn(), uiLayoutGetLocalDir(), and uiLayoutRow().
Referenced by ui_item_array(), ui_item_enum_expand_exec(), and uiLayoutRadial().
|
static |
Definition at line 2982 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, 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 uiItemM_ptr(), uiItemMenuEnumFullO_ptr(), uiItemMenuEnumR_prop(), uiItemMenuF(), uiItemMenuFN(), and uiItemPopoverPanel_ptr().
Definition at line 1303 of file interface_layout.cc.
References ARegion::alignment, uiLayoutRoot::block, uiBut::drawstr, uiBlock::flag, uiBut::hold_argN, 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(), uiItemL(), uiLayoutSetContextFromBut(), and WM_menutype_find().
Referenced by uiItemFullOMenuHold_ptr().
Definition at line 2970 of file interface_layout.cc.
References UI_menutype_draw().
Referenced by UI_but_menutype_get(), ui_def_but_rna__menu_type(), ui_popup_menu_create_from_menutype(), and uiItemM_ptr().
Definition at line 435 of file interface_layout.cc.
References uiButtonItem::but, ITEM_BUTTON, uiBut::rect, uiItem::type, ui_but_update(), uiLayout::w, uiLayout::x, rctf::xmax, and rctf::xmin.
Referenced by ui_litem_layout_row().
|
static |
Definition at line 223 of file interface_layout.cc.
References len, and UI_MAX_NAME_STR.
Referenced by uiItemFullR(), uiItemL_respect_property_split(), and uiItemPointerR_prop().
Definition at line 391 of file interface_layout.cc.
References uiButtonItem::but, ITEM_BUTTON, uiBut::rect, uiItem::type, rctf::xmin, and rctf::ymin.
Referenced by ui_item_scale(), ui_litem_estimate_absolute(), and ui_litem_layout_absolute().
Definition at line 2976 of file interface_layout.cc.
References 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 413 of file interface_layout.cc.
References uiButtonItem::but, uiLayout::h, ITEM_BUTTON, uiBut::rect, uiItem::type, ui_but_update(), uiLayout::w, w(), uiLayout::x, x, rctf::xmax, rctf::xmin, uiLayout::y, y, rctf::ymax, and rctf::ymin.
Referenced by ui_item_scale(), ui_litem_layout_absolute(), ui_litem_layout_column(), ui_litem_layout_column_flow(), ui_litem_layout_grid_flow(), ui_litem_layout_overlap(), ui_litem_layout_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 2057 of file interface_layout.cc.
References uiLayout::child_items_layout, uiItem::flag, ITEM_LAYOUT_ROW, uiItem::type, UI_ITEM_INSIDE_PROP_SEP, uiLayoutRow(), and uiLayoutSetPropSep().
Referenced by uiItemFullR(), and uiItemPropertySplitWrapperCreate().
|
static |
Definition at line 2001 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 uiItemDecoratorR_prop(), and uiItemFullR().
|
static |
Definition at line 1895 of file interface_layout.cc.
References uiLayoutRoot::block, ceilf, ELEM, uiBlock::evil_C, uiItem::flag, free(), EnumPropertyItem::identifier, 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_ITEM_PROP_SEP, ui_layout_variable_size(), ui_text_icon_width(), UI_UNIT_X, UI_UNIT_Y, and w().
Referenced by uiItemFullR(), and uiItemPointerR_prop().
Definition at line 5604 of file interface_layout.cc.
References ITEM_BUTTON, uiLayout::items, blender::Vector< T, InlineBufferCapacity, Allocator >::rbegin(), blender::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().
Definition at line 367 of file interface_layout.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), uiButtonItem::but, uiLayout::h, ITEM_BUTTON, uiBut::rect, uiItem::type, and uiLayout::w.
Referenced by ui_item_scale(), ui_layout_add_but(), ui_litem_estimate_absolute(), ui_litem_estimate_column(), ui_litem_estimate_column_flow(), ui_litem_estimate_overlap(), ui_litem_estimate_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 988 of file interface_layout.cc.
References uiLayout::align, PointerRNA::data, ELEM, flag, uiItem::flag, PROP_DIRPATH, PROP_ENUM, PROP_FILEPATH, ptr, RNA_property_subtype(), RNA_property_type(), RNA_struct_identifier(), RNA_struct_is_a(), RNA_warning, uiLayout::space, str, PointerRNA::type, UI_block_layout_set_current(), UI_BTYPE_BUT, UI_BTYPE_HOTKEY_EVENT, UI_BTYPE_KEY_EVENT, UI_BTYPE_LABEL, UI_BUT_ACTIVATE_ON_INIT, UI_but_flag_enable(), UI_but_func_set(), UI_FSTYLE_WIDGET, UI_ITEM_PROP_DECORATE, UI_ITEM_PROP_DECORATE_NO_PAD, UI_ITEM_PROP_SEP, UI_ITEM_R_EVENT, UI_ITEM_R_FULL_EVENT, UI_ITEM_R_ICON_ONLY, UI_ITEM_R_IMMEDIATE, ui_keymap_but_cb(), ui_layout_variable_size(), UI_PROP_DECORATE, ui_text_icon_width_ex(), ui_text_pad_none, UI_UNIT_X, uiDefAutoButR(), uiDefBut(), uiDefButR_prop(), uiDefIconButO(), uiItemL(), uiItemL_respect_property_split(), uiLayoutRow(), WM_keymap_item_to_string(), WM_OP_INVOKE_DEFAULT, x, and y.
Referenced by uiItemFullR(), and uiItemPointerR_prop().
|
static |
Definition at line 966 of file interface_layout.cc.
References BLI_assert, KM_ALT, KM_CTRL, KM_MOD_HELD, KM_NOTHING, KM_OSKEY, KM_SHIFT, uiButHotkeyEvent::modifier_key, RNA_int_set(), uiBut::rnapoin, uiBut::type, and UI_BTYPE_HOTKEY_EVENT.
Referenced by ui_item_with_label().
|
static |
Definition at line 497 of file interface_layout.cc.
References uiBut::block, uiBlock::buttons, CTX_wm_window(), wmWindow::eventstate, KM_SHIFT, len, LISTBASE_FOREACH, wmEvent::modifier, POINTER_AS_INT, ptr, RNA_property_array_length(), RNA_property_boolean_set_index(), RNA_property_update(), uiBut::rnapoin, uiBut::rnaprop, and ui_but_update().
Referenced by ui_item_array().
Definition at line 5942 of file interface_layout.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), uiButtonItem::but, uiLayout::child_items_layout, uiBut::context, uiLayout::context, uiBut::emboss, uiLayout::emboss, uiItem::flag, ITEM_BUTTON, uiLayout::items, uiBut::layout, uiBut::search_weight, uiLayout::search_weight, str, uiItem::type, ui_button_group_add_but(), UI_EMBOSS_UNDEFINED, UI_ITEM_FIXED_SIZE, ui_item_size(), uiLayoutGetBlock(), bContextStore::used, and w().
Referenced by ui_def_but().
|
static |
Definition at line 5859 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 5137 of file interface_layout.cc.
References uiLayoutRoot::block, uiStyle::columnspace, ITEM_LAYOUT_BOX, uiLayout::root, uiLayoutRoot::style, UI_block_layout_set_current(), ui_litem_init_from_parent(), and uiDefBut().
Referenced by uiLayoutBox(), and uiLayoutListBox().
Definition at line 5824 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 5977 of file interface_layout.cc.
References uiButtonItem::but, uiLayout::child_items_layout, ITEM_BUTTON, 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 5841 of file interface_layout.cc.
References uiButtonItem::but, ITEM_BUTTON, uiLayout::items, uiBut::layout, and ui_layout_free().
Referenced by UI_block_layout_free(), UI_block_layout_resolve(), and ui_layout_free().
Definition at line 6235 of file interface_layout.cc.
References uiButtonItem::but, CTX_IFACE_, uiBut::flag, ITEM_BUTTON, uiLayout::items, PanelType::label, uiBut::str, PanelType::translation_context, 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 2017 of file interface_layout.cc.
References uiLayout::parent.
Referenced by ui_item_menu(), and uiItemFullR().
|
static |
Definition at line 2028 of file interface_layout.cc.
References uiLayout::alignment, uiLayout::heading, UI_LAYOUT_ALIGN_RIGHT, uiItemL(), uiItemL_respect_property_split(), and uiLayoutSetAlignment().
Referenced by ui_item_menu(), and uiItemFullR().
|
static |
Definition at line 4960 of file interface_layout.cc.
References BLI_assert, uiLayout::heading, and STRNCPY.
Referenced by uiLayoutColumnWithHeading(), and uiLayoutRowWithHeading().
| const char * UI_layout_introspect | ( | uiLayout * | layout | ) |
Evaluate layout items as a Python dictionary.
Definition at line 6440 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 6343 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 6381 of file interface_layout.cc.
References BLI_dynstr_append(), CASE_ITEM, ITEM_BUTTON, ITEM_LAYOUT_ABSOLUTE, ITEM_LAYOUT_BOX, ITEM_LAYOUT_COLUMN, ITEM_LAYOUT_COLUMN_FLOW, ITEM_LAYOUT_GRID_FLOW, ITEM_LAYOUT_OVERLAP, ITEM_LAYOUT_PANEL_BODY, ITEM_LAYOUT_PANEL_HEADER, ITEM_LAYOUT_RADIAL, ITEM_LAYOUT_ROOT, ITEM_LAYOUT_ROW, ITEM_LAYOUT_ROW_FLOW, ITEM_LAYOUT_SPLIT, 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 1465 of file interface_layout.cc.
References ITEM_LAYOUT_RADIAL, ITEM_LAYOUT_ROOT, uiLayout::root, uiItem::type, uiLayoutRoot::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 5183 of file interface_layout.cc.
References uiButtonItem::but, uiBut::flag, ITEM_BUTTON, uiLayout::items, UI_but_flag_enable(), UI_BUT_LIST_ITEM, ui_layout_list_set_labels_active(), and UI_SELECT.
Referenced by ui_layout_list_set_labels_active(), and ui_template_list_layout_draw().
Definition at line 6002 of file interface_layout.cc.
References BLI_assert, uiLayout::child_items_layout, ITEM_BUTTON, uiLayout::items, blender::Vector< T, InlineBufferCapacity, Allocator >::remove_if(), and UNUSED_VARS_NDEBUG.
Referenced by UI_but_active_only_ex().
Definition at line 6019 of file interface_layout.cc.
References uiButtonItem::but, and ui_layout_find_button_item().
Referenced by ui_but_change_type().
|
static |
Definition at line 286 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().
Definition at line 278 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 4769 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 4238 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 3980 of file interface_layout.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), blender::Vector< T, InlineBufferCapacity, Allocator >::end(), uiItem::flag, uiLayout::h, uiLayout::items, blender::Vector< T, InlineBufferCapacity, Allocator >::last(), uiLayout::space, spaces_after_column_item(), UI_ITEM_FIXED_SIZE, 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 4296 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, and uiLayout::y.
Referenced by ui_item_estimate().
|
static |
Definition at line 4582 of file interface_layout.cc.
References uiStyle::buttonspacey, ceilf, uiLayoutItemGridFlow::columns_len, uiStyle::columnspace, uiLayoutItemGridFlow::even_columns, uiLayoutItemGridFlow::even_rows, uiLayout::h, int, uiLayout::items, max_ii(), min_ii(), uiLayout::root, UILayoutGridFlowInput::row_major, uiLayoutItemGridFlow::row_major, uiLayoutRoot::style, uiLayoutItemGridFlow::tot_columns, UILayoutGridFlowOutput::tot_items, uiLayoutItemGridFlow::tot_items, uiLayoutItemGridFlow::tot_rows, UILayoutGridFlowOutput::tot_w, ui_litem_grid_flow_compute(), uiLayout::w, uiLayout::x, and uiLayout::y.
Referenced by ui_item_estimate().
|
static |
Definition at line 4903 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 4221 of file interface_layout.cc.
References ui_litem_estimate_column().
Referenced by ui_item_estimate().
|
static |
Definition at line 4190 of file interface_layout.cc.
References BLI_assert, blender::Vector< T, InlineBufferCapacity, Allocator >::first(), uiLayout::h, uiLayout::items, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), ui_item_size(), uiLayout::w, and w().
Referenced by ui_item_estimate().
|
static |
Definition at line 4151 of file interface_layout.cc.
Referenced by ui_item_estimate().
|
static |
Definition at line 3752 of file interface_layout.cc.
References uiItem::flag, uiLayout::h, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), uiLayout::items, blender::Vector< T, InlineBufferCapacity, Allocator >::last(), uiLayout::space, UI_ITEM_FIXED_SIZE, ui_item_size(), and uiLayout::w.
Referenced by ui_item_estimate(), and ui_litem_estimate_split().
|
static |
Definition at line 4852 of file interface_layout.cc.
References uiItem::flag, and ui_litem_estimate_row().
Referenced by ui_item_estimate().
|
static |
Definition at line 4445 of file interface_layout.cc.
References BLI_assert, ceilf, col, UILayoutGridFlowOutput::cos_x_array, UILayoutGridFlowOutput::cos_y_array, float, UILayoutGridFlowOutput::global_avg_w, UILayoutGridFlowOutput::global_max_h, UILayoutGridFlowOutput::heights_array, int, blender::Span< T >::is_empty(), max_ii(), parameters, UILayoutGridFlowOutput::tot_h, UILayoutGridFlowOutput::tot_items, UILayoutGridFlowOutput::tot_w, ui_item_size(), and UILayoutGridFlowOutput::widths_array.
Referenced by ui_litem_estimate_grid_flow(), and ui_litem_layout_grid_flow().
Definition at line 4935 of file interface_layout.cc.
References uiLayout::active, uiLayout::align, blender::Vector< T, InlineBufferCapacity, Allocator >::append(), uiLayout::child_items_layout, uiLayout::context, uiLayout::emboss, uiLayout::enabled, uiItem::flag, ITEM_LAYOUT_GRID_FLOW, uiLayout::items, uiLayout::parent, uiLayout::redalert, uiLayout::root, uiItem::type, UI_ITEM_INSIDE_PROP_SEP, UI_ITEM_PROP_DECORATE, UI_ITEM_PROP_SEP, uiLayout::variable_size, and uiLayout::w.
Referenced by ui_layout_box(), uiLayoutAbsolute(), uiLayoutColumn(), uiLayoutColumnFlow(), uiLayoutGridFlow(), uiLayoutOverlap(), uiLayoutPanelProp(), uiLayoutRadial(), uiLayoutRow(), and uiLayoutSplit().
|
static |
Definition at line 4792 of file interface_layout.cc.
References float, uiLayout::h, uiLayout::items, max_ii(), min_ii(), ui_item_offset(), ui_item_position(), ui_item_size(), uiLayout::w, uiLayout::x, x, uiLayout::y, and y.
Referenced by ui_item_layout().
|
static |
Definition at line 4252 of file interface_layout.cc.
References uiStyle::boxspace, uiLayout::h, uiBut::rect, uiLayout::root, uiLayoutRoot::style, uiLayoutRoot::type, UI_LAYOUT_HEADER, ui_litem_layout_column(), uiLayout::w, w(), uiLayout::x, rctf::xmax, rctf::xmin, uiLayout::y, rctf::ymax, and rctf::ymin.
Referenced by ui_item_layout().
|
static |
Definition at line 4007 of file interface_layout.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), blender::Vector< T, InlineBufferCapacity, Allocator >::end(), uiItem::flag, uiLayout::h, uiLayout::items, blender::Vector< T, InlineBufferCapacity, Allocator >::last(), uiLayout::space, spaces_after_column_item(), UI_ITEM_BOX_ITEM, ui_item_position(), ui_item_size(), uiLayout::w, uiLayout::x, x, uiLayout::y, and y.
Referenced by ui_item_layout(), ui_litem_layout_box(), ui_litem_layout_panel_body(), and ui_litem_layout_root().
|
static |
Definition at line 4359 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, uiLayout::w, w(), uiLayout::x, x, and uiLayout::y.
Referenced by ui_item_layout().
|
static |
Definition at line 4706 of file interface_layout.cc.
References uiLayout::alignment, BLI_assert, uiStyle::buttonspacey, col, uiStyle::columnspace, UILayoutGridFlowOutput::cos_x_array, blender::Array< T, InlineBufferCapacity, Allocator >::data(), uiLayoutItemGridFlow::even_columns, uiLayoutItemGridFlow::even_rows, uiLayout::h, uiLayout::items, min_ii(), uiLayout::root, UILayoutGridFlowInput::row_major, 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(), uiLayout::w, w(), uiLayout::x, and uiLayout::y.
Referenced by ui_item_layout().
|
static |
Definition at line 4917 of file interface_layout.cc.
References uiLayout::h, uiLayout::items, ui_item_position(), ui_item_size(), uiLayout::w, uiLayout::x, x, and uiLayout::y.
Referenced by ui_item_layout().
|
static |
Definition at line 4226 of file interface_layout.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), uiLayoutRoot::block, LayoutPanels::bodies, float, 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 4201 of file interface_layout.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_assert, uiLayoutRoot::block, blender::Vector< T, InlineBufferCapacity, Allocator >::first(), float, 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, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), ui_item_position(), ui_item_size(), UI_style_get_dpi(), uiLayout::w, w(), uiLayout::x, and uiLayout::y.
Referenced by ui_item_layout().
|
static |
Definition at line 4072 of file interface_layout.cc.
References uiLayoutRoot::block, uiButtonItem::but, uiBut::drawflag, ELEM, uiBut::emboss, uiLayout::h, int, ITEM_BUTTON, uiLayout::items, max_ii(), min_ii(), uiBlock::pie_data, uiBut::pie_dir, PieMenuData::pie_dir_mask, uiBut::rect, uiLayout::root, uiBut::type, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, UI_BUT_ICON_LEFT, UI_EMBOSS_PIE_MENU, 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, uiLayout::x, x, rctf::xmax, uiLayout::y, y, and rctf::ymax.
Referenced by ui_item_layout().
|
static |
Definition at line 4173 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 4156 of file interface_layout.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::first(), ITEM_BUTTON, uiLayout::items, uiItem::type, ui_item_position(), ui_item_size(), UI_SCALE_FAC, uiLayout::x, x, uiLayout::y, and y.
Referenced by ui_litem_layout_root().
|
static |
Definition at line 3789 of file interface_layout.cc.
References uiLayout::alignment, blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), ELEM, flag, uiItem::flag, uiLayout::h, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), ITEM_BUTTON, uiLayout::items, blender::Vector< T, InlineBufferCapacity, Allocator >::last(), min_ii(), uiLayout::space, UI_ITEM_AUTO_FIXED_SIZE, ui_item_fit(), UI_ITEM_FIXED_SIZE, ui_item_move(), ui_item_position(), ui_item_size(), UI_LAYOUT_ALIGN_CENTER, UI_LAYOUT_ALIGN_EXPAND, UI_LAYOUT_ALIGN_RIGHT, ui_litem_min_width(), uiLayout::w, w(), uiLayout::x, x, uiLayout::y, and y.
Referenced by ui_item_layout(), and ui_litem_layout_root().
|
static |
Definition at line 4858 of file interface_layout.cc.
References uiLayout::h, int, uiLayout::items, blender::Vector< T, InlineBufferCapacity, Allocator >::last(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), uiLayout::space, ui_item_position(), ui_item_size(), uiLayout::w, w(), uiLayout::x, x, uiLayout::y, and y.
Referenced by ui_item_layout().
Definition at line 3784 of file interface_layout.cc.
References UI_UNIT_X.
Referenced by ui_litem_layout_row().
|
static |
Definition at line 1391 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(), uiItemEnumO_string(), and uiItemEnumO_value().
Definition at line 6205 of file interface_layout.cc.
References uiLayout::context, CTX_store_set(), MenuType::draw, MenuType::flag, G, G_DEBUG_WM, MenuType::idname, Menu::layout, MenuType::listener, printf, SearchOnKeyPress, uiItem::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 6317 of file interface_layout.cc.
References 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 6257 of file interface_layout.cc.
References BKE_panel_free(), BKE_panel_new(), BLI_assert, PanelType::children, col, CTX_IFACE_, Panel_Runtime::custom_data_ptr, PanelType::draw, PanelType::draw_header, Panel::flag, uiBlock::handle, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), uiLayout::items, PanelType::label, blender::Vector< T, InlineBufferCapacity, Allocator >::last(), Panel::layout, LISTBASE_FOREACH, PanelType::listener, PNL_POPOVER, PanelType::poll, uiPopupBlockHandle::region, Panel::runtime, PanelType::translation_context, ui_block_add_dynamic_listener(), ui_layout_has_panel_label(), ui_paneltype_draw_impl(), UI_popup_dummy_panel_set(), uiItemL(), uiItemS(), uiLayoutColumn(), uiLayoutGetBlock(), and uiLayoutRow().
Referenced by UI_paneltype_draw(), and ui_paneltype_draw_impl().
|
static |
Definition at line 2789 of file interface_layout.cc.
References uiRNACollectionSearch::butstore, uiRNACollectionSearch::butstore_block, MEM_freeN(), ptr, and UI_butstore_free().
Referenced by ui_but_add_search().
|
static |
Definition at line 358 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 ui_item_array(), ui_item_disabled(), ui_item_enum_expand_elem_exec(), ui_item_rna_size(), uiItemFullO_ptr_ex(), and uiLayoutPanelProp().
|
static |
Estimated size of text + icon.
Definition at line 323 of file interface_layout.cc.
References uiLayout::alignment, uiBlock::aspect, uiLayoutRoot::block, ceilf, uiItem::flag, uiTextIconPadFactor::icon, uiTextIconPadFactor::icon_only, int, uiLayout::root, uiLayout::scale, uiTextIconPadFactor::text, UI_fontstyle_string_width_with_block_aspect(), UI_ITEM_FIXED_SIZE, UI_LAYOUT_ALIGN_EXPAND, ui_layout_variable_size(), and UI_UNIT_X.
Referenced by ui_item_menu(), ui_item_with_label(), ui_text_icon_width(), and uiItemL_().
| void uiItemBooleanO | ( | uiLayout * | layout, |
| const char * | name, | ||
| int | icon, | ||
| const char * | opname, | ||
| const char * | propname, | ||
| int | value ) |
Definition at line 1790 of file interface_layout.cc.
References PointerRNA::data, uiLayoutRoot::opcontext, ot, ptr, RNA_boolean_set(), uiLayout::root, UI_ITEM_NONE, UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by blender::bake_panel_draw(), modifier_ops_extra_draw(), blender::ed::object::parent_set_invoke_menu(), blender::ed::object::pose_ik_add_invoke(), ui_popup_context_menu_for_button(), and uv_mark_seam_invoke().
| void uiItemDecoratorR | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| int | index ) |
Insert a decorator item for a button with the same property as prop. To force inserting a blank dummy element, NULL can be passed for ptr and propname.
Definition at line 3175 of file interface_layout.cc.
References ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), and uiItemDecoratorR_prop().
Referenced by blender::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 3120 of file interface_layout.cc.
References uiLayoutRoot::block, col, uiButDecorator::decorated_rnaindex, uiButDecorator::decorated_rnapoin, uiButDecorator::decorated_rnaprop, ELEM, uiBut::flag, 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_EMBOSS_NONE, UI_ITEM_NONE, ui_item_rna_is_expand(), UI_UNIT_X, UI_UNIT_Y, uiDefIconBut(), and uiLayoutColumn().
Referenced by uiItemDecoratorR(), and uiItemFullR().
| void uiItemEnumO | ( | uiLayout * | layout, |
| const char * | opname, | ||
| const char * | name, | ||
| int | icon, | ||
| const char * | propname, | ||
| int | value ) |
Definition at line 1447 of file interface_layout.cc.
References ot, RNA_warning, ui_item_disabled(), uiItemEnumO_ptr(), and WM_operatortype_find().
Referenced by armature_parent_clear_invoke(), armature_parent_set_invoke(), blender::nodes::node_geo_bake_cc::draw_bake_items(), blender::nodes::node_geo_simulation_cc::draw_simulation_state(), blender::ed::space_node::node_group_separate_invoke(), 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_menu_switch_cc::node_layout_ex(), and blender::nodes::node_geo_repeat_cc::node_layout_ex().
| void uiItemEnumO_ptr | ( | uiLayout * | layout, |
| wmOperatorType * | ot, | ||
| const char * | name, | ||
| int | icon, | ||
| const char * | propname, | ||
| int | value ) |
Definition at line 1416 of file interface_layout.cc.
References PointerRNA::data, uiLayoutRoot::opcontext, ot, ptr, RNA_property_enum_set(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::root, PointerRNA::type, UI_ITEM_NONE, ui_menu_enumpropname(), uiItemFullO_ptr(), 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 char * | name, | ||
| int | icon, | ||
| const char * | opname, | ||
| const char * | propname, | ||
| const char * | value_str ) |
Definition at line 1734 of file interface_layout.cc.
References uiLayoutRoot::block, PointerRNA::data, uiBlock::evil_C, free(), MEM_freeN(), uiLayoutRoot::opcontext, ot, ptr, RNA_enum_value_from_id(), RNA_property_enum_items(), RNA_property_enum_set(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::root, PointerRNA::type, UI_ITEM_NONE, ui_menu_enumpropname(), UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by blender::panel_draw().
| void uiItemEnumO_value | ( | uiLayout * | layout, |
| const char * | name, | ||
| int | icon, | ||
| const char * | opname, | ||
| const char * | propname, | ||
| int | value ) |
For use in cases where we have.
Definition at line 1697 of file interface_layout.cc.
References PointerRNA::data, uiLayoutRoot::opcontext, ot, ptr, RNA_property_enum_set(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::root, PointerRNA::type, UI_ITEM_NONE, ui_menu_enumpropname(), UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by ui_template_palette_menu().
| void uiItemEnumR | ( | uiLayout * | layout, |
| const char * | name, | ||
| int | icon, | ||
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| int | value ) |
Definition at line 2629 of file interface_layout.cc.
References ptr, RNA_ENUM_VALUE, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), UI_ITEM_NONE, and uiItemFullR().
| void uiItemEnumR_prop | ( | uiLayout * | layout, |
| const char * | name, | ||
| int | icon, | ||
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | value ) |
Definition at line 2616 of file interface_layout.cc.
References PROP_ENUM, ptr, RNA_ENUM_VALUE, RNA_property_identifier(), RNA_property_type(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), UI_ITEM_NONE, and uiItemFullR().
Referenced by uiItemsEnumR().
| void uiItemEnumR_string | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| const char * | value, | ||
| const char * | name, | ||
| int | icon ) |
Definition at line 2695 of file interface_layout.cc.
References ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), uiItemEnumR_string_prop(), and UNLIKELY.
| void uiItemEnumR_string_prop | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const char * | value, | ||
| const char * | name, | ||
| int | icon ) |
Definition at line 2643 of file interface_layout.cc.
References uiLayoutRoot::block, CTX_IFACE_, uiBlock::evil_C, flag, free(), EnumPropertyItem::icon, EnumPropertyItem::identifier, MEM_freeN(), PROP_ENUM, ptr, RNA_ENUM_VALUE, RNA_enum_value_from_id(), RNA_property_enum_items(), RNA_property_identifier(), RNA_property_translation_context(), RNA_property_type(), RNA_struct_identifier(), RNA_warning, uiLayout::root, PointerRNA::type, ui_item_disabled(), UI_ITEM_NONE, UI_ITEM_R_ICON_ONLY, uiItemFullR(), and UNLIKELY.
Referenced by uiItemEnumR_string().
| void uiItemFloatO | ( | uiLayout * | layout, |
| const char * | name, | ||
| int | icon, | ||
| const char * | opname, | ||
| const char * | propname, | ||
| float | value ) |
Definition at line 1838 of file interface_layout.cc.
References PointerRNA::data, uiLayoutRoot::opcontext, ot, ptr, RNA_float_set(), uiLayout::root, UI_ITEM_NONE, UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
| void uiItemFullO | ( | uiLayout * | layout, |
| const char * | opname, | ||
| const char * | name, | ||
| int | icon, | ||
| IDProperty * | properties, | ||
| wmOperatorCallContext | context, | ||
| const eUI_Item_Flag | flag, | ||
| PointerRNA * | r_opptr ) |
Definition at line 1370 of file interface_layout.cc.
References flag, ot, PointerRNA_NULL, UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), and WM_operatortype_find().
Referenced by blender::add_attribute_search_or_value_buttons(), blender::ed::asset_browser::AssetCatalogTreeViewItem::build_context_menu(), constraint_ops_extra_draw(), blender::nodes::draw_bake_button_row(), gpencil_shaderfx_ops_extra_draw(), modifier_ops_extra_draw(), blender::ed::space_node::node_add_catalog_assets_draw(), blender::ed::space_node::node_add_unassigned_assets_draw(), blender::nodes::node_composite_file_output_cc::node_composit_buts_file_output_ex(), blender::nodes::node_composite_render_layer_cc::node_composit_buts_viewlayers(), panel_draw(), screen_area_menu_items(), screen_area_options_invoke(), subdivisions_panel_draw(), ui_popup_context_menu_for_button(), uiItemO(), uiTemplateOperatorRedoProperties(), uiTemplateRecentFiles(), view3d_panel_vgroup(), and wm_block_splash_create().
| void uiItemFullO_ptr | ( | uiLayout * | layout, |
| wmOperatorType * | ot, | ||
| const char * | name, | ||
| const int | icon, | ||
| IDProperty * | properties, | ||
| const wmOperatorCallContext | context, | ||
| const eUI_Item_Flag | flag, | ||
| PointerRNA * | r_opptr ) |
Definition at line 1344 of file interface_layout.cc.
References flag, ot, and uiItemFullO_ptr_ex().
Referenced by blender::ed::geometry::catalog_assets_draw(), blender::ed::object::catalog_assets_draw(), blender::ed::geometry::catalog_assets_draw_unassigned(), blender::ed::sculpt_paint::dyntopo::dyntopo_warning_popup(), file_os_operations_menu_item(), blender::ed::object::move_to_collection_menu_create(), blender::nodes::node_composite_file_output_cc::node_composit_buts_file_output_ex(), blender::ed::object::parent_set_invoke_menu(), screen_user_menu_draw(), template_operator_property_buts_draw_single(), ui_but_menu_add_path_operators(), UI_popup_block_template_confirm_op(), ui_popup_context_menu_for_button(), uiItemBooleanO(), uiItemEnumO_ptr(), uiItemEnumO_string(), uiItemEnumO_value(), uiItemFloatO(), uiItemFullO(), uiItemIntO(), uiItemsFullEnumO_items(), uiItemStringO(), uiTemplateEditModeSelection(), blender::ed::object::unassigned_assets_draw(), unpack_menu(), weight_sample_group_invoke(), wm_drop_import_file_invoke(), and workspace_append_button().
|
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 1212 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, uiBut::optype, ot, uiLayout::redalert, uiLayout::root, wmOperatorType::srna, uiLayoutRoot::type, UI_block_layout_set_current(), ui_block_new_button_group(), UI_BTYPE_BUT, UI_BUT_ACTIVE_DEFAULT, UI_but_drawflag_disable(), UI_but_flag_enable(), UI_BUT_ICON_LEFT, UI_but_operator_ptr_ensure(), UI_BUT_REDALERT, UI_EMBOSS_NONE_OR_STATUS, UI_ITEM_O_DEPRESS, UI_ITEM_R_ICON_ONLY, UI_ITEM_R_NO_BG, UI_LAYOUT_MENU, UI_SELECT_DRAW, ui_text_icon_width(), UI_UNIT_Y, uiDefButO_ptr(), uiDefIconButO_ptr(), uiDefIconTextButO_ptr(), w(), and WM_operatortype_name().
Referenced by uiItemFullO_ptr(), and uiItemFullOMenuHold_ptr().
| void uiItemFullOMenuHold_ptr | ( | uiLayout * | layout, |
| wmOperatorType * | ot, | ||
| const char * | name, | ||
| int | icon, | ||
| IDProperty * | properties, | ||
| const wmOperatorCallContext | context, | ||
| const eUI_Item_Flag | flag, | ||
| const char * | menu_id, | ||
| PointerRNA * | r_opptr ) |
Definition at line 1356 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 | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index, | ||
| int | value, | ||
| eUI_Item_Flag | flag, | ||
| const char * | name, | ||
| int | icon, | ||
| const char * | placeholder ) |
Definition at line 2073 of file interface_layout.cc.
References uiLayout::activate_init, BLI_assert, BLI_insertlinkafter(), BLI_remlink(), uiLayoutRoot::block, uiBlock::buttons, CTX_data_main(), PointerRNA::data, uiBut::drawflag, ED_id_rename(), ELEM, uiBut::emboss, uiLayout::emboss, uiBlock::evil_C, ListBase::first, flag, uiBlock::flag, uiItem::flag, uiBut::icon, ListBase::last, len, max_ii(), NA_RENAME, NC_ID, uiBut::next, PointerRNA::owner_id, uiButNumber::precision, uiButNumberSlider::precision, PROP_BOOLEAN, PROP_ENUM, PROP_ENUM_FLAG, PROP_FLOAT, PROP_ICONS_CONSECUTIVE, PROP_INT, PROP_POINTER, PROP_STRING, PROP_STRING_SEARCH_SUGGESTION, ptr, uiLayout::redalert, RNA_ENUM_VALUE, RNA_NO_INDEX, RNA_property_array_check(), RNA_property_array_item_char(), RNA_property_array_length(), RNA_property_boolean_get(), RNA_property_boolean_get_index(), RNA_property_enum_get(), RNA_property_flag(), RNA_property_string_search_flag(), RNA_property_type(), RNA_property_ui_icon(), RNA_property_ui_name(), RNA_struct_name_property(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, uiLayout::root, uiLayout::space, uiButNumber::step_size, uiButNumberSlider::step_size, str, uiBut::str, STRNCPY_RLEN, PointerRNA::type, uiBut::type, uiLayoutRoot::type, UI_block_layout_set_current(), UI_BLOCK_LIST_ITEM, ui_block_new_button_group(), UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_ICON_TOGGLE_N, UI_BTYPE_LABEL, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_ROW, UI_BTYPE_TEXT, UI_BTYPE_TOGGLE, UI_BUT2_FORCE_SEMI_MODAL_ACTIVE, UI_BUT_ACTIVATE_ON_INIT, ui_but_add_search(), ui_but_change_type(), UI_BUT_CHECKBOX_INVERT, UI_but_flag2_enable(), UI_but_flag_enable(), UI_but_func_rename_full_set(), UI_BUT_LIST_ITEM, UI_but_placeholder_set(), UI_BUT_REDALERT, UI_BUT_TEXT_RIGHT, ui_def_but_icon_clear(), UI_EMBOSS_NONE, UI_EMBOSS_NONE_OR_STATUS, ui_item_array(), ui_item_enum_expand(), UI_ITEM_INSIDE_PROP_SEP, ui_item_name_add_colon(), UI_ITEM_PROP_DECORATE, UI_ITEM_PROP_DECORATE_NO_PAD, UI_ITEM_PROP_SEP, UI_ITEM_PROP_SEP_DIVIDE, ui_item_prop_split_layout_hack(), UI_ITEM_R_CHECKBOX_INVERT, UI_ITEM_R_COMPACT, UI_ITEM_R_EXPAND, UI_ITEM_R_FORCE_BLANK_DECORATE, UI_ITEM_R_ICON_NEVER, UI_ITEM_R_ICON_ONLY, UI_ITEM_R_NO_BG, UI_ITEM_R_SLIDER, UI_ITEM_R_SPLIT_EMPTY_NAME, UI_ITEM_R_TEXT_BUT_FORCE_SEMI_MODAL_ACTIVE, UI_ITEM_R_TOGGLE, ui_item_rna_is_expand(), ui_item_rna_size(), ui_item_with_label(), ui_layout_heading_find(), ui_layout_heading_label_add(), UI_LAYOUT_HORIZONTAL, UI_LAYOUT_MENU, UI_LAYOUT_PIEMENU, UI_MAX_DRAW_STR, UI_MAX_NAME_STR, UI_UNIT_Y, uiDefAutoButR(), uiDefBut(), uiDefButR_prop(), uiDefIconButR_prop(), uiDefIconTextButR_prop(), uiItemDecoratorR_prop(), uiLayoutColumn(), uiLayoutGetLocalDir(), uiLayoutRow(), uiLayoutSplit(), w(), and WM_main_add_notifier().
Referenced by blur_panel_draw(), blur_panel_draw(), CurveProfile_buttons_layout(), blender::nodes::draw_common_bake_settings(), draw_export_properties(), generator_panel_draw(), blender::intersection_panel_draw(), blender::material_mask_panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), screen_user_menu_draw(), blender::ed::space_node::std_node_socket_draw(), template_keymap_item_properties(), UI_pie_menu_invoke_from_rna_enum(), uiDefAutoButsRNA(), uiItemEnumR(), uiItemEnumR_prop(), uiItemEnumR_string_prop(), uiItemFullR_with_menu(), uiItemFullR_with_popover(), uiItemR(), uilist_draw_item_default(), uiTemplateAnyID(), and uiTemplateAssetView().
| void uiItemFullR_with_menu | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index, | ||
| int | value, | ||
| const eUI_Item_Flag | flag, | ||
| const char * | name, | ||
| int | icon, | ||
| const char * | menu_type ) |
Definition at line 2585 of file interface_layout.cc.
References uiLayoutRoot::block, uiBlock::buttons, flag, ListBase::last, uiBut::next, ptr, RNA_property_identifier(), RNA_struct_identifier(), RNA_warning, uiBut::rnaprop, uiLayout::root, PointerRNA::type, uiBut::type, UI_BTYPE_MENU, ui_but_rna_menu_convert_to_menu_type(), ui_item_disabled(), and uiItemFullR().
| void uiItemFullR_with_popover | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index, | ||
| int | value, | ||
| eUI_Item_Flag | flag, | ||
| const char * | name, | ||
| int | icon, | ||
| const char * | panel_type ) |
Use a wrapper function since re-implementing all the logic in this function would be messy.
Definition at line 2554 of file interface_layout.cc.
References uiLayoutRoot::block, uiBlock::buttons, ELEM, flag, ListBase::last, uiBut::next, ptr, RNA_property_identifier(), RNA_struct_identifier(), RNA_warning, uiBut::rnaprop, uiLayout::root, PointerRNA::type, uiBut::type, UI_BTYPE_COLOR, UI_BTYPE_MENU, ui_but_rna_menu_convert_to_panel_type(), ui_item_disabled(), and uiItemFullR().
| void uiItemIntO | ( | uiLayout * | layout, |
| const char * | name, | ||
| int | icon, | ||
| const char * | opname, | ||
| const char * | propname, | ||
| int | value ) |
Definition at line 1814 of file interface_layout.cc.
References PointerRNA::data, uiLayoutRoot::opcontext, ot, ptr, RNA_int_set(), uiLayout::root, UI_ITEM_NONE, UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by blender::ed::object::collection_hide_menu_draw(), draw_export_controls(), menu_add_item_for_move_assign_unassign(), blender::ed::object::move_to_collection_menu_create(), move_to_collection_menu_create(), blender::ed::object::move_to_collection_menus_items(), blender::nodes::node_geo_index_switch_cc::node_layout_ex(), repeat_history_invoke(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw_header(), uiTemplateCollectionExporters(), and undo_history_draw_menu().
Definition at line 3339 of file interface_layout.cc.
References uiItemL_().
Referenced by blender::add_attribute_search_or_value_buttons(), blender::ed::geometry::add_attribute_search_or_value_buttons(), blender::ui::BasicTreeViewItem::add_label(), blender::ed::space_node::add_root_catalogs_draw(), blender::bake_panel_draw(), 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::ed::asset::shelf::AssetCatalogSelectorTree::Item::build_row(), blender::ed::spreadsheet::CurvesDomainViewItem::build_row(), blender::ed::spreadsheet::CurvesViewItem::build_row(), blender::ed::spreadsheet::GreasePencilLayerCurvesDomainViewItem::build_row(), blender::ed::spreadsheet::GreasePencilLayersViewItem::build_row(), blender::ed::spreadsheet::GreasePencilLayerViewItem::build_row(), blender::ed::spreadsheet::GreasePencilViewItem::build_row(), blender::ed::spreadsheet::InstanceReferenceViewItem::build_row(), blender::ed::spreadsheet::InstancesViewItem::build_row(), blender::ed::spreadsheet::MeshDomainViewItem::build_row(), blender::ed::spreadsheet::MeshViewItem::build_row(), blender::ed::spreadsheet::PointCloudViewItem::build_row(), blender::ed::spreadsheet::PointsViewItem::build_row(), blender::ed::spreadsheet::RootGeometryViewItem::build_row(), blender::ed::spreadsheet::VolumeGridsViewItem::build_row(), blender::ui::bonecollections::BoneCollectionItem::build_row(), buttons_panel_context_draw(), blender::ed::geometry::catalog_assets_draw_unassigned(), blender::chaining_panel_draw(), blender::ed::object::collection_exporter_menu_draw(), blender::composition_panel_draw(), draw_constraint_header(), draw_export_controls(), blender::draw_interface_panel_content(), blender::draw_named_attributes_panel(), blender::ed::space_node::draw_node_socket_name_editable(), blender::draw_property_for_output_socket(), blender::draw_property_for_socket(), blender::ed::geometry::draw_property_for_socket(), blender::draw_warnings(), driver_dvar_invalid_name_query_cb(), blender::ed::sculpt_paint::dyntopo::dyntopo_warning_popup(), blender::edge_types_panel_draw(), blender::face_mark_panel_draw(), blender::face_mark_panel_draw_header(), file_overwrite_detailed_info_show(), fmodifier_panel_header(), generator_panel_draw(), graph_draw_driven_property_panel(), graph_draw_driver_settings_panel(), graph_panel_drivers_popover(), graph_panel_key_properties(), graph_panel_properties(), image_new_draw(), menu_add_shortcut(), menu_change_shortcut(), metadata_panel_draw_field(), modifier_panel_end(), nla_panel_animdata(), nla_panel_stripname(), blender::ed::space_node::node_buts_image_user(), blender::nodes::node_composite_blur_cc::node_composit_buts_blur(), blender::nodes::node_composite_channel_matte_cc::node_composit_buts_channel_matte(), blender::nodes::node_composite_color_spill_cc::node_composit_buts_color_spill(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection_ex(), blender::nodes::node_composite_convert_color_space_cc::node_composit_buts_convert_colorspace(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy(), blender::nodes::node_composite_directionalblur_cc::node_composit_buts_dblur(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::nodes::node_composite_denoise_cc::node_composit_buts_denoise(), blender::nodes::node_composite_distance_matte_cc::node_composit_buts_distance_matte(), blender::nodes::node_composite_double_edge_mask_cc::node_composit_buts_double_edge_mask(), blender::nodes::node_composite_file_output_cc::node_composit_buts_file_output(), blender::nodes::node_composite_file_output_cc::node_composit_buts_file_output_ex(), blender::nodes::node_composite_glare_cc::node_composit_buts_glare(), blender::ed::space_node::node_file_output_socket_draw(), blender::nodes::node_geo_bake_cc::node_layout_ex(), blender::nodes::node_geo_index_switch_cc::node_layout_ex(), blender::nodes::node_geo_simulation_cc::node_layout_ex(), blender::nodes::node_shader_tex_sky_cc::node_shader_buts_tex_sky(), blender::nodes::node_shader_vertex_color_cc::node_shader_buts_vertex_color(), blender::ed::space_node::node_socket_button_label(), blender::ed::space_node::node_socket_undefined_draw(), blender::ed::space_node::node_socket_undefined_interface_draw(), blender::occlusion_panel_draw(), blender::options_light_reference_draw(), blender::options_panel_draw(), blender::ed::outliner::outliner_orphans_purge_ui(), 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(), recent_files_menu_draw(), blender::ed::object::root_catalogs_draw(), screen_user_menu_draw(), shaderfx_panel_end(), shaderfx_panel_header(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw_header(), blender::ed::spreadsheet::spreadsheet_footer_region_draw(), blender::ed::space_node::std_node_socket_draw(), blender::ui::template_breadcrumbs(), template_keymap_item_properties(), template_operator_property_buts_draw_single(), template_texture_user_menu(), ui_def_but_rna__menu(), ui_def_but_rna__menu_type(), ui_def_but_rna__panel_type(), ui_item_enum_expand_exec(), ui_item_menu_hold(), ui_item_with_label(), ui_layout_heading_label_add(), blender::ed::space_node::ui_node_draw_input(), blender::ed::space_node::ui_node_menu_column(), ui_paneltype_draw_impl(), UI_popup_menu_reports(), ui_template_list_layout_draw(), blender::ed::space_node::ui_template_node_link_menu(), ui_template_palette_menu(), uiDefAutoButsRNA(), uiItemsEnumR(), uiItemsFullEnumO_items(), uiLayoutPanel(), uiLayoutPanelProp(), uilist_draw_item_default(), uiTemplateAnyID(), uiTemplateCacheFileProcedural(), uiTemplateEventFromKeymapItem(), uiTemplateImageInfo(), uiTemplateImageSettings(), uiTemplateInputStatus(), uiTemplateInputStatusAzone(), uiTemplateMovieclipInformation(), uiTemplateStatusBarModalItem(), uiTemplateStatusInfo(), uiTemplateTextureUser(), blender::ed::object::unassigned_assets_draw(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_posearmature_buts(), v3d_transform_butsR(), blender::vgroup_panel_draw(), wm_block_dialog_create(), wm_block_insert_unicode_create(), wm_block_splash_create(), and WM_window_modal_keymap_status_draw().
Definition at line 3274 of file interface_layout.cc.
References uiLayoutRoot::block, uiBut::drawflag, uiBlock::flag, uiBut::flag, 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_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 uiItemL(), uiItemL_ex(), uiItemL_respect_property_split(), and uiItemLDrag().
| uiBut * uiItemL_ex | ( | uiLayout * | layout, |
| const char * | name, | ||
| int | icon, | ||
| const bool | highlight, | ||
| const bool | redalert ) |
Definition at line 3322 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().
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 3361 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_ITEM_PROP_SEP, 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, | ||
| const char * | name, | ||
| int | icon ) |
Label icon for dragging.
Definition at line 3383 of file interface_layout.cc.
References PointerRNA::owner_id, ptr, RNA_struct_is_ID(), PointerRNA::type, UI_but_drag_set_id(), and uiItemL_().
Referenced by buttons_panel_context_draw().
Definition at line 3087 of file interface_layout.cc.
References RNA_warning, uiItemM_ptr(), and WM_menutype_find().
Referenced by blender::ed::space_node::add_root_catalogs_draw(), context_menu_invoke(), blender::ed::asset::draw_menu_for_catalog(), blender::ed::object::root_catalogs_draw(), template_operator_property_buts_draw_single(), blender::ed::geometry::ui_template_node_operator_asset_root_items(), and uiTemplateCollectionExporters().
Menu.
Definition at line 3061 of file interface_layout.cc.
References uiLayoutRoot::block, CTX_IFACE_, MenuType::description, uiBlock::evil_C, MenuType::label, uiLayout::root, TIP_, MenuType::translation_context, uiLayoutRoot::type, ui_item_menu(), ui_item_menutype_func(), UI_LAYOUT_MENU, and WM_menutype_poll().
Referenced by screen_user_menu_draw(), ui_popup_context_menu_for_button(), and uiItemM().
| void uiItemMContents | ( | uiLayout * | layout, |
| const char * | menuname ) |
Menu contents.
Definition at line 3097 of file interface_layout.cc.
References uiLayoutRoot::block, uiLayout::context, CTX_store_get(), CTX_store_set(), 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 char * | opname, | ||
| const char * | propname, | ||
| const char * | name, | ||
| int | icon, | ||
| PointerRNA * | r_opptr ) |
Definition at line 3651 of file interface_layout.cc.
References ot, RNA_warning, wmOperatorType::srna, ui_item_disabled(), UI_OPERATOR_ERROR_RET, uiItemMenuEnumFullO_ptr(), and WM_operatortype_find().
Referenced by uiItemMenuEnumO().
| void uiItemMenuEnumFullO_ptr | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| wmOperatorType * | ot, | ||
| const char * | propname, | ||
| const char * | name, | ||
| int | icon, | ||
| PointerRNA * | r_opptr ) |
Definition at line 3595 of file interface_layout.cc.
References BLI_assert, uiLayoutRoot::block, but_func_argN_copy(), but_func_argN_free(), PointerRNA::data, uiBlock::flag, wmOperatorType::idname, wmOperatorType::invoke, menu_item_enum_opname_menu(), MenuItemLevel::opcontext, uiLayoutRoot::opcontext, MenuItemLevel::opname, uiBut::opptr, ot, wmOperatorType::prop, MenuItemLevel::propname, uiLayout::root, wmOperatorType::srna, 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 char * | opname, | ||
| const char * | propname, | ||
| const char * | name, | ||
| int | icon ) |
Definition at line 3672 of file interface_layout.cc.
References uiItemMenuEnumFullO().
Referenced by file_panel_asset_catalog_buttons_draw(), graph_panel_modifiers(), and nla_panel_modifiers().
| void uiItemMenuEnumR | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| const char * | name, | ||
| int | icon ) |
Definition at line 3717 of file interface_layout.cc.
References ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), and uiItemMenuEnumR_prop().
| void uiItemMenuEnumR_prop | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const char * | name, | ||
| int | icon ) |
Definition at line 3690 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.
Referenced by uiItemMenuEnumR().
| void uiItemMenuF | ( | uiLayout * | layout, |
| const char * | name, | ||
| int | icon, | ||
| uiMenuCreateFunc | func, | ||
| void * | arg ) |
Level items.
Definition at line 3519 of file interface_layout.cc.
References ui_item_menu().
Referenced by draw_constraint_header(), modifier_panel_header(), move_to_collection_menu_create(), blender::ed::object::move_to_collection_menus_items(), shaderfx_panel_header(), ui_popup_context_menu_for_button(), and workspace_add_invoke().
| void uiItemMenuFN | ( | uiLayout * | layout, |
| const char * | name, | ||
| int | icon, | ||
| uiMenuCreateFunc | func, | ||
| void * | argN ) |
Version of uiItemMenuF that free's argN.
Definition at line 3528 of file interface_layout.cc.
References ui_item_menu().
Referenced by workspace_add_invoke().
Definition at line 1888 of file interface_layout.cc.
References uiLayoutRoot::opcontext, uiLayout::root, UI_ITEM_NONE, and uiItemFullO().
Referenced by blender::bake_panel_draw(), blender::ed::asset_browser::AssetCatalogTreeViewItem::build_context_menu(), buttons_panel_context_draw(), colorband_tools_fn(), constraint_ops_extra_draw(), blender::nodes::node_geo_bake_cc::draw_bake_items(), draw_constraint_header(), blender::nodes::node_geo_simulation_cc::draw_simulation_state(), ED_screens_header_tools_menu_create(), ED_screens_region_flip_menu_create(), file_panel_asset_catalog_buttons_draw(), file_panel_execution_cancel_button(), file_panel_execution_execute_button(), generate_panel_draw(), gpencil_shaderfx_ops_extra_draw(), graph_draw_driver_settings_panel(), graph_panel_cursor(), graph_panel_drivers_popover(), graph_panel_modifiers(), blender::ed::asset::shelf::library_selector_draw(), modifier_ops_extra_draw(), modifier_panel_header(), nla_panel_actclip(), nla_panel_modifiers(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy_ex(), blender::nodes::node_composite_file_output_cc::node_composit_buts_file_output_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_index_switch_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_shader_script_cc::node_shader_buts_script(), override_idtemplate_menu_draw(), blender::panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), blender::ed::object::parent_set_invoke_menu(), recent_files_menu_draw(), screen_area_menu_items(), shaderfx_panel_header(), shape_panel_draw(), blender::ed::spreadsheet::spreadsheet_row_filters_layout(), subdivisions_panel_draw(), ui_popup_context_menu_for_button(), uiTemplateAssetView(), uiTemplateCacheFile(), uiTemplateCacheFileLayers(), uiTemplateCollectionExporters(), uiTemplateImage(), uiTemplateMovieClip(), uiTemplateOperatorRedoProperties(), uiTemplateStatusInfo(), and workspace_add_invoke().
| void uiItemPointerR | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| PointerRNA * | searchptr, | ||
| const char * | searchpropname, | ||
| const char * | name, | ||
| int | icon ) |
Definition at line 2945 of file interface_layout.cc.
References ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, and uiItemPointerR_prop().
Referenced by blender::modifier::greasepencil::draw_layer_filter_settings(), blender::modifier::greasepencil::draw_material_filter_settings(), blender::draw_property_for_socket(), blender::ed::geometry::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_planetrackdeform_cc::node_composit_buts_planetrackdeform(), blender::nodes::node_composite_trackpos_cc::node_composit_buts_trackpos(), blender::nodes::node_shader_normal_map_cc::node_shader_buts_normal_map(), blender::nodes::node_shader_tangent_cc::node_shader_buts_tangent(), blender::nodes::node_shader_tex_pointdensity_cc::node_shader_buts_tex_pointdensity(), blender::nodes::node_shader_uvmap_cc::node_shader_buts_uvmap(), blender::nodes::node_shader_vertex_color_cc::node_shader_buts_vertex_color(), 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 char * | name, | ||
| int | icon, | ||
| bool | results_are_suggestions ) |
Definition at line 2886 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_PROP_SEP, ui_item_rna_size(), ui_item_with_label(), UI_MAX_NAME_STR, UI_UNIT_X, uiLayoutGetBlock(), and w().
Referenced by uiItemPointerR().
| void uiItemPopoverPanel | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| const char * | panel_type, | ||
| const char * | name, | ||
| int | icon ) |
Definition at line 3230 of file interface_layout.cc.
References RNA_warning, uiItemPopoverPanel_ptr(), and WM_paneltype_find().
Referenced by blender::ed::asset::shelf::asset_shelf_header_draw(), draw_export_controls(), and blender::ui::template_asset_shelf_popover().
| void uiItemPopoverPanel_ptr | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PanelType * | pt, | ||
| const char * | name, | ||
| int | icon ) |
Definition at line 3193 of file interface_layout.cc.
References uiLayout::context, CTX_IFACE_, CTX_store_get(), CTX_store_set(), PanelType::description, PanelType::draw_header, uiBut::flag, uiItem::flag, PanelType::label, PNL_POPOVER, PanelType::poll, uiLayout::root, TIP_, PanelType::translation_context, uiBut::type, uiLayoutRoot::type, UI_BTYPE_POPOVER, UI_BUT_DISABLED, ui_item_menu(), ui_item_paneltype_func(), UI_LAYOUT_MENU, and uiLayoutRow().
Referenced by uiItemPopoverPanel(), and uiItemPopoverPanelFromGroup().
| void uiItemPopoverPanelFromGroup | ( | uiLayout * | layout, |
| bContext * | C, | ||
| int | space_id, | ||
| int | region_id, | ||
| const char * | context, | ||
| const char * | category ) |
Definition at line 3241 of file interface_layout.cc.
References BKE_regiontype_from_id(), BKE_spacetype_from_id(), 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 3446 of file interface_layout.cc.
References uiLayoutRoot::block, uiBut::drawflag, progress_bar(), uiButProgress::progress_type, 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 uiItemFullR(), but there are other cases where the logic is needed. Ideally, uiItemFullR() could just call this, but it currently has too many special needs.
The returned #uiPropertySplitWrapper.decorator_column may be null when decorators are disabled (uiLayoutGetPropDecorate() returns false).
Definition at line 3344 of file interface_layout.cc.
References uiLayout::alignment, uiPropertySplitWrapper::decorate_column, uiPropertySplitWrapper::label_column, uiPropertySplitWrapper::property_row, UI_ITEM_PROP_SEP_DIVIDE, ui_item_prop_split_layout_hack(), UI_LAYOUT_ALIGN_RIGHT, uiLayoutColumn(), uiLayoutGetPropDecorate(), uiLayoutRow(), and uiLayoutSplit().
Referenced by blender::ed::space_node::ui_node_draw_input(), and uiItemL_respect_property_split().
| void uiItemR | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| const eUI_Item_Flag | flag, | ||
| const char * | name, | ||
| int | icon ) |
Definition at line 2536 of file interface_layout.cc.
References flag, ptr, RNA_NO_INDEX, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), and uiItemFullR().
Referenced by blender::add_attribute_search_button(), blender::add_attribute_search_or_value_buttons(), blender::ed::geometry::add_attribute_search_or_value_buttons(), advanced_panel_draw(), advanced_panel_draw(), advanced_panel_draw(), apply_armature_pose2bones_ui(), blender::ed::asset::shelf::asset_shelf_header_draw(), axis_mapping_panel_draw(), blender::bake_panel_draw(), block_create_autorun_warning(), blur_panel_draw(), blur_panel_draw(), blender::ui::bonecollections::BoneCollectionItem::build_row(), cache_file_layer_item(), caps_panel_draw(), blender::chaining_panel_draw(), clamp_panel_draw(), colorband_buttons_layout(), component_menu(), blender::composition_panel_draw(), constant_offset_draw(), constant_offset_header_draw(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), cycles_panel_draw(), data_panel_draw(), blender::nodes::draw_bake_data_block_list_item(), blender::nodes::node_geo_bake_cc::draw_bake_item(), blender::nodes::node_geo_bake_cc::draw_bake_items(), blender::draw_bake_panel(), blender::nodes::draw_common_bake_settings(), draw_constraint_header(), blender::modifier::greasepencil::draw_custom_curve_settings(), draw_exporter_item(), draw_fill_tile(), blender::ed::space_node::draw_gizmo_pin_icon(), blender::nodes::node_geo_attribute_capture_cc::draw_item(), blender::nodes::node_geo_foreach_geometry_element_cc::draw_item(), blender::modifier::greasepencil::draw_layer_filter_settings(), blender::modifier::greasepencil::draw_material_filter_settings(), blender::nodes::node_geo_menu_switch_cc::draw_menu_switch_item(), blender::ed::space_node::draw_node_socket_name_editable(), blender::draw_property_for_socket(), blender::ed::geometry::draw_property_for_socket(), blender::nodes::node_geo_repeat_cc::draw_repeat_state_item(), blender::nodes::node_geo_simulation_cc::draw_simulation_state(), blender::nodes::node_geo_simulation_cc::draw_simulation_state_item(), blender::modifier::greasepencil::draw_vertex_group_settings(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), ed_screens_statusbar_menu_create(), ED_time_scrub_channel_search_draw(), edbm_bevel_ui(), edbm_blend_from_shape_ui(), edbm_decimate_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), edge_data_panel_draw(), edge_panel_draw(), edge_panel_draw_header(), blender::edge_types_panel_draw(), envelope_panel_draw(), face_corner_panel_draw(), face_corner_panel_draw_header(), face_corner_uv_panel_draw(), face_corner_vcol_panel_draw(), blender::face_mark_panel_draw(), blender::face_mark_panel_draw_header(), face_panel_draw(), face_panel_draw_header(), falloff_panel_draw(), falloff_panel_draw(), falloff_panel_draw(), falloff_panel_draw(), file_panel_asset_catalog_buttons_draw(), fmodifier_frame_range_draw(), fmodifier_frame_range_header_draw(), fmodifier_influence_draw(), fmodifier_panel_header(), fn_generator_panel_draw(), 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_draw_driver_settings_panel(), graph_panel_cursor(), graph_panel_cursor_header(), graph_panel_driverVar__contextProp(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__transChan(), graph_panel_driverVar_fallback(), graph_panel_key_properties(), graph_panel_properties(), blender::ed::sculpt_paint::greasepencil::grease_pencil_interpolate_sequence_ui(), blender::ed::greasepencil::grease_pencil_reproject_ui(), image_new_draw(), image_save_as_draw(), blender::intersection_panel_draw(), blender::ed::asset::shelf::library_selector_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(), blender::material_mask_panel_draw_header(), materials_panel_draw(), menu_add_shortcut(), menu_change_shortcut(), blender::ed::mesh::set_attribute::mesh_set_attribute_ui(), mix_mode_panel_draw(), modifier_grease_pencil_curve_header_draw(), modifier_ops_extra_draw(), modifier_panel_header(), modifier_vgroup_ui(), nla_panel_actclip(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time(), nla_panel_animated_strip_time_header(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_properties(), nla_panel_stripname(), blender::ed::space_node::node_buts_combsep_color(), blender::ed::space_node::node_buts_frame_ex(), blender::ed::space_node::node_buts_image_user(), blender::ed::space_node::node_buts_image_views(), blender::ed::space_node::node_buts_math(), blender::ed::space_node::node_buts_mix_rgb(), blender::ed::space_node::node_buts_normal(), blender::nodes::node_shader_output_linestyle_cc::node_buts_output_linestyle(), blender::ed::space_node::node_buts_output_shader(), blender::ed::space_node::node_buts_rgb(), blender::ed::space_node::node_buts_texture(), blender::ed::space_node::node_buts_time(), blender::ed::space_node::node_buts_value(), blender::nodes::node_composite_alpha_over_cc::node_composit_buts_alphaover(), blender::nodes::node_composite_antialiasing_cc::node_composit_buts_antialiasing(), blender::nodes::node_composite_bilateralblur_cc::node_composit_buts_bilateralblur(), blender::nodes::node_composite_blur_cc::node_composit_buts_blur(), blender::nodes::node_composite_bokehblur_cc::node_composit_buts_bokehblur(), blender::nodes::node_composite_bokehimage_cc::node_composit_buts_bokehimage(), blender::nodes::node_composite_boxmask_cc::node_composit_buts_boxmask(), blender::nodes::node_composite_brightness_cc::node_composit_buts_brightcontrast(), blender::nodes::node_composite_channel_matte_cc::node_composit_buts_channel_matte(), blender::nodes::node_composite_chroma_matte_cc::node_composit_buts_chroma_matte(), blender::nodes::node_composite_color_matte_cc::node_composit_buts_color_matte(), blender::nodes::node_composite_color_spill_cc::node_composit_buts_color_spill(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance_ex(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection_ex(), blender::ed::space_node::node_composit_buts_combsep_color(), blender::nodes::node_composite_composite_cc::node_composit_buts_composite(), blender::nodes::node_composite_convert_color_space_cc::node_composit_buts_convert_colorspace(), blender::nodes::node_composite_crop_cc::node_composit_buts_crop(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy(), blender::nodes::node_composite_directionalblur_cc::node_composit_buts_dblur(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::nodes::node_composite_denoise_cc::node_composit_buts_denoise(), blender::nodes::node_composite_despeckle_cc::node_composit_buts_despeckle(), blender::nodes::node_composite_diff_matte_cc::node_composit_buts_diff_matte(), blender::nodes::node_composite_dilate_cc::node_composit_buts_dilateerode(), blender::nodes::node_composite_distance_matte_cc::node_composit_buts_distance_matte(), blender::nodes::node_composite_double_edge_mask_cc::node_composit_buts_double_edge_mask(), blender::nodes::node_composite_ellipsemask_cc::node_composit_buts_ellipsemask(), blender::nodes::node_composite_file_output_cc::node_composit_buts_file_output(), blender::nodes::node_composite_file_output_cc::node_composit_buts_file_output_ex(), blender::nodes::node_composite_filter_cc::node_composit_buts_filter(), blender::nodes::node_composite_flip_cc::node_composit_buts_flip(), blender::nodes::node_composite_glare_cc::node_composit_buts_glare(), blender::nodes::node_composite_id_mask_cc::node_composit_buts_id_mask(), blender::nodes::node_composite_inpaint_cc::node_composit_buts_inpaint(), blender::nodes::node_composite_invert_cc::node_composit_buts_invert(), blender::nodes::node_composite_keying_cc::node_composit_buts_keying(), blender::nodes::node_composite_keyingscreen_cc::node_composit_buts_keyingscreen(), blender::nodes::node_composite_kuwahara_cc::node_composit_buts_kuwahara(), blender::nodes::node_composite_lensdist_cc::node_composit_buts_lensdist(), blender::nodes::node_composite_luma_matte_cc::node_composit_buts_luma_matte(), blender::nodes::node_composite_map_range_cc::node_composit_buts_map_range(), blender::nodes::node_composite_map_uv_cc::node_composit_buts_map_uv(), blender::nodes::node_composite_map_value_cc::node_composit_buts_map_value(), blender::nodes::node_composite_mask_cc::node_composit_buts_mask(), blender::nodes::node_composite_moviedistortion_cc::node_composit_buts_moviedistortion(), blender::nodes::node_composite_pixelate_cc::node_composit_buts_pixelate(), blender::nodes::node_composite_planetrackdeform_cc::node_composit_buts_planetrackdeform(), blender::nodes::node_composite_premulkey_cc::node_composit_buts_premulkey(), blender::nodes::node_composite_rotate_cc::node_composit_buts_rotate(), blender::nodes::node_composite_scale_cc::node_composit_buts_scale(), blender::nodes::node_composite_setalpha_cc::node_composit_buts_set_alpha(), blender::nodes::node_composite_split_cc::node_composit_buts_split(), blender::nodes::node_composite_stabilize2d_cc::node_composit_buts_stabilize2d(), blender::nodes::node_composite_sunbeams_cc::node_composit_buts_sunbeams(), blender::nodes::node_composite_switch_cc::node_composit_buts_switch(), blender::nodes::node_composite_tonemap_cc::node_composit_buts_tonemap(), blender::nodes::node_composite_trackpos_cc::node_composit_buts_trackpos(), blender::nodes::node_composite_transform_cc::node_composit_buts_transform(), blender::nodes::node_composite_translate_cc::node_composit_buts_translate(), blender::nodes::node_composite_vec_blur_cc::node_composit_buts_vecblur(), blender::nodes::node_composite_levels_cc::node_composit_buts_view_levels(), blender::nodes::node_composite_viewer_cc::node_composit_buts_viewer(), blender::nodes::node_composite_render_layer_cc::node_composit_buts_viewlayers(), blender::ed::space_node::node_composit_buts_ycc(), blender::nodes::node_composite_zcombine_cc::node_composit_buts_zcombine(), blender::nodes::node_shader_bsdf_principled_cc::node_declare(), 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_fn_axes_to_rotation_cc::node_layout(), blender::nodes::node_fn_boolean_math_cc::node_layout(), blender::nodes::node_fn_combine_color_cc::node_layout(), blender::nodes::node_fn_compare_cc::node_layout(), blender::nodes::node_fn_float_to_int_cc::node_layout(), blender::nodes::node_fn_hash_value_cc::node_layout(), blender::nodes::node_fn_input_bool_cc::node_layout(), blender::nodes::node_fn_input_color_cc::node_layout(), blender::nodes::node_fn_input_int_cc::node_layout(), blender::nodes::node_fn_input_rotation_cc::node_layout(), blender::nodes::node_fn_input_string_cc::node_layout(), blender::nodes::node_fn_input_vector_cc::node_layout(), blender::nodes::node_fn_integer_math_cc::node_layout(), blender::nodes::node_fn_random_value_cc::node_layout(), blender::nodes::node_fn_rotate_euler_cc::node_layout(), blender::nodes::node_fn_rotate_rotation_cc::node_layout(), blender::nodes::node_fn_separate_color_cc::node_layout(), blender::nodes::node_fn_value_to_string_cc::node_layout(), blender::nodes::node_geo_accumulate_field_cc::node_layout(), blender::nodes::node_geo_attribute_capture_cc::node_layout(), blender::nodes::node_geo_attribute_domain_size_cc::node_layout(), blender::nodes::node_geo_attribute_statistic_cc::node_layout(), blender::nodes::node_geo_bake_cc::node_layout(), blender::nodes::node_geo_blur_attribute_cc::node_layout(), blender::nodes::node_geo_boolean_cc::node_layout(), blender::nodes::node_geo_collection_info_cc::node_layout(), blender::nodes::node_geo_curve_fill_cc::node_layout(), blender::nodes::node_geo_curve_fillet_cc::node_layout(), blender::nodes::node_geo_curve_handle_type_selection_cc::node_layout(), blender::nodes::node_geo_curve_primitive_arc_cc::node_layout(), blender::nodes::node_geo_curve_primitive_bezier_segment_cc::node_layout(), blender::nodes::node_geo_curve_primitive_circle_cc::node_layout(), blender::nodes::node_geo_curve_primitive_line_cc::node_layout(), blender::nodes::node_geo_curve_primitive_quadrilateral_cc::node_layout(), blender::nodes::node_geo_curve_resample_cc::node_layout(), blender::nodes::node_geo_curve_sample_cc::node_layout(), blender::nodes::node_geo_curve_set_handle_type_cc::node_layout(), blender::nodes::node_geo_curve_spline_type_cc::node_layout(), blender::nodes::node_geo_curve_to_points_cc::node_layout(), blender::nodes::node_geo_curve_trim_cc::node_layout(), blender::nodes::node_geo_delete_geometry_cc::node_layout(), blender::nodes::node_geo_distribute_points_in_grid_cc::node_layout(), blender::nodes::node_geo_distribute_points_in_volume_cc::node_layout(), blender::nodes::node_geo_distribute_points_on_faces_cc::node_layout(), blender::nodes::node_geo_duplicate_elements_cc::node_layout(), blender::nodes::node_geo_evaluate_at_index_cc::node_layout(), blender::nodes::node_geo_evaluate_on_domain_cc::node_layout(), blender::nodes::node_geo_extrude_mesh_cc::node_layout(), blender::nodes::node_geo_foreach_geometry_element_cc::input_node::node_layout(), blender::nodes::node_geo_get_named_grid_cc::node_layout(), blender::nodes::node_geo_gizmo_dial_cc::node_layout(), blender::nodes::node_geo_gizmo_linear_cc::node_layout(), blender::nodes::node_geo_image_texture_cc::node_layout(), blender::nodes::node_geo_index_switch_cc::node_layout(), blender::nodes::node_geo_input_material_cc::node_layout(), blender::nodes::node_geo_input_named_attribute_cc::node_layout(), blender::nodes::node_geo_menu_switch_cc::node_layout(), blender::nodes::node_geo_merge_by_distance_cc::node_layout(), blender::nodes::node_geo_merge_layers_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_circle_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cone_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_cylinder_cc::node_layout(), blender::nodes::node_geo_mesh_primitive_line_cc::node_layout(), blender::nodes::node_geo_mesh_to_points_cc::node_layout(), blender::nodes::node_geo_mesh_to_volume_cc::node_layout(), blender::nodes::node_geo_object_info_cc::node_layout(), blender::nodes::node_geo_points_to_volume_cc::node_layout(), blender::nodes::node_geo_proximity_cc::node_layout(), blender::nodes::node_geo_raycast_cc::node_layout(), blender::nodes::node_geo_remove_attribute_cc::node_layout(), blender::nodes::node_geo_sample_grid_cc::node_layout(), blender::nodes::node_geo_sample_grid_index_cc::node_layout(), blender::nodes::node_geo_sample_index_cc::node_layout(), blender::nodes::node_geo_sample_nearest_cc::node_layout(), blender::nodes::node_geo_sample_nearest_surface_cc::node_layout(), blender::nodes::node_geo_sample_uv_surface_cc::node_layout(), blender::nodes::node_geo_scale_elements_cc::node_layout(), blender::nodes::node_geo_sdf_grid_boolean_cc::node_layout(), blender::nodes::node_geo_separate_geometry_cc::node_layout(), blender::nodes::node_geo_set_curve_handles_cc::node_layout(), blender::nodes::node_geo_set_curve_normal_cc::node_layout(), blender::nodes::node_geo_set_shade_smooth_cc::node_layout(), blender::nodes::node_geo_sort_elements_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_subdivision_surface_cc::node_layout(), blender::nodes::node_geo_switch_cc::node_layout(), blender::nodes::node_geo_tool_active_element_cc::node_layout(), blender::nodes::node_geo_tool_set_selection_cc::node_layout(), blender::nodes::node_geo_transform_geometry_cc::node_layout(), blender::nodes::node_geo_triangulate_cc::node_layout(), blender::nodes::node_geo_uv_unwrap_cc::node_layout(), blender::nodes::node_geo_viewer_cc::node_layout(), blender::nodes::node_geo_volume_to_mesh_cc::node_layout(), blender::nodes::node_geo_warning_cc::node_layout(), blender::nodes::node_geo_attribute_capture_cc::node_layout_ex(), blender::nodes::node_geo_bake_cc::node_layout_ex(), blender::nodes::node_geo_distribute_points_on_faces_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_viewer_cc::node_layout_ex(), blender::nodes::node_shader_ambient_occlusion_cc::node_shader_buts_ambient_occlusion(), blender::nodes::node_shader_attribute_cc::node_shader_buts_attribute(), blender::nodes::node_shader_bevel_cc::node_shader_buts_bevel(), blender::nodes::node_shader_bump_cc::node_shader_buts_bump(), blender::nodes::node_shader_clamp_cc::node_shader_buts_clamp(), blender::ed::space_node::node_shader_buts_displacement(), blender::ed::space_node::node_shader_buts_glossy(), blender::nodes::node_shader_bsdf_glossy_cc::node_shader_buts_glossy(), blender::nodes::node_shader_bsdf_hair_cc::node_shader_buts_hair(), blender::nodes::node_shader_ies_light_cc::node_shader_buts_ies(), blender::nodes::node_shader_map_range_cc::node_shader_buts_map_range(), blender::nodes::node_shader_mapping_cc::node_shader_buts_mapping(), blender::nodes::node_shader_bsdf_metallic_cc::node_shader_buts_metallic(), blender::nodes::node_shader_normal_map_cc::node_shader_buts_normal_map(), blender::nodes::node_shader_output_aov_cc::node_shader_buts_output_aov(), blender::nodes::node_shader_bsdf_hair_principled_cc::node_shader_buts_principled_hair(), blender::ed::space_node::node_shader_buts_scatter(), blender::nodes::node_shader_volume_scatter_cc::node_shader_buts_scatter(), blender::nodes::node_shader_script_cc::node_shader_buts_script(), blender::nodes::node_shader_script_cc::node_shader_buts_script_ex(), blender::nodes::node_shader_bsdf_sheen_cc::node_shader_buts_sheen(), blender::nodes::node_shader_subsurface_scattering_cc::node_shader_buts_subsurface(), blender::nodes::node_shader_tangent_cc::node_shader_buts_tangent(), blender::nodes::node_shader_tex_brick_cc::node_shader_buts_tex_brick(), blender::nodes::node_shader_tex_coord_cc::node_shader_buts_tex_coord(), blender::ed::space_node::node_shader_buts_tex_environment(), blender::ed::space_node::node_shader_buts_tex_environment_ex(), blender::nodes::node_shader_tex_gabor_cc::node_shader_buts_tex_gabor(), blender::nodes::node_shader_tex_gradient_cc::node_shader_buts_tex_gradient(), blender::ed::space_node::node_shader_buts_tex_image(), blender::nodes::node_shader_tex_magic_cc::node_shader_buts_tex_magic(), blender::nodes::node_shader_tex_noise_cc::node_shader_buts_tex_noise(), blender::nodes::node_shader_tex_pointdensity_cc::node_shader_buts_tex_pointdensity(), blender::nodes::node_shader_tex_sky_cc::node_shader_buts_tex_sky(), blender::nodes::node_shader_tex_voronoi_cc::node_shader_buts_tex_voronoi(), blender::nodes::node_shader_tex_wave_cc::node_shader_buts_tex_wave(), blender::nodes::node_shader_bsdf_toon_cc::node_shader_buts_toon(), blender::nodes::node_shader_uv_along_stroke_cc::node_shader_buts_uvalongstroke(), blender::nodes::node_shader_uvmap_cc::node_shader_buts_uvmap(), blender::nodes::node_shader_vector_math_cc::node_shader_buts_vect_math(), blender::nodes::node_shader_vector_transform_cc::node_shader_buts_vect_transform(), blender::nodes::node_shader_vector_rotate_cc::node_shader_buts_vector_rotate(), blender::nodes::node_shader_vertex_color_cc::node_shader_buts_vertex_color(), blender::nodes::node_shader_tex_white_noise_cc::node_shader_buts_white_noise(), blender::nodes::node_shader_wireframe_cc::node_shader_buts_wireframe(), blender::ed::space_node::node_texture_buts_bricks(), blender::ed::space_node::node_texture_buts_combsep_color(), blender::ed::space_node::node_texture_buts_output(), blender::ed::space_node::node_texture_buts_proc(), noise_panel_draw(), normals_panel_draw(), normals_panel_draw(), blender::ed::object::object_convert_ui(), object_offset_draw(), object_offset_header_draw(), blender::occlusion_panel_draw(), offset_panel_draw(), blender::options_light_reference_draw(), blender::options_panel_draw(), blender::ed::outliner::outliner_orphans_purge_ui(), 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(), path_panel_draw_header(), blender::ed::asset::shelf::popover_panel_draw(), position_panel_draw(), preferences_extension_repo_add_ui(), profile_panel_draw(), random_panel_draw(), random_panel_header_draw(), relative_offset_draw(), relative_offset_header_draw(), restrictions_panel_draw(), blender::ed::sculpt_paint::color::sculpt_color_filter_ui(), blender::ed::sculpt_paint::filter::sculpt_mesh_ui_exec(), blender::segment_list_item_draw(), blender::ed::curves::select_ends_ui(), blender::ed::curves::select_random_ui(), blender::ed::sculpt_paint::select_random::select_random_ui(), sequencer_split_ui(), blender::ed::curves::set_attribute_ui(), blender::nodes::node_sh_mix_cc::sh_node_mix_layout(), blender::ed::object::shade_auto_smooth_ui(), shaderfx_panel_header(), shading_panel_draw(), solver_options_panel_draw(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw_header(), blender::ed::space_node::std_node_socket_draw(), blender::ed::space_node::std_node_socket_interface_draw(), stepped_panel_draw(), symmetry_panel_draw(), symmetry_panel_header_draw(), texture_paint_add_texture_paint_slot_ui(), texture_panel_draw(), texture_panel_draw(), tile_add_draw(), time_panel_draw(), time_remapping_panel_draw(), transform_panel_draw(), blender::ed::space_node::ui_node_draw_input(), ui_popup_context_menu_for_panel(), uilist_draw_filter_default(), uiTemplateCacheFile(), uiTemplateCacheFileProcedural(), uiTemplateCacheFileTimeSettings(), uiTemplateCacheFileVelocity(), uiTemplateColormanagedViewSettings(), uiTemplateColorspaceSettings(), uiTemplateImage(), uiTemplateImageFormatViews(), uiTemplateImageSettings(), uiTemplateImageStereo3d(), uiTemplateMovieClip(), uiTemplatePaintModeSelection(), uiTemplatePathBuilder(), uiTemplatePreview(), uiTemplateViewsFormat(), unwrap_draw(), uv_pack_islands_ui(), uv_panel_draw(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_transform_butsR(), velocity_panel_draw(), vert_vcol_panel_draw(), vertex_group_panel_draw(), vertex_panel_draw(), vertex_panel_draw_header(), vertex_vgroup_panel_draw(), blender::vgroup_panel_draw(), view3d_panel_vgroup(), wave_header_draw(), wave_panel_draw(), weightvg_ui_common(), wm_clear_recent_files_ui(), wm_open_mainfile_ui(), and wm_stereo3d_set_draw().
| void uiItemS | ( | uiLayout * | layout | ) |
Separator item
Definition at line 3441 of file interface_layout.cc.
References uiItemS_ex().
Referenced by blender::ed::asset::shelf::add_catalog_tabs(), blender::ed::space_node::add_root_catalogs_draw(), blender::ed::asset::shelf::asset_shelf_header_draw(), block_create__close_file_dialog(), block_create_autorun_warning(), block_create_gpu_backend_fallback(), block_create_opengl_usage_warning(), blender::ed::geometry::catalog_assets_draw(), blender::ed::object::catalog_assets_draw(), blender::ed::geometry::catalog_assets_draw_unassigned(), colorband_tools_fn(), constraint_ops_extra_draw(), create_title_button(), draw_constraint_header(), blender::ed::sculpt_paint::dyntopo::dyntopo_warning_popup(), ED_region_header_layout(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), edbm_bevel_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), file_panel_asset_catalog_buttons_draw(), fmodifier_influence_draw(), fmodifier_panel_header(), geometry_panel_draw(), gpencil_shaderfx_ops_extra_draw(), graph_draw_driver_settings_panel(), graph_panel_drivers_popover(), image_save_as_draw(), insert_key_menu_invoke(), modifier_ops_extra_draw(), modifier_panel_header(), blender::ed::object::move_to_collection_menu_create(), move_to_collection_menu_create(), nla_panel_animdata(), nla_panel_properties(), blender::ed::space_node::node_add_catalog_assets_draw(), blender::nodes::node_composite_directionalblur_cc::node_composit_buts_dblur(), blender::nodes::node_composite_file_output_cc::node_composit_buts_file_output_ex(), blender::nodes::node_shader_script_cc::node_shader_buts_script_ex(), blender::ed::outliner::outliner_operator_menu(), 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(), recent_files_menu_draw(), blender::ed::object::root_catalogs_draw(), screen_area_menu_items(), screen_area_options_invoke(), screen_user_menu_draw(), sequencer_split_ui(), shaderfx_panel_header(), subdivisions_panel_draw(), template_keymap_item_properties(), ui_def_but_rna__menu(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_slot_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_enum_expand_exec(), blender::ed::space_node::ui_node_draw_input(), ui_paneltype_draw_impl(), ui_popup_context_menu_for_button(), UI_popup_menu_reports(), blender::ed::object::ui_template_modifier_asset_menu_items(), uiItemsEnumR(), uiItemsFullEnumO_items(), uiTemplateColorPicker(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplatePreview(), blender::ed::object::unassigned_assets_draw(), unwrap_draw(), uv_pack_islands_ui(), wm_block_insert_unicode_create(), wm_block_splash_create(), wm_clear_recent_files_ui(), workspace_add_invoke(), and workspace_add_menu().
| void uiItemS_ex | ( | uiLayout * | layout, |
| float | factor, | ||
| LayoutSeparatorType | type = LayoutSeparatorType::Auto ) |
Separator item
Definition at line 3394 of file interface_layout.cc.
References Auto, uiLayoutRoot::block, int, uiButSeparatorLine::is_vertical, Line, uiLayout::root, UI_block_can_add_separator(), ui_block_is_menu(), ui_block_is_pie_menu(), UI_block_layout_set_current(), UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), and uiLayout::w.
Referenced by blender::ed::space_node::add_panel_items_recursive(), block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_overwrite_dialog(), file_overwrite_detailed_info_show(), blender::ed::outliner::outliner_orphans_purge_ui(), preferences_extension_repo_add_ui(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw_header(), uiItemS(), uiTemplateCacheFileLayers(), uiTemplateEventFromKeymapItem(), uiTemplateInputStatus(), uiTemplateInputStatusAzone(), uiTemplateStatusBarModalItem(), uiTemplateStatusInfo(), wm_block_about_create(), wm_block_create_redo(), wm_block_dialog_create(), and wm_block_splash_create().
| uiLayout * uiItemsAlertBox | ( | uiBlock * | block, |
| const int | size, | ||
| const eAlertIcon | icon ) |
Definition at line 6489 of file interface_layout.cc.
References uiFontStyle::points, 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 6457 of file interface_layout.cc.
References uiStyle::columnspace, float, UI_block_layout(), UI_LAYOUT_ALIGN_LEFT, UI_LAYOUT_PANEL, UI_LAYOUT_VERTICAL, UI_SCALE_FAC, uiDefButAlert(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetAlignment(), and uiLayoutSplit().
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 char * | opname, | ||
| const char * | propname ) |
Definition at line 1692 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(), select_orientation_invoke(), toggle_cyclic_invoke(), UI_pie_menu_invoke_from_operator_enum(), and unpack_all_invoke().
| void uiItemsEnumR | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname ) |
Definition at line 2711 of file interface_layout.cc.
References uiLayoutRoot::block, uiBlock::buttons, uiBut::drawflag, uiBlock::evil_C, free(), ListBase::last, MEM_freeN(), PROP_ENUM, ptr, RNA_property_enum_items_gettexted(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::root, PointerRNA::type, UI_BUT_TEXT_LEFT, ui_but_tip_from_enum_item(), ui_item_disabled(), uiItemEnumR_prop(), uiItemL(), uiItemS(), uiLayoutColumn(), and uiLayoutSplit().
Referenced by menu_item_enum_rna_menu().
| void uiItemsFullEnumO | ( | uiLayout * | layout, |
| const char * | opname, | ||
| const char * | propname, | ||
| IDProperty * | properties, | ||
| wmOperatorCallContext | context, | ||
| eUI_Item_Flag | flag, | ||
| const int | active = -1 ) |
Create a list of enum items.
| active | an optional item to highlight. |
Definition at line 1621 of file interface_layout.cc.
References BLI_assert, uiLayoutRoot::block, 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, wmOperatorType::srna, PointerRNA::type, ui_item_disabled(), ui_layout_is_radial(), uiItemsFullEnumO_items(), WM_operator_properties_create_ptr(), WM_operator_properties_sanitize(), and WM_operatortype_find().
Referenced by menu_item_enum_opname_menu(), uiItemsEnumO(), unpack_item_invoke(), 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 1471 of file interface_layout.cc.
References uiLayout::align, uiLayoutRoot::block, uiBlock::buttons, PointerRNA::data, flag, uiBut::flag, EnumPropertyItem::icon, EnumPropertyItem::identifier, IDP_CopyProperty(), IDP_FreeProperty(), ListBase::last, EnumPropertyItem::name, ot, PIE_MAX_ITEMS, PROP_ENUM, ptr, RNA_property_enum_set(), RNA_property_identifier(), RNA_property_type(), RNA_struct_identifier(), RNA_warning, uiLayout::root, PointerRNA::type, 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(), uiItemFullO_ptr(), uiItemL(), uiItemS(), uiLayoutColumn(), uiLayoutGetLocalDir(), uiLayoutRadial(), uiLayoutSplit(), EnumPropertyItem::value, and WM_operator_properties_create_ptr().
Referenced by ui_pie_menu_level_invoke(), and uiItemsFullEnumO().
| void uiItemSpacer | ( | uiLayout * | layout | ) |
Flexible spacing.
Definition at line 3489 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 uiItemStringO | ( | uiLayout * | layout, |
| const char * | name, | ||
| int | icon, | ||
| const char * | opname, | ||
| const char * | propname, | ||
| const char * | value ) |
Definition at line 1863 of file interface_layout.cc.
References PointerRNA::data, uiLayoutRoot::opcontext, ot, ptr, RNA_string_set(), uiLayout::root, UI_ITEM_NONE, UI_OPERATOR_ERROR_RET, uiItemFullO_ptr(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by blender::ed::object::collection_exporter_menu_draw(), insert_key_menu_invoke(), menu_add_item_for_move_assign_unassign(), modifier_panel_header(), and blender::ed::object::select_grouped_collection().
| void uiItemTabsEnumR_prop | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| PointerRNA * | ptr_highlight, | ||
| PropertyRNA * | prop_highlight, | ||
| bool | icon_only ) |
Definition at line 3730 of file interface_layout.cc.
References uiLayoutRoot::block, ptr, uiLayout::root, UI_block_layout_set_current(), ui_item_enum_expand_tabs(), and UI_UNIT_Y.
Definition at line 5219 of file interface_layout.cc.
References uiLayoutRoot::block, ITEM_LAYOUT_ABSOLUTE, uiLayout::root, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by ui_item_array(), uiLayoutAbsoluteBlock(), uiTemplateReportsBanner(), and uiTemplateStatusInfo().
Definition at line 5231 of file interface_layout.cc.
References uiLayoutAbsolute(), and uiLayoutGetBlock().
Referenced by image_panel_uv(), uiTemplateColorRamp(), uiTemplateHeader(), uiTemplateIcon(), uiTemplateIconView(), uiTemplateMarker(), v3d_editvertex_buts(), v3d_object_dimension_buts(), and view3d_panel_vgroup().
Definition at line 5178 of file interface_layout.cc.
References UI_BTYPE_ROUNDBOX, and ui_layout_box().
Referenced by blender::ui::TreeViewLayoutBuilder::build_from_tree(), graph_draw_driver_settings_panel(), and template_keymap_item_properties().
Definition at line 5081 of file interface_layout.cc.
References uiLayoutRoot::block, uiStyle::buttonspacey, ITEM_LAYOUT_COLUMN, uiLayout::root, uiLayout::space, uiLayoutRoot::style, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by advanced_panel_draw(), advanced_panel_draw(), axis_mapping_panel_draw(), blender::bake_panel_draw(), 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(), blur_panel_draw(), blur_panel_draw(), blender::ui::TreeViewLayoutBuilder::build_from_tree(), blender::ui::GridViewLayoutBuilder::build_from_view(), blender::ui::TreeViewLayoutBuilder::build_row(), caps_panel_draw(), clamp_panel_draw(), component_menu(), blender::composition_panel_draw(), constant_offset_draw(), constraint_ops_extra_draw(), curvemap_buttons_layout(), cycles_panel_draw(), data_panel_draw(), blender::nodes::draw_bake_button_row(), blender::nodes::node_geo_bake_cc::draw_bake_items(), blender::draw_bake_panel(), blender::nodes::draw_common_bake_settings(), draw_export_properties(), draw_fill_tile(), blender::modifier::greasepencil::draw_layer_filter_settings(), blender::modifier::greasepencil::draw_material_filter_settings(), blender::ed::asset::draw_menu_for_catalog(), blender::nodes::node_geo_simulation_cc::draw_simulation_state(), blender::modifier::greasepencil::draw_vertex_group_settings(), ED_screens_header_tools_menu_create(), edbm_bevel_ui(), edbm_decimate_ui(), edge_data_panel_draw(), blender::edge_types_panel_draw(), envelope_panel_draw(), file_overwrite_detailed_info_show(), file_panel_asset_catalog_buttons_draw(), fmodifier_frame_range_draw(), fn_generator_panel_draw(), generate_panel_draw(), generator_panel_draw(), gpencil_shaderfx_ops_extra_draw(), graph_draw_driver_settings_panel(), graph_panel_cursor(), graph_panel_cursor_header(), graph_panel_driverVar__contextProp(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__singleProp(), graph_panel_driverVar__transChan(), graph_panel_key_properties(), graph_panel_properties(), blender::ed::sculpt_paint::greasepencil::grease_pencil_interpolate_sequence_ui(), hud_panel_operator_redo_draw(), image_new_draw(), image_save_as_draw(), blender::intersection_panel_draw(), layers_panel_draw(), limits_panel_draw(), blender::material_mask_panel_draw(), materials_panel_draw(), blender::ed::mesh::set_attribute::mesh_set_attribute_ui(), nla_panel_actclip(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time_header(), nla_panel_properties(), blender::ed::space_node::node_buts_image_user(), blender::ed::space_node::node_buts_image_views(), blender::ed::space_node::node_buts_mix_rgb(), blender::nodes::node_shader_output_linestyle_cc::node_buts_output_linestyle(), blender::ed::space_node::node_buts_rgb(), blender::ed::space_node::node_buts_time(), blender::nodes::node_composite_alpha_over_cc::node_composit_buts_alphaover(), blender::nodes::node_composite_antialiasing_cc::node_composit_buts_antialiasing(), blender::nodes::node_composite_bilateralblur_cc::node_composit_buts_bilateralblur(), blender::nodes::node_composite_blur_cc::node_composit_buts_blur(), blender::nodes::node_composite_channel_matte_cc::node_composit_buts_channel_matte(), blender::nodes::node_composite_chroma_matte_cc::node_composit_buts_chroma_matte(), blender::nodes::node_composite_color_matte_cc::node_composit_buts_color_matte(), blender::nodes::node_composite_color_spill_cc::node_composit_buts_color_spill(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), blender::nodes::node_composite_crop_cc::node_composit_buts_crop(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy(), blender::nodes::node_composite_directionalblur_cc::node_composit_buts_dblur(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::nodes::node_composite_despeckle_cc::node_composit_buts_despeckle(), blender::nodes::node_composite_diff_matte_cc::node_composit_buts_diff_matte(), blender::nodes::node_composite_distance_matte_cc::node_composit_buts_distance_matte(), blender::nodes::node_composite_double_edge_mask_cc::node_composit_buts_double_edge_mask(), blender::nodes::node_composite_file_output_cc::node_composit_buts_file_output_ex(), blender::nodes::node_composite_invert_cc::node_composit_buts_invert(), blender::nodes::node_composite_keyingscreen_cc::node_composit_buts_keyingscreen(), blender::nodes::node_composite_kuwahara_cc::node_composit_buts_kuwahara(), blender::nodes::node_composite_lensdist_cc::node_composit_buts_lensdist(), blender::nodes::node_composite_luma_matte_cc::node_composit_buts_luma_matte(), blender::nodes::node_composite_map_range_cc::node_composit_buts_map_range(), blender::nodes::node_composite_map_value_cc::node_composit_buts_map_value(), blender::nodes::node_composite_planetrackdeform_cc::node_composit_buts_planetrackdeform(), blender::nodes::node_composite_split_cc::node_composit_buts_split(), blender::nodes::node_composite_tonemap_cc::node_composit_buts_tonemap(), blender::nodes::node_composite_trackpos_cc::node_composit_buts_trackpos(), blender::nodes::node_composite_vec_blur_cc::node_composit_buts_vecblur(), blender::nodes::node_composite_render_layer_cc::node_composit_buts_viewlayers(), blender::nodes::node_composite_zcombine_cc::node_composit_buts_zcombine(), blender::nodes::node_fn_input_bool_cc::node_layout(), blender::nodes::node_fn_input_int_cc::node_layout(), blender::nodes::node_fn_input_rotation_cc::node_layout(), blender::nodes::node_fn_input_vector_cc::node_layout(), blender::nodes::node_geo_bake_cc::node_layout(), blender::nodes::node_geo_attribute_capture_cc::node_layout_ex(), blender::nodes::node_geo_bake_cc::node_layout_ex(), blender::nodes::node_geo_foreach_geometry_element_cc::node_layout_ex(), blender::nodes::node_geo_index_switch_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(), blender::nodes::node_shader_tex_brick_cc::node_shader_buts_tex_brick(), blender::nodes::node_shader_tex_sky_cc::node_shader_buts_tex_sky(), blender::ed::space_node::node_texture_buts_bricks(), blender::ed::space_node::node_texture_buts_proc(), noise_panel_draw(), normals_panel_draw(), normals_panel_draw(), object_offset_draw(), blender::occlusion_panel_draw(), blender::options_light_reference_draw(), blender::options_panel_draw(), blender::ed::outliner::outliner_orphans_purge_ui(), 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(), path_panel_draw(), blender::ed::asset::shelf::popover_panel_draw(), position_panel_draw(), profile_panel_draw(), relative_offset_draw(), blender::ed::curves::select_ends_ui(), blender::ed::curves::set_attribute_ui(), blender::ed::object::shade_auto_smooth_ui(), solver_options_panel_draw(), blender::ed::space_node::std_node_socket_draw(), blender::ed::space_node::std_node_socket_interface_draw(), stepped_panel_draw(), symmetry_panel_draw(), template_add_button_search_menu(), template_operator_property_buts_draw_single(), texture_paint_add_texture_paint_slot_ui(), texture_panel_draw(), texture_panel_draw(), tile_add_draw(), time_panel_draw(), ui_def_but_rna__menu(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_local_sublayout(), blender::ed::space_node::ui_node_draw_input(), blender::ed::space_node::ui_node_menu_column(), ui_paneltype_draw_impl(), ui_popup_context_menu_for_button(), ui_template_list_layout_draw(), blender::ed::object::ui_template_modifier_asset_menu_items(), blender::ed::space_node::ui_template_node_asset_menu_items(), blender::ed::space_node::ui_template_node_link_menu(), blender::ed::geometry::ui_template_node_operator_asset_menu_items(), uiDefAutoButsRNA(), uiItemDecoratorR_prop(), uiItemFullR(), uiItemPropertySplitWrapperCreate(), uiItemsAlertBox(), uiItemsEnumR(), uiItemsFullEnumO_items(), uiLayoutColumnWithHeading(), uiTemplateAssetView(), uiTemplateCacheFileLayers(), uiTemplateCollectionExporters(), uiTemplateColormanagedViewSettings(), uiTemplateColorPicker(), uiTemplateHistogram(), uiTemplateImage(), uiTemplateImageInfo(), uiTemplateImageSettings(), uiTemplateImageStereo3d(), uiTemplateLayers(), uiTemplateMarker(), uiTemplateMovieClip(), uiTemplateMovieclipInformation(), uiTemplatePalette(), uiTemplatePreview(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateViewsFormat(), uiTemplateWaveform(), undo_history_draw_menu(), unwrap_draw(), uv_panel_draw(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_posearmature_buts(), v3d_transform_butsR(), vertex_group_panel_draw(), blender::vgroup_panel_draw(), view3d_panel_transform(), view3d_panel_vgroup(), wm_block_about_create(), wm_block_create_redo(), wm_block_dialog_create(), wm_block_insert_unicode_create(), wm_open_mainfile_ui(), and wm_stereo3d_set_draw().
Definition at line 5101 of file interface_layout.cc.
References uiLayout::align, uiLayoutRoot::block, uiStyle::columnspace, ITEM_LAYOUT_COLUMN_FLOW, uiLayoutItemFlow::number, uiLayout::root, uiLayout::space, uiLayoutRoot::style, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by template_keymap_item_properties().
Variant of uiLayoutColumn() that sets a heading label for the layout if the first item is added through uiItemFullR(). If split layout is used and the item has no string to add to the first split-column, the heading is added there instead. Otherwise the heading inserted with a new row.
Definition at line 5094 of file interface_layout.cc.
References ui_layout_heading_set(), and uiLayoutColumn().
Referenced by blender::chaining_panel_draw(), edbm_bevel_ui(), nla_panel_properties(), blender::nodes::node_geo_gizmo_transform_cc::node_layout_ex(), blender::panel_draw(), panel_draw(), panel_draw(), panel_draw(), panel_draw(), and shading_panel_draw().
| void uiLayoutContextCopy | ( | uiLayout * | layout, |
| const bContextStore * | context ) |
Definition at line 6112 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 5065 of file interface_layout.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), ITEM_LAYOUT_PANEL_HEADER, uiLayout::items, blender::Vector< T, InlineBufferCapacity, Allocator >::last(), and uiItem::type.
Referenced by ed_panel_draw().
| bool uiLayoutGetActivateInit | ( | uiLayout * | layout | ) |
Definition at line 5370 of file interface_layout.cc.
References uiLayout::activate_init.
| bool uiLayoutGetActive | ( | uiLayout * | layout | ) |
Definition at line 5360 of file interface_layout.cc.
References uiLayout::active.
| bool uiLayoutGetActiveDefault | ( | uiLayout * | layout | ) |
Definition at line 5365 of file interface_layout.cc.
References uiLayout::active_default.
Definition at line 5390 of file interface_layout.cc.
References uiLayout::alignment.
Referenced by uiItemL_().
Definition at line 5927 of file interface_layout.cc.
References uiLayoutRoot::block, and uiLayout::root.
Referenced by blender::add_attribute_search_button(), blender::ed::asset::shelf::add_catalog_tabs(), 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(), 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(), 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(), panel_draw(), 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_draw_panel(), 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(), uiLayoutAbsoluteBlock(), uiLayoutListItemAddPadding(), uiLayoutPanelProp(), 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 6107 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().
| eUIEmbossType uiLayoutGetEmboss | ( | uiLayout * | layout | ) |
Definition at line 5420 of file interface_layout.cc.
References uiLayoutRoot::block, uiBlock::emboss, uiLayout::emboss, uiLayout::root, and UI_EMBOSS_UNDEFINED.
| bool uiLayoutGetEnabled | ( | uiLayout * | layout | ) |
Definition at line 5375 of file interface_layout.cc.
References uiLayout::enabled.
| bool uiLayoutGetFixedSize | ( | uiLayout * | layout | ) |
Definition at line 6041 of file interface_layout.cc.
References uiItem::flag, and UI_ITEM_FIXED_SIZE.
| bool uiLayoutGetKeepAspect | ( | uiLayout * | layout | ) |
Definition at line 5385 of file interface_layout.cc.
References uiLayout::keepaspect.
Definition at line 463 of file interface_layout.cc.
References ITEM_LAYOUT_ABSOLUTE, ITEM_LAYOUT_BOX, ITEM_LAYOUT_COLUMN, ITEM_LAYOUT_COLUMN_FLOW, ITEM_LAYOUT_GRID_FLOW, ITEM_LAYOUT_OVERLAP, ITEM_LAYOUT_PANEL_BODY, ITEM_LAYOUT_PANEL_HEADER, ITEM_LAYOUT_ROOT, ITEM_LAYOUT_ROW, ITEM_LAYOUT_SPLIT, uiItem::type, UI_LAYOUT_HORIZONTAL, and UI_LAYOUT_VERTICAL.
Referenced by ui_item_enum_expand_elem_exec(), ui_item_local_sublayout(), uiItemFullR(), and uiItemsFullEnumO_items().
| wmOperatorCallContext uiLayoutGetOperatorContext | ( | uiLayout * | layout | ) |
Definition at line 5932 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 5335 of file interface_layout.cc.
References uiItem::flag, and UI_ITEM_PROP_DECORATE.
Referenced by uiItemPropertySplitWrapperCreate().
| bool uiLayoutGetPropSep | ( | uiLayout * | layout | ) |
Definition at line 5325 of file interface_layout.cc.
References uiItem::flag, and UI_ITEM_PROP_SEP.
| bool uiLayoutGetRedAlert | ( | uiLayout * | layout | ) |
Definition at line 5380 of file interface_layout.cc.
References uiLayout::redalert.
Definition at line 5355 of file interface_layout.cc.
References uiLayoutRoot::block, uiBlock::panel, and uiLayout::root.
Referenced by uiLayoutPanel(), and uiTemplateNodeInputs().
Definition at line 5400 of file interface_layout.cc.
References uiLayout::scale.
Definition at line 5405 of file interface_layout.cc.
References uiLayout::scale.
Definition at line 5350 of file interface_layout.cc.
References uiLayout::search_weight.
Definition at line 5410 of file interface_layout.cc.
References uiLayout::units.
Referenced by blender::ui::GridViewLayoutBuilder::build_from_view(), and ui_block_func_POPUP().
Definition at line 5415 of file interface_layout.cc.
References uiLayout::units.
Definition at line 5395 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().
| uiLayout * uiLayoutGridFlow | ( | uiLayout * | layout, |
| bool | row_major, | ||
| int | columns_len, | ||
| bool | even_columns, | ||
| bool | even_rows, | ||
| bool | align ) |
Definition at line 5115 of file interface_layout.cc.
References uiLayout::align, uiLayoutRoot::block, uiLayoutItemGridFlow::columns_len, uiStyle::columnspace, uiLayoutItemGridFlow::even_columns, uiLayoutItemGridFlow::even_rows, ITEM_LAYOUT_GRID_FLOW, uiLayout::root, uiLayoutItemGridFlow::row_major, uiLayout::space, uiLayoutRoot::style, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by ui_template_list_layout_draw().
| uiLayout * uiLayoutListBox | ( | uiLayout * | layout, |
| uiList * | ui_list, | ||
| PointerRNA * | actptr, | ||
| PropertyRNA * | actprop ) |
Definition at line 5198 of file interface_layout.cc.
References uiBut::custom_data, uiBut::flag, RNA_property_description(), uiBut::rnapoin, uiBut::rnaprop, uiBut::tip, UI_BTYPE_LISTBOX, UI_BUT_UNDO, and ui_layout_box().
Referenced by ui_template_list_layout_draw().
| void uiLayoutListItemAddPadding | ( | uiLayout * | layout | ) |
Definition at line 5433 of file interface_layout.cc.
References UI_block_layout_set_current(), UI_BTYPE_SEPR, uiDefBut(), uiLayoutGetBlock(), uiLayoutListItemPaddingWidth(), uiLayoutRow(), and uiLayoutSetFixedSize().
Referenced by blender::ui::TreeViewLayoutBuilder::build_row(), and ui_template_list_layout_draw().
| int uiLayoutListItemPaddingWidth | ( | ) |
Definition at line 5428 of file interface_layout.cc.
References UI_SCALE_FAC.
Referenced by uiLayoutListItemAddPadding().
Definition at line 5239 of file interface_layout.cc.
References uiLayoutRoot::block, ITEM_LAYOUT_OVERLAP, uiLayout::root, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by blender::ui::TreeViewLayoutBuilder::build_row(), and ui_template_list_layout_draw().
| PanelLayout uiLayoutPanel | ( | const bContext * | C, |
| uiLayout * | layout, | ||
| const char * | idname, | ||
| bool | default_closed ) |
Variant of uiLayoutPanelProp that automatically stores the open-close-state in the root panel. When a dynamic number of panels is required, it's recommended to use uiLayoutPanelProp instead of passing in generated id names.
| idname | String that identifies the open-close-state in the root panel. |
Definition at line 5039 of file interface_layout.cc.
References BKE_panel_layout_panel_state_ensure(), BLI_assert, RNA_pointer_create(), state, uiLayoutGetRootPanel(), and uiLayoutPanelProp().
Referenced by blender::nodes::node_geo_bake_cc::draw_bake_items(), blender::nodes::draw_data_blocks(), blender::nodes::node_geo_simulation_cc::draw_simulation_state(), 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_index_switch_cc::node_layout_ex(), blender::nodes::node_geo_menu_switch_cc::node_layout_ex(), blender::nodes::node_geo_repeat_cc::node_layout_ex(), blender::ed::spreadsheet::spreadsheet_data_set_panel_draw(), and uiLayoutPanel().
| uiLayout * uiLayoutPanel | ( | const bContext * | C, |
| uiLayout * | layout, | ||
| const char * | idname, | ||
| bool | default_closed, | ||
| const char * | label ) |
Variant of uiLayoutPanel that automatically creates the header row with the given label and only returns the body layout.
| label | Text that's shown in the panel header. It should already be translated. |
Definition at line 5053 of file interface_layout.cc.
References PanelLayout::body, PanelLayout::header, label, uiItemL(), and uiLayoutPanel().
| PanelLayout uiLayoutPanelProp | ( | const bContext * | C, |
| uiLayout * | layout, | ||
| PointerRNA * | open_prop_owner, | ||
| const char * | open_prop_name ) |
Create a "layout panel" which is a panel that is defined as part of the uiLayout. This allows creating expandable sections which can also be nested.
The open-state of the panel is defined by an RNA property which is passed in as a pointer + property name pair. This gives the caller flexibility to decide who should own the open-state.
| C | The context is necessary because sometimes the panel may be forced to be open by the context even of the open-property is false. This can happen with e.g. property search. |
| layout | The uiLayout that should contain the sub-panel. Only layouts that span the full width of the region are supported for now. |
| open_prop_owner | Data that contains the open-property. |
| open_prop_name | Name of the open-property in open_prop_owner. |
Definition at line 4981 of file interface_layout.cc.
References uiLayoutRoot::block, CTX_wm_region(), ITEM_LAYOUT_PANEL_BODY, ITEM_LAYOUT_PANEL_HEADER, uiLayoutItemPanelHeader::open_prop_name, uiLayoutItemPanelHeader::open_prop_owner, RGN_FLAG_SEARCH_FILTER_ACTIVE, RNA_boolean_get(), uiLayout::root, uiLayout::space, STRNCPY, uiLayoutRoot::style, uiStyle::templatespace, uiItem::type, UI_block_layout_set_current(), UI_BTYPE_LABEL, ui_litem_init_from_parent(), ui_text_icon_width(), UI_UNIT_Y, uiDefIconTextBut(), uiLayoutGetBlock(), uiLayoutRow(), and uiLayoutSetUnitsY().
Referenced by blender::draw_interface_panel_content(), blender::draw_manage_panel(), blender::draw_warnings(), blender::ui::nodes::handle_node_declaration_items(), blender::panel_draw(), uiLayoutPanel(), uiLayoutPanelProp(), and uiTemplateCollectionExporters().
| uiLayout * uiLayoutPanelProp | ( | const bContext * | C, |
| uiLayout * | layout, | ||
| PointerRNA * | open_prop_owner, | ||
| const char * | open_prop_name, | ||
| const char * | label ) |
Variant of uiLayoutPanelProp that automatically creates the header row with the given label and only returns the body layout.
| label | Text that's shown in the panel header. It should already be translated. |
Definition at line 5027 of file interface_layout.cc.
References PanelLayout::body, PanelLayout::header, label, uiItemL(), and uiLayoutPanelProp().
Pie menu layout: Buttons are arranged around a center.
Definition at line 5152 of file interface_layout.cc.
References uiLayoutRoot::block, ITEM_LAYOUT_RADIAL, uiLayout::items, uiLayoutRoot::layout, uiLayout::root, uiItem::type, uiLayoutRoot::type, UI_block_layout_set_current(), ui_item_local_sublayout(), UI_LAYOUT_PIEMENU, and ui_litem_init_from_parent().
Referenced by ui_item_enum_expand_exec(), UI_pie_menu_invoke_from_operator_enum(), UI_pie_menu_invoke_from_rna_enum(), ui_pie_menu_level_invoke(), and uiItemsFullEnumO_items().
Definition at line 4968 of file interface_layout.cc.
References uiLayoutRoot::block, uiStyle::buttonspacex, ITEM_LAYOUT_ROW, uiLayout::root, uiLayout::space, uiLayoutRoot::style, uiItem::type, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by blender::add_attribute_search_or_value_buttons(), blender::ed::geometry::add_attribute_search_or_value_buttons(), advanced_panel_draw(), armature_parent_clear_invoke(), armature_parent_set_invoke(), blender::ed::asset::shelf::asset_shelf_header_draw(), blender::ui::TreeViewLayoutBuilder::build_from_tree(), blender::ui::GridViewLayoutBuilder::build_from_view(), blender::ed::asset::shelf::AssetCatalogSelectorTree::Item::build_row(), blender::ui::bonecollections::BoneCollectionItem::build_row(), blender::ui::greasepencil::LayerGroupViewItem::build_row(), blender::ui::greasepencil::LayerViewItem::build_row(), blender::ui::TreeViewLayoutBuilder::build_row(), buttons_panel_context_draw(), cache_file_layer_item(), clamp_panel_draw(), blender::ed::object::collection_hide_menu_draw(), colorband_buttons_layout(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), data_panel_draw(), blender::nodes::draw_bake_button_row(), blender::nodes::draw_bake_data_block_list_item(), blender::nodes::node_geo_bake_cc::draw_bake_item(), blender::nodes::node_geo_bake_cc::draw_bake_items(), draw_constraint_header(), blender::modifier::greasepencil::draw_custom_curve_settings(), draw_export_controls(), draw_exporter_item(), blender::nodes::node_geo_attribute_capture_cc::draw_item(), blender::nodes::node_geo_foreach_geometry_element_cc::draw_item(), blender::modifier::greasepencil::draw_layer_filter_settings(), blender::modifier::greasepencil::draw_material_filter_settings(), blender::draw_named_attributes_panel(), blender::ui::nodes::draw_node_input(), blender::draw_property_for_output_socket(), blender::draw_property_for_socket(), blender::ed::geometry::draw_property_for_socket(), blender::nodes::node_geo_repeat_cc::draw_repeat_state_item(), blender::nodes::node_geo_simulation_cc::draw_simulation_state(), blender::nodes::node_geo_simulation_cc::draw_simulation_state_item(), blender::modifier::greasepencil::draw_vertex_group_settings(), ed_panel_draw(), edbm_bevel_ui(), edbm_decimate_ui(), edbm_intersect_boolean_ui(), edbm_intersect_ui(), blender::edge_types_panel_draw(), envelope_panel_draw(), falloff_panel_draw(), falloff_panel_draw(), falloff_panel_draw(), file_panel_asset_catalog_buttons_draw(), file_panel_execution_buttons_draw(), file_panel_execution_cancel_button(), file_panel_execution_execute_button(), fmodifier_influence_draw(), fmodifier_panel_header(), generate_panel_draw(), generator_panel_draw(), geometry_panel_draw(), graph_draw_driven_property_panel(), graph_draw_driver_settings_panel(), graph_panel_driverVar__contextProp(), graph_panel_driverVar__singleProp(), graph_panel_driverVar_fallback(), graph_panel_modifiers(), blender::ed::sculpt_paint::greasepencil::grease_pencil_interpolate_sequence_ui(), blender::ed::greasepencil::grease_pencil_reproject_ui(), blender::intersection_panel_draw(), blender::ed::asset::shelf::library_selector_draw(), blender::material_mask_panel_draw(), metadata_panel_draw_field(), mix_mode_panel_draw(), modifier_panel_end(), modifier_panel_header(), modifier_vgroup_ui(), move_to_collection_menu_create(), nla_panel_animdata(), nla_panel_modifiers(), nla_panel_properties(), nla_panel_stripname(), blender::ed::space_node::node_buts_mix_rgb(), blender::nodes::node_shader_output_linestyle_cc::node_buts_output_linestyle(), blender::ed::space_node::node_buts_value(), blender::nodes::node_composite_blur_cc::node_composit_buts_blur(), blender::nodes::node_composite_boxmask_cc::node_composit_buts_boxmask(), blender::nodes::node_composite_channel_matte_cc::node_composit_buts_channel_matte(), blender::nodes::node_composite_color_spill_cc::node_composit_buts_color_spill(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection(), blender::nodes::node_composite_colorcorrection_cc::node_composit_buts_colorcorrection_ex(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::ed::space_node::node_composit_buts_cryptomatte_legacy(), blender::nodes::node_composite_distance_matte_cc::node_composit_buts_distance_matte(), blender::nodes::node_composite_ellipsemask_cc::node_composit_buts_ellipsemask(), blender::nodes::node_composite_file_output_cc::node_composit_buts_file_output_ex(), blender::nodes::node_composite_scale_cc::node_composit_buts_scale(), blender::nodes::node_composite_split_cc::node_composit_buts_split(), blender::nodes::node_composite_render_layer_cc::node_composit_buts_viewlayers(), blender::ed::space_node::node_file_output_socket_draw(), blender::nodes::node_geo_bake_cc::node_layout(), blender::nodes::node_geo_attribute_capture_cc::node_layout_ex(), blender::nodes::node_geo_bake_cc::node_layout_ex(), blender::nodes::node_geo_foreach_geometry_element_cc::node_layout_ex(), blender::nodes::node_geo_index_switch_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(), blender::nodes::node_shader_ies_light_cc::node_shader_buts_ies(), blender::nodes::node_shader_script_cc::node_shader_buts_script(), blender::ed::space_node::node_texture_buts_proc(), blender::ed::space_node::node_update_basis_socket(), blender::options_panel_draw(), blender::ed::outliner::outliner_orphans_purge_ui(), 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(), blender::ed::asset::shelf::popover_panel_draw(), preferences_extension_repo_add_ui(), profile_panel_draw(), blender::ed::sculpt_paint::filter::sculpt_mesh_ui_exec(), blender::segment_list_item_draw(), sequencer_split_ui(), shaderfx_panel_end(), shaderfx_panel_header(), shape_panel_draw(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw_header(), blender::ed::space_node::std_node_socket_draw(), subdivisions_panel_draw(), template_add_button_search_menu(), blender::ui::template_asset_shelf_popover(), blender::ui::template_breadcrumbs(), template_keymap_item_properties(), template_operator_property_buts_draw_single(), template_search_buttons(), ui_item_local_sublayout(), ui_item_prop_split_layout_hack(), ui_item_with_label(), blender::ed::space_node::ui_node_draw_input(), blender::ed::space_node::ui_node_draw_panel(), ui_paneltype_draw_impl(), ui_template_id(), ui_template_list_layout_draw(), ui_template_palette_menu(), uiblock_layer_pass_buttons(), uiItemFullR(), uiItemPopoverPanel_ptr(), uiItemPropertySplitWrapperCreate(), uiItemsAlertBox(), uiLayoutListItemAddPadding(), uiLayoutPanelProp(), uiLayoutRowWithHeading(), uilist_draw_filter_default(), uiTemplateAction(), uiTemplateAnyID(), uiTemplateAssetView(), uiTemplateCacheFile(), uiTemplateCacheFileLayers(), uiTemplateCacheFileProcedural(), uiTemplateCacheFileTimeSettings(), uiTemplateCollectionExporters(), uiTemplateColorPicker(), uiTemplateEditModeSelection(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateInputStatus(), uiTemplateLayers(), uiTemplateMovieClip(), uiTemplatePaintModeSelection(), uiTemplatePalette(), uiTemplatePathBuilder(), uiTemplatePreview(), uiTemplateRunningJobs(), uiTemplateStatusInfo(), undo_history_draw_menu(), uv_pack_islands_ui(), vertex_group_panel_draw(), blender::vgroup_panel_draw(), view3d_panel_vgroup(), wm_block_about_create(), wm_block_splash_create(), WM_window_modal_keymap_status_draw(), and workspace_add_menu().
See uiLayoutColumnWithHeading().
Definition at line 5074 of file interface_layout.cc.
References ui_layout_heading_set(), and uiLayoutRow().
Referenced by advanced_panel_draw(), data_panel_draw(), blender::modifier::greasepencil::draw_layer_filter_settings(), blender::modifier::greasepencil::draw_material_filter_settings(), edbm_decimate_ui(), blender::edge_types_panel_draw(), fmodifier_influence_draw(), blender::intersection_panel_draw(), limits_panel_draw(), blender::material_mask_panel_draw(), nla_panel_actclip(), 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(), preferences_extension_repo_add_ui(), restrictions_panel_draw(), stepped_panel_draw(), and uiTemplateCacheFileTimeSettings().
| void uiLayoutSetActivateInit | ( | uiLayout * | layout, |
| bool | activate_init ) |
Definition at line 5275 of file interface_layout.cc.
References uiLayout::activate_init.
Referenced by uiDefAutoButsRNA().
| void uiLayoutSetActive | ( | uiLayout * | layout, |
| bool | active ) |
Definition at line 5265 of file interface_layout.cc.
References uiLayout::active.
Referenced by advanced_panel_draw(), advanced_panel_draw(), advanced_panel_draw(), blender::ed::asset::shelf::AssetCatalogSelectorTree::Item::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::modifier::greasepencil::draw_layer_filter_settings(), blender::modifier::greasepencil::draw_material_filter_settings(), blender::draw_named_attributes_panel(), 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_lensdist_cc::node_composit_buts_lensdist(), blender::nodes::node_composite_map_value_cc::node_composit_buts_map_value(), blender::ed::space_node::node_texture_buts_proc(), blender::ed::space_node::node_update_basis_buttons(), 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(), 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_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 5270 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 5295 of file interface_layout.cc.
References uiLayout::alignment.
Referenced by blender::add_attribute_search_or_value_buttons(), blender::ed::geometry::add_attribute_search_or_value_buttons(), buttons_panel_context_draw(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), blender::draw_named_attributes_panel(), blender::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::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 6153 of file interface_layout.cc.
References PointerRNA::data, uiBut::opptr, RNA_pointer_create(), uiBut::rnapoin, uiBut::rnaprop, and uiLayoutSetContextPointer().
Referenced by graph_panel_drivers_popover(), ui_item_menu_hold(), and ui_popup_context_menu_for_button().
| void uiLayoutSetContextPointer | ( | uiLayout * | layout, |
| const char * | name, | ||
| PointerRNA * | ptr ) |
Definition at line 6095 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_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, |
| const char * | name, | ||
| blender::StringRef | value ) |
Definition at line 6101 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, |
| eUIEmbossType | emboss ) |
Definition at line 5320 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(), blender::nodes::node_geo_bake_cc::draw_bake_item(), draw_constraint_header(), draw_export_controls(), draw_exporter_item(), blender::nodes::node_geo_attribute_capture_cc::draw_item(), blender::nodes::node_geo_foreach_geometry_element_cc::draw_item(), blender::nodes::node_geo_menu_switch_cc::draw_menu_switch_item(), blender::ed::space_node::draw_node_socket_name_editable(), blender::nodes::node_geo_repeat_cc::draw_repeat_state_item(), blender::nodes::node_geo_simulation_cc::draw_simulation_state_item(), 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 5280 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 6031 of file interface_layout.cc.
References uiItem::flag, and UI_ITEM_FIXED_SIZE.
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 6051 of file interface_layout.cc.
References uiLayoutRoot::argv, uiLayoutRoot::handlefunc, and uiLayout::root.
| void uiLayoutSetKeepAspect | ( | uiLayout * | layout, |
| bool | keepaspect ) |
Definition at line 5290 of file interface_layout.cc.
References uiLayout::keepaspect.
Referenced by uiTemplatePreview().
| void uiLayoutSetOperatorContext | ( | uiLayout * | layout, |
| wmOperatorCallContext | opcontext ) |
Definition at line 6046 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_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(), 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 5340 of file interface_layout.cc.
References uiItem::flag, SET_FLAG_FROM_TEST, and UI_ITEM_PROP_DECORATE.
Referenced by blender::add_attribute_search_or_value_buttons(), blender::ed::geometry::add_attribute_search_or_value_buttons(), 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::draw_bake_panel(), blender::nodes::draw_common_bake_settings(), blender::modifier::greasepencil::draw_custom_curve_settings(), draw_export_properties(), draw_fill_tile(), blender::modifier::greasepencil::draw_layer_filter_settings(), blender::modifier::greasepencil::draw_material_filter_settings(), blender::draw_property_for_socket(), blender::ed::geometry::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::sculpt_paint::greasepencil::grease_pencil_interpolate_sequence_ui(), blender::ed::greasepencil::grease_pencil_reproject_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_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_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(), sequencer_split_ui(), blender::ed::curves::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_panel(), 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 5330 of file interface_layout.cc.
References uiItem::flag, SET_FLAG_FROM_TEST, and UI_ITEM_PROP_SEP.
Referenced by blender::add_attribute_search_or_value_buttons(), blender::ed::geometry::add_attribute_search_or_value_buttons(), advanced_panel_draw(), 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::draw_bake_panel(), blender::nodes::draw_common_bake_settings(), blender::modifier::greasepencil::draw_custom_curve_settings(), draw_export_properties(), draw_fill_tile(), 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::sculpt_paint::greasepencil::grease_pencil_interpolate_sequence_ui(), blender::ed::greasepencil::grease_pencil_reproject_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_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_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(), sequencer_split_ui(), blender::ed::curves::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_panel(), 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 5285 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().
Definition at line 5300 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().
Definition at line 5305 of file interface_layout.cc.
References uiLayout::scale.
Referenced by block_create__close_file_dialog(), block_create_autorun_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().
Definition at line 5345 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 6118 of file interface_layout.cc.
References uiButtonItem::but, ITEM_BUTTON, uiLayout::items, uiBut::type, UI_BTYPE_DECORATOR, UI_but_func_tooltip_set(), and uiLayoutSetTooltipFunc().
Referenced by blender::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().
Definition at line 5310 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().
Definition at line 5315 of file interface_layout.cc.
References uiLayout::units.
Referenced by uiLayoutPanelProp().
Definition at line 5251 of file interface_layout.cc.
References uiLayoutRoot::block, uiStyle::columnspace, ITEM_LAYOUT_SPLIT, uiLayout::root, split(), uiLayoutRoot::style, UI_block_layout_set_current(), and ui_litem_init_from_parent().
Referenced by blender::add_attribute_search_or_value_buttons(), blender::ed::geometry::add_attribute_search_or_value_buttons(), block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_overwrite_dialog(), colorband_buttons_layout(), curvemap_buttons_layout(), blender::draw_named_attributes_panel(), blender::draw_property_for_output_socket(), generator_panel_draw(), graph_panel_key_properties(), blender::ed::space_node::node_buts_image_user(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), blender::ed::space_node::std_node_socket_draw(), ui_def_but_rna__menu(), UI_popup_block_template_confirm_op(), blender::ed::space_node::ui_template_node_link_menu(), uiItemFullR(), uiItemPropertySplitWrapperCreate(), uiItemsAlertBox(), uiItemsEnumR(), uiItemsFullEnumO_items(), uiTemplateAnyID(), uiTemplateMovieClip(), undo_history_draw_menu(), v3d_transform_butsR(), view3d_panel_vgroup(), wm_block_dialog_create(), wm_block_insert_unicode_create(), and wm_block_splash_create().
|
constexpr |
ui_text_pad_default scaled down.
Definition at line 315 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 312 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 318 of file interface_layout.cc.
Referenced by ui_item_with_label(), and uiItemL_().