VCV Rack API v2
Loading...
Searching...
No Matches
SvgButton.hpp
Go to the documentation of this file.
1#pragma once
2#include <app/common.hpp>
7
8
9namespace rack {
10namespace app {
11
12
17 std::vector<std::shared_ptr<window::Svg>> frames;
18
20 void addFrame(std::shared_ptr<window::Svg> svg);
21 void onButton(const ButtonEvent& e) override;
22 void onDragStart(const DragStartEvent& e) override;
23 void onDragEnd(const DragEndEvent& e) override;
24 void onDragDrop(const DragDropEvent& e) override;
25};
26
27
29
30
31} // namespace app
32} // namespace rack
#define DEPRECATED
Attribute for deprecated functions and symbols.
Definition common.hpp:24
DEPRECATED typedef SvgButton SVGButton
Definition SvgButton.hpp:28
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Definition CircularShadow.hpp:10
Definition SvgButton.hpp:13
void onButton(const ButtonEvent &e) override
CircularShadow * shadow
Definition SvgButton.hpp:15
widget::FramebufferWidget * fb
Definition SvgButton.hpp:14
void addFrame(std::shared_ptr< window::Svg > svg)
void onDragEnd(const DragEndEvent &e) override
void onDragDrop(const DragDropEvent &e) override
std::vector< std::shared_ptr< window::Svg > > frames
Definition SvgButton.hpp:17
void onDragStart(const DragStartEvent &e) override
widget::SvgWidget * sw
Definition SvgButton.hpp:16
Caches its children's draw() result to a framebuffer image.
Definition FramebufferWidget.hpp:12
A Widget that stops propagation of all recursive PositionEvents (such as ButtonEvent) but gives a cha...
Definition OpaqueWidget.hpp:12
Owns and draws a window::Svg.
Definition SvgWidget.hpp:10
Occurs each mouse button press or release.
Definition Widget.hpp:237
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