29 ~
Slider()
override =
default;
35 explicit Slider(
float value);
81 void setValue(
float value,
bool final,
bool transmit =
false);
Invalid image ID.
Definition: Constants.h:172
bool keyboardCharacterEvent(unsigned int codepoint) override
Handle text input (UTF-32 format) (default implementation: do nothing)
Definition: Slider.cpp:109
int mSliderOffset
The offset of the thumb from the position of lower bound.
Definition: Slider.h:24
void setValue(float value, bool final, bool transmit=false)
Set the value for the slider thumb, and optionally transmit it.
Definition: Slider.cpp:113
bool mouseButtonEvent(const Position &mousePos, int button, bool down, int modifiers) override
Handle a mouse button event (default implementation: propagate to children)
Definition: Slider.cpp:42
bool mDrag
True if the thumb is being dragged.
Definition: Slider.h:23
float mValue
The value last set.
Definition: Slider.h:25
Sheet of round corners beveled out.
Definition: Constants.h:209
A position in integer (x, y) co-ordinates.
Definition: Types.h:95
bool mouseMotionEvent(const Position &cursorPosition, const Position &rel, int button, int modifiers) override
Handle a mouse motion event (default implementation: propagate to children)
Definition: Slider.cpp:52
Signal< SignalType > valueTx
The Signal that transmits the thumb position.
Definition: Slider.h:89
bool mouseDragEvent(const Position &p, const Position &rel, int button, int modifiers) override
Handle a mouse drag event (default implementation: do nothing)
Definition: Slider.cpp:56
std::pair< bool, float > SignalType
The type of the signal transmitted by the thumb when moved.
Definition: Slider.h:88
A base class for Widgets that are base on a linear value input or output eg) Slider and Gauge...
Definition: LinearScale.h:33
void initializeComposite() override
See Widget::initializeComposite()
Definition: Slider.cpp:32
ToDo: There is an issue that the initial scroll interaction is lost if the click/press lands on a Wid...
Definition: CelestialOverlay.cpp:13
uint32_t mLastScrollTick
The last interaction tick.
Definition: Slider.h:26
An analog input Widget.
Definition: Slider.h:21
bool scrollEvent(const Position &p, int32_t x, int32_t y) override
Handle a mouse scroll event (default implementation: propagate to children)
Definition: Slider.cpp:76
bool mouseEnterEvent(const Position &p, bool enter) override
Handle a mouse enter event.
Definition: Slider.cpp:38