iPXE
|
MuCurses windows instance functions. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
int | delwin (WINDOW *win) |
Delete a window. More... | |
WINDOW * | derwin (WINDOW *parent, int nlines, int ncols, int begin_y, int begin_x) |
Create a new derived window. More... | |
WINDOW * | dupwin (WINDOW *orig) |
Create a duplicate of the specified window. More... | |
int | mvwin (WINDOW *win, int y, int x) |
Move window origin to specified coordinates. More... | |
WINDOW * | newwin (int nlines, int ncols, int begin_y, int begin_x) |
Create new WINDOW. More... | |
WINDOW * | subwin (WINDOW *parent, int nlines, int ncols, int begin_y, int begin_x) |
Create a new sub-window. More... | |
MuCurses windows instance functions.
Definition in file windows.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
int delwin | ( | WINDOW * | win | ) |
Delete a window.
*win | pointer to window being deleted |
rc | return status code |
Definition at line 20 of file windows.c.
References _wputch(), _curses_window::curs_x, _curses_window::curs_y, free, OK, stdscr, wmove(), and WRAP.
Create a new derived window.
parent | parent window |
nlines | window height |
ncols | window width |
begin_y | window y origin (relative to parent) |
begin_x | window x origin (relative to parent) |
ptr | return pointer to child window |
Definition at line 48 of file windows.c.
References _curses_window::height, malloc(), NULL, _curses_window::ori_x, _curses_window::ori_y, _curses_window::parent, _curses_window::scr, and _curses_window::width.
Create a duplicate of the specified window.
orig | original window |
ptr | pointer to duplicate window |
Definition at line 71 of file windows.c.
References _curses_window::attrs, _curses_window::curs_x, _curses_window::curs_y, _curses_window::height, malloc(), NULL, _curses_window::ori_x, _curses_window::ori_y, _curses_window::scr, and _curses_window::width.
int mvwin | ( | WINDOW * | win, |
int | y, | ||
int | x | ||
) |
Move window origin to specified coordinates.
*win | window to move |
y | Y position |
x | X position |
rc | return status code |
Definition at line 94 of file windows.c.
References COLS, ERR, _curses_window::height, LINES, OK, _curses_window::ori_x, _curses_window::ori_y, and _curses_window::width.
WINDOW* newwin | ( | int | nlines, |
int | ncols, | ||
int | begin_y, | ||
int | begin_x | ||
) |
Create new WINDOW.
nlines | number of lines |
ncols | number of columns |
begin_y | column origin |
begin_x | line origin |
*win | return pointer to new window |
Definition at line 114 of file windows.c.
References _curses_window::height, malloc(), NULL, _curses_window::ori_x, _curses_window::ori_y, _curses_window::parent, _curses_window::scr, stdscr, and _curses_window::width.
Referenced by subwin().
Create a new sub-window.
orig | parent window |
nlines | window height |
ncols | window width |
begin_y | window y origin (absolute) |
begin_x | window x origin (absolute) |
ptr | return pointer to child window |
Definition at line 140 of file windows.c.
References newwin(), _curses_window::parent, and _curses_window::scr.