@@ -30,6 +30,7 @@ namespace spic {
30
30
* @param layer The layer for the game object.
31
31
* @param width The width of the UI object.
32
32
* @param height The height of the UI object.
33
+ * @sharedapi
33
34
*/
34
35
Text (const std::string& name, const std::string& tag, int layer, double width, double height);
35
36
@@ -45,66 +46,77 @@ namespace spic {
45
46
* @param size The size the font will be rendered at
46
47
* @param alignment The alignment the content will be rendered with
47
48
* @param color The color the content will be rendered in
49
+ * @sharedapi
48
50
*/
49
51
Text (const std::string& name, const std::string& tag, int layer, double width, double height, const std::string& text, const std::string& font, int size, Alignment alignment, const Color& color);
50
52
51
53
/* *
52
54
* @brief Get the content of the Text object
53
55
* @return A reference to the content of the Text object
56
+ * @sharedapi
54
57
*/
55
58
const std::string& Content () const ;
56
59
57
60
/* *
58
61
* @brief Set the text content of the Text object
59
62
* @param text new content
63
+ * @sharedapi
60
64
*/
61
65
void Content (const std::string& text);
62
66
63
67
/* *
64
68
* @brief Get the font of the Text object
65
69
* @return A reference to the font of the Text object
70
+ * @sharedapi
66
71
*/
67
72
const std::string& Font () const ;
68
73
69
74
/* *
70
75
* @brief Set the font of the Text object
71
76
* @param font the new font
77
+ * @sharedapi
72
78
*/
73
79
void Font (const std::string& font);
74
80
75
81
/* *
76
82
* @brief Get the size of the Text object
77
83
* @return A reference to the size of the Text object
84
+ * @sharedapi
78
85
*/
79
86
int Size () const ;
80
87
81
88
/* *
82
89
* @brief Set the size of the Text object
83
90
* @param size the new size
91
+ * @sharedapi
84
92
*/
85
93
void Size (int size);
86
94
87
95
/* *
88
96
* @brief Get the alignment of the Text object
89
97
* @return A reference to the alignment of the Text object
98
+ * @sharedapi
90
99
*/
91
100
Alignment TextAlignment () const ;
92
101
93
102
/* *
94
103
* @brief Set the alignment of the content of the Text object
95
104
* @param alignment the new alignment
105
+ * @sharedapi
96
106
*/
97
107
void TextAlignment (Alignment alignment);
98
108
99
109
/* *
100
110
* @brief Get the color of the Text object
101
111
* @return A reference to the color of the Text object
112
+ * @sharedapi
102
113
*/
103
114
const Color& TextColor () const ;
104
115
105
116
/* *
106
117
* @brief Set the color of the Text object
107
118
* @param color the new color
119
+ * @sharedapi
108
120
*/
109
121
void TextColor (const Color& color);
110
122
0 commit comments