Inheritance diagram for Exponent::GUI::Controls::CKnob:
Definition at line 37 of file CKnob.hpp.
Exponent::GUI::Controls::CKnob::CKnob | ( | 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::CKnob::~CKnob | ( | ) | [virtual] |
Destruction
virtual void Exponent::GUI::Controls::CKnob::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::CKnob::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::CKnob::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::CKnob::handleMouseMovement | ( | CMouseEvent & | event | ) | [virtual] |
Handle the mouse movement
event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::CKnob::handleMouseScroll | ( | CMouseEvent & | event | ) | [virtual] |
Handle the scroll wheel
event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::CKnob::setDefaultValue | ( | const double | value | ) | [inline, virtual] |
Set the default value
value | The default value that is returned to on a double click |
Definition at line 101 of file CKnob.hpp.
References m_defaultValue.
virtual void Exponent::GUI::Controls::CKnob::setDeltaCoefficient | ( | const double | coefficient | ) | [inline, virtual] |
Set the coefficient
coefficient | Changes to this value result infasteror slower knob movement. Good default is 0.005 |
Definition at line 107 of file CKnob.hpp.
References m_coefficient.
double Exponent::GUI::Controls::CKnob::m_coefficient [protected] |
Coefficient for movement
Definition at line 117 of file CKnob.hpp.
Referenced by setDeltaCoefficient().
double Exponent::GUI::Controls::CKnob::m_defaultValue [protected] |
bool Exponent::GUI::Controls::CKnob::m_drag [protected] |
CPoint Exponent::GUI::Controls::CKnob::m_dragStartPoint [protected] |
double Exponent::GUI::Controls::CKnob::m_dragStartValue [protected] |