libyui-ncurses
2.44.1
|
Classes | |
struct | UserHook |
Public Member Functions | |
NCursesPanel (int lines, int cols, int begin_y=0, int begin_x=0) | |
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) |
virtual int | refresh () |
virtual 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 | |
static 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 | |
static const NCursesPanel * | get_Panel_of (const PANEL &pan) |
Protected Attributes | |
PANEL * | p |
Static Protected Attributes | |
static NCursesPanel * | dummy = ( NCursesPanel* )0 |
Friends | |
class | NCDialog |
std::ostream & | operator<< (std::ostream &Stream, const NCursesPanel &Obj_Cv) |
std::ostream & | operator<< (std::ostream &Stream, const NCursesPanel *Obj_Cv) |
Definition at line 35 of file ncursesp.h.
NCursesPanel::NCursesPanel | ( | int | lines, |
int | cols, | ||
int | begin_y = 0 , |
||
int | begin_x = 0 |
||
) | [inline] |
Create a panel with this size starting at the requested position.
Definition at line 119 of file ncursesp.h.
NCursesPanel::NCursesPanel | ( | ) | [inline] |
This constructor creates the default Panel associated with the ::stdscr window
Definition at line 132 of file ncursesp.h.
NCursesPanel& NCursesPanel::above | ( | ) | const [inline] |
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.
Definition at line 214 of file ncursesp.h.
void NCursesPanel::boldframe | ( | const char * | title = NULL , |
const char * | btitle = NULL |
||
) | [virtual] |
Same as frame(), but use highlighted attributes.
Definition at line 126 of file ncursesp.cc.
void NCursesPanel::bottom | ( | ) | [inline] |
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.
Definition at line 180 of file ncursesp.h.
void NCursesPanel::centertext | ( | int | row, |
const char * | label | ||
) | [virtual] |
Put the label text centered in the specified row.
Definition at line 164 of file ncursesp.cc.
void NCursesPanel::frame | ( | const char * | title = NULL , |
const char * | btitle = NULL |
||
) | [virtual] |
Put a frame around the panel and put the title centered in the top line and btitle in the bottom line.
Definition at line 134 of file ncursesp.cc.
bool NCursesPanel::hidden | ( | ) | const [inline] |
Return TRUE if the panel is hidden, FALSE otherwise.
Definition at line 200 of file ncursesp.h.
void NCursesPanel::hide | ( | ) | [inline] |
Hide the panel. It stays in the stack but becomes invisible.
Definition at line 150 of file ncursesp.h.
void NCursesPanel::label | ( | const char * | topLabel, |
const char * | bottomLabel | ||
) | [virtual] |
Put the title centered in the top line and btitle in the bottom line.
Definition at line 154 of file ncursesp.cc.
int NCursesPanel::mvwin | ( | int | begin_y, |
int | begin_x | ||
) | [inline, virtual] |
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.
Definition at line 191 of file ncursesp.h.
int NCursesPanel::noutrefresh | ( | ) | [virtual] |
Propagate all panel changes to the virtual screen.
Reimplemented from NCursesWindow.
Definition at line 119 of file ncursesp.cc.
void NCursesPanel::OnError | ( | int | err | ) | const [inline, protected] |
If err is equal to the curses error indicator ERR, an error handler is called.
Definition at line 109 of file ncursesp.h.
void NCursesPanel::redraw | ( | ) | [static] |
Redraw all panels.
Definition at line 94 of file ncursesp.cc.
int NCursesPanel::refresh | ( | ) | [virtual] |
Propagate all panel changes to the virtual screen and update the physical screen.
Reimplemented from NCursesWindow.
Definition at line 112 of file ncursesp.cc.
virtual int NCursesPanel::resize | ( | int | lines, |
int | columns | ||
) | [inline, virtual] |
Resize the panel window.
Reimplemented from NCursesWindow.
Definition at line 141 of file ncursesp.h.
void NCursesPanel::set_user | ( | void * | user | ) | [inline, protected] |
Set the user pointer of the panel.
Definition at line 78 of file ncursesp.h.
void NCursesPanel::show | ( | ) | [inline] |
Show the panel, i.e. make it visible.
Definition at line 162 of file ncursesp.h.
void NCursesPanel::top | ( | ) | [inline] |
Make this panel the top panel in the stack.
Definition at line 170 of file ncursesp.h.