Inheritance diagram for Exponent::GUI::Controls::CCenterSlider:
Definition at line 39 of file CCenterSlider.hpp.
Exponent::GUI::Controls::CCenterSlider::CCenterSlider | ( | 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::CCenterSlider::~CCenterSlider | ( | ) | [virtual] |
Destruction
virtual void Exponent::GUI::Controls::CCenterSlider::drawControl | ( | CGraphics & | graphics | ) | [virtual] |
Draw the control
graphics | The graphics context |
Reimplemented from Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::CCenterSlider::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::CCenterSlider::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::CCenterSlider::handleMouseMovement | ( | CMouseEvent & | event | ) | [virtual] |
Handle the mouse movement
event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::CCenterSlider::handleMouseScroll | ( | CMouseEvent & | event | ) | [virtual] |
Handle the scroll wheel
event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
void Exponent::GUI::Controls::CCenterSlider::handleMovement | ( | CMouseEvent & | event | ) | [protected] |
Handle movement
event | The event to handle movement from |
virtual void Exponent::GUI::Controls::CCenterSlider::setColours | ( | CAlphaColour | frameColour, | |
CAlphaColour | backgroundColour, | |||
CAlphaColour | handleColour, | |||
CAlphaColour | handleOverColour, | |||
CAlphaColour | handleDownColour | |||
) | [virtual] |
Set the colours
frameColour | The colour of the outer frame | |
backgroundColour | The background colour | |
handleColour | The colour of the handle the user can grab | |
handleOverColour | The colour of the handle the user can grab when the mouse is over it | |
handleDownColour | The colour of the handle the user can grab when the mouse has grabbed it |
virtual void Exponent::GUI::Controls::CCenterSlider::setValue | ( | const double | value | ) | [virtual] |
Set the value (scaled 0 - 1
value | The value of the slider |
Reimplemented from Exponent::GUI::Controls::CControl.
long Exponent::GUI::Controls::CCenterSlider::m_centerPoint [protected] |
The center point of this control
Definition at line 131 of file CCenterSlider.hpp.
CAlphaColour Exponent::GUI::Controls::CCenterSlider::m_handleColour [protected] |
Colour of the slider
Definition at line 133 of file CCenterSlider.hpp.
CAlphaColour Exponent::GUI::Controls::CCenterSlider::m_handleDownColour [protected] |
Colour of the slider when mouse is down
Definition at line 135 of file CCenterSlider.hpp.
CAlphaColour Exponent::GUI::Controls::CCenterSlider::m_handleOverColour [protected] |
Colour of the slider when mouse is over
Definition at line 134 of file CCenterSlider.hpp.
bool Exponent::GUI::Controls::CCenterSlider::m_isDragging [protected] |
Is the user dragging?
Definition at line 142 of file CCenterSlider.hpp.
bool Exponent::GUI::Controls::CCenterSlider::m_isVertical [protected] |
Is the slider vertical?
Definition at line 141 of file CCenterSlider.hpp.
CRect Exponent::GUI::Controls::CCenterSlider::m_sliderArea [protected] |
The area of the slider
Definition at line 139 of file CCenterSlider.hpp.
Current state of slider (0 = off : 1 = over : 2 = on)
Definition at line 137 of file CCenterSlider.hpp.