Ultralight  1.0.0
A fast, lightweight, HTML UI engine for native apps.
MouseEvent.h
Go to the documentation of this file.
1 #pragma once
15 #include <Ultralight/Defines.h>
16 
17 namespace ultralight {
18 
24 class MouseEvent {
25 public:
29  enum Type {
34 
39 
44  };
45 
49  enum Button {
50  kButton_None = 0,
51  kButton_Left,
52  kButton_Middle,
53  kButton_Right,
54  };
55 
60 
64  int x;
65 
69  int y;
70 
75 };
76 
77 } // namespace ultralight
Mouse button pressed type.
Definition: MouseEvent.h:38
Button
The various mouse button types.
Definition: MouseEvent.h:49
int y
The current y-position of the mouse, relative to the View.
Definition: MouseEvent.h:69
Button button
The mouse button that was pressed/released, if any.
Definition: MouseEvent.h:74
This is a set of common JavaScriptCore Helper functions to simplify sample code.
Definition: App.h:19
Mouse button released type.
Definition: MouseEvent.h:43
A generic mouse event.
Definition: MouseEvent.h:24
int x
The current x-position of the mouse, relative to the View.
Definition: MouseEvent.h:64
Type type
The type of this MouseEvent.
Definition: MouseEvent.h:59
Type
The various MouseEvent types.
Definition: MouseEvent.h:29