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