aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-17 09:29:47 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-17 09:29:47 +0100
commitc4c896c2995f2b74fca322736aa944b28b14a1f6 (patch)
treea0c3e347bf3227140d67ace685ee18b5b64b4a75 /src/crepe/api
parent093493d1ecc082672d80707c31bd95a5175ab2ce (diff)
start
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/Button.h12
-rw-r--r--src/crepe/api/Event.h9
2 files changed, 11 insertions, 10 deletions
diff --git a/src/crepe/api/Button.h b/src/crepe/api/Button.h
index 08f5dec..e97f884 100644
--- a/src/crepe/api/Button.h
+++ b/src/crepe/api/Button.h
@@ -3,9 +3,19 @@
#include <functional>
#include "UIObject.h"
-
+#include "Event.h"
+#include "Metadata.h"
namespace crepe {
+/**
+ * \brief Event triggered when a button is pressed
+ *
+ */
+class ButtonPressEvent : public Event{
+ public:
+
+
+}
//! Represents a clickable UI button, derived from the UiObject class.
class Button : public UIObject {
public:
diff --git a/src/crepe/api/Event.h b/src/crepe/api/Event.h
index 73bf461..b0dd931 100644
--- a/src/crepe/api/Event.h
+++ b/src/crepe/api/Event.h
@@ -95,15 +95,6 @@ public:
};
/**
- * \brief Event triggered when text is submitted, e.g., from a text input.
- */
-class TextSubmitEvent : public Event {
-public:
- //! The submitted text.
- std::string text = "";
-};
-
-/**
* \brief Event triggered to indicate the application is shutting down.
*/
class ShutDownEvent : public Event {};