Represents a color with red, green, blue, and alpha components. Each component is represented as an u...
Definition color.h:7
Text & font(const std::string &font)
const std::string & text() const
Text & font_size(int font_size)
Text & color(Color color)
Text & offset(Point offset)
void update(float dt) override
Definition text.h:37
Text(std::string text, std::string font, std::string font_path, int font_size, Color color)
const std::string & font_path() const
TextAlignment alignment() const
Text & font_path(const std::string &font_path)
const std::string & font() const
void mark_dirty(bool dirty=true)
Text & alignment(TextAlignment alignment)
std::string type_name() const override
Provides a consistent type name for the component.
Text & text(const std::string &text)