49 int begin_y,
int begin_x ) {
51 if ( ( (
unsigned)ncols > parent->
width ) ||
52 ( (
unsigned)nlines > parent->
height ) )
116 if ( ( (
unsigned)( begin_y + nlines ) >
stdscr->height ) &&
117 ( (
unsigned)( begin_x + ncols ) >
stdscr->width ) )
121 win->
ori_y = begin_y;
122 win->
ori_x = begin_x;
141 int begin_y,
int begin_x ) {
143 child =
newwin( nlines, ncols, begin_y, begin_x );
WINDOW * derwin(WINDOW *parent, int nlines, int ncols, int begin_y, int begin_x)
Create a new derived window.
int wmove(WINDOW *win, int y, int x) __nonnull
Move a window's cursor to the specified position.
WINDOW * subwin(WINDOW *parent, int nlines, int ncols, int begin_y, int begin_x)
Create a new sub-window.
int mvwin(WINDOW *win, int y, int x)
Move window origin to specified coordinates.
#define LINES(...)
Define inline lines.
unsigned int width
window dimensions
MuCurses core implementation specific header file.
WINDOW * dupwin(WINDOW *orig)
Create a duplicate of the specified window.
static void(* free)(struct refcnt *refcnt))
SCREEN * scr
screen with which window associates
attr_t attrs
window attributes
void * malloc(size_t size)
Allocate memory.
void _wputch(WINDOW *win, chtype ch, int wrap) __nonnull
Write a single character rendition to a window.
struct _curses_window * parent
parent window
int delwin(WINDOW *win)
Delete a window.
WINDOW * newwin(int nlines, int ncols, int begin_y, int begin_x)
Create new WINDOW.
#define NULL
NULL pointer (VOID *)
unsigned int curs_x
window cursor position
unsigned int ori_x
window origin coordinates
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)