Holds workarounds for curses.h. More...
Go to the source code of this file.
Enumerations | |
| enum | { KEY_REFRESH = 12, KEY_ESC = 27, KEY_TAB = '\t', KEY_SPACE = ' ', KEY_CTRL_E = 5 } |
Functions | |
| int | _mvwchgat_ (WINDOW *w, int y, int x, int n, int attr, short color, const void *) |
| 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 () |
| void | visibleCursor (bool v) |
| int | waddstr_c (WINDOW *win, const char *str) |
Holds workarounds for curses.h when compiling under C++. It specifically removes the macros:
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] |
| int box | ( | WINDOW * | win, | |
| int | verch, | |||
| int | horch | |||
| ) | [inline] |
Definition at line 126 of file curswa.h.
Referenced by MainWindow::createWindow(), SearchDialog::refresh(), PWGenDialog::refresh(), PasswordRecord::refresh(), PasswordDialog::refresh(), MainWindow::refresh(), FileOpen::refresh(), YAPET::UI::MessageBox::refresh(), YAPET::UI::CheckBoxGroup::refresh(), and YAPET::UI::ListWidget< YAPET::PartDec >::setBorder().

| int clear | ( | ) | [inline] |
Definition at line 133 of file curswa.h.
Referenced by YAPET::UI::BaseWindow::endCurses(), and CSVImport::import().

| 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 154 of file curswa.h.
Referenced by MainWindow::openFile(), and YAPET::UI::InputWidget::setText().

| void visibleCursor | ( | bool | v | ) | [inline] |
Shows or hides the cursor.
Definition at line 107 of file curswa.h.
Referenced by YAPET::UI::PasswordWidget::focus(), YAPET::UI::InputWidget::focus(), and YAPET::UI::CheckBoxGroup::focus().

1.7.1