|
C-Menu 0.2.9
A User Interface Toolkit
|
Internal header for the NCurses UI backend. More...
#include <ncursesw/ncurses.h>#include <ncursesw/panel.h>#include <stdbool.h>#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | RGB |
| union | UiChannels |
| struct | UiColorPair |
| struct | UiRuntime |
| Runtime state for the NotCurses backend. More... | |
| struct | UiStyle |
| struct | UiSurface |
| A drawable surface in the NotCurses backend. More... | |
| struct | UiSurfaceMeta |
Macros | |
| #define | _GNU_SOURCE |
| #define | _XOPEN_SOURCE_EXTENDED 1 |
| #define | KEY_F01 KEY_F(1) |
| #define | KEY_F02 KEY_F(2) |
| #define | KEY_F03 KEY_F(3) |
| #define | KEY_F04 KEY_F(4) |
| #define | KEY_F05 KEY_F(5) |
| #define | KEY_F06 KEY_F(6) |
| #define | KEY_F07 KEY_F(7) |
| #define | KEY_F08 KEY_F(8) |
| #define | KEY_F09 KEY_F(9) |
| #define | KEY_F10 KEY_F(10) |
| #define | KEY_F11 KEY_F(11) |
| #define | KEY_F12 KEY_F(12) |
| #define | MAXLEN 256 |
| #define | MAXSFC 30 |
| #define | NCURSES_WIDECHAR 1 |
| #define | SFC_MAX 30 |
| #define | UI_ALTCHARSET WA_ALTCHARSET |
| #define | UI_BLINK WA_BLINK |
| #define | UI_BOLD WA_BOLD |
| #define | UI_DIM WA_DIM |
| #define | UI_INVIS WA_INVIS |
| #define | UI_ITALIC WA_ITALIC |
| #define | UI_MASK WA_ATTRIBUTES |
| #define | UI_NONE WA_NORMAL |
| #define | UI_NORMAL WA_NORMAL |
| #define | UI_PROTECT WA_PROTECT |
| #define | UI_REVERSE WA_REVERSE |
| #define | UI_STANDOUT WA_STANDOUT |
| #define | UI_STRUCK WA_INVIS |
| #define | UI_UNDERCURL WA_DIM |
| #define | UI_UNDERLINE WA_UNDERLINE |
| #define | XLEN 128 |
Typedefs | |
| typedef cchar_t | UiCell |
Enumerations | |
| enum | { BOX , WIN , WIN2 , LNNO , CMDLN , PAD , WIN3 , SUB_SFC_MAX } |
Functions | |
| int | ui_mvwadd_cell (struct UiSurface *s, uint w, uint y, uint x, UiCell *cc) |
| int | ui_mvwadd_cellnstr (struct UiSurface *s, uint w, uint y, uint x, UiCell *cmplx_buf, uint n) |
| int | ui_mvwadd_cellstr (struct UiSurface *s, uint w, uint y, uint x, UiCell *cmplx_buf) |
| int | ui_ncurses_color_pair_from_style (const struct UiStyle *style) |
| int | ui_ncurses_style_apply (struct UiSurface *s, uint w, const struct UiStyle *style) |
| int | ui_pair_from_hex (const char *fg, const char *bg) |
| struct UiStyle * | ui_style_copy (const struct UiStyle *src) |
| void | ui_style_destroy (struct UiStyle *) |
| struct UiStyle * | ui_style_from_cch (const UiCell *) |
| struct UiStyle * | ui_style_new (void) |
| UiCell | ui_style_to_cch (const struct UiStyle *) |
| int | ui_wadd_cell (struct UiSurface *s, uint w, UiCell *cc) |
| int | ui_wadd_cellnstr (struct UiSurface *s, uint w, UiCell *cmplx_buf, uint n) |
| int | ui_wadd_cellstr (struct UiSurface *s, uint w, UiCell *cmplx_buf) |
Variables | |
| struct UiSurface * | stdsfc |
Internal header for the NCurses UI backend.
This header defines the concrete (non-opaque) layouts of UiRuntime and UiSurface for the NCurses backend. It must only be included by NCurses backend source files — never by application code.
Definition in file ui_ncurses_internal.h.
| #define _GNU_SOURCE |
Definition at line 14 of file ui_ncurses_internal.h.
| #define _XOPEN_SOURCE_EXTENDED 1 |
Definition at line 13 of file ui_ncurses_internal.h.
| #define KEY_F01 KEY_F(1) |
Definition at line 25 of file ui_ncurses_internal.h.
| #define KEY_F02 KEY_F(2) |
Definition at line 26 of file ui_ncurses_internal.h.
| #define KEY_F03 KEY_F(3) |
Definition at line 27 of file ui_ncurses_internal.h.
| #define KEY_F04 KEY_F(4) |
Definition at line 28 of file ui_ncurses_internal.h.
| #define KEY_F05 KEY_F(5) |
Definition at line 29 of file ui_ncurses_internal.h.
| #define KEY_F06 KEY_F(6) |
Definition at line 30 of file ui_ncurses_internal.h.
| #define KEY_F07 KEY_F(7) |
Definition at line 31 of file ui_ncurses_internal.h.
| #define KEY_F08 KEY_F(8) |
Definition at line 32 of file ui_ncurses_internal.h.
| #define KEY_F09 KEY_F(9) |
Definition at line 33 of file ui_ncurses_internal.h.
| #define KEY_F10 KEY_F(10) |
Definition at line 34 of file ui_ncurses_internal.h.
| #define KEY_F11 KEY_F(11) |
Definition at line 35 of file ui_ncurses_internal.h.
| #define KEY_F12 KEY_F(12) |
Definition at line 36 of file ui_ncurses_internal.h.
| #define MAXLEN 256 |
Definition at line 22 of file ui_ncurses_internal.h.
| #define MAXSFC 30 |
Definition at line 23 of file ui_ncurses_internal.h.
| #define NCURSES_WIDECHAR 1 |
Definition at line 15 of file ui_ncurses_internal.h.
| #define SFC_MAX 30 |
Definition at line 60 of file ui_ncurses_internal.h.
| #define UI_ALTCHARSET WA_ALTCHARSET |
Definition at line 161 of file ui_ncurses_internal.h.
| #define UI_BLINK WA_BLINK |
Definition at line 158 of file ui_ncurses_internal.h.
| #define UI_BOLD WA_BOLD |
Definition at line 160 of file ui_ncurses_internal.h.
| #define UI_DIM WA_DIM |
Definition at line 159 of file ui_ncurses_internal.h.
| #define UI_INVIS WA_INVIS |
Definition at line 162 of file ui_ncurses_internal.h.
| #define UI_ITALIC WA_ITALIC |
Definition at line 167 of file ui_ncurses_internal.h.
| #define UI_MASK WA_ATTRIBUTES |
Definition at line 153 of file ui_ncurses_internal.h.
| #define UI_NONE WA_NORMAL |
Definition at line 166 of file ui_ncurses_internal.h.
| #define UI_NORMAL WA_NORMAL |
Definition at line 154 of file ui_ncurses_internal.h.
| #define UI_PROTECT WA_PROTECT |
Definition at line 163 of file ui_ncurses_internal.h.
| #define UI_REVERSE WA_REVERSE |
Definition at line 157 of file ui_ncurses_internal.h.
| #define UI_STANDOUT WA_STANDOUT |
Definition at line 155 of file ui_ncurses_internal.h.
| #define UI_STRUCK WA_INVIS |
Definition at line 165 of file ui_ncurses_internal.h.
| #define UI_UNDERCURL WA_DIM |
Definition at line 164 of file ui_ncurses_internal.h.
| #define UI_UNDERLINE WA_UNDERLINE |
Definition at line 156 of file ui_ncurses_internal.h.
| #define XLEN 128 |
Definition at line 21 of file ui_ncurses_internal.h.
| typedef cchar_t UiCell |
Definition at line 213 of file ui_ncurses_internal.h.
| anonymous enum |
| Enumerator | |
|---|---|
| BOX | |
| WIN | |
| WIN2 | |
| LNNO | |
| CMDLN | |
| PAD | |
| WIN3 | |
| SUB_SFC_MAX | |
Definition at line 62 of file ui_ncurses_internal.h.
| int ui_ncurses_color_pair_from_style | ( | const struct UiStyle * | style | ) |
| int ui_pair_from_hex | ( | const char * | fg, |
| const char * | bg ) |
Definition at line 230 of file ui_ncurses.c.
References ui_add_color_rgb(), and ui_add_pair().
| void ui_style_destroy | ( | struct UiStyle * | ) |
| struct UiStyle * ui_style_new | ( | void | ) |
|
extern |
Definition at line 36 of file ui_ncurses.c.