33#define STONEYVCV_COMPONENTLIBRARY_PORTWIDGET_HPP_INCLUDED 1
35#if defined (STONEYVCV_BUILD_COMPONENTLIBRARY)
45#include <StoneyDSP/Core.hpp>
65namespace ComponentLibrary
79struct ThemedPortWidgetPanel :
virtual ::rack::widget::TransparentWidget
88 using DrawArgs = ::rack::widget::TransparentWidget::DrawArgs;
96 ThemedPortWidgetPanel();
98 virtual ~ThemedPortWidgetPanel();
107 virtual void step()
override;
114 virtual void draw(const ::StoneyDSP::StoneyVCV::ComponentLibrary::ThemedPortWidgetPanel::DrawArgs &args)
override;
118 ::std::string labelText;
132 STONEYDSP_DECLARE_NON_COPYABLE(ThemedPortWidgetPanel)
133 STONEYDSP_DECLARE_NON_MOVEABLE(ThemedPortWidgetPanel)
142struct ThemedPortWidget :
virtual ::rack::app::ThemedSvgPort
151 using DrawArgs = ::rack::app::ThemedSvgPort::DrawArgs;
155 virtual ~ThemedPortWidget();
159 virtual void step()
override;
161 virtual void draw(const ::StoneyDSP::StoneyVCV::ComponentLibrary::ThemedPortWidget::DrawArgs &args)
override;
167 ::StoneyDSP::StoneyVCV::ComponentLibrary::ThemedPortWidgetPanel* panel;
175 ::rack::FramebufferWidget* fb;
177 bool lastPrefersDarkPanels;
179 STONEYDSP_DECLARE_NON_COPYABLE(ThemedPortWidget)
180 STONEYDSP_DECLARE_NON_MOVEABLE(ThemedPortWidget)
StoneyDSP Modules for VCV Rack 2.
StoneyDSP Modules for VCV Rack 2.
The StoneyDSP namespace.
Definition StoneyVCV.hpp:58