cwidget
0.5.16
|
Public Types | |
enum | direction { HORIZONTAL, VERTICAL } |
Public Member Functions | |
void | paint (const style &st) |
Display this widget. | |
int | width_request () |
int | height_request (int w) |
Calculate the desired height of the widget, given its width. | |
bool | get_cursorvisible () |
point | get_cursorloc () |
void | dispatch_mouse (short id, int x, int y, int z, mmask_t bstate) |
void | set_slider (int newval, int newmax) |
Static Public Member Functions | |
static util::ref_ptr< scrollbar > | create (direction dir, int val, int max) |
static util::ref_ptr< scrollbar > | create (direction dir) |
Public Attributes | |
sigc::signal1< void, bool > | scrollbar_interaction |
This signal is emitted if the user "pages up" or "pages down" via the scrollbar. | |
Protected Member Functions | |
scrollbar (direction _dir, int _val, int _max) | |
scrollbar (direction _dir) |
int cwidget::widgets::scrollbar::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::scrollbar::paint | ( | const style & | st | ) | [virtual] |
Display this widget.
st | the style environment in which the widget is to be displayed. |
Implements cwidget::widgets::widget.
int cwidget::widgets::scrollbar::width_request | ( | ) | [virtual] |
Implements cwidget::widgets::widget.
sigc::signal1<void, bool> cwidget::widgets::scrollbar::scrollbar_interaction |
This signal is emitted if the user "pages up" or "pages down" via the scrollbar.
Its argument is true for a "page up" and false for a "page down".