TextBlock(const int x, const int y, const std::string &str, const unsigned int size, const unsigned int wrap, const Render type=Render::Sync)
Constructs a new TextBlock element.
void setWrapWidth(const unsigned int wrap)
Set the new max line width.
static std::pair< int, int > getDimensions(const std::string &str, const unsigned int size, const unsigned int width)
Returns the dimensions of the given string if it were to be rendered, without performing any slow ren...
BaseText is an abstract class storing relevant information to render a text element.
Definition: BaseText.hpp:12
unsigned int wrapWidth()
Returns the maximum width allowed for a line.
Element for rendering a multi-line block of text.
Definition: TextBlock.hpp:10