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>
namespace rack {
namespace widget {
/** Owns and draws a window::Svg */
struct SvgWidget : Widget {
	std::shared_ptr<window::Svg> svg;
	SvgWidget();
	/** Sets the box size to the SVG image size */
	void wrap();
	/** Sets and wraps the SVG */
	void setSvg(std::shared_ptr<window::Svg> svg);
	DEPRECATED void setSVG(std::shared_ptr<window::Svg> svg) {
		setSvg(svg);
	}
	void draw(const DrawArgs& args) override;
};
DEPRECATED typedef SvgWidget SVGWidget;
} // namespace widget
} // namespace rack
 |