3
4
5
6
7
8
9
10
11
12
15#include <pu/ui/elm/elm_Element.hpp>
17namespace pu::ui::
elm {
29 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) {}
36 inline void SetX(
const i32 x) {
44 inline void SetY(
const i32 y) {
68 void OnInput(
const u64 keys_down,
const u64 keys_up,
const u64 keys_held,
const TouchPoint touch_pos)
override {}
Definition elm_Element.hpp:37
Element()
Definition elm_Element.hpp:45
Definition elm_Rectangle.hpp:19
void SetX(const i32 x)
Definition elm_Rectangle.hpp:36
void SetY(const i32 y)
Definition elm_Rectangle.hpp:44
i32 GetY() override
Definition elm_Rectangle.hpp:40
i32 GetX() override
Definition elm_Rectangle.hpp:32
void SetWidth(const i32 width)
Definition elm_Rectangle.hpp:52
i32 GetWidth() override
Definition elm_Rectangle.hpp:48
void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override
Definition elm_Rectangle.hpp:68
void SetHeight(const i32 height)
Definition elm_Rectangle.hpp:60
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:29
i32 GetHeight() override
Definition elm_Rectangle.hpp:56
Definition render_Renderer.hpp:127
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:44
Definition ui_Types.hpp:67