cohtml::MouseEventData
#include <InputEvents.h>
Public Types
| Name | |
|---|---|
| enum | EventType { MouseMove, MouseDown, MouseUp, MouseWheel, MouseLeave} |
| enum | MouseButton { ButtonNone = 0, ButtonLeft = 0, ButtonMiddle, ButtonRight, ButtonBack, ButtonForward} |
Public Functions
| Name | |
|---|---|
| MouseEventData() |
Public Attributes
| Name | |
|---|---|
| EventType | Type The type of the event. |
| MouseButton | Button The mouse button that triggered the event. |
| int | X The X position of the mouse in pixels in the space of the view. |
| int | Y The Y position of the mouse in pixels in the space of the view. |
| float | WheelX Scroll Delta X in wheel ticks. Positive numbers mean scrolling left. |
| float | WheelY Scroll Delta Y in wheel ticks. Positive numbers mean scrolling up. |
| int | DeltaX |
| int | DeltaY |
| EventModifiersState | Modifiers Key modifiers. |
| EventMouseModifiersState | MouseModifiers Mouse modifiers. |
Public Types Documentation
enum EventType
| Enumerator | Value | Description |
|---|---|---|
| MouseMove | ||
| MouseDown | ||
| MouseUp | ||
| MouseWheel | ||
| MouseLeave |
enum MouseButton
| Enumerator | Value | Description |
|---|---|---|
| ButtonNone | 0 | |
| ButtonLeft | 0 | |
| ButtonMiddle | ||
| ButtonRight | ||
| ButtonBack | ||
| ButtonForward |
Public Functions Documentation
function MouseEventData
inline MouseEventData()
Public Attributes Documentation
variable Type
EventType Type;
The type of the event.
variable Button
MouseButton Button;
The mouse button that triggered the event.
variable X
int X;
The X position of the mouse in pixels in the space of the view.
variable Y
int Y;
The Y position of the mouse in pixels in the space of the view.
variable WheelX
float WheelX;
Scroll Delta X in wheel ticks. Positive numbers mean scrolling left.
variable WheelY
float WheelY;
Scroll Delta Y in wheel ticks. Positive numbers mean scrolling up.
variable DeltaX
int DeltaX;
variable DeltaY
int DeltaY;
variable Modifiers
EventModifiersState Modifiers;
Key modifiers.
variable MouseModifiers
EventMouseModifiersState MouseModifiers;
Mouse modifiers.