You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #pragma once
- #include "widget/Widget.hpp"
- #include "svg.hpp"
-
-
- namespace rack {
- namespace widget {
-
-
- /** Draws an SVG */
- struct SvgWidget : Widget {
- std::shared_ptr<Svg> svg;
-
- /** Sets the box size to the svg image size */
- void wrap();
-
- /** Sets and wraps the SVG */
- void setSvg(std::shared_ptr<Svg> svg);
- DEPRECATED void setSVG(std::shared_ptr<Svg> svg) {setSvg(svg);}
-
- void draw(const DrawContext &ctx) override;
- };
-
-
- DEPRECATED typedef SvgWidget SVGWidget;
-
-
- } // namespace widget
- } // namespace rack
|