#include <ncursesp.h>
Inheritance diagram for NCursesPanel:
Public Member Functions | |
NCursesPanel (int lines, int cols, int begin_y=0, int begin_x=0) | |
NCursesPanel () | |
virtual | ~NCursesPanel () |
virtual int | resize (int lines, int columns) |
void | hide () |
void | show () |
void | top () |
void | bottom () |
int | mvwin (int y, int x) |
bool | hidden () const |
NCursesPanel & | above () const |
NCursesPanel & | below () const |
PANEL * | PANEL_above () const |
PANEL * | PANEL_below () const |
int | transparent (int y, int x) |
int | refresh () |
int | noutrefresh () |
virtual void | frame (const char *title=NULL, const char *btitle=NULL) |
virtual void | boldframe (const char *title=NULL, const char *btitle=NULL) |
virtual void | label (const char *topLabel, const char *bottomLabel) |
virtual void | centertext (int row, const char *label) |
Static Public Member Functions | |
void | redraw () |
Protected Member Functions | |
void | set_user (void *user) |
void * | get_user () const |
void | OnError (int err) const THROWS((NCursesPanelException)) |
Static Protected Member Functions | |
const NCursesPanel * | get_Panel_of (const PANEL &pan) |
Protected Attributes | |
PANEL * | p |
Static Protected Attributes | |
NCursesPanel * | dummy = (NCursesPanel*)0 |
Private Member Functions | |
void | init () |
Friends | |
std::ostream & | operator<< (std::ostream &Stream, const NCursesPanel &Obj_Cv) |
std::ostream & | operator<< (std::ostream &Stream, const NCursesPanel *Obj_Cv) |
|
Create a panel with this size starting at the requested position. |
|
This constructor creates the default Panel associated with the ::stdscr window |
|
|
|
The functions panel_above() and panel_below() are not reflected in the NCursesPanel class. The reason for this is, that we cannot assume that a panel retrieved by those operations is one wrapped by a C++ class. Although this situation might be handled, we also need a reverse mapping from PANEL to NCursesPanel which needs some redesign of the low level stuff. At the moment, we define them in the interface but they will always produce an error. |
|
|
|
Same as frame(), but use highlighted attributes. |
|
Make this panel the bottom panel in the stack. N.B.: The panel associated with ::stdscr is always on the bottom. So actually bottom() makes the panel the first above ::stdscr. |
|
Put the label text centered in the specified row. |
|
Put a frame around the panel and put the title centered in the top line and btitle in the bottom line. |
|
|
|
|
|
Return TRUE if the panel is hidden, FALSE otherwise. |
|
Hide the panel. It stays in the stack but becomes invisible. |
|
Initialize the panel object Reimplemented from NCursesWindow. |
|
Put the title centered in the top line and btitle in the bottom line. |
|
Move window to new position with the new position as top left corner. This is virtual because it is redefined in NCursesPanel. Reimplemented from NCursesWindow. |
|
Propagate all panel changes to the virtual screen. Reimplemented from NCursesWindow. |
|
If err is equal to the curses error indicator ERR, an error handler is called. |
|
|
|
|
|
Redraw all panels. |
|
Propagate all panel changes to the virtual screen and update the physical screen. Reimplemented from NCursesWindow. |
|
Resize the panel window. Reimplemented from NCursesWindow. |
|
Set the user pointer of the panel. |
|
Show the panel, i.e. make it visible. |
|
Make this panel the top panel in the stack. |
|
|
|
|
|
|
|
|
|
|