|
C-Menu 0.2.9
A User Interface Toolkit
|
NotCurses UI backend — lifecycle, surface management, and capabilities. More...
#include "common.h"#include "cm.h"#include "ui_backend.h"#include "ui_notcurses_compat.h"#include "ui_notcurses_internal.h"#include <errno.h>#include <inttypes.h>#include <locale.h>#include <stdint.h>#include <stdlib.h>#include <string.h>#include <unistd.h>Go to the source code of this file.
Macros | |
| #define | _XOPEN_SOURCE_EXTENDED 1 |
Functions | |
| int | ui_add_color_rgb (RGB *rgb) |
| uint | ui_add_pair (uint fg, uint bg) |
| int | ui_bkgd (UiSurface *s, uint w, const UiCell *cell) |
| int | ui_bkgdset (UiSurface *s, uint w, const UiCell *cell) |
| int | ui_bkgrnd (UiSurface *s, uint w, const UiCell *cell) |
| int | ui_bkgrndset (UiSurface *s, uint w, const UiCell *cell) |
| UiSurface * | ui_box_surface_new (UiSurface *parent, uint p, uint lines, uint cols, uint y, uint x, char *wtitle) |
| UiCell | ui_cell_from_ucp (const wchar_t *ucp, const uint32_t *fg, const uint32_t *bg) |
| int | ui_chg_color (uint16_t color_idx, uint32_t *color) |
| int | ui_clear () |
| int | ui_color_content (uint16_t color, uint8_t *r, uint8_t *g, uint8_t *b) |
| int | ui_curs_set (int visible) |
| int | ui_cursor_enable (UiSurface *s, uint w, bool visible) |
| Disable (visible = false) or enable (visibile = true) the cursor at its current position on the surface and plane specified. | |
| int | ui_cursor_enable_yx (UiSurface *s, uint w, uint y, uint x, bool visible) |
| Disable (visible = false) or enable (visibile = true) the cursor at a specified position on the surface and plane specified. Include workaround for NotCurses cursor position bug. | |
| int | ui_cursor_move (UiSurface *s, uint w, uint y, uint x) |
| void | ui_endwin () |
| int | ui_erase () |
| UiBackend | ui_get_backend () |
| Return which backend is powering this runtime. | |
| void | ui_get_caps (UiCaps *caps) |
| Query the capabilities of the active backend. | |
| uint64_t | ui_get_channels_from_pair (uint16_t pair) |
| int | ui_get_pair (uint16_t pair, uint *fg, uint *bg) |
| void | ui_get_screen_size (uint *lines, uint *cols) |
| int | ui_getcchar (const UiCell *uic, wchar_t *wc, UiStyle *style, UiPairIdx *pair, const void *opts) |
| uint | ui_getmaxx (UiSurface *s, uint w) |
| uint | ui_getmaxy (UiSurface *s, uint w) |
| void | ui_getmaxyx (UiSurface *s, uint w, uint *y, uint *x) |
| void | ui_getyx (UiSurface *s, uint w, uint *y, uint *x) |
| RGB | ui_hex_to_rgb (char *s) |
| int | ui_idcok (UiSurface *s, uint w, bool enable) |
| int | ui_idlok (UiSurface *s, uint w, bool enable) |
| UiRuntime * | ui_init (const UiConfig *cfg) |
| int | ui_init_color (uint16_t color, uint8_t r, uint8_t g, uint8_t b) |
| uint | ui_init_color_hex (char *s) |
| int | ui_init_pair (uint16_t pair, uint fg, uint bg) |
| int | ui_keypad (UiSurface *s, uint w, bool enable) |
| int | ui_mice_enable (int mask) |
| int | ui_mousemask (int mask) |
| struct notcurses * | ui_notcurses_get_nc () |
Return the raw struct notcurses* for the NotCurses session. | |
| NcPlane * | ui_notcurses_surface_get_plane (const UiSurface *s, uint w) |
Return the raw struct ncplane* underlying a surface. | |
| int | ui_pair_content (uint16_t pair, uint *fg, uint *bg) |
| void | ui_render () |
| int | ui_resume () |
| int | ui_scrollok (UiSurface *s, uint w, bool enable) |
| int | ui_setcchar (UiCell *cell, const wchar_t *wstr, const uint16_t style, ushort pair, const void *opts) |
| int | ui_setscrreg (UiSurface *s, uint w, uint top, uint bottom) |
| void | ui_shutdown () |
| int | ui_surface_addpad (UiSurface *s, uint w, uint p, uint lines, uint cols) |
| int | ui_surface_addwin (UiSurface *s, uint w, uint p, uint lines, uint cols, uint y, uint x) |
| void | ui_surface_destroy (UiSurface *s) |
| int | ui_surface_hide (UiSurface *s, uint w) |
| int | ui_surface_move (UiSurface *s, uint w, uint y, uint x) |
| UiSurface * | ui_surface_new (uint w, UiSurface *parent, uint p, uint lines, uint cols, uint y, uint x) |
| int | ui_surface_resize (UiSurface *s, uint w, uint lines, uint cols) |
| int | ui_surface_show (UiSurface *s, uint w) |
| int | ui_suspend () |
| int | ui_top_panel (UiSurface *s, uint w) |
| void | ui_update_panels () |
| int | ui_wclear (UiSurface *s, uint w) |
| int | ui_werase (UiSurface *s, uint w) |
| int | ui_wmove (UiSurface *s, uint w, uint y, uint x) |
| int | ui_wnoutrefresh (UiSurface *s, uint w) |
| int | ui_wscrl (UiSurface *s, uint w, int r) |
Variables | |
| UiCell | bkgd_cell |
| wchar_t * | border_double = L"═║╠╣╦╩╬╔╗╚╝" |
| wchar_t * | border_heavy = L"━┃┣┫┳┻╋┏┓┗┛" |
| wchar_t * | border_none = L" " |
| wchar_t * | border_rounded = L"─│├┤┬┴┼╭╮╰╯" |
| wchar_t * | border_single = L"─│├┤┬┴┼┌┐└┘" |
| BorderWide | bw |
| const wchar_t * | bw_chk = L"\x2611" |
| const wchar_t * | bw_da = L"\x2193" |
| const wchar_t * | bw_h09 = L"\x23BD" |
| const wchar_t * | bw_la = L"\x2190" |
| const wchar_t * | bw_lan = L"\x276E" |
| const wchar_t * | bw_ra = L"\x2192" |
| const wchar_t * | bw_ran = L"\x276F" |
| const wchar_t * | bw_rbl = L"\x2570" |
| const wchar_t * | bw_rbr = L"\x256f" |
| const wchar_t * | bw_rtl = L"\x256d" |
| const wchar_t * | bw_rtr = L"\x256e" |
| const wchar_t * | bw_sp = L"\x20" |
| const wchar_t * | bw_ua = L"\x2191" |
| uint | COLS |
| uint | LINES |
| int | sfc_ptr = -1 |
| STDRGB | std_color [] = {{0, 0, 0}, {128, 0, 0}, {0, 128, 0}, {128, 128, 0}, {0, 0, 128}, {128, 0, 128}, {0, 128, 128}, {192, 192, 192}, {128, 128, 128}, {255, 0, 0}, {0, 255, 0}, {255, 255, 0}, {0, 0, 255}, {255, 0, 255}, {0, 255, 255}, {255, 255, 255}} |
| NcPlane * | stdplane |
| UiSurface * | stdsfc |
| UiRuntime * | ui = NULL |
| UiColor * | ui_color |
| uint | ui_color_cnt = 0 |
| UiConfig * | ui_config |
| UiPair * | ui_pair |
| uint | ui_pair_cnt = 0 |
| UiSurface * | ui_surface [UI_SFC_MAX] |
| int | win_ptr = -1 |
NotCurses UI backend — lifecycle, surface management, and capabilities.
Implements all UiRuntime and UiSurface operations declared in ui_backend.h using the NotCurses library.
Definition in file ui_notcurses.c.
| #define _XOPEN_SOURCE_EXTENDED 1 |
Definition at line 10 of file ui_notcurses.c.
| int ui_add_color_rgb | ( | RGB * | rgb | ) |
Definition at line 726 of file ui_notcurses.c.
References apply_gamma(), STDRGB::b, STDRGB::g, STDRGB::r, std_color, ui_color_cnt, ui_color_content(), and ui_init_color().
Referenced by parse_ansi(), parse_ansi_str(), ui_cell_from_ucp(), ui_getcchar(), and ui_pair_from_hex().
| uint ui_add_pair | ( | uint | fg, |
| uint | bg ) |
Definition at line 749 of file ui_notcurses.c.
References UiPair::bg, display_error(), em0, em1, em2, UiPair::fg, ssnprintf(), ui_pair, ui_pair_cnt, and ui_pair_content().
Definition at line 882 of file ui_notcurses.c.
References cell_box, nccell::channels, and nccell::stylemask.
Referenced by init_view_boxwin(), init_view_full_screen(), ui_surface_addpad(), and ui_surface_addwin().
Definition at line 892 of file ui_notcurses.c.
References bkgd_cell, nccell::channels, and nccell::stylemask.
Referenced by border_title(), border_ysplit_text(), display_pick_page(), display_prompt(), get_cmd_arg(), init_view_boxwin(), menu_cmd_processor(), menu_engine(), popup_ckeys(), reverse_object(), ui_surface_addpad(), ui_surface_addwin(), and unreverse_object().
Definition at line 900 of file ui_notcurses.c.
References nccell::channels, and nccell::stylemask.
Definition at line 910 of file ui_notcurses.c.
References nccell::channels, and nccell::stylemask.
| UiSurface * ui_box_surface_new | ( | UiSurface * | parent, |
| uint | p, | ||
| uint | lines, | ||
| uint | cols, | ||
| uint | y, | ||
| uint | x, | ||
| char * | wtitle ) |
Definition at line 271 of file ui_notcurses.c.
References border_draw(), border_title(), BOX, cell_box, nccell::channels, UiSurfaceMeta::cols, UiSurfaceMeta::hidden, UiSurfaceMeta::lines, UiSurface::meta, UiSurfaceMeta::name, UiRuntime::nc, UiSurface::parent, UiSurface::runtime, stdplane, strnz__cpy(), ui, ui_scrollok(), UiSurfaceMeta::x, and UiSurfaceMeta::y.
Referenced by init_view_boxwin(), surface_box_win_new(), and surface_split_box_win_new().
| UiCell ui_cell_from_ucp | ( | const wchar_t * | ucp, |
| const uint32_t * | fg, | ||
| const uint32_t * | bg ) |
Definition at line 705 of file ui_notcurses.c.
References nccell::channels, nccell::gcluster, ui_add_color_rgb(), ui_add_pair(), and nccell::width.
Referenced by initialize_cells().
| int ui_chg_color | ( | uint16_t | color_idx, |
| uint32_t * | color ) |
Definition at line 862 of file ui_notcurses.c.
References apply_gamma(), STDRGB::b, RGB::color, STDRGB::g, STDRGB::r, std_color, and ui_color.
Referenced by init_clr_palette().
| int ui_clear | ( | ) |
Definition at line 552 of file ui_notcurses.c.
References stdplane.
| int ui_color_content | ( | uint16_t | color, |
| uint8_t * | r, | ||
| uint8_t * | g, | ||
| uint8_t * | b ) |
| int ui_curs_set | ( | int | visible | ) |
Definition at line 473 of file ui_notcurses.c.
References UiRuntime::cursor_visible, UiRuntime::nc, and ui.
Referenced by answer_yn(), cf_accept(), field_editor(), fork_exec(), get_cmd_arg(), picker(), and surface_split_box_win_new().
| int ui_cursor_enable | ( | UiSurface * | s, |
| uint | w, | ||
| bool | visible ) |
Disable (visible = false) or enable (visibile = true) the cursor at its current position on the surface and plane specified.
Definition at line 512 of file ui_notcurses.c.
References UiRuntime::cursor_visible, UiRuntime::nc, and ui.
| int ui_cursor_enable_yx | ( | UiSurface * | s, |
| uint | w, | ||
| uint | y, | ||
| uint | x, | ||
| bool | visible ) |
Disable (visible = false) or enable (visibile = true) the cursor at a specified position on the surface and plane specified. Include workaround for NotCurses cursor position bug.
Definition at line 492 of file ui_notcurses.c.
References UiRuntime::cursor_visible, UiRuntime::nc, and ui.
Referenced by get_cmd_char().
| int ui_cursor_move | ( | UiSurface * | s, |
| uint | w, | ||
| uint | y, | ||
| uint | x ) |
Definition at line 605 of file ui_notcurses.c.
Referenced by cf_accept(), display_line(), display_line_eod(), display_prompt(), display_split_line(), field_editor(), form_post(), form_process(), get_cmd_arg(), get_cmd_char(), notcurses_input(), picker(), remove_right_angle(), scroll_down(), scroll_up(), search(), unreverse_object(), and view_display_page().
| void ui_endwin | ( | ) |
Definition at line 210 of file ui_notcurses.c.
References ui_shutdown().
Referenced by exec_objects(), fork_exec(), and form_exec_receiver().
| int ui_erase | ( | ) |
Definition at line 558 of file ui_notcurses.c.
References stdplane.
Referenced by view_full_screen_resize().
| UiBackend ui_get_backend | ( | ) |
Return which backend is powering this runtime.
Definition at line 71 of file ui_notcurses.c.
References UI_BACKEND_NCURSES, and UI_BACKEND_NOTCURSES.
| void ui_get_caps | ( | UiCaps * | caps | ) |
Query the capabilities of the active backend.
| ui | The UiRuntime returned by ui_init(). |
| caps | Output structure filled with capability flags. |
Definition at line 75 of file ui_notcurses.c.
References UiCaps::color_pairs, UiCaps::mouse, UiRuntime::mouse_enabled, UiCaps::palette256, UiCaps::resize, UiCaps::truecolor, ui, and UiCaps::unicode.
| uint64_t ui_get_channels_from_pair | ( | uint16_t | pair | ) |
Definition at line 776 of file ui_notcurses.c.
References UiPair::bg, UiChannels::fb, ui_color, ui_color_content(), ui_get_pair(), and ui_pair.
| int ui_get_pair | ( | uint16_t | pair, |
| uint * | fg, | ||
| uint * | bg ) |
Definition at line 770 of file ui_notcurses.c.
References UiPair::bg, UiPair::fg, and ui_pair.
Referenced by ui_get_channels_from_pair(), and ui_setcchar().
| void ui_get_screen_size | ( | uint * | lines, |
| uint * | cols ) |
Definition at line 434 of file ui_notcurses.c.
References UiRuntime::cols, UiRuntime::lines, UiRuntime::nc, and ui.
Referenced by action_disposition(), answer_yn(), display_error(), Perror(), pick_engine(), popup_ckeys(), surface_box_win_new(), surface_split_box_win_new(), view_calc_boxwin_dimensions(), view_calc_full_screen_dimensions(), and view_cmd_processor().
| int ui_getcchar | ( | const UiCell * | uic, |
| wchar_t * | wc, | ||
| UiStyle * | style, | ||
| UiPairIdx * | pair, | ||
| const void * | opts ) |
Definition at line 659 of file ui_notcurses.c.
References nccell::channels, UiChannels::fb, nccell::gcluster, nccell::stylemask, GCluster::u16, GCluster::u32, ui_add_color_rgb(), and ui_add_pair().
| uint ui_getmaxx | ( | UiSurface * | s, |
| uint | w ) |
Definition at line 629 of file ui_notcurses.c.
| uint ui_getmaxy | ( | UiSurface * | s, |
| uint | w ) |
Definition at line 622 of file ui_notcurses.c.
| void ui_getmaxyx | ( | UiSurface * | s, |
| uint | w, | ||
| uint * | y, | ||
| uint * | x ) |
Definition at line 617 of file ui_notcurses.c.
Referenced by field_editor(), form_post(), form_process(), and picker().
| void ui_getyx | ( | UiSurface * | s, |
| uint | w, | ||
| uint * | y, | ||
| uint * | x ) |
Definition at line 612 of file ui_notcurses.c.
Referenced by display_prompt(), and get_cmd_char().
| RGB ui_hex_to_rgb | ( | char * | s | ) |
Definition at line 822 of file ui_notcurses.c.
Referenced by ui_init_color_hex().
| int ui_idcok | ( | UiSurface * | s, |
| uint | w, | ||
| bool | enable ) |
Definition at line 387 of file ui_notcurses.c.
Referenced by init_view_boxwin(), and init_view_full_screen().
| int ui_idlok | ( | UiSurface * | s, |
| uint | w, | ||
| bool | enable ) |
Definition at line 393 of file ui_notcurses.c.
Referenced by init_view_boxwin(), and init_view_full_screen().
Definition at line 92 of file ui_notcurses.c.
References UiRuntime::alt_screen, border_double, border_heavy, border_none, border_rounded, border_single, UiConfig::border_style, UiRuntime::border_style, BOX, bw, COLS, UiRuntime::cols, UiSurfaceMeta::cols, UiConfig::cursor_visible, UiRuntime::cursor_visible, UiConfig::enable_alt_screen, UiConfig::enable_mouse, f_curses_open, UiSurfaceMeta::hidden, LINES, UiRuntime::lines, UiSurfaceMeta::lines, UiSurface::meta, UiRuntime::mouse_enabled, UiRuntime::nc, UiSurface::parent, Perror(), UiSurface::runtime, sfc_ptr, stdplane, stdsfc, border_wide::str, SUB_SFC_MAX, UiRuntime::tty_fp, UiConfig::tty_path, ui, ui_color, ui_color_cnt, ui_pair, ui_pair_cnt, ui_shutdown(), UiSurfaceMeta::x, and UiSurfaceMeta::y.
Referenced by main().
| int ui_init_color | ( | uint16_t | color, |
| uint8_t | r, | ||
| uint8_t | g, | ||
| uint8_t | b ) |
| uint ui_init_color_hex | ( | char * | s | ) |
Definition at line 797 of file ui_notcurses.c.
References apply_gamma(), STDRGB::b, STDRGB::g, STDRGB::r, std_color, ui_color, ui_color_cnt, and ui_hex_to_rgb().
| int ui_init_pair | ( | uint16_t | pair, |
| uint | fg, | ||
| uint | bg ) |
Definition at line 854 of file ui_notcurses.c.
References UiPair::bg, UiPair::fg, and ui_pair.
| int ui_keypad | ( | UiSurface * | s, |
| uint | w, | ||
| bool | enable ) |
Definition at line 406 of file ui_notcurses.c.
Referenced by fork_exec(), init_view_boxwin(), init_view_full_screen(), menu_cmd_processor(), open_pick_win(), picker(), and popup_ckeys().
| int ui_mice_enable | ( | int | mask | ) |
Definition at line 426 of file ui_notcurses.c.
References UiRuntime::nc, and ui.
Referenced by menu_cmd_processor(), and picker().
| int ui_mousemask | ( | int | mask | ) |
Definition at line 416 of file ui_notcurses.c.
References UiRuntime::nc, and ui.
| struct notcurses * ui_notcurses_get_nc | ( | ) |
Return the raw struct notcurses* for the NotCurses session.
ui is NULL. Definition at line 921 of file ui_notcurses.c.
References UiRuntime::nc, and ui.
Return the raw struct ncplane* underlying a surface.
| s | The UiSurface to inspect. |
s is NULL. Definition at line 927 of file ui_notcurses.c.
| int ui_pair_content | ( | uint16_t | pair, |
| uint * | fg, | ||
| uint * | bg ) |
Definition at line 846 of file ui_notcurses.c.
References UiPair::bg, UiPair::fg, and ui_pair.
| void ui_render | ( | ) |
Definition at line 452 of file ui_notcurses.c.
References UiRuntime::nc, and ui.
Referenced by border_draw(), border_title(), cf_accept(), display_form(), display_pick_page(), form_display_accept_field(), form_display_field(), form_display_fields(), form_post(), form_process(), get_cmd_arg(), get_cmd_char(), init_view_full_screen(), menu_cmd_processor(), menu_engine(), notcurses_input(), pad_refresh(), picker(), read_theme(), surface_box_win_new(), surface_split_box_win_new(), ui_draw_text_fill(), ui_restore_wins(), ui_wscrl(), ui_wscrl(), view_boxwin_resize(), view_display_page(), and view_full_screen_resize().
| int ui_resume | ( | ) |
Definition at line 465 of file ui_notcurses.c.
References UiRuntime::nc, and ui.
Referenced by fork_exec().
| int ui_scrollok | ( | UiSurface * | s, |
| uint | w, | ||
| bool | enable ) |
Definition at line 381 of file ui_notcurses.c.
Referenced by init_view_boxwin(), init_view_full_screen(), menu_cmd_processor(), open_pick_win(), and ui_box_surface_new().
| int ui_setcchar | ( | UiCell * | cell, |
| const wchar_t * | wstr, | ||
| const uint16_t | style, | ||
| ushort | pair, | ||
| const void * | opts ) |
Definition at line 686 of file ui_notcurses.c.
References nccell::channels, nccell::gcluster, GCluster::u16, ui_color_content(), ui_get_pair(), and nccell::width.
| int ui_setscrreg | ( | UiSurface * | s, |
| uint | w, | ||
| uint | top, | ||
| uint | bottom ) |
Definition at line 399 of file ui_notcurses.c.
Referenced by init_view_boxwin(), init_view_full_screen(), and open_pick_win().
| void ui_shutdown | ( | ) |
Definition at line 222 of file ui_notcurses.c.
References f_curses_open, UiRuntime::mouse_enabled, UiRuntime::nc, sfc_ptr, stdsfc, UiRuntime::tty_fp, ui, ui_surface, and ui_surface_destroy().
Referenced by destroy_curses(), ui_endwin(), and ui_init().
| int ui_surface_addpad | ( | UiSurface * | s, |
| uint | w, | ||
| uint | p, | ||
| uint | lines, | ||
| uint | cols ) |
Definition at line 311 of file ui_notcurses.c.
References cell_nt, nccell::channels, UiSurfaceMeta::cols, UiSurfaceMeta::hidden, UiSurfaceMeta::lines, UiSurface::meta, UiRuntime::nc, PAD, ui, ui_bkgd(), ui_bkgdset(), UiSurfaceMeta::x, and UiSurfaceMeta::y.
Referenced by init_view_boxwin(), and init_view_full_screen().
| int ui_surface_addwin | ( | UiSurface * | s, |
| uint | w, | ||
| uint | p, | ||
| uint | lines, | ||
| uint | cols, | ||
| uint | y, | ||
| uint | x ) |
Definition at line 339 of file ui_notcurses.c.
References cell_nt, nccell::channels, UiSurfaceMeta::cols, UiSurfaceMeta::hidden, UiSurfaceMeta::lines, UiSurface::meta, UiRuntime::nc, ui, ui_bkgd(), ui_bkgdset(), UiSurfaceMeta::x, and UiSurfaceMeta::y.
Referenced by init_view_boxwin(), init_view_full_screen(), surface_box_win_new(), and surface_split_box_win_new().
| void ui_surface_destroy | ( | UiSurface * | s | ) |
Definition at line 363 of file ui_notcurses.c.
References SUB_SFC_MAX.
Referenced by cm_surface_destroy(), destroy_pick_view(), popup_ckeys(), ui_framed_surface_destroy(), ui_framed_surface_new(), ui_shutdown(), view_boxwin_resize(), view_file(), and view_full_screen_resize().
| int ui_surface_hide | ( | UiSurface * | s, |
| uint | w ) |
Definition at line 587 of file ui_notcurses.c.
References UiSurfaceMeta::hidden, UiSurfaceMeta::lines, and UiSurface::meta.
| int ui_surface_move | ( | UiSurface * | s, |
| uint | w, | ||
| uint | y, | ||
| uint | x ) |
Definition at line 533 of file ui_notcurses.c.
References UiSurfaceMeta::hidden, UiSurface::meta, UiSurfaceMeta::x, and UiSurfaceMeta::y.
| UiSurface * ui_surface_new | ( | uint | w, |
| UiSurface * | parent, | ||
| uint | p, | ||
| uint | lines, | ||
| uint | cols, | ||
| uint | y, | ||
| uint | x ) |
Definition at line 239 of file ui_notcurses.c.
References UiSurfaceMeta::cols, UiSurfaceMeta::hidden, UiSurfaceMeta::lines, UiSurface::meta, UiRuntime::nc, UiSurface::parent, UiSurface::runtime, stdplane, stdsfc, SUB_SFC_MAX, ui, UiSurfaceMeta::x, and UiSurfaceMeta::y.
Referenced by init_view_full_screen(), and ui_framed_surface_new().
| int ui_surface_resize | ( | UiSurface * | s, |
| uint | w, | ||
| uint | lines, | ||
| uint | cols ) |
Definition at line 543 of file ui_notcurses.c.
References UiSurfaceMeta::cols, UiSurfaceMeta::lines, and UiSurface::meta.
| int ui_surface_show | ( | UiSurface * | s, |
| uint | w ) |
Definition at line 577 of file ui_notcurses.c.
References UiSurfaceMeta::hidden, UiSurface::meta, UiSurfaceMeta::x, and UiSurfaceMeta::y.
| int ui_suspend | ( | ) |
Definition at line 458 of file ui_notcurses.c.
References UiRuntime::nc, and ui.
| int ui_top_panel | ( | UiSurface * | s, |
| uint | w ) |
Definition at line 643 of file ui_notcurses.c.
Referenced by picker().
| void ui_update_panels | ( | ) |
Definition at line 446 of file ui_notcurses.c.
References UiRuntime::nc, and ui.
| int ui_wclear | ( | UiSurface * | s, |
| uint | w ) |
Definition at line 570 of file ui_notcurses.c.
References SUB_SFC_MAX.
| int ui_werase | ( | UiSurface * | s, |
| uint | w ) |
Definition at line 564 of file ui_notcurses.c.
References SUB_SFC_MAX.
Referenced by exec_objects(), and full_screen_shell().
| int ui_wmove | ( | UiSurface * | s, |
| uint | w, | ||
| uint | y, | ||
| uint | x ) |
Definition at line 598 of file ui_notcurses.c.
Referenced by display_chyron(), full_screen_shell(), menu_cmd_processor(), ui_mvwadd_wchnstr(), ui_mvwadd_wchstr(), and ui_mvwaddch().
| int ui_wnoutrefresh | ( | UiSurface * | s, |
| uint | w ) |
Definition at line 649 of file ui_notcurses.c.
Referenced by picker().
| int ui_wscrl | ( | UiSurface * | s, |
| uint | w, | ||
| int | r ) |
Definition at line 636 of file ui_notcurses.c.
References ui_render().
Referenced by display_pick_page(), scroll_down(), and scroll_up().
| UiCell bkgd_cell |
Definition at line 34 of file ui_notcurses.c.
Referenced by mk_chimera(), and ui_bkgdset().
| wchar_t* border_double = L"═║╠╣╦╩╬╔╗╚╝" |
Definition at line 45 of file ui_notcurses.c.
| wchar_t* border_heavy = L"━┃┣┫┳┻╋┏┓┗┛" |
Definition at line 46 of file ui_notcurses.c.
| wchar_t* border_none = L" " |
Definition at line 47 of file ui_notcurses.c.
| wchar_t* border_rounded = L"─│├┤┬┴┼╭╮╰╯" |
BOX WIDE UNICODE CODEPOINTS
Definition at line 44 of file ui_notcurses.c.
| wchar_t* border_single = L"─│├┤┬┴┼┌┐└┘" |
BOX WIDE UNICODE CODEPOINTS
Definition at line 43 of file ui_notcurses.c.
| BorderWide bw |
Definition at line 49 of file ui_notcurses.c.
| const wchar_t* bw_chk = L"\x2611" |
| const wchar_t* bw_da = L"\x2193" |
large down arrow
Definition at line 59 of file ui_notcurses.c.
| const wchar_t* bw_h09 = L"\x23BD" |
horizontal line 9
Definition at line 63 of file ui_notcurses.c.
| const wchar_t* bw_la = L"\x2190" |
large left arrow
Definition at line 57 of file ui_notcurses.c.
| const wchar_t* bw_lan = L"\x276E" |
left_angle
Definition at line 61 of file ui_notcurses.c.
| const wchar_t* bw_ra = L"\x2192" |
large right arrow
Definition at line 56 of file ui_notcurses.c.
| const wchar_t* bw_ran = L"\x276F" |
| const wchar_t* bw_rbl = L"\x2570" |
rounded bottom left
Definition at line 53 of file ui_notcurses.c.
| const wchar_t* bw_rbr = L"\x256f" |
rounded bottom right
Definition at line 54 of file ui_notcurses.c.
| const wchar_t* bw_rtl = L"\x256d" |
rounded top left
Definition at line 51 of file ui_notcurses.c.
| const wchar_t* bw_rtr = L"\x256e" |
rounded top right
Definition at line 52 of file ui_notcurses.c.
| const wchar_t* bw_sp = L"\x20" |
| const wchar_t* bw_ua = L"\x2191" |
large up arrow
Definition at line 58 of file ui_notcurses.c.
| uint COLS |
Definition at line 30 of file ui_notcurses.c.
| uint LINES |
Definition at line 30 of file ui_notcurses.c.
Referenced by display_form(), main(), and ui_init().
| int sfc_ptr = -1 |
Definition at line 36 of file ui_notcurses.c.
Referenced by action_disposition(), answer_yn(), cm_surface_destroy(), display_error(), display_field(), display_form(), field_editor(), form_display_accept_field(), form_display_field(), form_display_fields(), form_engine(), form_post(), form_process(), init_form(), menu_cmd_processor(), menu_engine(), open_pick_win(), Perror(), popup_ckeys(), surface_box_win_new(), surface_new(), surface_split_box_win_new(), ui_init(), ui_restore_wins(), and ui_shutdown().
| STDRGB std_color[] = {{0, 0, 0}, {128, 0, 0}, {0, 128, 0}, {128, 128, 0}, {0, 0, 128}, {128, 0, 128}, {0, 128, 128}, {192, 192, 192}, {128, 128, 128}, {255, 0, 0}, {0, 255, 0}, {255, 255, 0}, {0, 0, 255}, {255, 0, 255}, {0, 255, 255}, {255, 255, 255}} |
Definition at line 65 of file ui_notcurses.c.
Referenced by ui_add_color_rgb(), ui_chg_color(), ui_init_color_hex(), and xterm256_idx_to_rgb().
| NcPlane* stdplane |
Definition at line 39 of file ui_notcurses.c.
Referenced by ui_box_surface_new(), ui_clear(), ui_erase(), ui_init(), and ui_surface_new().
| UiSurface* stdsfc |
Definition at line 29 of file ui_notcurses.c.
Referenced by exec_objects(), fork_exec(), full_screen_shell(), ui_init(), ui_init(), ui_shutdown(), and ui_surface_new().
| UiRuntime* ui = NULL |
Definition at line 24 of file ui_notcurses.c.
Referenced by ui_box_surface_new(), ui_box_surface_new(), ui_curs_set(), ui_cursor_enable(), ui_cursor_enable_yx(), ui_framed_surface_new(), ui_get_caps(), ui_get_event(), ui_get_event_multi(), ui_get_event_multix(), ui_get_event_no_mouse(), ui_get_screen_size(), ui_getch(), ui_init(), ui_init(), ui_mice_enable(), ui_mousemask(), ui_ncurses_get_screen(), ui_notcurses_get_nc(), ui_render(), ui_resume(), ui_shutdown(), ui_surface_addpad(), ui_surface_addwin(), ui_surface_new(), ui_suspend(), and ui_update_panels().
| UiColor * ui_color |
Definition at line 28 of file ui_notcurses.c.
Referenced by ui_chg_color(), ui_color_content(), ui_get_channels_from_pair(), ui_init(), ui_init_color(), and ui_init_color_hex().
| uint ui_color_cnt = 0 |
Definition at line 25 of file ui_notcurses.c.
Referenced by init_clr_palette(), ui_add_color_rgb(), ui_init(), and ui_init_color_hex().
| UiConfig * ui_config |
Definition at line 32 of file ui_notcurses.c.
| UiPair * ui_pair |
Definition at line 27 of file ui_notcurses.c.
Referenced by ui_add_pair(), ui_get_channels_from_pair(), ui_get_pair(), ui_init(), ui_init_pair(), and ui_pair_content().
| uint ui_pair_cnt = 0 |
Definition at line 26 of file ui_notcurses.c.
Referenced by ui_add_pair(), and ui_init().
| UiSurface* ui_surface[UI_SFC_MAX] |
Definition at line 33 of file ui_notcurses.c.
Referenced by action_disposition(), answer_yn(), display_error(), display_field(), display_form(), field_editor(), form_display_accept_field(), form_display_field(), form_display_fields(), form_engine(), form_post(), form_process(), init_form(), menu_cmd_processor(), menu_engine(), open_pick_win(), Perror(), popup_ckeys(), surface_box_win_new(), surface_split_box_win_new(), ui_restore_wins(), and ui_shutdown().
| int win_ptr = -1 |
Definition at line 37 of file ui_notcurses.c.