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

List of all members.

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< scrollbarcreate (direction dir, int val, int max)
static util::ref_ptr< scrollbarcreate (direction dir)

Public Attributes

sigc::signal1< void, boolscrollbar_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)

Member Function Documentation

int cwidget::widgets::scrollbar::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::scrollbar::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::scrollbar::width_request ( ) [virtual]
Returns:
the desired width of the widget.

Implements cwidget::widgets::widget.


Member Data Documentation

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".


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