Inheritance diagram for Exponent::GUI::Controls::CRangeSlider:
1.0.1 Added Jump to max
Definition at line 40 of file CRangeSlider.hpp.
enum Exponent::GUI::Controls::CRangeSlider::EDragId [protected] |
What is being draggged?
e_notDragging | Nothing being dragged |
e_draggingTop | Top being dragged |
e_draggingHandle | Main bit being dragged |
e_draggingBottom | Bottom being dragged |
Definition at line 162 of file CRangeSlider.hpp.
Exponent::GUI::Controls::CRangeSlider::CRangeSlider | ( | 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::CRangeSlider::~CRangeSlider | ( | ) | [virtual] |
Destruction
virtual void Exponent::GUI::Controls::CRangeSlider::checkAndLock | ( | const CPoint & | point | ) | [protected, virtual] |
Check if the area is rolled over and lock if necessary
point | The point to check |
virtual void Exponent::GUI::Controls::CRangeSlider::drawControl | ( | CGraphics & | graphics | ) | [virtual] |
Draw the controls
graphics | The graphics context |
Reimplemented from Exponent::GUI::Controls::CControl.
Reimplemented in Exponent::GUI::Controls::CModulatedSlider.
virtual double Exponent::GUI::Controls::CRangeSlider::getMaximumValue | ( | ) | const [inline, virtual] |
Get the maximum value
double | The maximum value of the slider |
Definition at line 88 of file CRangeSlider.hpp.
References m_maxValue.
virtual double Exponent::GUI::Controls::CRangeSlider::getMinimumValue | ( | ) | const [inline, virtual] |
Get the minimum value
double | The minimum value of the slider |
Definition at line 82 of file CRangeSlider.hpp.
References m_minValue.
bool Exponent::GUI::Controls::CRangeSlider::handleBarMovement | ( | CMouseEvent & | event | ) | [protected] |
Handle movement in the handle
event | The event to handle |
bool Exponent::GUI::Controls::CRangeSlider::handleBottomMovement | ( | CMouseEvent & | event | ) | [protected] |
Handle movement in the bottom of the bar
event | The event to handle |
virtual void Exponent::GUI::Controls::CRangeSlider::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::CRangeSlider::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::CRangeSlider::handleMouseLeavingArea | ( | CMouseEvent & | event | ) | [virtual] |
Handle the mouse leaving the window area
event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::CRangeSlider::handleMouseMovement | ( | CMouseEvent & | event | ) | [virtual] |
Handle the mouse movement
event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::CRangeSlider::handleMouseScroll | ( | CMouseEvent & | event | ) | [virtual] |
Handle the scroll wheel
event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
void Exponent::GUI::Controls::CRangeSlider::handleMovement | ( | CMouseEvent & | event | ) | [protected] |
Handle movement
event | The event to handle |
bool Exponent::GUI::Controls::CRangeSlider::handleTopMovement | ( | CMouseEvent & | event | ) | [protected] |
Handle movement in the top of the bar
event | The event to handle |
virtual void Exponent::GUI::Controls::CRangeSlider::lockPositions | ( | const bool | lockMin, | |
const bool | lockMax, | |||
const double | minValue, | |||
const double | maxValue, | |||
const bool | jumpToMax = true | |||
) | [virtual] |
Lock the positions
lockMin | If true min is locked to minValue | |
lockMax | If true max is locked to maxValue | |
minValue | If lockMin is true the min is locked to this value | |
maxValue | If lockMax is true the max is locked to this value | |
jumpToMax | If true the max will jump to this position, generally for use if min is locked in place |
virtual void Exponent::GUI::Controls::CRangeSlider::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::CRangeSlider::setMaximumValue | ( | const double | maxValue | ) | [virtual] |
Set the maximum value
maxValue | The maximum value |
virtual void Exponent::GUI::Controls::CRangeSlider::setMinimumValue | ( | const double | minValue | ) | [virtual] |
Set the minimum value
minValue | The minimum value |
Drag id
Definition at line 212 of file CRangeSlider.hpp.
CPoint Exponent::GUI::Controls::CRangeSlider::m_grabOffset [protected] |
What is the offset to where they grabbed?
Definition at line 205 of file CRangeSlider.hpp.
CAlphaColour Exponent::GUI::Controls::CRangeSlider::m_handleColour [protected] |
Colour of the slider
Definition at line 206 of file CRangeSlider.hpp.
CAlphaColour Exponent::GUI::Controls::CRangeSlider::m_handleDownColour [protected] |
Colour of the slider when mouse is down
Definition at line 208 of file CRangeSlider.hpp.
CAlphaColour Exponent::GUI::Controls::CRangeSlider::m_handleOverColour [protected] |
Colour of the slider when mouse is over
Definition at line 207 of file CRangeSlider.hpp.
bool Exponent::GUI::Controls::CRangeSlider::m_isVertical [protected] |
Is the slider vertical?
Definition at line 211 of file CRangeSlider.hpp.
bool Exponent::GUI::Controls::CRangeSlider::m_jumpToMax [protected] |
Should mouse down jump to the max value? -> implies lock min, moveable max
Definition at line 219 of file CRangeSlider.hpp.
bool Exponent::GUI::Controls::CRangeSlider::m_lockMax [protected] |
Lock the max?
Definition at line 217 of file CRangeSlider.hpp.
bool Exponent::GUI::Controls::CRangeSlider::m_lockMin [protected] |
Lock the min?
Definition at line 218 of file CRangeSlider.hpp.
double Exponent::GUI::Controls::CRangeSlider::m_maxValue [protected] |
double Exponent::GUI::Controls::CRangeSlider::m_minValue [protected] |
The minimum values
Definition at line 214 of file CRangeSlider.hpp.
Referenced by getMinimumValue().
CRect Exponent::GUI::Controls::CRangeSlider::m_sliderArea [protected] |
The area of the slider
Definition at line 204 of file CRangeSlider.hpp.
Current state of slider (0 = off : 1 = over : 2 = on)
Definition at line 210 of file CRangeSlider.hpp.