Public Types | |
enum | EventType { MouseMove, MouseDown, MouseUp, MouseWheel } |
enum | MouseButton { ButtonNone = 0, ButtonLeft = 0, ButtonMiddle, ButtonRight, ButtonBack, ButtonForward } |
Public Member Functions | |
MouseEventData () | |
Public Attributes | |
EventType | Type |
The type of the event. More... | |
MouseButton | Button |
The mouse button that triggered the event. More... | |
int | X |
The X position of the mouse in pixels in the space of the view. More... | |
int | Y |
The Y position of the mouse in pixels in the space of the view. More... | |
float | WheelX |
Scroll Delta X in wheel ticks. Positive numbers mean scrolling left. More... | |
float | WheelY |
Scroll Delta Y in wheel ticks. Positive numbers mean scrolling up. More... | |
EventModifiersState | Modifiers |
Key modifiers. More... | |
EventMouseModifiersState | MouseModifiers |
Mouse modifiers. More... | |
|
inline |
MouseButton cohtml::MouseEventData::Button |
The mouse button that triggered the event.
EventModifiersState cohtml::MouseEventData::Modifiers |
Key modifiers.
EventMouseModifiersState cohtml::MouseEventData::MouseModifiers |
Mouse modifiers.
EventType cohtml::MouseEventData::Type |
The type of the event.
float cohtml::MouseEventData::WheelX |
Scroll Delta X in wheel ticks. Positive numbers mean scrolling left.
float cohtml::MouseEventData::WheelY |
Scroll Delta Y in wheel ticks. Positive numbers mean scrolling up.
int cohtml::MouseEventData::X |
The X position of the mouse in pixels in the space of the view.
int cohtml::MouseEventData::Y |
The Y position of the mouse in pixels in the space of the view.