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

Caller-owned history ring, zero-initialized before attachment to one field. More...

#include <field.h>

Data Fields

rmgui_field_edit_t * records
char * bytes
size_t capacity
size_t stride
size_t first
size_t count
size_t applied
unsigned coalesce

Detailed Description

Caller-owned history ring, zero-initialized before attachment to one field.

records has capacity entries; bytes has capacity * stride bytes (the host checks that product). Each edit needs removed+inserted <= stride. Full rings overwrite the oldest record; oversized edits succeed but clear history. Adjacent typing and same-direction deletions coalesce until navigation, selection, composition, a command or focus change. Undo followed by a new edit discards redo. Host changes via adopt/bind clear the history.

Field Documentation

◆ records

rmgui_field_edit_t* rmgui_field_history_t::records

◆ bytes

char* rmgui_field_history_t::bytes

◆ capacity

size_t rmgui_field_history_t::capacity

◆ stride

size_t rmgui_field_history_t::stride

◆ first

size_t rmgui_field_history_t::first

◆ count

size_t rmgui_field_history_t::count

◆ applied

size_t rmgui_field_history_t::applied

◆ coalesce

unsigned rmgui_field_history_t::coalesce

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