#include <button.h>
Inheritance diagram for cwidget::widgets::button:
Public Member Functions | |
void | paint (const style &st) |
Display this widget. | |
bool | get_cursorvisible () |
point | get_cursorloc () |
bool | focus_me () |
int | width_request () |
int | height_request (int width) |
Calculate the desired height of the widget, given its width. | |
void | dispatch_mouse (short id, int x, int y, int z, mmask_t bmask) |
void | set_label (const fragment *_label) |
Static Public Member Functions | |
static util::ref_ptr< button > | create (const std::wstring &label) |
static util::ref_ptr< button > | create (fragment *label) |
Instantiate a button. | |
static util::ref_ptr< button > | create (const std::string &label) |
Instantiate a button. | |
Public Attributes | |
sigc::signal0< void > | pressed |
Protected Member Functions | |
bool | handle_key (const config::key &k) |
Handles a keypress in this widget. | |
fragment_cache * | get_label () const |
button (const std::wstring &_label) | |
Instantiate a button. | |
button (fragment *_label) | |
button (const std::string &_label) |
|
Instantiate a button.
|
|
Instantiate a button.
|
|
Instantiate a button.
|
|
Handles a keypress in this widget.
Reimplemented from cwidget::widgets::widget. |
|
Calculate the desired height of the widget, given its width.
Implements cwidget::widgets::widget. |
|
Display this widget.
Implements cwidget::widgets::widget. |
|
Implements cwidget::widgets::widget. |