Inheritance diagram for Exponent::GUI::Controls::CXYPad:
1.0.1 Added jump to position for mouse down
Definition at line 40 of file CXYPad.hpp.
Exponent::GUI::Controls::CXYPad::CXYPad | ( | IControlRoot * | root, | |
const long | uniqueId, | |||
const CRect & | area, | |||
IActionListener * | listener = NULL | |||
) |
Construction
root | The root control that this control is being added to | |
uniqueId | The unique Identifier of this control or CCONTROL_NO_ID_REQUIRED if no id is required | |
area | The area of this control relative to the root controls top left | |
listener | The action listener |
virtual Exponent::GUI::Controls::CXYPad::~CXYPad | ( | ) | [virtual] |
Destruction
virtual void Exponent::GUI::Controls::CXYPad::checkAndLock | ( | const CPoint & | point | ) | [protected, virtual] |
Check if the area is rolled over and lock if so
point | The point to check |
virtual void Exponent::GUI::Controls::CXYPad::drawControl | ( | CGraphics & | graphics | ) | [virtual] |
Draw the controls
graphics | The graphics context |
Reimplemented from Exponent::GUI::Controls::CControl.
Reimplemented in Exponent::GUI::Controls::CModulatedXYPad.
virtual double Exponent::GUI::Controls::CXYPad::getXValue | ( | ) | [inline, virtual] |
Get the x value
double | x position value in range 0 - 1 |
Definition at line 102 of file CXYPad.hpp.
References m_xValue.
virtual double Exponent::GUI::Controls::CXYPad::getYValue | ( | ) | [inline, virtual] |
Get the y value
double | y position value in range 0 - 1 |
Definition at line 108 of file CXYPad.hpp.
References m_yValue.
virtual void Exponent::GUI::Controls::CXYPad::handleDoubleClick | ( | CMouseEvent & | event | ) | [virtual] |
Handle a double click on the left button
event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::CXYPad::handleLeftButtonDown | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being clicked
event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::CXYPad::handleLeftButtonUp | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being released
event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::CXYPad::handleMouseMovement | ( | CMouseEvent & | event | ) | [virtual] |
Handle the mouse movement
event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::CXYPad::setColours | ( | CAlphaColour | frameColour, | |
CAlphaColour | backgroundColour, | |||
CAlphaColour | handleColour, | |||
CAlphaColour | handleOverColour, | |||
CAlphaColour | handleDownColour | |||
) | [virtual] |
Set the colours
frameColour | The colour of the frame | |
backgroundColour | The background colour of the control | |
handleColour | The colour of the area that can be grabbed by the user | |
handleOverColour | The colour of the area that can be grabbed by the user when mouse is over | |
handleDownColour | The colour of the area that can be grabbed by the user when mouse is grabbing it |
virtual void Exponent::GUI::Controls::CXYPad::setHandleImage | ( | IImage * | handleImage, | |
IImage * | rolloverHandleImage, | |||
IImage * | downHandleImage | |||
) | [virtual] |
Set the handle images
handleImage | The image of the area that can be grabbed by the user | |
rolloverHandleImage | The image of the area that can be grabbed by the user when mouse is over | |
downHandleImage | The image of the area that can be grabbed by the user when mouse is grabbing it |
virtual void Exponent::GUI::Controls::CXYPad::setXValue | ( | const double | xValue | ) | [virtual] |
Set the x value
xValue | The x position value in range 0 - 1 |
Reimplemented in Exponent::GUI::Controls::CModulatedXYPad.
virtual void Exponent::GUI::Controls::CXYPad::setYValue | ( | const double | yValue | ) | [virtual] |
Set the y value
yValue | The y position value in range 0 - 1 |
Reimplemented in Exponent::GUI::Controls::CModulatedXYPad.
CPoint Exponent::GUI::Controls::CXYPad::m_grabOffset [protected] |
What is the offset to where they grabbed?
Definition at line 157 of file CXYPad.hpp.
CRect Exponent::GUI::Controls::CXYPad::m_handleArea [protected] |
The hnadle area
Definition at line 156 of file CXYPad.hpp.
CAlphaColour Exponent::GUI::Controls::CXYPad::m_handleColour [protected] |
The colour of the handle
Definition at line 171 of file CXYPad.hpp.
CAlphaColour Exponent::GUI::Controls::CXYPad::m_handleDownColour [protected] |
The colour of the handle when mouse is down
Definition at line 173 of file CXYPad.hpp.
IImage* Exponent::GUI::Controls::CXYPad::m_handleDownImage [protected] |
The down image
Definition at line 169 of file CXYPad.hpp.
IImage* Exponent::GUI::Controls::CXYPad::m_handleImage [protected] |
The handle image
Definition at line 167 of file CXYPad.hpp.
CAlphaColour Exponent::GUI::Controls::CXYPad::m_handleOverColour [protected] |
The colour of the handle when mouse is over
Definition at line 172 of file CXYPad.hpp.
IImage* Exponent::GUI::Controls::CXYPad::m_handleRolloverImage [protected] |
The rolled over image
Definition at line 168 of file CXYPad.hpp.
double Exponent::GUI::Controls::CXYPad::m_horizontalRange [protected] |
The range of the horizontal handle
Definition at line 162 of file CXYPad.hpp.
bool Exponent::GUI::Controls::CXYPad::m_isDragging [protected] |
Are we dragging the slider
Definition at line 160 of file CXYPad.hpp.
Current state of slider (0 = off : 1 = over : 2 = on)
Definition at line 158 of file CXYPad.hpp.
double Exponent::GUI::Controls::CXYPad::m_verticalRange [protected] |
The range of the vertical handle
Definition at line 161 of file CXYPad.hpp.
double Exponent::GUI::Controls::CXYPad::m_xValue [protected] |
double Exponent::GUI::Controls::CXYPad::m_yValue [protected] |