iPXE
|
MuCurses edging functions. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
int | box (WINDOW *win, chtype verch, chtype horch) |
Draw borders from single-byte characters and renditions around a window. More... | |
int | wborder (WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br) |
Draw borders from single-byte characters and renditions around a window. More... | |
int | whline (WINDOW *win, chtype ch, int n) |
Create a horizontal line in a window. More... | |
int | wvline (WINDOW *win, chtype ch, int n) |
Create a vertical line in a window. More... | |
MuCurses edging functions.
Definition in file edging.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
Draw borders from single-byte characters and renditions around a window.
*win | window to be bordered |
verch | vertical chtype |
horch | horizontal chtype |
rc | return status code |
Definition at line 22 of file edging.c.
References _curses_window::attrs, and wborder().
Referenced by draw_editbox(), edit_editbox(), and init_editbox().
int wborder | ( | WINDOW * | win, |
chtype | ls, | ||
chtype | rs, | ||
chtype | ts, | ||
chtype | bs, | ||
chtype | tl, | ||
chtype | tr, | ||
chtype | bl, | ||
chtype | br | ||
) |
Draw borders from single-byte characters and renditions around a window.
*win | window to be bordered |
ls | left side |
rs | right side |
ts | top |
bs | bottom |
tl | top left corner |
tr | top right corner |
bl | bottom left corner |
br | bottom right corner |
rc | return status code |
Definition at line 43 of file edging.c.
References _restore_curs_pos(), _store_curs_pos(), _wputch(), bl, _curses_window::curs_x, _curses_window::curs_y, _curses_window::height, NOWRAP, OK, _curses_window::width, wmove(), and WRAP.
Create a horizontal line in a window.
*win | subject window |
ch | rendition and character |
n | max number of chars (wide) to render |
rc | return status code |
Definition at line 82 of file edging.c.
References _restore_curs_pos(), _store_curs_pos(), _wputch(), ch, _curses_window::curs_x, NOWRAP, OK, and _curses_window::width.
Referenced by hline(), mvhline(), and mvwhline().
Create a vertical line in a window.
*win | subject window |
ch | rendition and character |
n | max number of chars (high) to render |
rc | return status code |
Definition at line 102 of file edging.c.
References _restore_curs_pos(), _store_curs_pos(), _wputch(), ch, _curses_window::curs_y, _curses_window::height, NOWRAP, OK, wmove(), and cursor_pos::x.
Referenced by mvvline(), mvwvline(), and vline().