Wt  3.3.9
Public Member Functions | Static Public Member Functions | List of all members
Wt::WScrollBar Class Reference

A scrollbar attached to a scroll area. More...

#include <Wt/WScrollBar>

Inheritance diagram for Wt::WScrollBar:
Inheritance graph
[legend]

Public Member Functions

Orientation orientation () const
 Returns the orientation of this scrollbar.
 
void setValue (int value)
 Sets the scrollbar value (in pixels). More...
 
- Public Member Functions inherited from Wt::WObject
 WObject (WObject *parent=0)
 Create a WObject with a given parent object. More...
 
virtual ~WObject ()
 Destructor. More...
 
virtual const std::string id () const
 Returns the (unique) identifier for this object. More...
 
virtual void setObjectName (const std::string &name)
 Sets an object name. More...
 
virtual std::string objectName () const
 Returns the object name. More...
 
void resetLearnedSlots ()
 Resets learned stateless slot implementations. More...
 
template<class T >
void resetLearnedSlot (void(T::*method)())
 Resets a learned stateless slot implementation. More...
 
template<class T >
WStatelessSlot * implementStateless (void(T::*method)())
 Declares a slot to be stateless and learn client-side behaviour on first invocation. More...
 
template<class T >
WStatelessSlot * implementStateless (void(T::*method)(), void(T::*undoMethod)())
 Declares a slot to be stateless and learn client-side behaviour in advance. More...
 
void isNotStateless ()
 Marks the current function as not stateless. More...
 
template<class T >
WStatelessSlot * implementJavaScript (void(T::*method)(), const std::string &jsCode)
 Provides a JavaScript implementation for a method. More...
 
void addChild (WObject *child)
 Adds a child object. More...
 
virtual void removeChild (WObject *child)
 Removes a child object. More...
 
const std::vector< WObject * > & children () const
 Returns the children.
 
WObjectparent () const
 Returns the parent object.
 

Static Public Member Functions

static void tie (WScrollBar *one, WScrollBar *two)
 Ties two scrollbars together. More...
 
static void unTie (WScrollBar *one, WScrollBar *two)
 Unties two scrollbars, that were previously tied together. More...
 

Additional Inherited Members

- Public Types inherited from Wt::WObject
typedef void(WObject::* Method) ()
 Typedef for a WObject method without arguments.
 
- Protected Member Functions inherited from Wt::WObject
virtual WStatelessSlot * getStateless (Method method)
 On-demand stateless slot implementation. More...
 
- Static Protected Member Functions inherited from Wt::WObject
static WObjectsender ()
 Returns the sender of the current slot call. More...
 

Detailed Description

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.

See also
WScrollArea

Member Function Documentation

void Wt::WScrollBar::setValue ( int  value)

Sets the scrollbar value (in pixels).

This will move the scrollbar to the given value.

void Wt::WScrollBar::tie ( WScrollBar one,
WScrollBar two 
)
static

Ties two scrollbars together.

The effect of this call is that these scrollbars will keep their positions synchronised.

void Wt::WScrollBar::unTie ( WScrollBar one,
WScrollBar two 
)
static

Unties two scrollbars, that were previously tied together.

Undo a tie(WScrollBar *one, WScrollBar *two);


Generated on Tue Nov 21 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11