Base class for text implementations that depend on the backend.
More...
#include </home/texus/Documents/TGUI-0.9/include/TGUI/Backend/Renderer/BackendText.hpp>
|
using | TextVertexData = std::vector< std::pair< std::shared_ptr< BackendTexture >, std::shared_ptr< std::vector< Vertex > > > > |
| Type of the data that is passed to BackendRenderTarget where the actual rendering happens.
|
|
Base class for text implementations that depend on the backend.
◆ findCharacterPos()
virtual Vector2f tgui::BackendText::findCharacterPos |
( |
std::size_t |
index | ) |
const |
|
virtual |
Returns the top-left position of the character at the provided index.
- Parameters
-
index | Index of the character for which the position should be returned |
◆ getCharacterSize()
unsigned int tgui::BackendText::getCharacterSize |
( |
| ) |
const |
Returns the character size of the text.
- Returns
- The current text size
◆ getFillColor()
Color tgui::BackendText::getFillColor |
( |
| ) |
const |
Returns the text fill color.
- Returns
- text color
◆ getFont()
std::shared_ptr< BackendFont > tgui::BackendText::getFont |
( |
| ) |
const |
Returns the font of the text.
- Returns
- text font
◆ getOutlineColor()
Color tgui::BackendText::getOutlineColor |
( |
| ) |
const |
Returns the text outline color.
- Returns
- outline color
◆ getOutlineThickness()
float tgui::BackendText::getOutlineThickness |
( |
| ) |
const |
Returns the text outline thickness.
- Returns
- text outline thickness
◆ getSize()
virtual Vector2f tgui::BackendText::getSize |
( |
| ) |
|
|
virtual |
Returns the size of the text.
- Returns
- Size of the bounding box around the text
◆ getString()
const String & tgui::BackendText::getString |
( |
| ) |
const |
Returns the text.
- Returns
- The current text
◆ getStyle()
Returns the style of the text.
- Returns
- The current text style
◆ getVertexData()
Returns the information that is needed to render this text.
- Returns
- Data that contains the textures and vertices used by this text
◆ setCharacterSize()
virtual void tgui::BackendText::setCharacterSize |
( |
unsigned int |
characterSize | ) |
|
|
virtual |
Sets the size of the characters.
- Parameters
-
characterSize | Maximum size available for characters above the baseline |
Reimplemented in tgui::BackendTextSFML.
◆ setFillColor()
virtual void tgui::BackendText::setFillColor |
( |
const Color & |
color | ) |
|
|
virtual |
◆ setFont()
virtual void tgui::BackendText::setFont |
( |
const std::shared_ptr< BackendFont > & |
font | ) |
|
|
virtual |
◆ setOutlineColor()
virtual void tgui::BackendText::setOutlineColor |
( |
const Color & |
color | ) |
|
|
virtual |
◆ setOutlineThickness()
virtual void tgui::BackendText::setOutlineThickness |
( |
float |
thickness | ) |
|
|
virtual |
◆ setString()
virtual void tgui::BackendText::setString |
( |
const String & |
string | ) |
|
|
virtual |
◆ setStyle()
virtual void tgui::BackendText::setStyle |
( |
TextStyles |
style | ) |
|
|
virtual |
The documentation for this class was generated from the following file: