VCV Rack API v2
Loading...
Searching...
No Matches
SvgPort.hpp
Go to the documentation of this file.
1#pragma once
2#include <app/common.hpp>
3#include <app/PortWidget.hpp>
7#include <settings.hpp>
8
9
10namespace rack {
11namespace app {
12
13
18
20 void setSvg(std::shared_ptr<window::Svg> svg);
21 DEPRECATED void setSVG(std::shared_ptr<window::Svg> svg) {
22 setSvg(svg);
23 }
24};
25
26
28
29
31 std::shared_ptr<window::Svg> lightSvg;
32 std::shared_ptr<window::Svg> darkSvg;
33
34 void setSvg(std::shared_ptr<window::Svg> lightSvg, std::shared_ptr<window::Svg> darkSvg) {
35 this->lightSvg = lightSvg;
36 this->darkSvg = darkSvg;
38 }
39
40 void step() override {
43 }
44};
45
46
47} // namespace app
48} // namespace rack
#define DEPRECATED
Attribute for deprecated functions and symbols.
Definition common.hpp:24
DEPRECATED typedef SvgPort SVGPort
Definition SvgPort.hpp:27
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Definition CircularShadow.hpp:10
Manages an engine::Port on a ModuleWidget.
Definition PortWidget.hpp:14
void step() override
Advances the module by one frame.
Definition SvgPort.hpp:14
widget::SvgWidget * sw
Definition SvgPort.hpp:17
CircularShadow * shadow
Definition SvgPort.hpp:16
widget::FramebufferWidget * fb
Definition SvgPort.hpp:15
void setSvg(std::shared_ptr< window::Svg > svg)
DEPRECATED void setSVG(std::shared_ptr< window::Svg > svg)
Definition SvgPort.hpp:21
Definition SvgPort.hpp:30
void step() override
Advances the module by one frame.
Definition SvgPort.hpp:40
void setSvg(std::shared_ptr< window::Svg > lightSvg, std::shared_ptr< window::Svg > darkSvg)
Definition SvgPort.hpp:34
std::shared_ptr< window::Svg > lightSvg
Definition SvgPort.hpp:31
std::shared_ptr< window::Svg > darkSvg
Definition SvgPort.hpp:32
Caches its children's draw() result to a framebuffer image.
Definition FramebufferWidget.hpp:12
Owns and draws a window::Svg.
Definition SvgWidget.hpp:10