29 #include "Alignment.h" 30 #include "BasicText.h" 31 #include "Portability.h" 32 #include "Transformable.h" 34 #include "VertexArray.h" 35 #include "VertexBuffer.h" 38 #ifndef DOXYGEN_SHOULD_SKIP_THIS 108 Text(std::string
string,
Font& font,
unsigned characterSize = 30);
120 void setString(std::string
string);
132 return m_basic.getString();
144 void setCharacterSize(
unsigned characterSize);
154 return m_basic.getCharacterSize();
171 void setFont(
Font& font);
185 return m_basic.getFont();
199 void setColor(
const Color4f& color);
221 void setOutlineColor(
const Color4f& color);
231 return m_outlineColor;
243 void setOutlineThickness(
float thickness);
253 return m_basic.getOutlineThickness();
264 void setParagraphWidth(
float paragraphWidth);
273 return m_basic.getParagraphWidth();
293 return m_basic.getAlignment();
308 return m_basic.getLocalBounds();
321 void setAnchor(
Anchor anchor);
346 void updateGeometry();
358 #ifndef DOXYGEN_SHOULD_SKIP_THIS
float getOutlineThickness()
Get the outline thickness of the text.
Definition: Text.h:252
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:153
float getParagraphWidth() const
Get the paragraph width.
Definition: Text.h:272
Definition: BasicText.h:47
Data in the graphics memory.
Definition: VertexBuffer.h:70
RectF getLocalBounds() const
Get the local bounding rectangle of the entity.
Definition: Text.h:307
Graphical text that can be drawn to a render target.
Definition: Text.h:92
The namespace for gf classes.
Definition: Action.h:34
Alignment getAlignment() const
Get the alignment of the text.
Definition: Text.h:292
const Color4f & getOutlineColor() const
Get the outline color of the text.
Definition: Text.h:230
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:131
Alignment
The alignement of a text.
Definition: Alignment.h:33
const Color4f & getColor() const
Get the fill color of the text.
Definition: Text.h:208
const Font * getFont() const
Get the text's font.
Definition: Text.h:184