#include <sliderverticalgrip.h>
Public Member Functions | |
| SliderVerticalGrip (s16 x, s16 y, u16 width, u16 height) | |
Protected Member Functions | |
| virtual void | drawContents (GraphicsPort *port) |
| virtual void | drawBorder (GraphicsPort *port) |
| virtual void | onClick (s16 x, s16 y) |
| virtual void | onRelease (s16 x, s16 y) |
| virtual void | onReleaseOutside (s16 x, s16 y) |
| virtual void | onDrag (s16 x, s16 y, s16 vX, s16 vY) |
| virtual | ~SliderVerticalGrip () |
| SliderVerticalGrip (const SliderVerticalGrip &sliderVerticalGrip) | |
Class representing the grip, or draggable button, with a vertical slider.
| WoopsiUI::SliderVerticalGrip::SliderVerticalGrip | ( | 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::SliderVerticalGrip::~SliderVerticalGrip | ( | ) | [inline, protected, virtual] |
Destructor.
| WoopsiUI::SliderVerticalGrip::SliderVerticalGrip | ( | const SliderVerticalGrip & | sliderVerticalGrip | ) | [inline, protected] |
Copy constructor is protected to prevent usage.
| virtual void WoopsiUI::SliderVerticalGrip::drawBorder | ( | GraphicsPort * | port | ) | [protected, virtual] |
Draw the area of this gadget that falls within the clipping region. Called by the redraw() function to draw all visible regions.
| port | The GraphicsPort to draw to. |
Reimplemented from WoopsiUI::Gadget.
| virtual void WoopsiUI::SliderVerticalGrip::drawContents | ( | GraphicsPort * | port | ) | [protected, virtual] |
Draw the area of this gadget that falls within the clipping region. Called by the redraw() function to draw all visible regions.
| port | The GraphicsPort to draw to. |
Reimplemented from WoopsiUI::Gadget.
| virtual void WoopsiUI::SliderVerticalGrip::onClick | ( | s16 | x, | |
| s16 | y | |||
| ) | [protected, virtual] |
Starts dragging the grip and redraws it.
| x | The x co-ordinate of the click. | |
| y | The y co-ordinate of the click. |
Reimplemented from WoopsiUI::Gadget.
| virtual void WoopsiUI::SliderVerticalGrip::onDrag | ( | s16 | x, | |
| s16 | y, | |||
| s16 | vX, | |||
| s16 | vY | |||
| ) | [protected, virtual] |
Moves the grip to follow the stylus.
| x | The x co-ordinate of the stylus. | |
| y | The y co-ordinate of the stylus. | |
| vX | The horizontal distance of the drag. | |
| vY | The vertical distance of the drag. |
Reimplemented from WoopsiUI::Gadget.
| virtual void WoopsiUI::SliderVerticalGrip::onRelease | ( | s16 | x, | |
| s16 | y | |||
| ) | [protected, virtual] |
Redraws the grip.
| x | The x co-ordinate of the stylus. | |
| y | The y co-ordinate of the stylus. |
Reimplemented from WoopsiUI::Gadget.
| virtual void WoopsiUI::SliderVerticalGrip::onReleaseOutside | ( | s16 | x, | |
| s16 | y | |||
| ) | [protected, virtual] |
Redraws the grip.
| x | The x co-ordinate of the stylus. | |
| y | The y co-ordinate of the stylus. |
Reimplemented from WoopsiUI::Gadget.
1.6.3