14#include <AUI/View/AViewContainer.h>
15#include <AUI/Traits/values.h>
16#include <AUI/Util/ADataBinding.h>
25class API_AUI_VIEWS AProgressBar:
public AViewContainerBase {
31 ~AProgressBar()
override;
42 emit mValueChanged(value);
46 auto value() const noexcept {
49 &AProgressBar::mValue,
56 const _<Inner>& innerView() const noexcept {
63 void setSize(glm::ivec2 size)
override;
67 aui::float_within_0_1 mValue = 0.f;
69 void updateInnerWidth();
Definition AProgressBar.h:27
A progress bar.
Definition AProgressBar.h:25
void render(ARenderContext context) override
Draws this AView. Noone should call this function except rendering routine.
void setValue(aui::float_within_0_1 value)
Definition AProgressBar.h:37
void redraw()
Request window manager to redraw this AView.
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:179
std::add_lvalue_reference_t< T > value() const noexcept
Dereferences the stored pointer.
Definition SharedPtrTypes.h:294
ASignal< Args... > emits
A signal declaration.
Definition ASignal.h:572
#define emit
emits the specified signal in context of this object.
Definition AObject.h:343
Defines how View handles properties of FieldType type.
Definition ADataBinding.h:37
static void setup(const _< View > &view)
Called then view linked with field.
Definition ADataBinding.h:43
static auto property(const _< View > &view)
Returns property definition for FieldType.
Definition ADataBinding.h:49
Property implementation to use with custom getter/setter.
Definition AProperty.h:234
Render context passed to AView::render.
Definition ARenderContext.h:43