|
ddt 1.1.0
|
#include <ddtCornergrabber.hpp>
Public Types | |
| enum | { CG_MOUSE_RELEASED = 0 , CG_MOUSE_DOWN , CG_MOUSE_MOVING } |
Public Attributes | |
| qreal | mouse_down_x |
| qreal | mouse_down_y |
| CornerGrabber (QGraphicsItem *parent=nullptr, const int corner=0) | |
| int | GetCorner () const |
| void | SetMouseState (const int state) |
| int | GetMouseState () const |
Class for corner grabbing resizable graphical elements.
|
explicit |
Constructor
| parent | Pointer to the parent graphics item. |
| corner | The corner. |
| int CornerGrabber::GetCorner | ( | ) | const |
Check which corner was selected
| int CornerGrabber::GetMouseState | ( | ) | const |
Get the current mouse state
| void CornerGrabber::SetMouseState | ( | const int | state | ) |
Record the current mouse state
| state | The current mouse state. |
| qreal CornerGrabber::mouse_down_x |
Mouse coordinate x
| qreal CornerGrabber::mouse_down_y |
Mouse coordinate y