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

Runtime state for the NotCurses backend. More...

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

Collaboration diagram for UiRuntime:
[legend]

Data Fields

bool alt_screen
char border_style
uint cols
unsigned int cols
bool cursor_visible
uint lines
unsigned int lines
bool mouse_enabled
struct notcurses * nc
PANEL * panel_main
SCREEN * screen
FILE * tty_fp

Detailed Description

Runtime state for the NotCurses backend.

Runtime state for the NCurses UI backend.

Wraps the struct notcurses* context created by notcurses_init() and carries per-session configuration flags.

Holds all NCurses session resources so that multiple independent sessions can coexist and the codebase is not dependent on global variables. The legacy globals screen and tty_fp in dwin.c are updated by ui_init() / ui_shutdown() for backward compatibility with code that has not yet been migrated to the UAL API.

Definition at line 68 of file ui_notcurses_internal.h.

Field Documentation

◆ alt_screen

bool UiRuntime::alt_screen

Definition at line 71 of file ui_notcurses_internal.h.

Referenced by ui_init(), and ui_init().

◆ border_style

char UiRuntime::border_style

Definition at line 73 of file ui_notcurses_internal.h.

Referenced by ui_init(), and ui_init().

◆ cols [1/2]

uint UiRuntime::cols

Definition at line 56 of file ui_ncurses_internal.h.

◆ cols [2/2]

unsigned int UiRuntime::cols

Definition at line 75 of file ui_notcurses_internal.h.

Referenced by ui_get_screen_size(), ui_init(), and ui_init().

◆ cursor_visible

bool UiRuntime::cursor_visible

◆ lines [1/2]

uint UiRuntime::lines

Definition at line 55 of file ui_ncurses_internal.h.

◆ lines [2/2]

unsigned int UiRuntime::lines

Definition at line 74 of file ui_notcurses_internal.h.

Referenced by ui_get_screen_size(), ui_init(), and ui_init().

◆ mouse_enabled

bool UiRuntime::mouse_enabled

Definition at line 70 of file ui_notcurses_internal.h.

Referenced by ui_get_caps(), ui_init(), ui_init(), and ui_shutdown().

◆ nc

◆ panel_main

PANEL* UiRuntime::panel_main

Definition at line 57 of file ui_ncurses_internal.h.

◆ screen

SCREEN* UiRuntime::screen

NCurses SCREEN created by newterm()

Definition at line 49 of file ui_ncurses_internal.h.

◆ tty_fp

FILE * UiRuntime::tty_fp

TTY file handle opened by ui_init()

Definition at line 76 of file ui_notcurses_internal.h.

Referenced by ui_init(), ui_init(), and ui_shutdown().


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