Files | |
file | WINCREAT.c |
Data Structures | |
struct | _window_ |
Defines | |
#define | bool unsigned int |
#define | reg register |
#define | TRUE (1) |
#define | FALSE (0) |
#define | ERR (0) |
#define | OK (1) |
#define | WIN_BOXED 1 |
#define | WIN_UNBOXED 0 |
#define | getyx(win, y, x) ((x) = ((WINDOW*)(win))->col, (y) = ((WINDOW*)(win))->row) |
#define | refresh() |
#define | scrollok(win, flag) ((win)->scroll_ok = (flag)) |
#define | wrapok(win, flag) ((win)->wrap_ok = (flag)) |
#define | wrefresh(win) |
#define | mvwinr(w, dy, dx) |
#define | ground(win, f, b) ( win->attrib = ((f) & 0x7f) | ((b) & 0x7f) << 4) |
#define | addch(c) waddch(stdscr, c) |
#define | addstr(s) waddstr(stdscr,s) |
#define | clrtoeol() wclrtoeol(stdscr) |
#define | erase werase(stdscr) |
#define | wclear(w) werase(w) |
#define | clear() werase(stdscr) |
#define | getch() wgetch( stdscr ) |
#define | move(y, x) wmove( stdscr,(y),(x) ) |
#define | mvcur(oy, ox, y, x) move((y),(x)) |
#define | scroll(win) wscroll(win,1) |
#define | inch() winch(stdscr) |
#define | mvinch(y, x) ( wmove(stdscr,y,x), winch(stdscr) ) |
#define | mvwinch(w, y, x) ( wmove(w, y,x), winch(w) ) |
#define | subwin(w, a, b, c, d) newwin(a,b,c,d) |
Typedefs | |
typedef struct _window_ | WINDOW |
Functions | |
void | endwin (void) |
void | initscr (void) |
int | waddch (WINDOW *, int) |
void | waddstr (WINDOW *, char *) |
void | wclrtoeol (WINDOW *) |
void | werase (WINDOW *) |
int | wgetch (WINDOW *) |
void | wmove (WINDOW *, int, int) |
int | wprintw (WINDOW *, char *,...) |
int | printw (char *,...) |
int | wscroll (WINDOW *, int) |
int | winch (WINDOW *) |
WINDOW * | newwin (int, int, int, int, void *, int atrib, int nBoxed) |
void | WinSetTitle (WINDOW *w, char *title) |
void | box (WINDOW *, int, int) |
void | crmode (WINDOW *) |
void | delwin (WINDOW *) |
void | echo (WINDOW *) |
int | mvwin (WINDOW *win, int y, int x) |
void | nl (WINDOW *) |
void | nocrmode (WINDOW *) |
void | noecho (WINDOW *) |
void | nonl (WINDOW *) |
void | boxed (WINDOW *) |
void | unboxed (WINDOW *) |
void | save (WINDOW *) |
void | nosave (WINDOW *) |
void | def_ground (WINDOW *, int, int) |
Variables | |
WINDOW * | stdscr |
#define ground | ( | win, | |||
f, | |||||
b | ) | ( win->attrib = ((f) & 0x7f) | ((b) & 0x7f) << 4) |
#define mvwinr | ( | w, | |||
dy, | |||||
dx | ) |
#define OK (1) |
#define scrollok | ( | win, | |||
flag | ) | ((win)->scroll_ok = (flag)) |
void boxed | ( | WINDOW * | ) |
Definition at line 35 of file WINCREAT.c.
void def_ground | ( | WINDOW * | w, | |
int | f, | |||
int | b | |||
) |
Set the default foreground and background colors
w | window to set the forground and background colors | |
f | Forground color | |
b | Background color |
Definition at line 46 of file WINCREAT.c.
WINDOW* newwin | ( | int | lines, | |
int | cols, | |||
int | begin_y, | |||
int | begin_x, | |||
void * | IoChan, | |||
int | attrib, | |||
int | nBoxed | |||
) |
Create a new window
lines | Vertical size including border | |
cols | Horizontal Size (including border | |
begin_y | Y coordinate of the upper left hand corner | |
begin_x | X coordinate of the upper left hand corner | |
IoChan | Pointer to input channel (used for getc) | |
attrib | background/forground colors, etc | |
nBoxed | 0 = No border, 1 = Bordered |
Definition at line 66 of file WINCREAT.c.
void nosave | ( | WINDOW * | ) |
Definition at line 34 of file WINCREAT.c.
void save | ( | WINDOW * | ) |
Definition at line 33 of file WINCREAT.c.
void unboxed | ( | WINDOW * | ) |
Definition at line 36 of file WINCREAT.c.
void wclrtoeol | ( | WINDOW * | ) |
Definition at line 4 of file WCLRTOEO.c.
void WinSetTitle | ( | WINDOW * | w, | |
char * | title | |||
) |
Set the title of the WINDOW
w | pointer to the window to title | |
title | pointer to the string that contains the title |
Definition at line 138 of file WINCREAT.c.
References _window_::attrib, SCREEN, strlen(), _window_::x_org, _window_::x_size, and _window_::y_org.