24 #ifndef GF_BASIC_TEXT_H 25 #define GF_BASIC_TEXT_H 29 #include "Alignment.h" 30 #include "Portability.h" 32 #include "VertexArray.h" 35 #ifndef DOXYGEN_SHOULD_SKIP_THIS 63 BasicText(std::string
string,
Font& font,
unsigned characterSize = 30);
75 void setString(std::string
string);
99 void setCharacterSize(
unsigned characterSize);
109 return m_characterSize;
126 void setFont(
Font& font);
154 void setOutlineThickness(
float thickness);
164 return m_outlineThickness;
179 void setLineSpacing(
float spacingFactor);
189 return m_lineSpacingFactor;
208 void setLetterSpacing(
float spacingFactor);
218 return m_letterSpacingFactor;
229 void setParagraphWidth(
float paragraphWidth);
238 return m_paragraphWidth;
279 std::string m_string;
282 unsigned m_characterSize;
283 float m_outlineThickness;
284 float m_lineSpacingFactor;
285 float m_letterSpacingFactor;
287 float m_paragraphWidth;
293 #ifndef DOXYGEN_SHOULD_SKIP_THIS 298 #endif // GF_BASIC_TEXT_H float getLetterSpacing() const
Get the size of the letter spacing factor.
Definition: BasicText.h:217
A set of primitives.
Definition: VertexArray.h:65
const std::string & getString() const
Get the text's string.
Definition: BasicText.h:86
Definition: BasicText.h:47
RectF getLocalBounds() const
Get the local bounding rectangle of the entity.
Definition: BasicText.h:272
float getLineSpacing() const
Get the size of the line spacing factor.
Definition: BasicText.h:188
float getOutlineThickness()
Get the outline thickness of the text.
Definition: BasicText.h:163
unsigned getCharacterSize() const
Get the character size.
Definition: BasicText.h:108
const Font * getFont() const
Get the text's font.
Definition: BasicText.h:139
Alignment getAlignment() const
Get the alignment of the text.
Definition: BasicText.h:257
The namespace for gf classes.
Definition: Action.h:35
A character font.
Definition: Font.h:130
Alignment
The alignement of a text.
Definition: Alignment.h:33
A texture with a single alpha channel.
Definition: Texture.h:474
float getParagraphWidth() const
Get the paragraph width.
Definition: BasicText.h:237