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

Borrows the model and labels: they must remain live while the menu is used. More...

#include <context_menu.h>

Data Fields

const rmgui_context_menu_item_t * items
size_t count
size_t hover
size_t pressed
size_t focus
uint8_t states

Detailed Description

Borrows the model and labels: they must remain live while the menu is used.

The caller may change item flags between events (through its mutable array). hover, pressed and focus are model indices, or RMGUI_CONTEXT_MENU_NONE. Input owns FOCUSED in states; the host owns DISABLED.

Field Documentation

◆ items

const rmgui_context_menu_item_t* rmgui_context_menu_t::items

◆ count

size_t rmgui_context_menu_t::count

◆ hover

size_t rmgui_context_menu_t::hover

◆ pressed

size_t rmgui_context_menu_t::pressed

◆ focus

size_t rmgui_context_menu_t::focus

◆ states

uint8_t rmgui_context_menu_t::states

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