29 #include "Alignment.h"    30 #include "Portability.h"    31 #include "Transformable.h"    33 #include "VertexArray.h"    34 #include "VertexBuffer.h"    37 #ifndef DOXYGEN_SHOULD_SKIP_THIS   107     Text(std::string 
string, 
Font& font, 
unsigned characterSize = 30);
   119     void setString(std::string 
string);
   143     void setCharacterSize(
unsigned characterSize);
   153       return m_characterSize;
   170     void setFont(
Font& font);
   198     void setColor(
const Color4f& color);
   220     void setOutlineColor(
const Color4f& color);
   230       return m_outlineColor;
   242     void setOutlineThickness(
float thickness);
   252       return m_outlineThickness;
   263     void setParagraphWidth(
float paragraphWidth);
   272       return m_paragraphWidth;
   320     void setAnchor(
Anchor anchor);
   345     void updateGeometry();
   349       std::vector<std::u32string> words;
   351       float spacing = 0.0f;
   355       std::vector<Line> lines;
   358     float getWordWidth(
const std::u32string& word);
   360     std::vector<Paragraph> makeParagraphs(
const std::string& str, 
float spaceWidth);
   363     std::string m_string;
   365     unsigned m_characterSize;
   371     float m_outlineThickness;
   374     float m_paragraphWidth;
   378 #ifndef DOXYGEN_SHOULD_SKIP_THIS 
float getOutlineThickness()
Get the outline thickness of the text. 
Definition: Text.h:251
 
A set of primitives. 
Definition: VertexArray.h:65
 
Base class for all render targets (window, texture, ...) 
Definition: RenderTarget.h:66
 
Define the states used for drawing to a RenderTarget. 
Definition: RenderStates.h:82
 
unsigned getCharacterSize() const
Get the character size. 
Definition: Text.h:152
 
float getParagraphWidth() const
Get the paragraph width. 
Definition: Text.h:271
 
Data in the graphics memory. 
Definition: VertexBuffer.h:70
 
RectF getLocalBounds() const
Get the local bounding rectangle of the entity. 
Definition: Text.h:306
 
Graphical text that can be drawn to a render target. 
Definition: Text.h:91
 
The namespace for gf classes. 
Definition: Action.h:34
 
Alignment getAlignment() const
Get the alignment of the text. 
Definition: Text.h:291
 
const Color4f & getOutlineColor() const
Get the outline color of the text. 
Definition: Text.h:229
 
A character font. 
Definition: Font.h:130
 
Anchor
An anchor of a box. 
Definition: Anchor.h:38
 
const std::string & getString() const
Get the text's string. 
Definition: Text.h:130
 
Alignment
The alignement of a text. 
Definition: Alignment.h:33
 
const Color4f & getColor() const
Get the fill color of the text. 
Definition: Text.h:207
 
const Font * getFont() const
Get the text's font. 
Definition: Text.h:183