28 std::string image_path_;
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
Scene & scene() const noexcept
Represents a point in 2D space.
Definition point.h:6
Represents a scene within the engine. A scene contains multiple GameObjects and manages their lifecyc...
Definition scene.h:19
const std::string & image_path() const
UIImage & image_path(const std::string &path)
void update(float dt) override
Update the UI object.
UIImage(Scene &scene, std::string image_path, float width, float height, Point pivot, Point anchor)
UIImage & color(Color color)
Base class for all UI objects.
Definition ui_object.h:16