Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Implements vertical dragging behavior for ParamWidgets.
Definition Knob.hpp:12
void onButton(const ButtonEvent &e) override
bool smooth
Enables per-sample value smoothing while dragging.
Definition Knob.hpp:21
bool horizontal
Drag horizontally instead of vertically.
Definition Knob.hpp:17
void onDragStart(const DragStartEvent &e) override
bool snap
Enables value snapping to the nearest integer.
Definition Knob.hpp:25
float maxAngle
Definition Knob.hpp:34
void onDragEnd(const DragEndEvent &e) override
void onLeave(const LeaveEvent &e) override
bool forceLinear
Force dragging to linear, e.g.
Definition Knob.hpp:29
Internal * internal
Definition Knob.hpp:14
void onDragMove(const DragMoveEvent &e) override
void onDragLeave(const DragLeaveEvent &e) override
float minAngle
Angles in radians.
Definition Knob.hpp:33
void initParamQuantity() override
Configures ParamQuantity properties based on the type of ParamWidget.
void onHoverScroll(const HoverScrollEvent &e) override
float speed
Multiplier for mouse movement to adjust knob value.
Definition Knob.hpp:27
void onAction(const ActionEvent &e) override
Called when user clicks the knob without moving it.
Definition Knob.hpp:50
void onHover(const HoverEvent &e) override