# WoopsiUI::SliderVerticalGrip Class Reference

`#include <sliderverticalgrip.h>`

Inheritance diagram for WoopsiUI::SliderVerticalGrip:

List of all members.

## 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)

## Detailed Description

Class representing the grip, or draggable button, with a vertical slider.

## Constructor & Destructor Documentation

WoopsiUI::SliderVerticalGrip::SliderVerticalGrip | ( | s16 | x,
|  | s16 | y,
|  | u16 | width,
|  | u16 | height |
| ) |  |  |

Constructor.

Parameters:

  | 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.

## Member Function Documentation

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.

Parameters:

  | port | The GraphicsPort to draw to.

See also:
  redraw()

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.

Parameters:

  | port | The GraphicsPort to draw to.

See also:
  redraw()

Reimplemented from WoopsiUI::Gadget.

virtual void WoopsiUI::SliderVerticalGrip::onClick | ( | s16 | x,
|  | s16 | y |
| ) |  |  | `[protected, virtual]`

Starts dragging the grip and redraws it.

Parameters:

  | 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.

Parameters:

  | 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.

Parameters:

  | 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.

Parameters:

  | x | The x co-ordinate of the stylus.
  | y | The y co-ordinate of the stylus.

Reimplemented from WoopsiUI::Gadget.

The documentation for this class was generated from the following file:

- sliderverticalgrip.h