aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Event.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-09 14:20:39 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-09 14:20:39 +0100
commit2ff3369a7aaf98936bf93f1c7c0dbfcaa38c31d7 (patch)
treeb8b3fae16111f4d5df73077c5e0e28a1639c9f3f /src/crepe/api/Event.h
parentb6167713c11e26f513f0c5b82701e6cee88de8cb (diff)
make format
Diffstat (limited to 'src/crepe/api/Event.h')
-rw-r--r--src/crepe/api/Event.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/crepe/api/Event.h b/src/crepe/api/Event.h
index 265e925..d3e99af 100644
--- a/src/crepe/api/Event.h
+++ b/src/crepe/api/Event.h
@@ -39,7 +39,7 @@ public:
class MousePressEvent : public Event {
public:
//! mouse position
- ivec2 mouse_pos = {0,0};
+ ivec2 mouse_pos = {0, 0};
//! The mouse button that was pressed.
MouseButton button = MouseButton::NONE;
@@ -51,7 +51,7 @@ public:
class MouseClickEvent : public Event {
public:
//! mouse position
- ivec2 mouse_pos = {0,0};
+ ivec2 mouse_pos = {0, 0};
//! The mouse button that was clicked.
MouseButton button = MouseButton::NONE;
@@ -63,7 +63,7 @@ public:
class MouseReleaseEvent : public Event {
public:
//! mouse position
- ivec2 mouse_pos = {0,0};
+ ivec2 mouse_pos = {0, 0};
//! The mouse button that was released.
MouseButton button = MouseButton::NONE;
@@ -75,9 +75,9 @@ public:
class MouseMoveEvent : public Event {
public:
//! new mouse position
- ivec2 mouse_pos = {0,0};
+ ivec2 mouse_pos = {0, 0};
//! The change in mouse position relative to the last position (in pixels).
- ivec2 mouse_delta = {0,0};
+ ivec2 mouse_delta = {0, 0};
};
/**
@@ -86,7 +86,7 @@ public:
class MouseScrollEvent : public Event {
public:
//! mouse position when the scroll happened.
- ivec2 mouse_pos = {0,0};
+ ivec2 mouse_pos = {0, 0};
//! scroll direction (-1 = down, 1 = up)
int scroll_direction = 0;
//! scroll amount in y axis (from and away from the person).
@@ -112,35 +112,35 @@ class ShutDownEvent : public Event {};
*
* When two windows overlap the bottom window gets distorted and that window has to be redrawn.
*/
-class WindowExposeEvent : public Event{};
+class WindowExposeEvent : public Event {};
/**
* \brief Event triggered to indicate the window is resized.
*/
-class WindowResizeEvent : public Event{
- public:
+class WindowResizeEvent : public Event {
+public:
//! new window dimensions
- ivec2 dimensions = {0,0};
+ ivec2 dimensions = {0, 0};
};
/**
* \brief Event triggered to indicate the window is moved.
*/
-class WindowMoveEvent : public Event{
- public:
+class WindowMoveEvent : public Event {
+public:
//! The change in position relative to the last position (in pixels).
- ivec2 delta_move = {0,0};
+ ivec2 delta_move = {0, 0};
};
/**
* \brief Event triggered to indicate the window is minimized.
*/
-class WindowMinimizeEvent : public Event{};
+class WindowMinimizeEvent : public Event {};
/**
* \brief Event triggered to indicate the window is maximized
*/
-class WindowMaximizeEvent : public Event{};
+class WindowMaximizeEvent : public Event {};
/**
* \brief Event triggered to indicate the window gained focus
@@ -148,7 +148,7 @@ class WindowMaximizeEvent : public Event{};
* This event is triggered when the window receives focus, meaning it becomes the active window
* for user interaction.
*/
-class WindowFocusGainEvent : public Event{};
+class WindowFocusGainEvent : public Event {};
/**
* \brief Event triggered to indicate the window lost focus
@@ -156,6 +156,6 @@ class WindowFocusGainEvent : public Event{};
* This event is triggered when the window loses focus, meaning it is no longer the active window
* for user interaction.
*/
-class WindowFocusLostEvent : public Event{};
+class WindowFocusLostEvent : public Event {};
} // namespace crepe