fast::Text class

Text data object.

A data object which represents a string of text.

Base classes

class SpatialDataObject
Abstract base class for all spatial data objects.

Constructors, destructors, conversion operators

Text() protected

Public functions

auto create(std::string text, Color color) -> std::shared_ptr<Text>
void setPosition(Vector2f position)
void free(ExecutionDevice::pointer device) virtual
void freeAll() virtual
auto getText() const -> std::string
void setText(std::string text)
auto getColor() const -> Color
void setColor(Color color)
void setTextHeight(float millimeters)
auto getTextHeight() const -> float

Protected variables

std::string m_text
Color m_color
float m_textHeight