#include <slider.h>
Inheritance diagram for wftk::Slider:

Public Types | |
| enum | Orientation { VERTICAL, HORIZONTAL } |
| Enumeration for visual alignment of this Slider. | |
Public Member Functions | |
| Slider (Orientation orient, unsigned thickness=25) | |
| Create a new Slider using a given Orientation and pixel thickness. | |
| void | setButtonColor (const Color &) |
| Set the color of the index button of this slider. | |
| void | setButtonSurface (const Surface &) |
| Set the index button Surface of this slider, using direct reference. | |
| void | setButtonSurface (Surface::Resource *) |
| Set the index button Surface, using a Resource pointer. | |
| void | setButtonSurface (const std::string &) |
| Set the index button Surface, using a named Resource. | |
| void | setRange (int min, int max) |
| Set the minimal and maximal values reportable by this Slider. | |
| void | setDelta (int delta) |
| Set the amount moved with calls to increase() and decrease(). | |
| virtual void | increase () |
| Move the slider towards the minimum range, by Delta, if possible. | |
| virtual void | decrease () |
| Move the slider towards maximum range, by Delta, if possible. | |
| void | setValue (int) |
| Set the slider to an absolute position, if within range. | |
| int | value () const |
| Return the value representing current position in range. | |
| virtual bool | mouseEvent (const Point &pos, const Point &rel, Mouse::Button mask) |
| mouse motion event handler | |
| virtual bool | buttonEvent (Mouse::Button, bool pressed, const Point &) |
| mouse button event handler | |
Public Attributes | |
| SigC::Signal1< void, int > | valueChanged |
| Signal that the value of this slider has changed. | |
Protected Member Functions | |
| virtual void | draw (Surface &, const Point &, const Region &) |
| The area drawn to must lie within the given region. | |
| virtual void | handleResize (Uint16 w, Uint16 h) |
| Calculate new shape for shaped widgets, call to setShape() after a resize. | |
| virtual void | setPackingInfo () |
| recalculate the object's prefered size | |
|
||||||||||||||||
|
The area drawn to must lie within the given region. This is protected so derived classes can call their parents' draw() in their own implementations. Reimplemented from wftk::Widget. |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.