24#ifndef GF_BASIC_TEXT_H
25#define GF_BASIC_TEXT_H
30#include "GraphicsApi.h"
32#include "VertexArray.h"
35#ifndef DOXYGEN_SHOULD_SKIP_THIS
112 return m_characterSize;
167 return m_outlineThickness;
192 return m_lineSpacingFactor;
221 return m_letterSpacingFactor;
241 return m_paragraphWidth;
282 std::string m_string;
285 unsigned m_characterSize;
286 float m_outlineThickness;
287 float m_lineSpacingFactor;
288 float m_letterSpacingFactor;
290 float m_paragraphWidth;
296#ifndef DOXYGEN_SHOULD_SKIP_THIS
A texture with a single alpha channel.
Definition: Texture.h:427
A basic text.
Definition: BasicText.h:50
float getLineSpacing() const
Get the size of the line spacing factor.
Definition: BasicText.h:191
void setCharacterSize(unsigned characterSize)
Set the character size.
void setString(std::string string)
Set the text's string.
BasicText(std::string string, Font &font, unsigned characterSize=30)
Construct the text from a string, font and size.
void setAlignment(Alignment align)
Set the alignement of the text.
void setParagraphWidth(float paragraphWidth)
Set the paragraph width for aligned text.
void setOutlineThickness(float thickness)
Set the thickness of the text's outline.
void setFont(Font &font)
Set the text's font.
Alignment getAlignment() const
Get the alignment of the text.
Definition: BasicText.h:260
const std::string & getString() const
Get the text's string.
Definition: BasicText.h:89
void updateGeometry(VertexArray &vertices, VertexArray &outlineVertices)
RectF getLocalBounds() const
Get the local bounding rectangle of the entity.
Definition: BasicText.h:275
float getParagraphWidth() const
Get the paragraph width.
Definition: BasicText.h:240
void setLineSpacing(float spacingFactor)
Set the line spacing factor.
BasicText()
Default constructor.
float getOutlineThickness()
Get the outline thickness of the text.
Definition: BasicText.h:166
void setLetterSpacing(float spacingFactor)
Set the letter spacing factor.
const Font * getFont() const
Get the text's font.
Definition: BasicText.h:142
float getLetterSpacing() const
Get the size of the letter spacing factor.
Definition: BasicText.h:220
unsigned getCharacterSize() const
Get the character size.
Definition: BasicText.h:111
const AlphaTexture * getFontTexture()
A character font.
Definition: Font.h:109
A set of primitives.
Definition: VertexArray.h:65
Alignment
The alignement of a text.
Definition: Alignment.h:33
The namespace for gf classes.