cwidget 0.5.16
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions
cwidget::widgets::statuschoice Class Reference
Inheritance diagram for cwidget::widgets::statuschoice:
cwidget::widgets::widget trackable

List of all members.

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::keybindingsbindings = 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)

Member Function Documentation

bool cwidget::widgets::statuschoice::handle_key ( const config::key k) [protected, virtual]

Handles a keypress in this widget.

Parameters:
kthe key that was pressed (see keybindings.h).
Returns:
true if the key was consumed; if false is returned, further processing of the key will be performed.

Reimplemented from cwidget::widgets::widget.

References cwidget::config::key::ch, 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.

Parameters:
widththe width of this widget
Returns:
the desired height

Implements cwidget::widgets::widget.

void cwidget::widgets::statuschoice::paint ( const style st) [virtual]

Display this widget.

Parameters:
stthe style environment in which the widget is to be displayed.

Implements cwidget::widgets::widget.

int cwidget::widgets::statuschoice::width_request ( ) [virtual]
Returns:
the desired width of the widget.

Implements cwidget::widgets::widget.


The documentation for this class was generated from the following files: