#include <MouseEvent.h>
MouseEvent Class.
More...
MouseEvent Class.
Implements an Event that notifies about a Mouse Interaction.
◆ MouseEvent() [1/2]
sofa::core::objectmodel::MouseEvent::MouseEvent |
( |
State |
state, |
|
|
int |
wheelDelta = 0 |
|
) |
| |
Wheel Mouse Event constructor.
◆ MouseEvent() [2/2]
sofa::core::objectmodel::MouseEvent::MouseEvent |
( |
State |
state, |
|
|
int |
posX, |
|
|
int |
posY |
|
) |
| |
◆ ~MouseEvent()
sofa::core::objectmodel::MouseEvent::~MouseEvent |
( |
| ) |
|
|
override |
◆ GetClassName()
static const char* sofa::core::objectmodel::MouseEvent::GetClassName |
( |
| ) |
|
|
inlinestatic |
◆ getPosX()
int sofa::core::objectmodel::MouseEvent::getPosX |
( |
void |
| ) |
const |
|
inline |
◆ getPosY()
int sofa::core::objectmodel::MouseEvent::getPosY |
( |
void |
| ) |
const |
|
inline |
◆ getState()
State sofa::core::objectmodel::MouseEvent::getState |
( |
void |
| ) |
const |
|
inline |
◆ getWheelDelta()
int sofa::core::objectmodel::MouseEvent::getWheelDelta |
( |
void |
| ) |
const |
|
inline |
◆ State
Defines possible Mouse states.
Enumerator |
---|
Move | |
LeftPressed | |
LeftReleased | |
RightPressed | |
RightReleased | |
MiddlePressed | |
MiddleReleased | |
AnyExtraButtonPressed | |
AnyExtraButtonReleased | |
Wheel | |
Reset | |