29 #include "Alignment.h" 30 #include "BasicText.h" 31 #include "GraphicsApi.h" 32 #include "Transformable.h" 34 #include "VertexArray.h" 35 #include "VertexBuffer.h" 38 #ifndef DOXYGEN_SHOULD_SKIP_THIS 96 Text(std::string
string,
Font& font,
unsigned characterSize = 30);
108 void setString(std::string
string);
120 return m_basic.getString();
132 void setCharacterSize(
unsigned characterSize);
142 return m_basic.getCharacterSize();
159 void setFont(
Font& font);
173 return m_basic.getFont();
187 void setColor(
const Color4f& color);
209 void setOutlineColor(
const Color4f& color);
219 return m_outlineColor;
231 void setOutlineThickness(
float thickness);
241 return m_basic.getOutlineThickness();
256 void setLineSpacing(
float spacingFactor);
266 return m_basic.getLineSpacing();
285 void setLetterSpacing(
float spacingFactor);
295 return m_basic.getLetterSpacing();
306 void setParagraphWidth(
float paragraphWidth);
315 return m_basic.getParagraphWidth();
335 return m_basic.getAlignment();
350 return m_basic.getLocalBounds();
363 void setAnchor(
Anchor anchor);
388 void updateGeometry();
400 #ifndef DOXYGEN_SHOULD_SKIP_THIS
float getOutlineThickness()
Get the outline thickness of the text.
Definition: Text.h:240
float getLineSpacing() const
Get the size of the line spacing factor.
Definition: Text.h:265
float getLetterSpacing() const
Get the size of the letter spacing factor.
Definition: Text.h:294
A set of primitives.
Definition: VertexArray.h:65
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:102
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82
unsigned getCharacterSize() const
Get the character size.
Definition: Text.h:141
float getParagraphWidth() const
Get the paragraph width.
Definition: Text.h:314
A basic text.
Definition: BasicText.h:50
Data in the graphics memory.
Definition: VertexBuffer.h:81
RectF getLocalBounds() const
Get the local bounding rectangle of the entity.
Definition: Text.h:349
Graphical text that can be drawn to a render target.
Definition: Text.h:80
Alignment
The alignement of a text.
Definition: Alignment.h:33
The namespace for gf classes.
Definition: Action.h:35
Alignment getAlignment() const
Get the alignment of the text.
Definition: Text.h:334
const Color4f & getOutlineColor() const
Get the outline color of the text.
Definition: Text.h:218
A character font.
Definition: Font.h:109
A 4D vector.
Definition: Vector.h:852
Anchor
An anchor of a box.
Definition: Anchor.h:38
const std::string & getString() const
Get the text's string.
Definition: Text.h:119
const Color4f & getColor() const
Get the fill color of the text.
Definition: Text.h:196
const Font * getFont() const
Get the text's font.
Definition: Text.h:172