33 std::vector<RenderCallback> render_cbs;
41 return !this->
elems.empty();
45 this->on_ipt = on_ipt_cb;
53 this->render_cbs.push_back(render_cb);
57 return this->render_cbs;
61 return this->has_image;
65 return this->over_bg_tex;
69 return this->over_bg_color;
76 this->sim_touch_pos = sim_touch_pos;
Definition: ui_Container.hpp:21
std::vector< elm::Element::Ref > elems
Definition: ui_Container.hpp:27
Definition: ui_Layout.hpp:20
void AddRenderCallback(RenderCallback render_cb)
Definition: ui_Layout.hpp:52
bool HasBackgroundImage()
Definition: ui_Layout.hpp:60
void SetOnInput(OnInputCallback on_ipt_cb)
Definition: ui_Layout.hpp:44
TouchPoint ConsumeSimulatedTouchPosition()
bool HasChildren()
Definition: ui_Layout.hpp:40
void SetBackgroundColor(const Color clr)
std::function< void(const u64, const u64, const u64, const TouchPoint)> OnInputCallback
Definition: ui_Layout.hpp:22
Color GetBackgroundColor()
Definition: ui_Layout.hpp:68
std::function< void()> RenderCallback
Definition: ui_Layout.hpp:23
std::vector< RenderCallback > & GetRenderCallbacks()
Definition: ui_Layout.hpp:56
static constexpr Color DefaultBackgroundColor
Definition: ui_Layout.hpp:25
void SimulateTouchPosition(const TouchPoint sim_touch_pos)
Definition: ui_Layout.hpp:75
sdl2::Texture GetBackgroundImageTexture()
Definition: ui_Layout.hpp:64
Layout()
Definition: ui_Layout.hpp:36
OnInputCallback GetOnInput()
Definition: ui_Layout.hpp:48
void SetBackgroundImage(const std::string &path)
SDL_Texture * Texture
Definition: sdl2_Types.hpp:11
constexpr u32 ScreenWidth
Definition: render_Renderer.hpp:21
constexpr u32 ScreenHeight
Definition: render_Renderer.hpp:22
Definition: elm_Button.hpp:18
#define PU_SMART_CTOR(type)
Definition: pu_Include.hpp:19
Definition: ui_Types.hpp:44
Definition: ui_Types.hpp:62