Ultralight C++ API 1.3.0
Loading...
Searching...
No Matches
ultralight::MouseEvent Class Reference

#include <Ultralight/MouseEvent.h>

Details

Generic mouse event representing a change in mouse state.

See also
View::FireMouseEvent

Public Types

enum  Type { kType_MouseMoved , kType_MouseDown , kType_MouseUp }
 The various MouseEvent types. More...
 
enum  Button { kButton_None = 0 , kButton_Left , kButton_Middle , kButton_Right }
 The various mouse button types. More...
 

Public Attributes

Type type
 The type of this MouseEvent.
 
int x
 The current x-position of the mouse, relative to the View.
 
int y
 The current y-position of the mouse, relative to the View.
 
Button button
 The mouse button that was pressed/released, if any.
 

Member Enumeration Documentation

◆ Button

The various mouse button types.

Enumerator
kButton_None 
kButton_Left 
kButton_Middle 
kButton_Right 

◆ Type

The various MouseEvent types.

Enumerator
kType_MouseMoved 

Mouse moved type.

kType_MouseDown 

Mouse button pressed type.

kType_MouseUp 

Mouse button released type.

Member Data Documentation

◆ button

Button ultralight::MouseEvent::button

The mouse button that was pressed/released, if any.

◆ type

Type ultralight::MouseEvent::type

The type of this MouseEvent.

◆ x

int ultralight::MouseEvent::x

The current x-position of the mouse, relative to the View.

◆ y

int ultralight::MouseEvent::y

The current y-position of the mouse, relative to the View.


The documentation for this class was generated from the following file: