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 "app/common.hpp"
- #include "app/Knob.hpp"
- #include "widgets/FramebufferWidget.hpp"
- #include "widgets/TransformWidget.hpp"
- #include "widgets/SVGWidget.hpp"
- #include "app/CircularShadow.hpp"
-
-
- namespace rack {
-
-
- /** A knob which rotates an SVG and caches it in a framebuffer */
- struct SVGKnob : Knob {
- FramebufferWidget *fb;
- TransformWidget *tw;
- SVGWidget *sw;
- CircularShadow *shadow;
- /** Angles in radians */
- float minAngle, maxAngle;
-
- SVGKnob();
- void setSVG(std::shared_ptr<SVG> svg);
- void onChange(const event::Change &e) override;
- };
-
-
- } // namespace rack
|