28 Image(
const i32 x,
const i32 y,
const std::string &image_path);
49 return this->rend_opts.
width;
53 this->rend_opts.
width = width;
57 return this->rend_opts.
height;
61 this->rend_opts.
height = height;
73 return this->img_path;
79 return this->img_tex !=
nullptr;
82 void OnRender(render::Renderer::Ref &drawer,
const i32 x,
const i32 y)
override;
83 void OnInput(
const u64 keys_down,
const u64 keys_up,
const u64 keys_held,
const TouchPoint touch_pos)
override {}
Definition: elm_Element.hpp:37
Definition: elm_Image.hpp:19
void SetX(const i32 x)
Definition: elm_Image.hpp:36
void OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) override
i32 GetHeight() override
Definition: elm_Image.hpp:56
bool IsImageValid()
Definition: elm_Image.hpp:78
std::string GetImagePath()
Definition: elm_Image.hpp:72
i32 GetWidth() override
Definition: elm_Image.hpp:48
void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override
Definition: elm_Image.hpp:83
float GetRotationAngle()
Definition: elm_Image.hpp:64
void SetImage(const std::string &image_path)
Image(const i32 x, const i32 y, const std::string &image_path)
void SetWidth(const i32 width)
Definition: elm_Image.hpp:52
void SetY(const i32 y)
Definition: elm_Image.hpp:44
void SetHeight(const i32 height)
Definition: elm_Image.hpp:60
i32 GetX() override
Definition: elm_Image.hpp:32
void SetRotationAngle(const float angle)
Definition: elm_Image.hpp:68
i32 GetY() override
Definition: elm_Image.hpp:40
SDL_Texture * Texture
Definition: sdl2_Types.hpp:11
Definition: elm_Button.hpp:18
s32 i32
Definition: pu_Include.hpp:28
#define PU_SMART_CTOR(type)
Definition: pu_Include.hpp:19
Definition: ui_Types.hpp:62
Definition: render_Renderer.hpp:77
float rot_angle
Definition: render_Renderer.hpp:81
i32 width
Definition: render_Renderer.hpp:79
i32 height
Definition: render_Renderer.hpp:80