Handle for rotating an editor item.
More...
#include <RotateHandle.hh>
Inherits QGraphicsItem.
|
| RotateHandle (QGraphicsItem *_parent=0) |
| Constructor param[in] _parent Parent graphics item.
|
|
| ~RotateHandle () |
| Destructor.
|
|
virtual QRectF | boundingRect () const |
| Get the bounding box of the rotate handle.
|
|
double | MouseDownX () const |
| Get the X position of the mouse press.
|
|
double | MouseDownY () const |
| Get the Y position of the mouse press.
|
|
int | MouseState () const |
| Get the current mouse state.
|
|
void | SetMouseDownX (const double _x) |
| Set the X position of the mouse press.
|
|
void | SetMouseDownY (const double _y) |
| Set the Y position of the mouse press.
|
|
void | SetMouseState (const int _state) |
| Set the current mouse state.
|
|
|
void | hoverEnterEvent (QGraphicsSceneHoverEvent *_event) |
| Qt mouse hover enter event.
|
|
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *_event) |
| Qt mouse hover leave event.
|
|
void | mouseMoveEvent (QGraphicsSceneMouseEvent *_event) |
| Qt mouse move event.
|
|
void | mousePressEvent (QGraphicsSceneMouseEvent *_event) |
| Qt mouse press event.
|
|
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *_event) |
| Qt mouse release event.
|
|
Handle for rotating an editor item.
◆ RotateHandle()
Constructor param[in] _parent Parent graphics item.
◆ ~RotateHandle()
◆ boundingRect()
virtual QRectF boundingRect |
( |
| ) |
const |
|
virtual |
Get the bounding box of the rotate handle.
- Returns
- The grabber handle bounding box.
◆ hoverEnterEvent()
void hoverEnterEvent |
( |
QGraphicsSceneHoverEvent * | _event | ) |
|
|
protected |
Qt mouse hover enter event.
- Parameters
-
[in] | _event | Qt mouse hover event |
◆ hoverLeaveEvent()
void hoverLeaveEvent |
( |
QGraphicsSceneHoverEvent * | _event | ) |
|
|
protected |
Qt mouse hover leave event.
- Parameters
-
[in] | _event | Qt mouse hover event |
◆ MouseDownX()
double MouseDownX |
( |
| ) |
const |
◆ MouseDownY()
double MouseDownY |
( |
| ) |
const |
◆ mouseMoveEvent()
void mouseMoveEvent |
( |
QGraphicsSceneMouseEvent * | _event | ) |
|
|
protected |
Qt mouse move event.
- Parameters
-
◆ mousePressEvent()
void mousePressEvent |
( |
QGraphicsSceneMouseEvent * | _event | ) |
|
|
protected |
Qt mouse press event.
- Parameters
-
◆ mouseReleaseEvent()
void mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * | _event | ) |
|
|
protected |
Qt mouse release event.
- Parameters
-
◆ MouseState()
◆ SetMouseDownX()
void SetMouseDownX |
( |
const double | _x | ) |
|
Set the X position of the mouse press.
- Parameters
-
[in] | _x | Mouse press X position in pixel coordinates. |
- See also
- double MouseDownX() const
◆ SetMouseDownY()
void SetMouseDownY |
( |
const double | _y | ) |
|
Set the Y position of the mouse press.
- Parameters
-
[in] | _y | Mouse press Y position in pixel coordinates. |
- See also
- double MouseDownY() const
◆ SetMouseState()
void SetMouseState |
( |
const int | _state | ) |
|
The documentation for this class was generated from the following file: