#include "ui/IconButton.hpp" namespace rack { IconButton::IconButton() { box.size.x = BND_TOOL_WIDTH; fw = new FramebufferWidget; fw->oversample = 2; addChild(fw); sw = new SVGWidget; sw->box.pos = math::Vec(2, 2); fw->addChild(sw); } void IconButton::setSVG(std::shared_ptr svg) { sw->setSVG(svg); fw->dirty = true; } } // namespace rack