Wt 3.3.12
|
A scrollbar attached to a scroll area. More...
#include <Wt/WScrollBar>
Public Member Functions | |
Orientation | orientation () const |
Returns the orientation of this scrollbar. | |
void | setValue (int value) |
Sets the scrollbar value (in pixels). | |
![]() | |
WObject (WObject *parent=0) | |
Create a WObject with a given parent object. | |
virtual | ~WObject () |
Destructor. | |
virtual const std::string | id () const |
Returns the (unique) identifier for this object. | |
virtual void | setObjectName (const std::string &name) |
Sets an object name. | |
virtual std::string | objectName () const |
Returns the object name. | |
void | resetLearnedSlots () |
Resets learned stateless slot implementations. | |
template<class T > | |
void | resetLearnedSlot (void(T::*method)()) |
Resets a learned stateless slot implementation. | |
template<class T > | |
WStatelessSlot * | implementStateless (void(T::*method)()) |
Declares a slot to be stateless and learn client-side behaviour on first invocation. | |
template<class T > | |
WStatelessSlot * | implementStateless (void(T::*method)(), void(T::*undoMethod)()) |
Declares a slot to be stateless and learn client-side behaviour in advance. | |
void | isNotStateless () |
Marks the current function as not stateless. | |
template<class T > | |
WStatelessSlot * | implementJavaScript (void(T::*method)(), const std::string &jsCode) |
Provides a JavaScript implementation for a method. | |
void | addChild (WObject *child) |
Adds a child object. | |
virtual void | removeChild (WObject *child) |
Removes a child object. | |
const std::vector< WObject * > & | children () const |
Returns the children. | |
WObject * | parent () const |
Returns the parent object. | |
Static Public Member Functions | |
static void | tie (WScrollBar *one, WScrollBar *two) |
Ties two scrollbars together. | |
static void | unTie (WScrollBar *one, WScrollBar *two) |
Unties two scrollbars, that were previously tied together. | |
Additional Inherited Members | |
![]() | |
typedef void(WObject::* | Method) () |
Typedef for a WObject method without arguments. | |
![]() | |
virtual WStatelessSlot * | getStateless (Method method) |
On-demand stateless slot implementation. | |
![]() | |
static WObject * | sender () |
Returns the sender of the current slot call. | |
A scrollbar attached to a scroll area.
A WScrollArea always has two scrollbars (even if they are not visible, for example when the policy is WScrollArea::ScrollBarAlwaysOff). Using the tie(WScrollBar *one, WScrollBar *two) functions, it is possible to tie two scrollbars together, so that they will scroll together.
void Wt::WScrollBar::setValue | ( | int | value | ) |
Sets the scrollbar value (in pixels).
This will move the scrollbar to the given value.
|
static |
Ties two scrollbars together.
The effect of this call is that these scrollbars will keep their positions synchronised.
|
static |
Unties two scrollbars, that were previously tied together.