VCV Rack API v2
Loading...
Searching...
No Matches
Button.hpp
Go to the documentation of this file.
1#pragma once
3#include <ui/common.hpp>
4#include <Quantity.hpp>
5
6
7namespace rack {
8namespace ui {
9
10
19 std::string text;
22
24 void draw(const DrawArgs& args) override;
25 void onDragStart(const DragStartEvent& e) override;
26 void onDragEnd(const DragEndEvent& e) override;
27 void onDragDrop(const DragDropEvent& e) override;
28};
29
30
31} // namespace ui
32} // 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
A clickable button with text.
Definition Button.hpp:18
void onDragEnd(const DragEndEvent &e) override
Quantity * quantity
Not owned.
Definition Button.hpp:21
void draw(const DrawArgs &args) override
Draws the widget to the NanoVG context.
std::string text
Definition Button.hpp:19
void onDragStart(const DragStartEvent &e) override
void onDragDrop(const DragDropEvent &e) override
A Widget that stops propagation of all recursive PositionEvents (such as ButtonEvent) but gives a cha...
Definition OpaqueWidget.hpp:12
Occurs when the mouse button is released over a Widget while dragging.
Definition Widget.hpp:423
Occurs when a Widget stops being dragged by releasing the mouse button.
Definition Widget.hpp:375
Occurs when a Widget begins being dragged.
Definition Widget.hpp:369
Definition Widget.hpp:141