C-Menu 0.2.9
A User Interface Toolkit
Loading...
Searching...
No Matches
UiCaps Struct Reference

Capability flags reported by the active UI backend. More...

#include <ui_backend.h>

Collaboration diagram for UiCaps:
[legend]

Data Fields

int color_pairs
bool mouse
bool palette256
bool resize
bool truecolor
bool unicode

Detailed Description

Capability flags reported by the active UI backend.

Query via ui_get_caps() after ui_init() succeeds. Differences between backends are made explicit through these flags so application code can adapt rather than assume.

See also
ui_get_caps

Definition at line 168 of file ui_backend.h.

Field Documentation

◆ color_pairs

int UiCaps::color_pairs

max simultaneous color pairs; 0 = unlimited

Definition at line 174 of file ui_backend.h.

Referenced by ui_get_caps().

◆ mouse

bool UiCaps::mouse

backend can deliver mouse events

Definition at line 171 of file ui_backend.h.

Referenced by ui_get_caps().

◆ palette256

bool UiCaps::palette256

backend supports at least 256 palette entries

Definition at line 170 of file ui_backend.h.

Referenced by ui_get_caps().

◆ resize

bool UiCaps::resize

backend emits UI_KEY_RESIZE on terminal resize

Definition at line 173 of file ui_backend.h.

Referenced by ui_get_caps().

◆ truecolor

bool UiCaps::truecolor

backend can display 24-bit RGB colors

Definition at line 169 of file ui_backend.h.

Referenced by ui_get_caps().

◆ unicode

bool UiCaps::unicode

backend handles full Unicode / UTF-8 correctly

Definition at line 172 of file ui_backend.h.

Referenced by ui_get_caps().


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