|
C-Menu 0.2.9
A User Interface Toolkit
|
NotCurses UI backend — drawing functions. More...
#include "ui_backend.h"#include "ui_notcurses_internal.h"#include <notcurses/notcurses.h>#include <stddef.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
Macros | |
| #define | _GNU_SOURCE |
| #define | _XOPEN_SOURCE_EXTENDED 1 |
Functions | |
| int | mk_chimera (UiCell *cell, char c) |
| int | ui_draw_ch (UiSurface *s, uint w, char c) |
| int | ui_draw_ch_yx (UiSurface *s, uint w, uint y, uint x, char c) |
| int | ui_draw_text (UiSurface *s, uint w, uint y, uint x, const char *text) |
| int | ui_draw_text_fill (UiSurface *s, uint w, uint y, uint x, const char *text, int m) |
| int | ui_draw_text_n (UiSurface *s, uint w, uint y, uint x, const char *text, int m) |
| int | ui_mvwadd_wch (UiSurface *s, uint w, uint y, uint x, const UiCell *cell) |
| int | ui_mvwadd_wchnstr (UiSurface *s, uint w, uint y, uint x, const UiCell *cell, uint m) |
| int | ui_mvwadd_wchstr (UiSurface *s, uint w, uint y, uint x, const UiCell *cell) |
| int | ui_mvwaddch (UiSurface *s, uint w, uint y, uint x, const char c) |
| int | ui_mvwaddnstr (UiSurface *s, uint w, uint y, uint x, const char *text, int m) |
| int | ui_mvwaddnwstr (UiSurface *s, uint w, uint y, uint x, const wchar_t *wstr, int m) |
| int | ui_mvwaddstr (UiSurface *s, uint w, uint y, uint x, const char *text) |
| int | ui_mvwaddstr_fill (UiSurface *s, uint w, uint y, uint x, const char *text, int m) |
| int | ui_mvwaddwstr (UiSurface *s, uint w, uint y, uint x, const wchar_t *wstr) |
| void | ui_restore_wins () |
| int | ui_wadd_wch (UiSurface *s, uint w, const UiCell *cell) |
| int | ui_wadd_wchnstr (UiSurface *s, uint w, const UiCell *cell, uint m) |
| int | ui_wadd_wchstr (UiSurface *s, uint w, const UiCell *cell) |
| int | ui_waddnstr (UiSurface *s, uint w, const char *text, int m) |
| int | ui_waddnwstr (UiSurface *s, uint w, const wchar_t *wstr, int m) |
| int | ui_waddstr (UiSurface *s, uint w, const char *text) |
| int | ui_waddwstr (UiSurface *s, uint w, const wchar_t *wstr) |
| int | ui_wclrtobot (UiSurface *s, uint w) |
| int | ui_wclrtoeol (UiSurface *s, uint w) |
NotCurses UI backend — drawing functions.
Implements the drawing operations declared in ui_backend.h using the NotCurses API.
Definition in file ui_notcurses_draw.c.
| #define _GNU_SOURCE |
Definition at line 8 of file ui_notcurses_draw.c.
| #define _XOPEN_SOURCE_EXTENDED 1 |
Definition at line 9 of file ui_notcurses_draw.c.
| int mk_chimera | ( | UiCell * | cell, |
| char | c ) |
Definition at line 52 of file ui_notcurses_draw.c.
References bkgd_cell, nccell::channels, nccell::gcluster, nccell::gcluster_backstop, and nccell::stylemask.
| int ui_draw_ch | ( | UiSurface * | s, |
| uint | w, | ||
| char | c ) |
Definition at line 59 of file ui_notcurses_draw.c.
| int ui_draw_ch_yx | ( | UiSurface * | s, |
| uint | w, | ||
| uint | y, | ||
| uint | x, | ||
| char | c ) |
Definition at line 66 of file ui_notcurses_draw.c.
Referenced by menu_cmd_processor().
| int ui_draw_text | ( | UiSurface * | s, |
| uint | w, | ||
| uint | y, | ||
| uint | x, | ||
| const char * | text ) |
Definition at line 73 of file ui_notcurses_draw.c.
Referenced by action_disposition(), answer_yn(), display_error(), and Perror().
| int ui_draw_text_fill | ( | UiSurface * | s, |
| uint | w, | ||
| uint | y, | ||
| uint | x, | ||
| const char * | text, | ||
| int | m ) |
Definition at line 85 of file ui_notcurses_draw.c.
References ui_render().
Referenced by menu_cmd_processor(), and menu_engine().
| int ui_draw_text_n | ( | UiSurface * | s, |
| uint | w, | ||
| uint | y, | ||
| uint | x, | ||
| const char * | text, | ||
| int | m ) |
Definition at line 79 of file ui_notcurses_draw.c.
Definition at line 208 of file ui_notcurses_draw.c.
Referenced by display_form(), and get_cmd_char().
Definition at line 240 of file ui_notcurses_draw.c.
References nccell::gcluster, ui_wmove(), and nccell::width.
Referenced by border_draw(), border_title(), border_ysplit(), border_ysplit_text(), deselect_object(), form_display_accept_field(), form_display_field(), form_display_fields(), get_cmd_arg(), get_cmd_char(), picker(), remove_right_angle(), reverse_object(), toggle_object(), unreverse_object(), and view_cmd_processor().
Definition at line 221 of file ui_notcurses_draw.c.
References nccell::gcluster, and ui_wmove().
Referenced by display_chyron(), display_field(), display_line(), and form_display_fields().
| int ui_mvwaddch | ( | UiSurface * | s, |
| uint | w, | ||
| uint | y, | ||
| uint | x, | ||
| const char | c ) |
Definition at line 100 of file ui_notcurses_draw.c.
References ui_wmove().
Referenced by get_cmd_char(), and menu_engine().
| int ui_mvwaddnstr | ( | UiSurface * | s, |
| uint | w, | ||
| uint | y, | ||
| uint | x, | ||
| const char * | text, | ||
| int | m ) |
Definition at line 126 of file ui_notcurses_draw.c.
| int ui_mvwaddnwstr | ( | UiSurface * | s, |
| uint | w, | ||
| uint | y, | ||
| uint | x, | ||
| const wchar_t * | wstr, | ||
| int | m ) |
Definition at line 182 of file ui_notcurses_draw.c.
Referenced by border_title(), and border_ysplit_text().
| int ui_mvwaddstr | ( | UiSurface * | s, |
| uint | w, | ||
| uint | y, | ||
| uint | x, | ||
| const char * | text ) |
Definition at line 120 of file ui_notcurses_draw.c.
Referenced by cf_accept(), display_form(), display_line(), display_pick_page(), display_prompt(), display_split_line(), notcurses_input(), pick_engine(), picker(), and popup_ckeys().
| int ui_mvwaddstr_fill | ( | UiSurface * | s, |
| uint | w, | ||
| uint | y, | ||
| uint | x, | ||
| const char * | text, | ||
| int | m ) |
Definition at line 132 of file ui_notcurses_draw.c.
Referenced by display_pick_page(), picker(), reverse_object(), and unreverse_object().
| int ui_mvwaddwstr | ( | UiSurface * | s, |
| uint | w, | ||
| uint | y, | ||
| uint | x, | ||
| const wchar_t * | wstr ) |
Definition at line 160 of file ui_notcurses_draw.c.
| void ui_restore_wins | ( | ) |
Definition at line 255 of file ui_notcurses_draw.c.
References sfc_ptr, SUB_SFC_MAX, ui_render(), and ui_surface.
Referenced by enter_file_spec(), exec_objects(), fork_exec(), form_exec_receiver(), full_screen_shell(), menu_cmd_processor(), menu_engine(), view_cmd_processor(), view_init_input(), and write_view_buffer().
Definition at line 202 of file ui_notcurses_draw.c.
Definition at line 229 of file ui_notcurses_draw.c.
References nccell::gcluster, and nccell::width.
Referenced by display_split_line().
Definition at line 214 of file ui_notcurses_draw.c.
References nccell::gcluster.
| int ui_waddnstr | ( | UiSurface * | s, |
| uint | w, | ||
| const char * | text, | ||
| int | m ) |
Definition at line 114 of file ui_notcurses_draw.c.
| int ui_waddnwstr | ( | UiSurface * | s, |
| uint | w, | ||
| const wchar_t * | wstr, | ||
| int | m ) |
Definition at line 167 of file ui_notcurses_draw.c.
| int ui_waddstr | ( | UiSurface * | s, |
| uint | w, | ||
| const char * | text ) |
Definition at line 108 of file ui_notcurses_draw.c.
Referenced by display_prompt(), and get_cmd_arg().
| int ui_waddwstr | ( | UiSurface * | s, |
| uint | w, | ||
| const wchar_t * | wstr ) |
Definition at line 153 of file ui_notcurses_draw.c.
| int ui_wclrtobot | ( | UiSurface * | s, |
| uint | w ) |
Definition at line 34 of file ui_notcurses_draw.c.
Referenced by display_line_eod(), scroll_down(), scroll_up(), and search().
| int ui_wclrtoeol | ( | UiSurface * | s, |
| uint | w ) |
Definition at line 22 of file ui_notcurses_draw.c.
Referenced by cf_accept(), display_chyron(), display_line(), display_prompt(), display_split_line(), form_post(), get_cmd_arg(), get_cmd_char(), notcurses_input(), pick_engine(), and picker().