Blender V5.3
blender::ui::LayoutInternal Struct Reference

Static Public Member Functions

Layout Items
static void init_from_parent (Layout *item, Layout *layout, int align)
static void layout_estimate (Layout *layout)
static void layout_resolve (Layout *layout)
Layout
static void layout_add_but (Layout *layout, Button *but)
static void layout_remove_but (Layout *layout, const Button *but)
static ButtonItem * layout_find_button_item (const Layout *layout, const Button *but)
Button Items
static Layout * item_prop_split_layout_hack (Layout *layout_parent, Layout *layout_split)
Item
static void layout_offset_size_set (Layout *layout, int x, int y, int w, int h)
static void layout_move (Layout *layout, int delta_xmin, int delta_xmax)
static void layout_translate_y (Layout *layout, int delta)
static void layout_space_set (Layout *layout, int space)
static int layout_space_get (Layout *layout)

Detailed Description

Helper internal struct to provide Layout private/protected access.

Definition at line 178 of file interface_layout.cc.

Member Function Documentation

◆ init_from_parent()

◆ item_prop_split_layout_hack()

Layout * blender::ui::LayoutInternal::item_prop_split_layout_hack ( Layout * layout_parent,
Layout * 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.

Returns
The layout to place further items in for the split layout.

Definition at line 1966 of file interface_layout.cc.

References blender::ui::Layout::child_items_layout_, blender::ui::ItemInternal::inside_property_split_set(), blender::ui::LayoutRow, blender::ui::Layout::row(), blender::ui::Item::type(), and blender::ui::Layout::use_property_split_set().

Referenced by blender::ui::Layout::prop(), and blender::ui::uiItemPropertySplitWrapperCreate().

◆ layout_add_but()

◆ layout_estimate()

void blender::ui::LayoutInternal::layout_estimate ( Layout * layout)
static

Definition at line 3903 of file interface_layout.cc.

References blender::ui::Layout::estimate().

Referenced by blender::ui::layout_end().

◆ layout_find_button_item()

ButtonItem * blender::ui::LayoutInternal::layout_find_button_item ( const Layout * layout,
const Button * but )
static

◆ layout_move()

void blender::ui::LayoutInternal::layout_move ( Layout * layout,
int delta_xmin,
int delta_xmax )
static

Definition at line 575 of file interface_layout.cc.

References blender::ui::Layout::w_, and blender::ui::Layout::x_.

Referenced by blender::ui::item_move().

◆ layout_offset_size_set()

void blender::ui::LayoutInternal::layout_offset_size_set ( Layout * layout,
int x,
int y,
int w,
int h )
static

◆ layout_remove_but()

◆ layout_resolve()

void blender::ui::LayoutInternal::layout_resolve ( Layout * layout)
static

◆ layout_space_get()

int blender::ui::LayoutInternal::layout_space_get ( Layout * layout)
static

◆ layout_space_set()

void blender::ui::LayoutInternal::layout_space_set ( Layout * layout,
int space )
static

◆ layout_translate_y()

void blender::ui::LayoutInternal::layout_translate_y ( Layout * layout,
int delta )
static

Definition at line 535 of file interface_layout.cc.

References blender::ui::Layout::y_.

Referenced by blender::ui::item_translate_y().


The documentation for this struct was generated from the following file: