Blender V5.3
UI_interface_layout.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <functional>
12#include <optional>
13
14#include "BLI_enum_flags.hh"
15#include "BLI_function_ref.hh"
17#include "BLI_string_ref.hh"
18#include "BLI_utility_mixins.hh"
19#include "BLI_vector.hh"
20
21#include "UI_interface_types.hh"
22
23namespace blender {
24
25struct bContext;
26struct bContextStore;
27struct EnumPropertyItem;
28struct IDProperty;
29struct ImBuf;
30struct uiList;
31struct uiStyle;
32struct MenuType;
33struct PanelType;
34struct Panel;
35struct PointerRNA;
36struct PropertyRNA;
37struct StructRNA;
38struct wmOperatorType;
39struct TextboxState;
40
41namespace wm {
42enum class OpCallContext : int8_t;
43}
44
45/* Layout
46 *
47 * More automated layout of buttons. Has three levels:
48 * - Layout: contains a number templates, within a bounded width or height.
49 * - Template: predefined layouts for buttons with a number of slots, each
50 * slot can contain multiple items.
51 * - Item: item to put in a template slot, being either an RNA property,
52 * operator, label or menu. Also regular buttons can be used when setting
53 * uiBlockCurLayout. */
54
55namespace ui {
56enum class ItemType : int8_t;
57enum class ItemInternalFlag : uint8_t;
58enum class EmbossType : uint8_t;
59enum class LayoutAlign : int8_t;
60enum class ButProgressType : int8_t;
61enum class LayoutDirection : int8_t;
62enum class AlertIcon : int8_t;
63
64struct ItemInternal;
65struct LayoutInternal;
66struct Layout;
67struct LayoutRoot;
68
73
74struct Item {
75
77 Item(const Item &) = default;
78 virtual ~Item() = default;
79
80 [[nodiscard]] bool fixed_size() const;
81 void fixed_size_set(bool fixed_size);
82
83 [[nodiscard]] ItemType type() const;
84
85 [[nodiscard]] int2 size() const;
86 [[nodiscard]] int2 offset() const;
87
88 protected:
91
92 friend struct ItemInternal;
93};
94
96
102
107
115
116enum class EnumTabExpand {
119};
120
122
123 static constexpr float PROPERTY_SPLIT_FACTOR = 0.4f;
124
125 protected:
126 LayoutRoot *root_ = nullptr;
128 Layout *parent_ = nullptr;
129 std::string heading_;
130
132
135
136 int x_ = 0, y_ = 0, w_ = 0, h_ = 0;
137
138 short space_ = 0;
139
140 float scale_[2] = {0.0f, 0.0f};
141 bool align_ = false;
142 bool active_ = false;
143 bool active_default_ = false;
144 bool activate_init_ = false;
145 bool enabled_ = false;
146 bool redalert_ = false;
148 bool variable_size_ = false;
152 float units_[2] = {0.0f, 0.0f};
154 float search_weight_ = 0.0f;
155
156 public:
158
159 [[nodiscard]] bool active() const;
165 void active_set(bool active);
166
167 [[nodiscard]] bool active_default() const;
173
174 [[nodiscard]] bool activate_init() const;
181
182 [[nodiscard]] LayoutAlign alignment() const;
184
185 [[nodiscard]] Block *block() const;
186
188
189 [[nodiscard]] const PointerRNA *context_ptr_get(const StringRef name,
190 const StructRNA *type) const;
191 void context_ptr_set(StringRef name, const PointerRNA *ptr);
192
193 [[nodiscard]] std::optional<StringRefNull> context_string_get(const StringRef name) const;
194 void context_string_set(StringRef name, StringRef value);
195
196 [[nodiscard]] std::optional<int64_t> context_int_get(const StringRef name) const;
197 void context_int_set(StringRef name, int64_t value);
198
200 void context_set_from_but(const Button *but);
201
202 [[nodiscard]] bContextStore *context_store() const;
203
204 [[nodiscard]] bool enabled() const;
210 void enabled_set(bool enabled);
211
212 [[nodiscard]] EmbossType emboss() const;
214
215 [[nodiscard]] LayoutDirection local_direction() const;
216
217 [[nodiscard]] wm::OpCallContext operator_context() const;
220
221 [[nodiscard]] bool red_alert() const;
226 void red_alert_set(bool red_alert);
227
228 [[nodiscard]] Panel *root_panel() const;
229
230 [[nodiscard]] float scale_x() const;
231 void scale_x_set(float scale);
232
233 [[nodiscard]] float scale_y() const;
234 void scale_y_set(float scale);
235
236 [[nodiscard]] float search_weight() const;
237 void search_weight_set(float weight);
238
239 [[nodiscard]] float ui_units_x() const;
241 void ui_units_x_set(float width);
242
243 [[nodiscard]] float ui_units_y() const;
245 void ui_units_y_set(float height);
246
247 [[nodiscard]] bool use_property_split() const;
251 void use_property_split_set(bool is_sep);
252
253 [[nodiscard]] bool use_property_decorate() const;
258 void use_property_decorate_set(bool is_decorate);
259
260 [[nodiscard]] int width() const;
261
263
264 Layout &absolute(bool align = false);
265
270 Layout &box();
275 Layout &column(bool align);
284
289 Layout &row(bool align);
298
304 Layout &column_flow(int number, bool align);
318 bool row_major, int columns_len, bool even_columns, bool even_rows, bool align);
319
321 Layout &list_box(uiList *ui_list, PointerRNA *actptr, PropertyRNA *actprop);
322
328 Layout &menu_pie();
329
331 Layout &overlap();
332
351 PointerRNA *open_prop_owner,
352 StringRefNull open_prop_name);
362 Layout *panel_prop(const bContext *C,
363 PointerRNA *open_prop_owner,
364 StringRefNull open_prop_name,
367 PointerRNA *open_prop_owner,
368 StringRefNull open_prop_name,
369 PointerRNA *bool_prop_owner,
370 StringRefNull bool_prop_name,
371 std::optional<StringRef> label);
379 PanelLayout panel(const bContext *C, StringRef idname, bool default_closed);
380
390 Layout *panel(const bContext *C, StringRef idname, bool default_closed, StringRef label);
391
397 Layout &split(float percentage, bool align);
398
400
405 void decorator(PointerRNA *ptr, PropertyRNA *prop, int index);
411 void decorator(PointerRNA *ptr, std::optional<StringRefNull> propname, int index);
412
414 void label(StringRef name, int icon);
420 int icon,
422 int max_lines = 0);
423
428 void label_markdown(StringRef text);
429
439 bool image(StringRef key, FunctionRef<ImBuf *()> create_fn);
440
444 void link(StringRef url, StringRef name, int icon);
445
450 void menu(MenuType *mt, std::optional<StringRef> name, int icon);
455 void menu(StringRef menuname, std::optional<StringRef> name, int icon);
456
458 void menu_contents(StringRef menuname);
459
466 void menu_fn(StringRefNull name, int icon, MenuCreateFunc func, void *arg);
474 void menu_fn_argN_free(StringRefNull name, int icon, MenuCreateFunc func, void *argN);
483 std::optional<StringRef> name,
484 int icon,
486 eUI_Item_Flag flag);
487
494 PointerRNA op(wmOperatorType *ot, std::optional<StringRef> name, int icon);
495
502 PointerRNA op(StringRefNull opname, std::optional<StringRef> name, int icon);
503
512 std::optional<StringRef> name,
513 int icon,
515 eUI_Item_Flag flag);
522 void op_enum(StringRefNull opname,
523 StringRefNull propname,
524 IDProperty *properties,
526 eUI_Item_Flag flag,
527 const int active = -1);
528
533 void op_enum(StringRefNull opname, StringRefNull propname);
542 const PointerRNA &ptr,
544 IDProperty *properties,
546 eUI_Item_Flag flag,
547 const EnumPropertyItem *item_array,
548 int totitem,
549 int active = -1);
550
557 wmOperatorType *ot,
558 StringRefNull propname,
559 std::optional<StringRefNull> name,
560 int icon);
567 StringRefNull opname,
568 StringRefNull propname,
569 StringRefNull name,
570 int icon);
581 std::optional<StringRef> name,
582 int icon,
584 eUI_Item_Flag flag,
585 const char *menu_id);
586
587 void progress_indicator(const char *text, float factor, ButProgressType progress_type);
588
596 void prop(PointerRNA *ptr,
598 int index,
599 int value,
600 eUI_Item_Flag flag,
601 std::optional<StringRef> name_opt,
602 int icon,
603 std::optional<StringRef> placeholder = std::nullopt);
605 void prop(PointerRNA *ptr,
606 StringRefNull propname,
607 eUI_Item_Flag flag,
608 std::optional<StringRef> name,
609 int icon);
610
611 void popover(const bContext *C, PanelType *pt, std::optional<StringRef> name_opt, int icon);
612 void popover(const bContext *C,
613 StringRef panel_type,
614 std::optional<StringRef> name_opt,
615 int icon,
617 void popover_group(
618 bContext *C, int space_id, int region_id, const char *context, const char *category);
619
624 void prop_enum(
625 PointerRNA *ptr, PropertyRNA *prop, int value, std::optional<StringRefNull> name, int icon);
630 void prop_enum(PointerRNA *ptr,
632 const char *value,
633 std::optional<StringRefNull> name,
634 int icon);
639 void prop_enum(PointerRNA *ptr,
640 StringRefNull propname,
641 const char *value,
642 std::optional<StringRefNull> name,
643 int icon);
644
646 void prop_menu_enum(PointerRNA *ptr,
648 std::optional<StringRefNull> name,
649 int icon);
650
653 PointerRNA *ptr,
655 PointerRNA *ptr_highlight,
656 PropertyRNA *prop_highlight,
657 bool icon_only,
659
661 void props_enum(PointerRNA *ptr, StringRefNull propname);
662
671 void prop_search(PointerRNA *ptr,
673 PointerRNA *searchptr,
674 PropertyRNA *searchprop,
675 PropertyRNA *item_searchpropname,
676 std::optional<StringRefNull> name,
677 int icon,
678 bool results_are_suggestions);
684 void prop_search(PointerRNA *ptr,
685 StringRefNull propname,
686 PointerRNA *searchptr,
687 StringRefNull searchpropname,
688 std::optional<StringRefNull> name,
689 int icon);
690
695 void textbox(const bContext *C,
696 PointerRNA *ptr,
697 StringRefNull propname,
698 std::optional<StringRefNull> name_opt = std::nullopt,
699 std::optional<StringRefNull> placeholder = std::nullopt,
700 const int initial_visible_lines = 3);
706 StringRefNull propname,
707 TextboxState *textbox_state,
708 std::optional<StringRefNull> name_opt = std::nullopt,
709 std::optional<StringRefNull> placeholder = std::nullopt);
710
716 int index,
717 int value,
718 eUI_Item_Flag flag,
719 std::optional<StringRefNull> name,
720 int icon,
721 const char *panel_type);
722
727 blender::StringRefNull propname,
728 eUI_Item_Flag flag,
729 std::optional<blender::StringRefNull> name,
730 int icon,
731 const char *menu_type);
735 void prop_with_menu(PointerRNA *ptr,
737 int index,
738 int value,
739 eUI_Item_Flag flag,
740 std::optional<StringRefNull> name,
741 int icon,
742 const char *menu_type);
743
745 Button *button(StringRef name,
746 int icon,
747 std::function<void(bContext &)> func,
748 std::optional<StringRef> tooltip = std::nullopt);
749
751 void separator(float factor = 1.0f, LayoutSeparatorType type = LayoutSeparatorType::Auto);
752
754 void separator_spacer();
755
756 friend struct LayoutInternal;
757
758 [[nodiscard]] LayoutRoot *root() const;
759 [[nodiscard]] const bContextStore *context() const;
760 [[nodiscard]] Layout *parent() const;
761 [[nodiscard]] StringRef heading() const;
762 void heading_reset();
763 [[nodiscard]] Span<Item *> items() const;
764 [[nodiscard]] bool align() const;
765 [[nodiscard]] bool variable_size() const;
766 [[nodiscard]] EmbossType emboss_or_undefined() const;
767 [[nodiscard]] int2 size() const;
768 [[nodiscard]] int2 offset() const;
769
770 protected:
771 void estimate();
772 virtual void estimate_impl();
773 void resolve();
774 virtual void resolve_impl();
779 virtual void resolve_dynamic_height();
780};
781
782inline bool Layout::active() const
783{
784 return active_;
785}
786inline void Layout::active_set(bool active)
787{
788 active_ = active;
789}
790
791inline bool Layout::active_default() const
792{
793 return active_default_;
794}
799
800inline bool Layout::activate_init() const
801{
802 return activate_init_;
803}
808
810{
811 return alignment_;
812}
813
818
820{
821 return context_;
822}
823
824inline bool Layout::enabled() const
825{
826 return enabled_;
827}
829{
831}
832
833inline bool Layout::red_alert() const
834{
835 return redalert_;
836}
838{
840}
841
842inline float Layout::search_weight() const
843{
844 return search_weight_;
845}
846inline void Layout::search_weight_set(float weight)
847{
848 search_weight_ = weight;
849}
850
851inline float Layout::scale_x() const
852{
853 return scale_[0];
854}
855inline void Layout::scale_x_set(float scale)
856{
857 scale_[0] = scale;
858}
859
860inline float Layout::scale_y() const
861{
862 return scale_[1];
863}
864inline void Layout::scale_y_set(float scale)
865{
866 scale_[1] = scale;
867}
868
869inline float Layout::ui_units_x() const
870{
871 return units_[0];
872}
874{
875 units_[0] = width;
876}
877
878inline float Layout::ui_units_y() const
879{
880 return units_[1];
881}
882inline void Layout::ui_units_y_set(float height)
883{
884 units_[1] = height;
885}
886
887inline int Layout::width() const
888{
889 return this->w_;
890}
891
895};
896
897enum class LayoutType : int8_t {
898 Panel = 0,
900 Menu = 2,
904};
905
906enum class LayoutAlign : int8_t {
908 Left = 1,
909 Center = 2,
910 Right = 3,
911};
913 Bar = 0,
914 Ring = 1,
915};
916
917Layout &block_layout(Block *block,
918 LayoutDirection direction,
919 LayoutType type,
920 int x,
921 int y,
922 int size,
923 int em,
924 int padding,
925 const uiStyle *style);
926int2 block_layout_resolve(Block *block);
927
928void block_layout_set_current(Block *block, Layout *layout);
929bool block_layout_needs_resolving(const Block *block);
935void block_layout_free(Block *block);
936
957 ITEM_R_EVENT = 1 << 6,
959 ITEM_R_NO_BG = 1 << 8,
961 ITEM_O_DEPRESS = 1 << 10,
962 ITEM_R_COMPACT = 1 << 11,
966 /* Even create the property split layout if there's no name to show there. */
975
981};
983#define UI_ITEM_NONE ui::eUI_Item_Flag(0)
984
990bool block_apply_search_filter(Block *block, const char *search_filter);
991
1004 Layout *layout, ButtonToolTipFunc func, void *arg, CopyArgFunc copy_arg, FreeArgFunc free_arg);
1005
1010void uiLayoutSetTooltipCustomFunc(Layout *layout,
1012 void *arg,
1013 CopyArgFunc copy_arg,
1014 FreeArgFunc free_arg);
1015
1016void menutype_draw(bContext *C, MenuType *mt, Layout *layout);
1017
1021void UI_paneltype_draw(bContext *C, PanelType *pt, Layout *layout);
1022
1024void uiLayoutListItemAddPadding(Layout *layout);
1025
1026/* Layout create functions. */
1027
1028bool uiLayoutEndsWithPanelHeader(const Layout &layout);
1029
1038
1048
1049Button *uiItemL_ex(Layout *layout, StringRef name, int icon, bool highlight, bool redalert);
1057Layout *uiItemL_respect_property_split(Layout *layout, StringRef text, int icon);
1061void uiItemLDrag(Layout *layout, PointerRNA *ptr, StringRef name, int icon);
1062
1063/* Only for testing, inspecting layouts. */
1067std::string layout_introspect(Layout *layout);
1068
1074 const uiStyle *style,
1075 const int dialog_width,
1076 const AlertIcon icon,
1077 const int icon_size);
1078Layout *uiItemsAlertBox(Block *block, const int size, const AlertIcon icon);
1079
1080} // namespace ui
1081} // namespace blender
struct uiStyle uiStyle
#define C
Definition RandGen.cpp:29
NonCopyable(const NonCopyable &other)=delete
NonMovable(NonMovable &&other)=delete
float3x3 scale(float3x3 mat, float2 scale)
ENUM_OPERATORS(Layer::Flags)
void(*)(bContext *C, Layout *layout, void *arg1) MenuCreateFunc
void uiLayoutSetTooltipCustomFunc(Layout *layout, ButtonToolTipCustomFunc func, void *arg, CopyArgFunc copy_arg, FreeArgFunc free_arg)
bool block_layout_needs_resolving(const Block *block)
bool block_apply_search_filter(Block *block, const char *search_filter)
void(*)(void *arg) FreeArgFunc
@ ITEM_R_TEXT_BUT_FORCE_SEMI_MODAL_ACTIVE
void uiItemLDrag(Layout *layout, PointerRNA *ptr, StringRef name, int icon)
int uiLayoutListItemPaddingWidth()
Layout * uiItemsAlertBox(Block *block, const uiStyle *style, const int dialog_width, const AlertIcon icon, const int icon_size)
std::string layout_introspect(Layout *layout)
void UI_paneltype_draw(bContext *C, PanelType *pt, Layout *layout)
bool uiLayoutEndsWithPanelHeader(const Layout &layout)
Button * uiItemL_ex(Layout *layout, StringRef name, int icon, bool highlight, bool redalert)
void block_layout_free(Block *block)
int2 block_layout_resolve(Block *block)
void menutype_draw(bContext *C, MenuType *mt, Layout *layout)
Layout * uiItemL_respect_property_split(Layout *layout, StringRef text, int icon)
void(*)(bContext &C, TooltipData &data, Button *but, void *argN) ButtonToolTipCustomFunc
void *(*)(const void *arg) CopyArgFunc
Layout & block_layout(Block *block, LayoutDirection direction, LayoutType type, int x, int y, int size, int em, int padding, const uiStyle *style)
void uiLayoutListItemAddPadding(Layout *layout)
std::string(*)(bContext *C, void *argN, StringRef tip) ButtonToolTipFunc
void uiLayoutSetTooltipFunc(Layout *layout, ButtonToolTipFunc func, void *arg, CopyArgFunc copy_arg, FreeArgFunc free_arg)
void block_layout_set_current(Block *block, Layout *layout)
PropertySplitWrapper uiItemPropertySplitWrapperCreate(Layout *parent_layout)
BMesh Iterators.
__int64 int64_t
Definition BKE_text.h:90
uint padding(uint offset, uint alignment)
unsigned int uint32_t
Definition BKE_text.h:81
VecBase< int32_t, 2 > int2
unsigned char uint8_t
Definition BKE_text.h:79
signed char int8_t
Definition BKE_text.h:76
@ Default
Definition types.hh:129
@ Space
Definition types.hh:47
virtual ~Item()=default
ItemInternalFlag flag_
Item(const Item &)=default
ItemType type() const
void fixed_size_set(bool fixed_size)
void prop_menu_enum(PointerRNA *ptr, PropertyRNA *prop, std::optional< StringRefNull > name, int icon)
void progress_indicator(const char *text, float factor, ButProgressType progress_type)
void enabled_set(bool enabled)
virtual void estimate_impl()
void textbox(const bContext *C, PointerRNA *ptr, StringRefNull propname, std::optional< StringRefNull > name_opt=std::nullopt, std::optional< StringRefNull > placeholder=std::nullopt, const int initial_visible_lines=3)
void alignment_set(LayoutAlign alignment)
void context_int_set(StringRef name, int64_t value)
void prop_search(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *searchptr, PropertyRNA *searchprop, PropertyRNA *item_searchpropname, std::optional< StringRefNull > name, int icon, bool results_are_suggestions)
Panel * root_panel() const
void use_property_decorate_set(bool is_decorate)
void textbox_with_state(PointerRNA *ptr, StringRefNull propname, TextboxState *textbox_state, std::optional< StringRefNull > name_opt=std::nullopt, std::optional< StringRefNull > placeholder=std::nullopt)
bool use_property_split() const
void label_multiline(StringRefNull label, int icon, FontStyleAlign align=UI_STYLE_TEXT_LEFT, int max_lines=0)
bContextStore * context_store() const
PointerRNA op_menu_hold(wmOperatorType *ot, std::optional< StringRef > name, int icon, wm::OpCallContext context, eUI_Item_Flag flag, const char *menu_id)
void operator_context_set(wm::OpCallContext opcontext)
std::optional< StringRefNull > context_string_get(const StringRef name) const
wm::OpCallContext operator_context() const
void search_weight_set(float weight)
void use_property_split_set(bool is_sep)
LayoutRoot * root() const
PointerRNA op_menu_enum(const bContext *C, wmOperatorType *ot, StringRefNull propname, std::optional< StringRefNull > name, int icon)
Span< Item * > items() const
void link(StringRef url, StringRef name, int icon)
void label(StringRef name, int icon)
void decorator(PointerRNA *ptr, PropertyRNA *prop, int index)
void ui_units_x_set(float width)
void activate_init_set(bool activate_init)
const bContextStore * context() const
void menu_contents(StringRef menuname)
PointerRNA op(wmOperatorType *ot, std::optional< StringRef > name, int icon, wm::OpCallContext context, eUI_Item_Flag flag)
void op_enum_items(wmOperatorType *ot, const PointerRNA &ptr, PropertyRNA *prop, IDProperty *properties, wm::OpCallContext context, eUI_Item_Flag flag, const EnumPropertyItem *item_array, int totitem, int active=-1)
PanelLayout panel(const bContext *C, StringRef idname, bool default_closed)
void scale_x_set(float scale)
void context_set_from_but(const Button *but)
std::optional< int64_t > context_int_get(const StringRef name) const
Layout & column_flow(int number, bool align)
void prop_with_menu(PointerRNA *ptr, blender::StringRefNull propname, eUI_Item_Flag flag, std::optional< blender::StringRefNull > name, int icon, const char *menu_type)
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< StringRef > name_opt, int icon, std::optional< StringRef > placeholder=std::nullopt)
void menu(MenuType *mt, std::optional< StringRef > name, int icon)
const PointerRNA * context_ptr_get(const StringRef name, const StructRNA *type) const
EmbossType emboss_or_undefined() const
void ui_units_y_set(float height)
void red_alert_set(bool red_alert)
void active_set(bool active)
virtual void resolve_impl()
virtual void resolve_dynamic_height()
StringRef heading() const
void prop_with_popover(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< StringRefNull > name, int icon, const char *panel_type)
Layout & split(float percentage, bool align)
LayoutAlign alignment() const
Layout & column(bool align)
bool use_property_decorate() const
void context_string_set(StringRef name, StringRef value)
PanelLayout panel_prop_with_bool_header(const bContext *C, PointerRNA *open_prop_owner, StringRefNull open_prop_name, PointerRNA *bool_prop_owner, StringRefNull bool_prop_name, std::optional< StringRef > label)
void op_enum(StringRefNull opname, StringRefNull propname, IDProperty *properties, wm::OpCallContext context, eUI_Item_Flag flag, const int active=-1)
void separator(float factor=1.0f, LayoutSeparatorType type=LayoutSeparatorType::Auto)
Layout & grid_flow(bool row_major, int columns_len, bool even_columns, bool even_rows, bool align)
void label_markdown(StringRef text)
Layout & absolute(bool align=false)
void scale_y_set(float scale)
Layout & list_box(uiList *ui_list, PointerRNA *actptr, PropertyRNA *actprop)
PanelLayout panel_prop(const bContext *C, PointerRNA *open_prop_owner, StringRefNull open_prop_name)
Layout & row(bool align)
void prop_tabs_enum(bContext *C, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *ptr_highlight, PropertyRNA *prop_highlight, bool icon_only, EnumTabExpand expand_as=EnumTabExpand::Default)
void active_default_set(bool active_default)
void popover(const bContext *C, PanelType *pt, std::optional< StringRef > name_opt, int icon)
bool image(StringRef key, FunctionRef< ImBuf *()> create_fn)
Button * button(StringRef name, int icon, std::function< void(bContext &)> func, std::optional< StringRef > tooltip=std::nullopt)
static constexpr float PROPERTY_SPLIT_FACTOR
LayoutDirection local_direction() const
void context_ptr_set(StringRef name, const PointerRNA *ptr)
void props_enum(PointerRNA *ptr, StringRefNull propname)
void popover_group(bContext *C, int space_id, int region_id, const char *context, const char *category)
EmbossType emboss() const
void menu_fn_argN_free(StringRefNull name, int icon, MenuCreateFunc func, void *argN)
Layout * parent() const
void context_copy(const bContextStore *context)
void menu_fn(StringRefNull name, int icon, MenuCreateFunc func, void *arg)
Layout(ItemType type, LayoutRoot *root)
void prop_enum(PointerRNA *ptr, PropertyRNA *prop, int value, std::optional< StringRefNull > name, int icon)
void emboss_set(EmbossType emboss)