VCV Rack API
v2
Loading...
Searching...
No Matches
RadioButton.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <
ui/common.hpp
>
3
#include <
ui/Button.hpp
>
4
5
6
namespace
rack
{
7
namespace
ui {
8
9
12
struct
RadioButton
:
Button
{
13
void
draw
(
const
DrawArgs
& args)
override
;
14
void
onDragStart
(
const
DragStartEvent
& e)
override
;
15
void
onDragEnd
(
const
DragEndEvent
& e)
override
;
16
void
onDragDrop
(
const
DragDropEvent
& e)
override
;
17
};
18
19
20
}
// namespace ui
21
}
// namespace rack
Button.hpp
rack
Root namespace for the Rack API.
Definition
AudioDisplay.hpp:9
rack::ui::Button
A clickable button with text.
Definition
Button.hpp:18
rack::ui::RadioButton
Toggles a Quantity between 1.0 and 0.0 when clicked.
Definition
RadioButton.hpp:12
rack::ui::RadioButton::onDragStart
void onDragStart(const DragStartEvent &e) override
rack::ui::RadioButton::onDragEnd
void onDragEnd(const DragEndEvent &e) override
rack::ui::RadioButton::onDragDrop
void onDragDrop(const DragDropEvent &e) override
rack::ui::RadioButton::draw
void draw(const DrawArgs &args) override
Draws the widget to the NanoVG context.
rack::widget::Widget::DragDropEvent
Occurs when the mouse button is released over a Widget while dragging.
Definition
Widget.hpp:423
rack::widget::Widget::DragEndEvent
Occurs when a Widget stops being dragged by releasing the mouse button.
Definition
Widget.hpp:375
rack::widget::Widget::DragStartEvent
Occurs when a Widget begins being dragged.
Definition
Widget.hpp:369
rack::widget::Widget::DrawArgs
Definition
Widget.hpp:141
common.hpp
include
ui
RadioButton.hpp
Generated by
1.12.0