159 [[nodiscard]]
bool active()
const;
204 [[nodiscard]]
bool enabled()
const;
230 [[nodiscard]]
float scale_x()
const;
233 [[nodiscard]]
float scale_y()
const;
260 [[nodiscard]]
int width()
const;
318 bool row_major,
int columns_len,
bool even_columns,
bool even_rows,
bool align);
371 std::optional<StringRef>
label);
450 void menu(
MenuType *mt, std::optional<StringRef> name,
int icon);
455 void menu(
StringRef menuname, std::optional<StringRef> name,
int icon);
483 std::optional<StringRef> name,
512 std::optional<StringRef> name,
559 std::optional<StringRefNull> name,
581 std::optional<StringRef> name,
585 const char *menu_id);
601 std::optional<StringRef> name_opt,
603 std::optional<StringRef> placeholder = std::nullopt);
608 std::optional<StringRef> name,
614 std::optional<StringRef> name_opt,
618 bContext *
C,
int space_id,
int region_id,
const char *
context,
const char *category);
633 std::optional<StringRefNull> name,
642 std::optional<StringRefNull> name,
648 std::optional<StringRefNull> name,
676 std::optional<StringRefNull> name,
678 bool results_are_suggestions);
688 std::optional<StringRefNull> name,
698 std::optional<StringRefNull> name_opt = std::nullopt,
699 std::optional<StringRefNull> placeholder = std::nullopt,
700 const int initial_visible_lines = 3);
708 std::optional<StringRefNull> name_opt = std::nullopt,
709 std::optional<StringRefNull> placeholder = std::nullopt);
719 std::optional<StringRefNull> name,
721 const char *panel_type);
729 std::optional<blender::StringRefNull> name,
731 const char *menu_type);
740 std::optional<StringRefNull> name,
742 const char *menu_type);
747 std::function<
void(
bContext &)> func,
748 std::optional<StringRef> tooltip = std::nullopt);
764 [[nodiscard]]
bool align()
const;
983#define UI_ITEM_NONE ui::eUI_Item_Flag(0)
1075 const int dialog_width,
1077 const int icon_size);
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)
NodeAssetMenuOperatorType
bool block_apply_search_filter(Block *block, const char *search_filter)
void(*)(void *arg) FreeArgFunc
@ ITEM_R_TEXT_BUT_LABEL_STYLE
@ ITEM_R_SPLIT_EMPTY_NAME
@ ITEM_R_PATH_NO_OPEN_BUTTON
@ ITEM_R_FORCE_BLANK_DECORATE
@ 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)
uint padding(uint offset, uint alignment)
VecBase< int32_t, 2 > int2
Item(const Item &)=default
friend struct ItemInternal
void fixed_size_set(bool fixed_size)
float search_weight() const
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)
friend struct LayoutInternal
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
bool activate_init() const
wm::OpCallContext operator_context() const
Layout * child_items_layout_
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)
bool active_default() const
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)
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 variable_size() const
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)
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)