Go to the source code of this file.
Enumerations | |
enum | { KEY_REFRESH = 12 } |
Functions | |
int | _mvwchgat_ (WINDOW *w, int y, int x, int n, int attr, short color, const void *) |
void * | alloca (size_t) |
int | box (WINDOW *win, int verch, int horch) |
int | clear () |
int | erase () |
int | move (int y, int x) |
int | mvwaddnstr_c (WINDOW *win, int y, int x, const char *str, int n) |
int | mvwaddstr_c (WINDOW *win, int y, int x, const char *str) |
int | refresh () |
int | waddstr_c (WINDOW *win, const char *str) |
box
clear
erase
move
refresh
and replaces them by inline functions.
It also defines certain inline functions for dealing with const
char*
arguments. Some curses functions simply use char*
which doesn't go along well with std::string::c_str()
. The defined functions do have the same syntax as their cousins.
The configure script figures out which one to use.
The following functions are defined to handle const
char*
arguments
mywaddstr()
mymvwaddstr()
mymvwaddnstr()
mvwchgat
is also defined as inline function in case the curses library does not provide it. The configure script takes care of figuring whether or not the function is provided by the curses library.
Please note that this file has to be included after the (n)curses header file.
Definition in file curswa.h.
anonymous enum |
int _mvwchgat_ | ( | WINDOW * | w, | |
int | y, | |||
int | x, | |||
int | n, | |||
int | attr, | |||
short | color, | |||
const void * | ||||
) | [inline] |
void* alloca | ( | size_t | ) |
Referenced by _mvwchgat_(), and YAPET::File::readHeader().
int box | ( | WINDOW * | win, | |
int | verch, | |||
int | horch | |||
) | [inline] |
Definition at line 89 of file curswa.h.
Referenced by MainWindow::createWindow(), SearchDialog::refresh(), PasswordRecord::refresh(), PasswordDialog::refresh(), MainWindow::refresh(), FileOpen::refresh(), YAPETUI::MessageBox::refresh(), and YAPETUI::ListWidget< YAPET::PartDec >::setBorder().
int clear | ( | ) | [inline] |
int mvwaddnstr_c | ( | WINDOW * | win, | |
int | y, | |||
int | x, | |||
const char * | str, | |||
int | n | |||
) | [inline] |
int mvwaddstr_c | ( | WINDOW * | win, | |
int | y, | |||
int | x, | |||
const char * | str | |||
) | [inline] |
int refresh | ( | ) | [inline] |
Definition at line 117 of file curswa.h.
Referenced by MainWindow::openFile(), and YAPETUI::InputWidget::setText().