aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Text.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-03 11:56:29 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-03 11:56:29 +0100
commit7551c98ee239963ad65123132419c3c0a9cfccb3 (patch)
treecec2c548bfd4c18707fb820f91701341ea5e37b0 /src/crepe/api/Text.h
parentd1a31a3cafc9aadb047509f5cd8b2befa212add8 (diff)
world units for click
Diffstat (limited to 'src/crepe/api/Text.h')
-rw-r--r--src/crepe/api/Text.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/crepe/api/Text.h b/src/crepe/api/Text.h
deleted file mode 100644
index 6bb011c..0000000
--- a/src/crepe/api/Text.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#pragma once
-
-#include <string>
-
-#include "Color.h"
-#include "UiObject.h"
-#include ""
-namespace crepe {
-
-/**
- * \class Button
- * \brief Represents a clickable UI button, derived from the UiObject class.
- *
- * This class provides functionality for a button in the UI, including toggle state,
- * click handling, and mouse hover detection. A callback function can be provided to
- * handle button clicks.
- */
-class Text : public UiObject {
-public:
- /**
- * \brief Constructs a Button with the specified game object ID and dimensions.
- *
- * \param id The unique ID of the game object associated with this button.
- * \param width The width of the button.
- * \param height The height of the button.
- */
- Text(game_object_id_t id, int width, int height);
-
- Color color = Color{0,0,0,0};
- std::string text = "";
- int size = 0;
- const std::shared_ptr<Font> sprite_image;
-public:
- /**
- * \brief Retrieves the maximum number of instances allowed for this button type.
- *
- * \return Always returns 1, as only a single instance of this type is allowed.
- */
- virtual int get_instances_max() const override { return 10; }
-};
-
-} // namespace crepe