Ultralight  1.0.0
A fast, lightweight, HTML UI engine for native apps.
ultralight::MouseEvent Class Reference

A generic mouse event. More...

#include <MouseEvent.h>

Public Types

enum  Type { kType_MouseMoved, kType_MouseDown, kType_MouseUp }
 The various MouseEvent types. More...
 
enum  Button
 The various mouse button types.
 

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.
 

Detailed Description

A generic mouse event.

Note
See also
View::FireMouseEvent

Definition at line 24 of file MouseEvent.h.

Member Enumeration Documentation

◆ Type

The various MouseEvent types.

Enumerator
kType_MouseMoved 

Mouse moved type.

kType_MouseDown 

Mouse button pressed type.

kType_MouseUp 

Mouse button released type.

Definition at line 29 of file MouseEvent.h.


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