Inheritance diagram for Exponent::GUI::Controls::IControl:
Controls are leightweight classes that can draw themselves and can handle input from various sources (depending on what listener you register as)
Each control has several key function and attributes:
Definition at line 66 of file IControl.hpp.
Exponent::GUI::Controls::IControl::IControl | ( | ) | [inline] |
Construction
Definition at line 78 of file IControl.hpp.
virtual Exponent::GUI::Controls::IControl::~IControl | ( | ) | [inline, virtual] |
Destruction
Definition at line 83 of file IControl.hpp.
virtual void Exponent::GUI::Controls::IControl::controlIsDropFileEnabled | ( | const bool | dropEnabled = true |
) | [pure virtual] |
Does the control accept dropped files?
dropEnabled | True if the control accepts dropped file messages, false otherwise |
Implemented in Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::IControl::controlIsEnabledFor | ( | const CString & | identifier | ) | [pure virtual] |
Reserved for Future use
identifier | The identifier of the control that this control is enabled for |
Implemented in Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::IControl::controlIsKeyEnabled | ( | const bool | keyEnabled = true |
) | [pure virtual] |
Does the control accept key messages
keyEnabled | True if the control accepts keyboard messages, false otherwise |
Implemented in Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::IControl::controlIsMouseEnabled | ( | const bool | mouseEnabled = true |
) | [pure virtual] |
Does the control accept mouse messages?
mouseEnabled | True if the control accepts mouse messages, false otherwise |
Implemented in Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::IControl::disableControl | ( | ) | [pure virtual] |
Disable the control
Implemented in Exponent::GUI::Controls::CControl, and Exponent::GUI::Controls::CControlPanel.
virtual void Exponent::GUI::Controls::IControl::drawControl | ( | CGraphics & | graphics | ) | [pure virtual] |
virtual void Exponent::GUI::Controls::IControl::enableControl | ( | ) | [pure virtual] |
Enable a control
Implemented in Exponent::GUI::Controls::CControl, and Exponent::GUI::Controls::CControlPanel.
virtual const CRect& Exponent::GUI::Controls::IControl::getAbsoluteRect | ( | ) | const [pure virtual] |
Get the position on the window
const | CRect& The absolute rectangle of the control - ie the actual on screen position fully adjusted |
Implemented in Exponent::GUI::Controls::CControl.
virtual const CRect& Exponent::GUI::Controls::IControl::getArea | ( | ) | const [pure virtual] |
Get the position relative to their root
const | CRect& The controls area relative to the root control |
Implemented in Exponent::GUI::Controls::CControl.
virtual const CDimension& Exponent::GUI::Controls::IControl::getDimension | ( | ) | const [pure virtual] |
Get the size of the control
const | CDimension& The dimension of the control |
Implemented in Exponent::GUI::Controls::CControl.
virtual IControl* Exponent::GUI::Controls::IControl::getParentControl | ( | ) | const [pure virtual] |
Get the parent control
IControl* | The parent control |
Implemented in Exponent::GUI::Controls::CControl.
virtual IControlRoot* Exponent::GUI::Controls::IControl::getRootControl | ( | ) | const [pure virtual] |
Get the root control
IControlRoot* | The control root |
Implemented in Exponent::GUI::Controls::CControl.
virtual long Exponent::GUI::Controls::IControl::getUniqueId | ( | ) | const [pure virtual] |
Get the id of the control
long | The unique control identifier |
Implemented in Exponent::GUI::Controls::CControl.
virtual double Exponent::GUI::Controls::IControl::getValue | ( | ) | const [pure virtual] |
Get the value of the control
double | The value of the control (0 - 1 ranged) |
Implemented in Exponent::GUI::Controls::CControl.
virtual bool Exponent::GUI::Controls::IControl::isContainer | ( | ) | const [pure virtual] |
Is this control a container of other controls
bool | True if the control is a control container, false otherwise |
Implemented in Exponent::GUI::Controls::CControl, and Exponent::GUI::Controls::CControlPanel.
virtual bool Exponent::GUI::Controls::IControl::isDropFileEnabled | ( | ) | const [pure virtual] |
Is the control drop enabled
bool | True if the control can accept dropped files, false otherwise |
Implemented in Exponent::GUI::Controls::CControl.
virtual bool Exponent::GUI::Controls::IControl::isEnabledFor | ( | const CString & | identifier | ) | [pure virtual] |
Is the control enabled for (future use)
identifier | The identifier for the usage required. |
Implemented in Exponent::GUI::Controls::CControl.
virtual bool Exponent::GUI::Controls::IControl::isKeyEnabled | ( | ) | const [pure virtual] |
Is the control key enabled
bool | True if the control can accept keyboard handling messages, false otherwise |
Implemented in Exponent::GUI::Controls::CControl.
virtual bool Exponent::GUI::Controls::IControl::isMouseEnabled | ( | ) | const [pure virtual] |
Is the control mouse enabled
bool | True if control accepts mouse handling functionality, false otherwise |
Implemented in Exponent::GUI::Controls::CControl.
virtual bool Exponent::GUI::Controls::IControl::needsRightClick | ( | ) | const [pure virtual] |
Does the control require a right click feed?
bool | True if the control needs right click information, false otherwise |
Implemented in Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::IControl::registerActionListener | ( | IActionListener * | listener | ) | [pure virtual] |
Register the action listener
listener | The action listener for this control |
virtual bool Exponent::GUI::Controls::IControl::serializeFromNode | ( | CXMLNode & | node | ) | [pure virtual] |
Serialise the control from a filename
node | The node that you should setup from |
bool | True if loaded from node properly, false otherwise |
virtual bool Exponent::GUI::Controls::IControl::serializeToNode | ( | CXMLNode & | node | ) | [pure virtual] |
Serialise the control from a filename
node | The node that you should setup |
bool | True if saved to node properly, false otherwise |
virtual void Exponent::GUI::Controls::IControl::setArea | ( | const CRect & | area | ) | [pure virtual] |
Set the area of the control
area | The are of the control relative to the root control |
virtual void Exponent::GUI::Controls::IControl::setControlRoot | ( | IControlRoot * | controlRoot | ) | [pure virtual] |
Set the root control that this control is sitting on
controlRoot | The root control |
Implemented in Exponent::GUI::Controls::CControl, and Exponent::GUI::Controls::CControlPanel.
virtual void Exponent::GUI::Controls::IControl::setDisabledImage | ( | IImage * | theImage | ) | [pure virtual] |
Set the disabled image
theImage | The disabled image for the control |
virtual void Exponent::GUI::Controls::IControl::setParentControl | ( | IControl * | parent | ) | [pure virtual] |
Set the parent control
parent | The parent container control |
Implemented in Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::IControl::setPrimaryImage | ( | IImage * | theImage | ) | [pure virtual] |
Set the primary (usually background) image
theImage | The primary image for the control |
virtual void Exponent::GUI::Controls::IControl::setUniqueId | ( | const long | id | ) | [pure virtual] |
Set the id of the control
id | The unique id of the control |
Implemented in Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::IControl::setValue | ( | const double | value | ) | [pure virtual] |
Set the vlaue of the control
value | The value of the control (0 - 1 ranged) |
Implemented in Exponent::GUI::Controls::CCenterSlider, Exponent::GUI::Controls::CControl, Exponent::GUI::Controls::CLatchingButton, Exponent::GUI::Controls::CLevelMeter, Exponent::GUI::Controls::CMomentaryButton, Exponent::GUI::Controls::CProgressBar, and Exponent::GUI::Controls::CSlider.
virtual void Exponent::GUI::Controls::IControl::update | ( | ) | [pure virtual] |
Update the control (redraw it)
Implemented in Exponent::GUI::Controls::CControl.