3
4
5
6
7
8
9
10
11
12
15#include <pu/ui/elm/elm_Element.hpp>
17namespace pu::ui::
elm {
38 ProgressBar(
const i32 x,
const i32 y,
const i32 width,
const i32 height,
const double max_val);
45 inline void SetX(
const i32 x) {
53 inline void SetY(
const i32 y) {
100 return this->val ==
this->max_val;
104 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_ProgressBar.hpp:19
void OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) override
i32 GetX() override
Definition elm_ProgressBar.hpp:41
i32 GetWidth() override
Definition elm_ProgressBar.hpp:57
void SetHeight(const i32 height)
Definition elm_ProgressBar.hpp:69
void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override
Definition elm_ProgressBar.hpp:104
void ClearProgress()
Definition elm_ProgressBar.hpp:95
static constexpr double DefaultHeightRadiusFactor
Definition elm_ProgressBar.hpp:24
void SetProgress(const double progress)
ProgressBar(const i32 x, const i32 y, const i32 width, const i32 height, const double max_val)
void IncrementProgress(const double extra_progress)
Definition elm_ProgressBar.hpp:81
bool IsCompleted()
Definition elm_ProgressBar.hpp:99
void DecrementProgress(const double extra_progress)
Definition elm_ProgressBar.hpp:85
static constexpr Color DefaultProgressColor
Definition elm_ProgressBar.hpp:21
void FillProgress()
Definition elm_ProgressBar.hpp:91
static constexpr Color DefaultBackgroundColor
Definition elm_ProgressBar.hpp:22
void SetY(const i32 y)
Definition elm_ProgressBar.hpp:53
void SetX(const i32 x)
Definition elm_ProgressBar.hpp:45
i32 GetY() override
Definition elm_ProgressBar.hpp:49
void SetWidth(const i32 width)
Definition elm_ProgressBar.hpp:61
i32 GetHeight() override
Definition elm_ProgressBar.hpp:65
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
#define PU_CLASS_POD_GET(fn_name, var_name, type)
Definition pu_Include.hpp:27
Definition ui_Types.hpp:44
Definition ui_Types.hpp:67