#include <sliderhorizontalgrip.h>
Public Member Functions | |
| SliderHorizontalGrip (s16 x, s16 y, u16 width, u16 height) | |
| virtual void | draw (Rect clipRect) |
| virtual bool | click (s16 x, s16 y) |
| virtual bool | release (s16 x, s16 y) |
| virtual bool | drag (s16 x, s16 y, s16 vX, s16 vY) |
Protected Member Functions | |
| virtual | ~SliderHorizontalGrip () |
| SliderHorizontalGrip (const SliderHorizontalGrip &sliderHorizontalGrip) | |
Class representing the grip, or draggable button, with a horizontal slider.
| WoopsiUI::SliderHorizontalGrip::SliderHorizontalGrip | ( | s16 | x, | |
| s16 | y, | |||
| u16 | width, | |||
| u16 | height | |||
| ) |
Constructor.
| x | The x co-ordinate of the grip, relative to its parent. | |
| y | The y co-ordinate of the grip, relative to its parent. | |
| width | The width of the grip. | |
| height | The height of the grip. |
| virtual WoopsiUI::SliderHorizontalGrip::~SliderHorizontalGrip | ( | ) | [inline, protected, virtual] |
Destructor.
| WoopsiUI::SliderHorizontalGrip::SliderHorizontalGrip | ( | const SliderHorizontalGrip & | sliderHorizontalGrip | ) | [inline, protected] |
Copy constructor is protected to prevent usage.
| virtual bool WoopsiUI::SliderHorizontalGrip::click | ( | s16 | x, | |
| s16 | y | |||
| ) | [virtual] |
Click the grip at the specified co-ordinates.
| x | The x co-ordinate of the click. | |
| y | The y co-ordinate of the click. |
Reimplemented from WoopsiUI::Gadget.
| virtual bool WoopsiUI::SliderHorizontalGrip::drag | ( | s16 | x, | |
| s16 | y, | |||
| s16 | vX, | |||
| s16 | vY | |||
| ) | [virtual] |
Drag the gadget to the supplied co-ordinates.
| x | The x co-ordinate of the stylus. | |
| y | The y co-ordinate of the stylus. | |
| vX | The horizontal distance that the stylus was dragged. | |
| vY | The vertical distance that the stylus was dragged. |
Reimplemented from WoopsiUI::Gadget.
| virtual void WoopsiUI::SliderHorizontalGrip::draw | ( | Rect | clipRect | ) | [virtual] |
Draw the region of the slider that falls within the clipping rect. Use draw() instead in most circumstances.
| clipRect | The clipping region. |
Reimplemented from WoopsiUI::Gadget.
| virtual bool WoopsiUI::SliderHorizontalGrip::release | ( | s16 | x, | |
| s16 | y | |||
| ) | [virtual] |
Release this gadget at the supplied co-ordinates
| x | X co-ordinate of the release. | |
| y | Y co-ordinate of the release. |
Reimplemented from WoopsiUI::Gadget.
1.6.1