Inherits MAppletMessage.
List of all members.
Detailed Description
A base class for mouse event related applet messages.
A mouse event contains the position of the mouse pointer when the event occurred.
Constructor & Destructor Documentation
MAppletMouseMessage::MAppletMouseMessage |
( |
MAppletMessageType |
type, |
|
|
const QPointF & |
pos = QPointF() , |
|
|
Qt::MouseButton |
button = Qt::NoButton , |
|
|
Qt::MouseButtons |
buttons = Qt::NoButton | |
|
) |
| | |
Constructor for the inheriting classes.
- Parameters:
-
| type | the type of the applet message. |
| pos | the position of the mouse pointer in the event. |
| button | mouse button that triggered this event. |
| buttons | state of mouse buttons when triggering this event. |
MAppletMouseMessage::~MAppletMouseMessage |
( |
|
) |
[virtual] |
Member Function Documentation
Qt::MouseButton MAppletMouseMessage::button |
( |
|
) |
const |
Returns the enumerator of the mouse button of the event.
- Returns:
- the mouse button enumerator.
Qt::MouseButtons MAppletMouseMessage::buttons |
( |
|
) |
const |
Returns the state of mouse buttons when this event was triggered.
- Returns:
- state of mouse buttons.
QPointF MAppletMouseMessage::position |
( |
|
) |
const |
Returns the mouse pointer position of the event.
- Returns:
- the mouse pointer position.
void MAppletMouseMessage::setButton |
( |
const Qt::MouseButton & |
button |
) |
|
Sets the mouse button enumerator that triggered this event.
- Parameters:
-
| button | triggering mouse button. |
void MAppletMouseMessage::setButtons |
( |
const Qt::MouseButtons & |
buttons |
) |
|
Sets the state of mouse buttons when this event was triggered.
- Parameters:
-
| buttons | state of mouse buttons. |
void MAppletMouseMessage::setPosition |
( |
const QPointF & |
pos |
) |
|
Sets the mouse pointer position of the event.
- Parameters:
-