VCV Rack API v2
Loading...
Searching...
No Matches
Slider.hpp
Go to the documentation of this file.
1#pragma once
3#include <Quantity.hpp>
4#include <ui/common.hpp>
5#include <context.hpp>
6
7
8namespace rack {
9namespace ui {
10
11
15
17 void draw(const DrawArgs& args) override;
18 void onDragStart(const DragStartEvent& e) override;
19 void onDragMove(const DragMoveEvent& e) override;
20 void onDragEnd(const DragEndEvent& e) override;
21 void onDoubleClick(const DoubleClickEvent& e) override;
22};
23
24
25} // namespace ui
26} // namespace rack
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
A controller for manipulating a float value (which subclasses must store somehow) with limits and lab...
Definition Quantity.hpp:14
Definition Slider.hpp:12
void onDragMove(const DragMoveEvent &e) override
Quantity * quantity
Not owned.
Definition Slider.hpp:14
void onDoubleClick(const DoubleClickEvent &e) override
void onDragStart(const DragStartEvent &e) override
void onDragEnd(const DragEndEvent &e) override
void draw(const DrawArgs &args) override
Draws the widget to the NanoVG context.
A Widget that stops propagation of all recursive PositionEvents (such as ButtonEvent) but gives a cha...
Definition OpaqueWidget.hpp:12
Occurs when the left mouse button is pressed a second time on the same Widget within a time duration.
Definition Widget.hpp:252
Occurs when a Widget stops being dragged by releasing the mouse button.
Definition Widget.hpp:375
Occurs every frame on the dragged Widget.
Definition Widget.hpp:381
Occurs when a Widget begins being dragged.
Definition Widget.hpp:369
Definition Widget.hpp:141