1.26.2.1
Gameface
cohtml::MouseEventData Struct Reference

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...
 

Member Enumeration Documentation

◆ EventType

Enumerator
MouseMove 
MouseDown 
MouseUp 
MouseWheel 

◆ MouseButton

Enumerator
ButtonNone 
ButtonLeft 
ButtonMiddle 
ButtonRight 
ButtonBack 
ButtonForward 

Constructor & Destructor Documentation

◆ MouseEventData()

cohtml::MouseEventData::MouseEventData ( )
inline

Member Data Documentation

◆ Button

MouseButton cohtml::MouseEventData::Button

The mouse button that triggered the event.

◆ Modifiers

EventModifiersState cohtml::MouseEventData::Modifiers

Key modifiers.

◆ MouseModifiers

EventMouseModifiersState cohtml::MouseEventData::MouseModifiers

Mouse modifiers.

◆ Type

EventType cohtml::MouseEventData::Type

The type of the event.

◆ WheelX

float cohtml::MouseEventData::WheelX

Scroll Delta X in wheel ticks. Positive numbers mean scrolling left.

◆ WheelY

float cohtml::MouseEventData::WheelY

Scroll Delta Y in wheel ticks. Positive numbers mean scrolling up.

◆ X

int cohtml::MouseEventData::X

The X position of the mouse in pixels in the space of the view.

◆ Y

int cohtml::MouseEventData::Y

The Y position of the mouse in pixels in the space of the view.