|
Blender V5.3
|
Inherits blender::ui::Layout.
Public Member Functions | |
| LayoutItemFlow () | |
Layout Items | |
| void | estimate_impl () override |
| void | resolve_impl () override |
| Public Member Functions inherited from blender::ui::Layout | |
| bool | active () const |
| void | active_set (bool active) |
| bool | active_default () const |
| void | active_default_set (bool active_default) |
| bool | activate_init () const |
| void | activate_init_set (bool activate_init) |
| LayoutAlign | alignment () const |
| void | alignment_set (LayoutAlign alignment) |
| bContextStore * | context_store () const |
| bool | enabled () const |
| void | enabled_set (bool enabled) |
| bool | red_alert () const |
| void | red_alert_set (bool red_alert) |
| float | scale_x () const |
| void | scale_x_set (float scale) |
| float | scale_y () const |
| void | scale_y_set (float scale) |
| float | search_weight () const |
| void | search_weight_set (float weight) |
| float | ui_units_x () const |
| void | ui_units_x_set (float width) |
| float | ui_units_y () const |
| void | ui_units_y_set (float height) |
| int | width () const |
| void | prop_with_menu (PointerRNA *ptr, blender::StringRefNull propname, eUI_Item_Flag flag, std::optional< blender::StringRefNull > name, int icon, const char *menu_type) |
| LayoutRoot * | root () const |
| const bContextStore * | context () const |
| Layout * | parent () const |
| StringRef | heading () const |
| void | heading_reset () |
| Span< Item * > | items () const |
| bool | align () const |
| bool | variable_size () const |
| EmbossType | emboss_or_undefined () const |
| Layout (ItemType type, LayoutRoot *root) | |
| LayoutDirection | local_direction () const |
| void | decorator (PointerRNA *ptr, PropertyRNA *prop, int index) |
| void | decorator (PointerRNA *ptr, std::optional< StringRefNull > propname, int index) |
| void | label (StringRef name, int icon) |
| void | label_multiline (StringRefNull label, int icon, FontStyleAlign align=UI_STYLE_TEXT_LEFT, int max_lines=0) |
| void | label_markdown (StringRef text) |
| bool | image (StringRef key, FunctionRef< ImBuf *()> create_fn) |
| void | link (StringRef url, StringRef name, int icon) |
| void | menu (MenuType *mt, std::optional< StringRef > name, int icon) |
| void | menu (StringRef menuname, std::optional< StringRef > name, int icon) |
| void | menu_contents (StringRef menuname) |
| void | menu_fn (StringRefNull name, int icon, MenuCreateFunc func, void *arg) |
| void | menu_fn_argN_free (StringRefNull name, int icon, MenuCreateFunc func, void *argN) |
| PointerRNA | op (wmOperatorType *ot, std::optional< StringRef > name, int icon, wm::OpCallContext context, eUI_Item_Flag flag) |
| PointerRNA | op (wmOperatorType *ot, std::optional< StringRef > name, int icon) |
| PointerRNA | op (StringRefNull opname, std::optional< StringRef > name, int icon) |
| PointerRNA | op (StringRefNull opname, std::optional< StringRef > name, int icon, wm::OpCallContext context, eUI_Item_Flag flag) |
| void | op_enum (StringRefNull opname, StringRefNull propname, IDProperty *properties, wm::OpCallContext context, eUI_Item_Flag flag, const int active=-1) |
| void | op_enum (StringRefNull opname, StringRefNull propname) |
| 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) |
| PointerRNA | op_menu_enum (const bContext *C, wmOperatorType *ot, StringRefNull propname, std::optional< StringRefNull > name, int icon) |
| PointerRNA | op_menu_enum (const bContext *C, StringRefNull opname, StringRefNull propname, StringRefNull name, int icon) |
| PointerRNA | op_menu_hold (wmOperatorType *ot, std::optional< StringRef > name, int icon, wm::OpCallContext context, eUI_Item_Flag flag, const char *menu_id) |
| void | progress_indicator (const char *text, float factor, ButProgressType progress_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 | prop (PointerRNA *ptr, StringRefNull propname, eUI_Item_Flag flag, std::optional< StringRef > name, int icon) |
| void | popover (const bContext *C, PanelType *pt, std::optional< StringRef > name_opt, int icon) |
| void | popover (const bContext *C, StringRef panel_type, std::optional< StringRef > name_opt, int icon, PopupAttachDirection direction=PopupAttachDirection::Vertical) |
| void | popover_group (bContext *C, int space_id, int region_id, const char *context, const char *category) |
| void | prop_enum (PointerRNA *ptr, PropertyRNA *prop, int value, std::optional< StringRefNull > name, int icon) |
| void | prop_enum (PointerRNA *ptr, PropertyRNA *prop, const char *value, std::optional< StringRefNull > name, int icon) |
| void | prop_enum (PointerRNA *ptr, StringRefNull propname, const char *value, std::optional< StringRefNull > name, int icon) |
| void | prop_menu_enum (PointerRNA *ptr, PropertyRNA *prop, std::optional< StringRefNull > name, int icon) |
| 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 | props_enum (PointerRNA *ptr, StringRefNull propname) |
| void | prop_search (PointerRNA *ptr, PropertyRNA *prop, PointerRNA *searchptr, PropertyRNA *searchprop, PropertyRNA *item_searchpropname, std::optional< StringRefNull > name, int icon, bool results_are_suggestions) |
| void | prop_search (PointerRNA *ptr, StringRefNull propname, PointerRNA *searchptr, StringRefNull searchpropname, std::optional< StringRefNull > name, int icon) |
| 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 | textbox_with_state (PointerRNA *ptr, StringRefNull propname, TextboxState *textbox_state, std::optional< StringRefNull > name_opt=std::nullopt, std::optional< StringRefNull > placeholder=std::nullopt) |
| 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) |
| void | prop_with_menu (PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< StringRefNull > name, int icon, const char *menu_type) |
| Button * | button (StringRef name, int icon, std::function< void(bContext &)> func, std::optional< StringRef > tooltip=std::nullopt) |
| void | separator (float factor=1.0f, LayoutSeparatorType type=LayoutSeparatorType::Auto) |
| void | separator_spacer () |
| int2 | size () const |
| int2 | offset () const |
| Block * | block () const |
| void | context_copy (const bContextStore *context) |
| const PointerRNA * | context_ptr_get (const StringRef name, const StructRNA *type) const |
| void | context_ptr_set (StringRef name, const PointerRNA *ptr) |
| std::optional< StringRefNull > | context_string_get (const StringRef name) const |
| void | context_string_set (StringRef name, StringRef value) |
| std::optional< int64_t > | context_int_get (const StringRef name) const |
| void | context_int_set (StringRef name, int64_t value) |
| void | context_set_from_but (const Button *but) |
| wm::OpCallContext | operator_context () const |
| void | operator_context_set (wm::OpCallContext opcontext) |
| EmbossType | emboss () const |
| void | emboss_set (EmbossType emboss) |
| Panel * | root_panel () const |
| bool | use_property_split () const |
| void | use_property_split_set (bool is_sep) |
| bool | use_property_decorate () const |
| void | use_property_decorate_set (bool is_decorate) |
| Layout & | absolute (bool align=false) |
| Layout & | box () |
| Layout & | column (bool align) |
| Layout & | column (bool align, StringRef heading) |
| Layout & | row (bool align) |
| Layout & | row (bool align, StringRef heading) |
| Layout & | column_flow (int number, bool align) |
| Layout & | grid_flow (bool row_major, int columns_len, bool even_columns, bool even_rows, bool align) |
| Layout & | list_box (uiList *ui_list, PointerRNA *actptr, PropertyRNA *actprop) |
| Layout & | menu_pie () |
| Layout & | overlap () |
| PanelLayout | panel_prop (const bContext *C, PointerRNA *open_prop_owner, StringRefNull open_prop_name) |
| Layout * | panel_prop (const bContext *C, PointerRNA *open_prop_owner, StringRefNull open_prop_name, StringRef label) |
| 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) |
| PanelLayout | panel (const bContext *C, StringRef idname, bool default_closed) |
| Layout * | panel (const bContext *C, StringRef idname, bool default_closed, StringRef label) |
| Layout & | split (float percentage, bool align) |
| Public Member Functions inherited from blender::ui::Item | |
| Item (const Item &)=default | |
| virtual | ~Item ()=default |
| Item (ItemType type) | |
| ItemType | type () const |
| bool | fixed_size () const |
| void | fixed_size_set (bool fixed_size) |
| int2 | size () const |
| int2 | offset () const |
| Public Member Functions inherited from blender::blender::NonCopyable | |
| NonCopyable (const NonCopyable &other)=delete | |
| NonCopyable & | operator= (const NonCopyable &other)=delete |
| NonCopyable ()=default | |
| NonCopyable (NonCopyable &&other)=default | |
| NonCopyable & | operator= (NonCopyable &&other)=default |
| Public Member Functions inherited from blender::blender::NonMovable | |
| NonMovable (NonMovable &&other)=delete | |
| NonMovable & | operator= (NonMovable &&other)=delete |
| NonMovable ()=default | |
| NonMovable (const NonMovable &other)=default | |
| NonMovable & | operator= (const NonMovable &other)=default |
Public Attributes | |
| int | number = 0 |
| int | totcol = 0 |
Additional Inherited Members | |
| Static Public Attributes inherited from blender::ui::Layout | |
| static constexpr float | PROPERTY_SPLIT_FACTOR = 0.4f |
| void | estimate () |
| void | resolve () |
| virtual void | resolve_dynamic_height () |
| Protected Attributes inherited from blender::ui::Layout | |
| LayoutRoot * | root_ = nullptr |
| bContextStore * | context_ = nullptr |
| Layout * | parent_ = nullptr |
| std::string | heading_ |
| Vector< Item * > | items_ |
| Layout * | child_items_layout_ = nullptr |
| int | x_ = 0 |
| int | y_ = 0 |
| int | w_ = 0 |
| int | h_ = 0 |
| short | space_ = 0 |
| float | scale_ [2] = {0.0f, 0.0f} |
| bool | align_ = false |
| bool | active_ = false |
| bool | active_default_ = false |
| bool | activate_init_ = false |
| bool | enabled_ = false |
| bool | redalert_ = false |
| bool | variable_size_ = false |
| LayoutAlign | alignment_ = {} |
| EmbossType | emboss_ = {} |
| float | units_ [2] = {0.0f, 0.0f} |
| float | search_weight_ = 0.0f |
| Protected Attributes inherited from blender::ui::Item | |
| ItemInternalFlag | flag_ = {} |
| ItemType | type_ = {} |
Definition at line 250 of file interface_layout.cc.
|
inline |
Definition at line 253 of file interface_layout.cc.
References blender::ui::Layout::Layout(), blender::ui::LayoutColumnFlow, and blender::nullptr.
Referenced by estimate_impl().
|
overridevirtual |
Reimplemented from blender::ui::Layout.
Definition at line 4476 of file interface_layout.cc.
References uiStyle::buttonspacey, blender::ui::Layout::h_, blender::ui::Layout::items(), LayoutItemFlow(), blender::max_ii(), blender::min_ii(), number, blender::ui::Layout::root(), blender::ui::Layout::size(), blender::ui::Layout::space_, blender::ui::LayoutRoot::style, totcol, blender::ui::Layout::w_, blender::x, y, and blender::ui::Layout::y_.
|
overridevirtual |
Reimplemented from blender::ui::Layout.
Definition at line 4540 of file interface_layout.cc.
References blender::ui::Layout::alignment(), uiStyle::buttonspacey, uiStyle::columnspace, blender::ui::Expand, blender::ui::Layout::h_, blender::ui::item_position(), blender::ui::Layout::items(), blender::min_ii(), blender::ui::Layout::root(), blender::ui::Layout::size(), blender::ui::LayoutRoot::style, totcol, w(), blender::ui::Layout::w_, blender::x, blender::ui::Layout::x_, y, and blender::ui::Layout::y_.
| int blender::ui::LayoutItemFlow::number = 0 |
Definition at line 251 of file interface_layout.cc.
Referenced by blender::ui::Layout::column_flow(), and estimate_impl().
| int blender::ui::LayoutItemFlow::totcol = 0 |
Definition at line 252 of file interface_layout.cc.
Referenced by estimate_impl(), and resolve_impl().