Nana ++ Library  
An open-source C++ framework project
The Website 
nana::gui::scroll<bool Vertical>

Description

A scroll provides a way that a window can display the data object that is larger than the window's client area.

Model of

Widget Window 

Public base classes

class widget_object<widget_tag>: public widget

Template parameter

bool Vertical The scrollbar's style, vertical or horizontal.

Typedefs

size_type A type that represents the value of a scrollbar.


Members

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.

File

nana/gui/widgets/scroll.hpp

Notes

None.

See also

None.


Move to The Nana Programmer's Guide Main Page