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

Opaque structure representing the UI runtime environment. More...

#include </usr/local/src/C-Menu/src/ui/ui_ncurses_internal.h>

Collaboration diagram for UiRuntime:
[legend]

Data Fields

bool alt_screen
int cols
bool cursor_visible
bool mouse_enabled
int rows

Detailed Description

Opaque structure representing the UI runtime environment.

Runtime state for the ncurses UI backend. This structure holds global state related to the ncurses UI, such as whether mouse support is enabled, whether the alternate screen is active, and the current terminal dimensions.

The UiRuntime structure encapsulates the state and resources associated with the UI runtime. It is initialized using the ui_init function and should be properly shut down using ui_shutdown to release any allocated resources. The UiRuntime is responsible for managing the overall UI environment, including rendering, input handling, and surface management. It serves as the central context for all UI operations.

See also
ui_init
ui_shutdown

Definition at line 27 of file ui_ncurses_internal.h.

Field Documentation

◆ alt_screen

bool UiRuntime::alt_screen

Definition at line 29 of file ui_ncurses_internal.h.

Referenced by ui_init().

◆ cols

int UiRuntime::cols

Definition at line 32 of file ui_ncurses_internal.h.

Referenced by ui_get_screen_size(), and ui_init().

◆ cursor_visible

bool UiRuntime::cursor_visible

Definition at line 30 of file ui_ncurses_internal.h.

Referenced by ui_cursor_enable(), and ui_init().

◆ mouse_enabled

bool UiRuntime::mouse_enabled

Definition at line 28 of file ui_ncurses_internal.h.

Referenced by ui_init().

◆ rows

int UiRuntime::rows

Definition at line 31 of file ui_ncurses_internal.h.

Referenced by ui_get_screen_size(), and ui_init().


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