Loading [MathJax]/extensions/tex2jax.js
VCV Rack API
v2
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Variables
a
b
c
d
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
y
Typedefs
a
b
c
d
e
f
g
h
i
k
l
p
r
s
t
v
w
y
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
b
c
h
i
l
m
n
o
p
r
t
u
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
l
n
o
p
r
s
t
v
w
Functions
Macros
_
a
b
c
d
e
f
g
i
l
n
p
r
s
t
v
w
▼
VCV Rack API
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
include
►
app
►
dsp
►
engine
►
plugin
►
simd
►
ui
▼
widget
►
event.hpp
►
FramebufferWidget.hpp
►
OpaqueWidget.hpp
►
OpenGlWidget.hpp
►
SvgWidget.hpp
►
TransformWidget.hpp
►
TransparentWidget.hpp
►
Widget.hpp
►
ZoomWidget.hpp
►
window
arch.hpp
►
asset.hpp
►
audio.hpp
►
color.hpp
►
common.hpp
►
componentlibrary.hpp
►
context.hpp
►
gamepad.hpp
►
helpers.hpp
►
history.hpp
►
keyboard.hpp
►
library.hpp
►
logger.hpp
►
math.hpp
►
midi.hpp
►
midiloopback.hpp
►
mutex.hpp
►
network.hpp
►
patch.hpp
►
plugin.hpp
►
Quantity.hpp
►
rack.hpp
►
random.hpp
►
rtaudio.hpp
►
rtmidi.hpp
►
settings.hpp
►
string.hpp
►
system.hpp
►
tag.hpp
►
weakptr.hpp
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
SvgWidget.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <
widget/Widget.hpp
>
3
4
5
namespace
rack
{
6
namespace
widget
{
7
8
10
struct
SvgWidget
:
Widget
{
11
std::shared_ptr<window::Svg>
svg
;
12
13
SvgWidget
();
14
16
void
wrap
();
17
19
void
setSvg
(std::shared_ptr<window::Svg>
svg
);
20
DEPRECATED
void
setSVG
(std::shared_ptr<window::Svg>
svg
) {
21
setSvg
(
svg
);
22
}
20
DEPRECATED
void
setSVG
(std::shared_ptr<window::Svg>
svg
) {
…
}
23
24
void
draw
(
const
DrawArgs
& args)
override
;
25
};
10
struct
SvgWidget
:
Widget
{
…
};
26
27
28
DEPRECATED
typedef
SvgWidget
SVGWidget
;
29
30
31
}
// namespace widget
32
}
// namespace rack
Widget.hpp
DEPRECATED
#define DEPRECATED
Attribute for deprecated functions and symbols.
Definition
common.hpp:26
rack::widget
Base UI widget types.
Definition
context.hpp:28
rack::widget::SVGWidget
DEPRECATED typedef SvgWidget SVGWidget
Definition
SvgWidget.hpp:28
rack
Root namespace for the Rack API.
Definition
AudioDisplay.hpp:9
rack::widget::SvgWidget
Owns and draws a window::Svg.
Definition
SvgWidget.hpp:10
rack::widget::SvgWidget::setSvg
void setSvg(std::shared_ptr< window::Svg > svg)
Sets and wraps the SVG.
rack::widget::SvgWidget::setSVG
DEPRECATED void setSVG(std::shared_ptr< window::Svg > svg)
Definition
SvgWidget.hpp:20
rack::widget::SvgWidget::SvgWidget
SvgWidget()
rack::widget::SvgWidget::wrap
void wrap()
Sets the box size to the SVG image size.
rack::widget::SvgWidget::draw
void draw(const DrawArgs &args) override
Draws the widget to the NanoVG context.
rack::widget::SvgWidget::svg
std::shared_ptr< window::Svg > svg
Definition
SvgWidget.hpp:11
rack::widget::Widget::DrawArgs
Definition
Widget.hpp:141
rack::widget::Widget
A node in the 2D scene graph.
Definition
Widget.hpp:21
include
widget
SvgWidget.hpp
Generated by
1.13.2