![]() |
MAK Data Logger API Documentation for HLA
|
Classes used to track mouse drags. More...
Inheritance diagram for MAKLogger::DtDragComponent:
Collaboration diagram for MAKLogger::DtDragComponent:Public Member Functions | |
| DtDragComponent () | |
| CTOR. More... | |
| virtual | ~DtDragComponent () |
| DTOR. More... | |
| void | registerMousePress (const QMouseEvent &e) |
| To be called when mouse is pressed. More... | |
| void | registerMouseRelease (const QMouseEvent &e) |
| To be called when mouse is released. More... | |
| void | registerMouseMove (const QMouseEvent &e) |
| To be called when mouse is moved. More... | |
| QPoint | absolutePosition () const |
| Get the absolute position of the mouse. More... | |
| QPoint | relativePosition () const |
| Get the relative position of the mouse from the initial position. More... | |
| QPoint | relativeVelocity () const |
| Get the relative position of the mouse from the last update. More... | |
| bool | currentlyDragging () const |
| Get whether the mouse is currently dragging. More... | |
Protected Attributes | |
| QPoint | myFirstPosition |
| QPoint | myLastPosition |
| QPoint | myCurrentPosition |
| bool | myDownFlag |
Classes used to track mouse drags.
| MAKLogger::DtDragComponent::DtDragComponent | ( | ) |
CTOR.
|
virtual |
DTOR.
| QPoint MAKLogger::DtDragComponent::absolutePosition | ( | ) | const |
Get the absolute position of the mouse.
| bool MAKLogger::DtDragComponent::currentlyDragging | ( | ) | const |
Get whether the mouse is currently dragging.
| void MAKLogger::DtDragComponent::registerMouseMove | ( | const QMouseEvent & | e | ) |
To be called when mouse is moved.
| void MAKLogger::DtDragComponent::registerMousePress | ( | const QMouseEvent & | e | ) |
To be called when mouse is pressed.
| void MAKLogger::DtDragComponent::registerMouseRelease | ( | const QMouseEvent & | e | ) |
To be called when mouse is released.
| QPoint MAKLogger::DtDragComponent::relativePosition | ( | ) | const |
Get the relative position of the mouse from the initial position.
| QPoint MAKLogger::DtDragComponent::relativeVelocity | ( | ) | const |
Get the relative position of the mouse from the last update.
|
protected |
|
protected |
|
protected |
|
protected |