15#include "AViewContainer.h"
16#include "AProgressBar.h"
22class API_AUI_VIEWS ASlider:
public AViewContainerBase {
30 void applyGeometryToChildren()
override;
34 bool isDragging() const noexcept {
38 void setValue(aui::float_within_0_1 value) {
39 mProgress->setValue(value);
43 aui::float_within_0_1 value() const noexcept {
44 return mProgress->value();
48 const _<Handle>& handle() const noexcept {
53 const _<AProgressBar>& progressbar() const noexcept {
63 _<AProgressBar> mProgress;
65 void updateSliderWithPosition(glm::ivec2 pointerPosition);
67 void updateHandlePosition();
void onPointerPressed(const APointerPressedEvent &event) override
Called on pointer (mouse) released event.
Definition AViewContainerBase.cpp:289
void onPointerMove(glm::vec2 pos, const APointerMoveEvent &event) override
Handles pointer hover events.
Definition AViewContainerBase.cpp:244
void onPointerReleased(const APointerReleasedEvent &event) override
Called on pointer (mouse) released event.
Definition AViewContainerBase.cpp:329
bool capturesFocus() override
Definition AViewContainerBase.cpp:547
ASignal< Args... > emits
A signal declaration.
Definition ASignal.h:348
Pointing method move event.
Definition APointerMoveEvent.h:21
Pointing method press event.
Definition APointerPressedEvent.h:21
Pointing method press event.
Definition APointerReleasedEvent.h:19