Public Member Functions | |
int | width_request () |
int | height_request (int w) |
Calculate the desired height of the widget, given its width. | |
bool | get_cursorvisible () |
point | get_cursorloc () |
bool | focus_me () |
void | paint (const style &st) |
Display this widget. | |
Static Public Member Functions | |
static util::ref_ptr < statuschoice > | create (const std::wstring &prompt, const std::wstring &choices) |
static void | init_bindings () |
Public Attributes | |
sigc::signal1< void, int > | chosen |
Static Public Attributes | |
static config::keybindings * | bindings = NULL |
Protected Member Functions | |
bool | handle_key (const config::key &k) |
Handles a keypress in this widget. | |
statuschoice (const std::wstring &_prompt, const std::wstring &_choices) |
bool cwidget::widgets::statuschoice::handle_key | ( | const config::key & | k | ) | [protected, virtual] |
Handles a keypress in this widget.
k | the key that was pressed (see keybindings.h). |
Reimplemented from cwidget::widgets::widget.
References cwidget::config::key::ch, cwidget::widgets::widget::destroy(), and cwidget::config::key::function_key.
int cwidget::widgets::statuschoice::height_request | ( | int | width | ) | [virtual] |
Calculate the desired height of the widget, given its width.
width | the width of this widget |
Implements cwidget::widgets::widget.
void cwidget::widgets::statuschoice::paint | ( | const style & | st | ) | [virtual] |
Display this widget.
Implements cwidget::widgets::widget.
int cwidget::widgets::statuschoice::width_request | ( | ) | [virtual] |
Implements cwidget::widgets::widget.