Represents a color with red, green, blue, and alpha components. Each component is represented as an u...
Definition color.h:7
std::optional< std::reference_wrapper< T > > get_component() const noexcept
Get the first component of type T attached to this GameObject.
Definition gameObject.h:141
UIText & color(Color color)
UIText(Scene &scene, std::string text, std::string font, std::string font_path, float width, float height, Point pivot, Point anchor)
UIText & font_path(const std::string &font_path)
UIText & text(const std::string &text)
const std::string & font() const
UIText & font_size(int font_size)
const std::string & text() const
UIText & font(const std::string &font)
const std::string & font_path() const
void update(float dt) override
Update the UI object.