3
4
5
6
7
8
9
10
11
12
15#include <pu/ui/elm/elm_Element.hpp>
17namespace pu::ui::
elm {
35 inline void SetX(
const i32 x) {
43 inline void SetY(
const i32 y) {
48 return this->rend_opts.width;
52 this->rend_opts.width = width;
56 return this->rend_opts.height;
60 this->rend_opts.height = height;
68 return this->img_tex !=
nullptr;
72 void OnInput(
const u64 keys_down,
const u64 keys_up,
const u64 keys_held,
const TouchPoint touch_pos)
override {}
Definition sdl2_Types.hpp:18
Definition elm_Element.hpp:37
Definition elm_Image.hpp:19
void SetX(const i32 x)
Definition elm_Image.hpp:35
void OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) override
i32 GetHeight() override
Definition elm_Image.hpp:55
bool IsImageValid()
Definition elm_Image.hpp:67
i32 GetWidth() override
Definition elm_Image.hpp:47
void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override
Definition elm_Image.hpp:72
void SetWidth(const i32 width)
Definition elm_Image.hpp:51
void SetY(const i32 y)
Definition elm_Image.hpp:43
void SetImage(sdl2::TextureHandle::Ref image)
void SetHeight(const i32 height)
Definition elm_Image.hpp:59
i32 GetX() override
Definition elm_Image.hpp:31
Image(const i32 x, const i32 y, sdl2::TextureHandle::Ref image)
i32 GetY() override
Definition elm_Image.hpp:39
Definition render_Renderer.hpp:127
Definition sdl2_Types.hpp:10
Definition render_Renderer.hpp:20
Definition elm_Button.hpp:18
#define PU_SMART_CTOR(type)
Definition pu_Include.hpp:20
#define PU_CLASS_POD_GETSET(fn_name, var_name, type)
Definition pu_Include.hpp:37
Definition ui_Types.hpp:67
Definition render_Renderer.hpp:99