Inheritance diagram for Exponent::GUI::Controls::CWindowDragTab:
A handle to a window. Provides dragging functionality
Couple of caveats:
1. This class directly edits the base class window. Make sure you actually want to do this..
2. This class must be directly added to the root control of a window to have any chance of sucess.
Definition at line 37 of file CWindowDragTab.hpp.
Exponent::GUI::Controls::CWindowDragTab::CWindowDragTab | ( | 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::CWindowDragTab::~CWindowDragTab | ( | ) | [virtual] |
Destruction
virtual void Exponent::GUI::Controls::CWindowDragTab::drawControl | ( | CGraphics & | graphics | ) | [virtual] |
Draw the controls
graphics | The graphics context |
Reimplemented from Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::CWindowDragTab::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::CWindowDragTab::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::CWindowDragTab::handleMouseMovement | ( | CMouseEvent & | event | ) | [virtual] |
Handle the mouse movement
event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
CPoint Exponent::GUI::Controls::CWindowDragTab::m_dragOffset [protected] |
Where did they click inside our area?
Definition at line 94 of file CWindowDragTab.hpp.
bool Exponent::GUI::Controls::CWindowDragTab::m_mouseIsDown [protected] |
Have the clicked in our area
Definition at line 93 of file CWindowDragTab.hpp.