scroll() |
The default contsruction. |
scroll(window wd, bool visible) |
Creates a scrollbar. |
scroll(window wd, const rectangle& r = rectangle(), bool visible = false) |
Ditto. |
bool scrollable(bool for_less) const |
Determines whether it is scrollable. If for_less is true, it returns true when it can be scrolled for a less value. Otherwise, it returns true when it can be scrolled for a large value. |
size_type amount() const |
Returns the amount value of the scrollbar. |
void amount(size_type) |
Sets the amount value of the scrollbar. |
size_type value() const |
Returns the value of the scrollbar. |
void value(size_type) |
Sets the value of the scrollbar. |
size_type range() const |
Returns the range of the scrollbar, the range determines the length of thumb. |
void range(size_type m) |
Sets the range of the scrollbar. |
size_type step() const |
Returns the step of a scrollbar, the step stands for a variation of the value. |
void step(size_type) |
Sets the the step. |
size_type make_step(bool forward) |
Increases or decreases value by step and returns a new value of a scrollbar. |
size_type make_scroll(bool forward) |
Increases or decreases value by steps as if scrolling with mouse wheel. |