|
int | width_request () |
| Returns the maximum width requested by any child. More...
|
|
int | height_request (int width) |
| Returns the maximum height requested by any child. More...
|
|
void | destroy () |
| Destroys the visible representation of this widget and disconnects it from any children that it may have. More...
|
|
void | layout_me () |
|
virtual widget_ref | get_focus () |
|
widget_ref | visible_widget () |
|
unsigned int | num_children () |
|
unsigned int | num_visible () |
|
virtual void | paint (const style &st) |
| Display this widget. More...
|
|
void | dispatch_mouse (short id, int x, int y, int z, mmask_t bstate) |
|
void | show_all () |
| Display this widget and all its subwidgets. More...
|
|
void | set_show_tabs (bool shown) |
|
void | add_widget (const widget_ref &widget) |
| Add a title-less widget. More...
|
|
void | add_widget (const widget_ref &widget, const std::wstring &title) |
|
void | add_widget_bare (widget &widget, const std::wstring &title) |
|
void | add_widget_after (const widget_ref &widget, const widget_ref &after) |
|
void | add_widget_after_bare (cwidget::widgets::widget &widget, cwidget::widgets::widget &after) |
|
void | add_widget_after (const widget_ref &widget, const widget_ref &after, const std::wstring &title) |
|
void | add_widget_after_bare (cwidget::widgets::widget &widget, cwidget::widgets::widget &after, const std::wstring &title) |
|
void | rem_widget (const widget_ref &widget) |
|
void | cycle_forward () |
|
void | cycle_backward () |
|
virtual widget_ref | get_focus ()=0 |
|
widget_ref | get_active_widget () |
| Return the currently "active" child of this container, or NULL. More...
|
|
virtual void | dispatch_mouse (short id, int x, int y, int z, mmask_t bstate) |
|
virtual bool | focus_me () |
|
virtual bool | get_cursorvisible () |
|
virtual point | get_cursorloc () |
|
virtual void | add_widget (const widget_ref &)=0 |
|
void | add_visible_widget (const widget_ref &, bool visible) |
|
virtual void | rem_widget (const widget_ref &)=0 |
|
void | add_widget_bare (widget &w) |
|
void | add_visible_widget_bare (widget &w, bool visible) |
|
void | rem_widget_bare (widget &w) |
|
virtual widget_ref | get_active_widget ()=0 |
| Return the currently "active" child of this container, or NULL. More...
|
|
virtual void | show_all ()=0 |
| Display this widget and all its subwidgets. More...
|
|
void | incref () |
|
void | decref () |
|
void | show () |
|
virtual void | show_all () |
|
void | hide () |
|
void | toggle_visible () |
|
void | set_visible (bool _visible) |
|
bool | dispatch_key (const config::key &k) |
|
virtual void | dispatch_mouse (short id, int x, int y, int z, mmask_t bstate) |
|
virtual int | width_request ()=0 |
|
virtual int | height_request (int width)=0 |
| Calculate the desired height of the widget, given its width. More...
|
|
void | alloc_size (int x, int y, int w, int h) |
| Set the size and location in the parent of this widget. More...
|
|
virtual bool | focus_me () |
|
bool | get_isfocussed () |
|
void | set_owner (container *w) |
|
void | display (const style &st) |
| Display this widget in the given style environment. More...
|
|
int | timeout (int msecs) |
|
virtual void | destroy () |
| Destroys the visible representation of this widget and disconnects it from any children that it may have. More...
|
|
util::ref_ptr< container > | get_owner () |
|
virtual bool | get_cursorvisible ()=0 |
|
virtual point | get_cursorloc ()=0 |
|
int | get_startx () |
|
int | get_starty () |
|
int | get_width () |
|
int | get_height () |
|
bool | get_visible () |
|
void | sync () |
|
int | scroll (int n=1) |
|
int | addch (chtype ch) |
|
int | mvaddch (int y, int x, chtype ch) |
|
int | add_wch (wchar_t wch) |
|
int | add_wch (const cchar_t *cch) |
|
int | mvadd_wch (int y, int x, wchar_t wch) |
|
int | mvadd_wch (int y, int x, const cchar_t *cch) |
|
int | addstr (const char *str) |
|
int | addnstr (const char *str, int n) |
|
int | mvaddstr (int y, int x, const char *str) |
|
int | mvaddnstr (int y, int x, const char *str, int n) |
|
int | addstr (const wchar_t *str) |
|
int | addnstr (const wchar_t *str, int n) |
|
int | mvaddstr (int y, int x, const wchar_t *str) |
|
int | mvaddnstr (int y, int x, const wchar_t *str, int n) |
|
int | addstr (const std::wstring &str) |
|
int | addnstr (const std::wstring &str, int n) |
|
int | mvaddstr (int y, int x, const std::wstring &str) |
|
int | mvaddnstr (int y, int x, const std::wstring &str, int n) |
|
int | addstr (const wchstring &str) |
|
int | addnstr (const wchstring &str, int n) |
|
int | mvaddstr (int y, int x, const wchstring &str) |
|
int | mvaddnstr (int y, int x, const wchstring &str, int n) |
|
int | addstr (const chstring &str) |
|
int | addnstr (const chstring &str, int n) |
|
int | mvaddstr (int y, int x, const chstring &str) |
|
int | mvaddnstr (int y, int x, const chstring &str, int n) |
|
int | attroff (int attrs) |
|
int | attron (int attrs) |
|
int | attrset (int attrs) |
|
void | bkgdset (const chtype ch) |
|
int | bkgd (const chtype ch) |
|
chtype | getbkgd () |
|
int | border (chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br) |
|
int | box (chtype verch, chtype horch) |
|
int | hline (chtype ch, int n) |
|
int | vline (chtype ch, int n) |
|
int | mvhline (int y, int x, chtype ch, int n) |
|
int | mvvline (int y, int x, chtype ch, int n) |
|
int | delch () |
|
int | mvdelch (int y, int x) |
|
int | deleteln () |
|
int | insdelln (int n) |
|
int | insertln () |
|
int | echochar (chtype ch) |
|
int | move (int y, int x) |
|
void | getyx (int &y, int &x) |
|
void | getbegyx (int &y, int &x) |
|
void | getmaxyx (int &y, int &x) |
|
int | getmaxy () |
|
int | getmaxx () |
|
void | show_string_as_progbar (int x, int y, const std::wstring &s, const style &st1, const style &st2, int size1, int totalsize) |
|
void | display_header (std::wstring s, const style &st) |
|
void | display_status (std::wstring s, const style &st) |
|
int | erase () |
|
int | clear () |
|
int | clrtobot () |
|
int | clrtoeol () |
|
int | keypad (bool bf) |
|
int | meta (bool bf) |
|
bool | enclose (int y, int x) |
|
void | set_opaque (bool opaque) |
| Enable or disable clearing the background before displaying the widget. More...
|
|
void | set_bg_style (const style &new_style) |
| Update this widget's basic style to the given value. More...
|
|
void | apply_style (const style &st) |
| Set the display attributes of our associated window directly from the given style. More...
|
|
key_connection | connect_key (const std::string &key, config::keybindings *bindings, const sigc::slot0< void > &slot) |
|
key_connection | connect_key_post (const std::string &key, config::keybindings *bindings, const sigc::slot0< void > &slot) |
|
void | disconnect_key (key_connection c) |
|
void | disconnect_key_post (key_connection c) |
|
This widget displays exactly one of its children at once.
Hiding a child will prevent it from appearing; showing a child will add it to the list of visible children, and make it the currently visible child if it isn't already.
An optional "tab bar" listing the children of the multiplexer can be activated using set_show_tabs.
This widget requests enough space for its largest visible child.