30 Rectangle(
const i32 x,
const i32 y,
const i32 width,
const i32 height,
const Color clr,
const i32 border_radius = 0) :
Element(), x(x), y(y), w(width), h(height), clr(clr), border_radius(border_radius) {}
66 return this->border_radius;
70 this->border_radius = border_radius;
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_Rectangle.hpp:20
Color GetColor()
Definition: elm_Rectangle.hpp:74
void SetBorderRadius(const i32 border_radius)
Definition: elm_Rectangle.hpp:69
void SetX(const i32 x)
Definition: elm_Rectangle.hpp:37
void SetY(const i32 y)
Definition: elm_Rectangle.hpp:45
i32 GetY() override
Definition: elm_Rectangle.hpp:41
i32 GetBorderRadius()
Definition: elm_Rectangle.hpp:65
i32 GetX() override
Definition: elm_Rectangle.hpp:33
void SetWidth(const i32 width)
Definition: elm_Rectangle.hpp:53
i32 GetWidth() override
Definition: elm_Rectangle.hpp:49
void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override
Definition: elm_Rectangle.hpp:83
void SetColor(const Color clr)
Definition: elm_Rectangle.hpp:78
void SetHeight(const i32 height)
Definition: elm_Rectangle.hpp:61
void OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) override
Rectangle(const i32 x, const i32 y, const i32 width, const i32 height, const Color clr, const i32 border_radius=0)
Definition: elm_Rectangle.hpp:30
i32 GetHeight() override
Definition: elm_Rectangle.hpp:57
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:44
Definition: ui_Types.hpp:62