•All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
Text.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
Abstract base class for objects that can be drawn to a render target.
Definition Drawable.hpp:44
Base class for all render targets (window, texture, ...)
Definition RenderTarget.hpp:63
Utility string class that automatically handles conversions between types and encodings.
Definition String.hpp:89
Text(const Font &font, String string="", unsigned int characterSize=30)
Construct the text from a string, font and size.
Vector2f findCharacterPos(std::size_t index) const
Return the position of the index-th character.
FloatRect getLocalBounds() const
Get the local bounding rectangle of the entity.
void setOutlineThickness(float thickness)
Set the thickness of the text's outline.
FloatRect getGlobalBounds() const
Get the global bounding rectangle of the entity.
Text(const Font &&font, String string="", unsigned int characterSize=30)=delete
Disallow construction from a temporary font.
float getOutlineThickness() const
Get the outline thickness of the text.
Definition AudioResource.hpp:36