Loading...
Searching...
No Matches
Event.h
Go to the documentation of this file.
1//
2// Event.h
3//
4
5#ifndef MALENA_EVENT_H
6#define MALENA_EVENT_H
7
8#pragma once
9
11
12namespace ml
13{
36 enum class Event
37 {
38 // ── Mouse ─────────────────────────────────────────────────────────
46
47 // ── Scroll ────────────────────────────────────────────────────────
49
50 // ── Focus ─────────────────────────────────────────────────────────
53
54 // ── Keyboard ──────────────────────────────────────────────────────
58
59 // ── Selection ─────────────────────────────────────────────────────
62
63 // ── Frame ─────────────────────────────────────────────────────────
65
66 // ── Lifecycle ─────────────────────────────────────────────────────
69
70 // ── Window ────────────────────────────────────────────────────────
74 };
75
76} // namespace ml
77
78#endif // MALENA_EVENT_H
Event
Framework-level enum for all built-in Malena events.
Definition Event.h:37
@ TEXT_ENTERED
Unicode character entered while component has focus.
Definition Event.h:57
@ MOUSE_RELEASED
Raw mouse button released over component.
Definition Event.h:43
@ UPDATE
Every frame, before drawing.
Definition Event.h:64
@ READY
Fired once after INIT — all components are registered and the object is ready to run.
Definition Event.h:68
@ WINDOW_FOCUS_GAINED
Application window gained OS focus.
Definition Event.h:72
@ CLICK
Mouse button released over component.
Definition Event.h:39
@ WINDOW_RESIZED
Application window was resized.
Definition Event.h:71
@ SCROLL
Mouse wheel scrolled over component.
Definition Event.h:48
@ MOUSE_MOVED
Mouse moved anywhere in window.
Definition Event.h:44
@ MOUSE_PRESSED
Raw mouse button pressed over component.
Definition Event.h:42
@ UNHOVER
Mouse left component bounds.
Definition Event.h:41
@ SELECTED
Component was programmatically selected.
Definition Event.h:60
@ FOCUS
Component gained keyboard focus.
Definition Event.h:51
@ WINDOW_FOCUS_LOST
Application window lost OS focus.
Definition Event.h:73
@ KEYPRESS
Key pressed while component has focus.
Definition Event.h:55
@ KEY_RELEASE
Key released while component has focus.
Definition Event.h:56
@ HOVER
Mouse entered component bounds.
Definition Event.h:40
@ BLUR
Component lost keyboard focus.
Definition Event.h:52
@ DESELECTED
Component was programmatically deselected.
Definition Event.h:61
@ INIT
Fired once before the first frame — use to configure properties and register components.
Definition Event.h:67
@ DRAG
Component is being dragged.
Definition Event.h:45
Definition Component.h:22