Loading...
Searching...
No Matches
Event.h
Go to the documentation of this file.
1//
2// Event.h
3//
4
5#ifndef EVENT_H
6#define EVENT_H
7
8#pragma once
9
10namespace ml
11{
33 enum class Event
34 {
35 // ── Mouse ─────────────────────────────────────────────────────────
43
44 // ── Scroll ────────────────────────────────────────────────────────
46
47 // ── Focus ─────────────────────────────────────────────────────────
50
51 // ── Keyboard ──────────────────────────────────────────────────────
55
56 // ── Frame ─────────────────────────────────────────────────────────
58
59 // ── Window ────────────────────────────────────────────────────────
63 };
64
65} // namespace ml
66
67#endif // EVENT_H
Event
Framework-level enum for all built-in Malena events.
Definition Event.h:34
@ TEXT_ENTERED
Unicode character entered while component has focus.
Definition Event.h:54
@ MOUSE_RELEASED
Raw mouse button released over component.
Definition Event.h:40
@ UPDATE
Every frame, before drawing.
Definition Event.h:57
@ WINDOW_FOCUS_GAINED
Application window gained OS focus.
Definition Event.h:61
@ CLICK
Mouse button released over component.
Definition Event.h:36
@ WINDOW_RESIZED
Application window was resized.
Definition Event.h:60
@ SCROLL
Mouse wheel scrolled over component.
Definition Event.h:45
@ MOUSE_MOVED
Mouse moved anywhere in window.
Definition Event.h:41
@ MOUSE_PRESSED
Raw mouse button pressed over component.
Definition Event.h:39
@ UNHOVER
Mouse left component bounds.
Definition Event.h:38
@ FOCUS
Component gained keyboard focus.
Definition Event.h:48
@ WINDOW_FOCUS_LOST
Application window lost OS focus.
Definition Event.h:62
@ KEYPRESS
Key pressed while component has focus.
Definition Event.h:52
@ KEY_RELEASE
Key released while component has focus.
Definition Event.h:53
@ HOVER
Mouse entered component bounds.
Definition Event.h:37
@ BLUR
Component lost keyboard focus.
Definition Event.h:49
@ DRAG
Component is being dragged.
Definition Event.h:42
Definition Component.h:18