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

Retained group state, built by rmgui_choice_init. More...

#include <choice.h>

Data Fields

uint8_t kind
size_t count
uint8_t * selected
size_t hover
size_t pressed
size_t focus
uint8_t states

Detailed Description

Retained group state, built by rmgui_choice_init.

kind rmgui_choice_kind_t. count options, 1..INT_MAX (input result index ceiling). selected caller-owned bytes: 1 selects an option; RADIO keeps exactly one. hover option under the pointer, or RMGUI_CHOICE_NONE (input-owned). pressed option a held press began on, or RMGUI_CHOICE_NONE (input-owned). focus option keyboard input acts on, < count (input-owned). states group FOCUSED (input-owned) and DISABLED (host-owned).

Field Documentation

◆ kind

uint8_t rmgui_choice_t::kind

◆ count

size_t rmgui_choice_t::count

◆ selected

uint8_t* rmgui_choice_t::selected

◆ hover

size_t rmgui_choice_t::hover

◆ pressed

size_t rmgui_choice_t::pressed

◆ focus

size_t rmgui_choice_t::focus

◆ states

uint8_t rmgui_choice_t::states

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