aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Text.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-12 21:26:03 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-12 21:26:03 +0100
commit5ef7c56e44a864e580810952450c43c0f9a7b6e0 (patch)
tree2a0faeaef514558b991832fbae63500f9f6e0228 /src/crepe/api/Text.h
parentf9f06f54dd1a66350afd42f6eec761565a4d3d77 (diff)
make format
Diffstat (limited to 'src/crepe/api/Text.h')
-rw-r--r--src/crepe/api/Text.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/crepe/api/Text.h b/src/crepe/api/Text.h
index 8436611..ebf413b 100644
--- a/src/crepe/api/Text.h
+++ b/src/crepe/api/Text.h
@@ -8,16 +8,17 @@
#include "Color.h"
#include "UIObject.h"
-namespace crepe{
+namespace crepe {
/**
* \brief Text UIObject component for displaying text
*
* This class can be used to display text on screen. By setting the font_family to a font already stored on the current device it will automatically be loaded in.
*/
-class Text : public UIObject{
+class Text : public UIObject {
public:
- Text(game_object_id_t id,const vec2 & dimensions, const vec2 & offset,std::string text,std::string font_family);
+ Text(game_object_id_t id, const vec2 & dimensions, const vec2 & offset, std::string text,
+ std::string font_family);
//! Text data that does not have to be set in the constructor
struct Data {
/**
@@ -40,6 +41,7 @@ public:
//! Label text color.
Color text_color = Color::BLACK;
};
+
public:
//! font family name such as (Arial,Helvetica,Inter)
std::string font_family = "";