cohtml::MouseEventData

#include <InputEvents.h>

Public Types

Name
enumEventType { MouseMove, MouseDown, MouseUp, MouseWheel, MouseLeave}
enumMouseButton { ButtonNone = 0, ButtonLeft = 0, ButtonMiddle, ButtonRight, ButtonBack, ButtonForward}

Public Functions

Name
MouseEventData()

Public Attributes

Name
EventTypeType
The type of the event.
MouseButtonButton
The mouse button that triggered the event.
intX
The X position of the mouse in pixels in the space of the view.
intY
The Y position of the mouse in pixels in the space of the view.
floatWheelX
Scroll Delta X in wheel ticks. Positive numbers mean scrolling left.
floatWheelY
Scroll Delta Y in wheel ticks. Positive numbers mean scrolling up.
intDeltaX
intDeltaY
EventModifiersStateModifiers
Key modifiers.
EventMouseModifiersStateMouseModifiers
Mouse modifiers.

Public Types Documentation

enum EventType

EnumeratorValueDescription
MouseMove
MouseDown
MouseUp
MouseWheel
MouseLeave

enum MouseButton

EnumeratorValueDescription
ButtonNone0
ButtonLeft0
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.