Nana C++ Library. Reference for users.
What we need to use nana
|
Public Types | |
using | size_type = std::size_t |
Public Member Functions | |
virtual | ~scroll_interface ()=default |
virtual bool | scrollable (bool for_less) const =0 |
Determines whether it is scrollable. More... | |
virtual size_type | amount () const =0 |
the whole total (peak) More... | |
virtual void | amount (size_type peak)=0 |
virtual size_type | range () const =0 |
Get the range of the widget (how many is shown on a page, that is, How many to scroll after click on first or second) More... | |
virtual void | range (size_type r)=0 |
Set the range of the widget. More... | |
virtual size_type | value () const =0 |
Get the value (current offset calculated from the very beginning) More... | |
virtual void | value (size_type s)=0 |
Set the value. More... | |
virtual size_type | step () const =0 |
Get the step of the sroll widget. The step indicates a variation of the value. More... | |
virtual void | step (size_type s)=0 |
Set the step. More... | |
virtual bool | make_step (bool forward, unsigned steps=1)=0 |
Increase/decrease values by a step (alternatively by some number of steps). More... | |
virtual window | window_handle () const =0 |
|
virtualdefault |
|
pure virtual |
the whole total (peak)
Implemented in nana::scroll< Vert >, nana::scroll< false >, nana::scroll< Vertical >, and nana::scroll< true >.
|
pure virtual |
Implemented in nana::scroll< Vert >, nana::scroll< false >, nana::scroll< Vertical >, and nana::scroll< true >.
|
pure virtual |
Increase/decrease values by a step (alternatively by some number of steps).
forward | it determines whether increase or decrease. |
Implemented in nana::scroll< Vert >, nana::scroll< false >, nana::scroll< Vertical >, and nana::scroll< true >.
|
pure virtual |
Get the range of the widget (how many is shown on a page, that is, How many to scroll after click on first or second)
Implemented in nana::scroll< Vert >, nana::scroll< false >, nana::scroll< Vertical >, and nana::scroll< true >.
|
pure virtual |
Set the range of the widget.
Implemented in nana::scroll< Vert >, nana::scroll< false >, nana::scroll< Vertical >, and nana::scroll< true >.
|
pure virtual |
Determines whether it is scrollable.
for_less | whether it can be scrolled for a less value (backward or "up" if true, forward or "down" if false). |
Implemented in nana::scroll< Vert >, nana::scroll< false >, nana::scroll< Vertical >, and nana::scroll< true >.
|
pure virtual |
Get the step of the sroll widget. The step indicates a variation of the value.
Implemented in nana::scroll< Vert >, nana::scroll< false >, nana::scroll< Vertical >, and nana::scroll< true >.
|
pure virtual |
Set the step.
s | a value for step. |
Implemented in nana::scroll< Vert >, nana::scroll< false >, nana::scroll< Vertical >, and nana::scroll< true >.
|
pure virtual |
Get the value (current offset calculated from the very beginning)
Implemented in nana::scroll< Vert >, nana::scroll< false >, nana::scroll< Vertical >, and nana::scroll< true >.
|
pure virtual |
Set the value.
s | a new value. |
Implemented in nana::scroll< Vert >, nana::scroll< false >, nana::scroll< Vertical >, and nana::scroll< true >.
|
pure virtual |
Implemented in nana::scroll< Vert >, nana::scroll< false >, nana::scroll< Vertical >, and nana::scroll< true >.