RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
Loading...
Searching...
No Matches
rmgui_layout_storage_t Struct Reference

Caller-owned, disjoint arrays, borrowed for the kernel's lifetime. More...

#include <layout.h>

Data Fields

rmgui_layout_entry_t * nodes
size_t node_capacity
uint32_t * id_index
uint32_t * changed
rmgui_layout_grid_t * grids
size_t grid_capacity
rmgui_scroll_t * scrolls
rmgui_layout_scroll_bind_t * scroll_binds
size_t scroll_capacity
rmgui_layout_overlay_t * overlays
rmgui_layout_overlay_bind_t * overlay_binds
size_t overlay_capacity
rmgui_layout_snapshot_t snapshots [2]
int * work
size_t work_capacity
char * text_scratch
size_t text_scratch_capacity
rmgui_rect_t * damage
size_t damage_capacity
rmgui_a11y_record_t * a11y_records [2]

Detailed Description

Caller-owned, disjoint arrays, borrowed for the kernel's lifetime.

Each snapshot needs node_capacity nodes and paint indices, and overlay_capacity overlay layers. id_index needs 2 * node_capacity slots; changed needs node_capacity slots for incremental snapshot publication. Capacities cannot exceed INT32_MAX; zero capacities permit NULL arrays. Work uses one slot per active measurement/arrangement frame, two slots per child in each active box, column_count + child_count per active grid, and three slots per active paint-order frame. Exhaustion refuses a pass without replacing the published snapshot; declaration depth must fit work. Text scratch must fit the longest remaining paragraph for fallback line breaking, or the longest text to be fitted with fallback ellipsis, plus the terminator. Damage capacity must be at least one; overflow publishes its union in damage[0] and sets damage_collapsed. No kernel operation allocates.

rmgui_layout_storage_t.a11y_records

Optional independent banks, each node_capacity records. NULL/NULL disables semantic attachment without changing other layout behavior. Arrays must be disjoint and outlive the kernel and its snapshots.

Field Documentation

◆ nodes

rmgui_layout_entry_t* rmgui_layout_storage_t::nodes

◆ node_capacity

size_t rmgui_layout_storage_t::node_capacity

◆ id_index

uint32_t* rmgui_layout_storage_t::id_index

◆ changed

uint32_t* rmgui_layout_storage_t::changed

◆ grids

rmgui_layout_grid_t* rmgui_layout_storage_t::grids

◆ grid_capacity

size_t rmgui_layout_storage_t::grid_capacity

◆ scrolls

rmgui_scroll_t* rmgui_layout_storage_t::scrolls

◆ scroll_binds

rmgui_layout_scroll_bind_t* rmgui_layout_storage_t::scroll_binds

◆ scroll_capacity

size_t rmgui_layout_storage_t::scroll_capacity

◆ overlays

rmgui_layout_overlay_t* rmgui_layout_storage_t::overlays

◆ overlay_binds

rmgui_layout_overlay_bind_t* rmgui_layout_storage_t::overlay_binds

◆ overlay_capacity

size_t rmgui_layout_storage_t::overlay_capacity

◆ snapshots

rmgui_layout_snapshot_t rmgui_layout_storage_t::snapshots[2]

◆ work

int* rmgui_layout_storage_t::work

◆ work_capacity

size_t rmgui_layout_storage_t::work_capacity

◆ text_scratch

char* rmgui_layout_storage_t::text_scratch

◆ text_scratch_capacity

size_t rmgui_layout_storage_t::text_scratch_capacity

◆ damage

rmgui_rect_t* rmgui_layout_storage_t::damage

◆ damage_capacity

size_t rmgui_layout_storage_t::damage_capacity

◆ a11y_records

rmgui_a11y_record_t* rmgui_layout_storage_t::a11y_records[2]

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