VCV Rack API v2
Loading...
Searching...
No Matches
SvgScrew.hpp
Go to the documentation of this file.
1#pragma once
2#include <common.hpp>
3#include <widget/Widget.hpp>
6#include <settings.hpp>
7
8
9namespace rack {
10namespace app {
11
12
17
19 void setSvg(std::shared_ptr<window::Svg> svg);
20};
21
22
24
25
27 std::shared_ptr<window::Svg> lightSvg;
28 std::shared_ptr<window::Svg> darkSvg;
29
30 void setSvg(std::shared_ptr<window::Svg> lightSvg, std::shared_ptr<window::Svg> darkSvg) {
31 this->lightSvg = lightSvg;
32 this->darkSvg = darkSvg;
34 }
35
40};
41
42
43
44} // namespace app
45} // namespace rack
#define DEPRECATED
Attribute for deprecated functions and symbols.
Definition common.hpp:26
DEPRECATED typedef SvgScrew SVGScrew
Definition SvgScrew.hpp:23
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
If you don't add these to your ModuleWidget, they will fall out of the rack...
Definition SvgScrew.hpp:14
void setSvg(std::shared_ptr< window::Svg > svg)
widget::SvgWidget * sw
Definition SvgScrew.hpp:16
widget::FramebufferWidget * fb
Definition SvgScrew.hpp:15
Definition SvgScrew.hpp:26
std::shared_ptr< window::Svg > darkSvg
Definition SvgScrew.hpp:28
std::shared_ptr< window::Svg > lightSvg
Definition SvgScrew.hpp:27
void step() override
Advances the module by one frame.
Definition SvgScrew.hpp:36
void setSvg(std::shared_ptr< window::Svg > lightSvg, std::shared_ptr< window::Svg > darkSvg)
Definition SvgScrew.hpp:30
Caches its children's draw() result to a framebuffer image.
Definition FramebufferWidget.hpp:12
Owns and draws a window::Svg.
Definition SvgWidget.hpp:10
A node in the 2D scene graph.
Definition Widget.hpp:21
virtual void step()
Advances the module by one frame.