Expand description
Simple layout helpers for positioning widgets.
Structs§
- Grid
Layout - Grid-based layout for a plugin UI.
- Grid
Widget - A widget placed in a grid layout.
- Header
Titles - Title band drawn above a layout. The
titleslot renders larger / brighter on the left of the band; thesubtitleslot renders smaller / dimmer on the right. Each slot is independently optional - set either, both, or neither. - KnobDef
- A widget definition for the layout - either explicit type or auto-detected.
- KnobRow
- A row of widgets with an optional section label.
- Plugin
Layout - Layout configuration for a plugin UI.
- Section
- A group of widgets with an optional section label.
Enums§
- Layout
- Layout variant for editor dispatch.
- Widget
Kind - Explicit widget type for layout overrides.
Constants§
- AUTO
- Sentinel value for auto-placed grid widgets.
- DROPDOWN_
BOX_ HEIGHT - Pixel height of the dropdown button box (the closed state - clicking
this opens the popup). Both
widgets::draw_dropdown(paint side) andinteraction::open_dropdown(popup-anchor math) need to agree. - GRID_
DEFAULT_ CELL_ SIZE - Default cell size in logical points when
GridLayout::buildis called without.with_cell_size(...). Matches the scaffolded plugin’s pre-refactor value so untouched scaffolds render the same as before. - GRID_
GAP - GRID_
HEADER_ H - GRID_
PADDING - GRID_
SECTION_ H - HEADER_
HEIGHT - Pixel height of the title-bar header
widgets::draw_headerpaints at the top of the editor. - ROWS_
COLUMN_ GAP - Horizontal gap between adjacent widgets in a row. The full pitch
between widget origins is
knob_size + ROWS_COLUMN_GAP. - ROWS_
LAYOUT_ TOP - Y-offset of the first row below the header. The 4-pixel gap between
HEADER_HEIGHTandROWS_LAYOUT_TOPis the breathing room between the title bar and the first row of widgets. - ROWS_
ROW_ GAP - Vertical gap below a row. The full pitch between row origins is
knob_size + ROWS_ROW_GAP. - ROWS_
SECTION_ LABEL_ HEIGHT - Vertical pixels reserved for a section label (
Row::label) drawn above its row.
Functions§
- compute_
section_ offsets - Compute cumulative section-label pixel offsets per row.
- dropdown
- Dropdown list widget.
- knob
- Rotary knob widget.
- meter
- Level meter widget.
- section
- Create a labeled section of widgets for
GridLayout::build(). - selector
- Click-to-cycle selector widget.
- slider
- Horizontal slider widget.
- toggle
- Toggle switch widget.
- widgets
- Wrap bare widgets into an unlabeled section (no section header).
- xy_pad
- XY pad controlling two parameters.