StoneyVCV v2
StoneyDSP Modules for VCV Rack 2.
Loading...
Searching...
No Matches
ParamWidget.hpp
Go to the documentation of this file.
1
31#pragma once
32
33#define STONEYVCV_COMPONENTLIBRARY_PARAMWIDGET_HPP_INCLUDED 1
34
35#if defined (STONEYVCV_BUILD_COMPONENTLIBRARY)
36
37//==============================================================================
38
39#include <StoneyVCV.hpp>
42
43//==============================================================================
44
45#include <rack.hpp>
46#include <StoneyDSP/Core.hpp>
47
48//==============================================================================
49
50namespace StoneyDSP
51{
56//==============================================================================
57
58namespace StoneyVCV
59{
64//==============================================================================
65
66namespace ComponentLibrary
67{
72//==============================================================================
73
85{
86
87 //==========================================================================
88
89public:
90
91 //==========================================================================
92
94
95 //==========================================================================
96
102
108
109 //==========================================================================
110
118
127 virtual void draw(const ::StoneyDSP::StoneyVCV::ComponentLibrary::ThemedParamPanelWidget::DrawArgs &args) override;
128
129 //==========================================================================
130
132
133 //==========================================================================
134
136
138
139 //==========================================================================
140
142
144
145 //==========================================================================
146
148
150
151 //==========================================================================
152
154
156
157 //==========================================================================
158
165
167
168protected:
169
170 //==========================================================================
171
172 float fontSize = 8.0F;
173
174 float leading = 4.0F;
175
176 ::std::string labelText = "";
177
179
180 //==========================================================================
181
182private:
183
184 //==========================================================================
185
190
191 //==========================================================================
192
195};
196
197//==============================================================================
198
200} // namespace ComponentLibrary
201
202//==============================================================================
203
205} // namespace StoneyVCV
206
207//==============================================================================
208
210} // namespace StoneyDSP
211
212//==============================================================================
213
214#endif // STONEYVCV_BUILD_COMPONENTLIBRARY
215
216//==============================================================================
StoneyDSP Modules for VCV Rack 2.
StoneyDSP Modules for VCV Rack 2.
StoneyDSP Modules for VCV Rack 2.
The StoneyDSP namespace.
Definition StoneyVCV.hpp:78
The ThemedParamPanelWidget struct.
Definition ParamWidget.hpp:85
::StoneyDSP::StoneyVCV::ComponentLibrary::ThemedParamPanelWidget::Type type
Definition ParamWidget.hpp:166
virtual const bool & getPrefersDarkPanels() const noexcept
virtual void setLabelText(const ::std::string &newLabelText) noexcept
virtual void step() override
Advances the ThemedParamPanelWidget by one frame.
virtual void setLeading(const float &newLeading) noexcept
virtual void draw(const ::StoneyDSP::StoneyVCV::ComponentLibrary::ThemedParamPanelWidget::DrawArgs &args) override
Renders the ThemedParamPanelWidget to the NanoVG context.
::StoneyDSP::StoneyVCV::ComponentLibrary::TransparentWidget::DrawArgs DrawArgs
Definition ParamWidget.hpp:93
virtual const ::std::string & getLabelText() const noexcept
::std::string labelText
Definition ParamWidget.hpp:176
virtual ~ThemedParamPanelWidget() noexcept
Destroys the ThemedParamPanelWidget object.
ThemedParamPanelWidget()
Constructs a new ThemedParamPanelWidget object.
virtual void setIsBipolar(const bool &newIsBipolar)
const bool * prefersDarkPanelsPtr
{&::rack::settings::preferDarkPanels}
Definition ParamWidget.hpp:189
virtual const float & getFontSize() const noexcept
virtual void setFontSize(const float &newFontSize) noexcept
::StoneyDSP::StoneyVCV::ComponentLibrary::Widget::DrawArgs DrawArgs
Definition Widget.hpp:394
Definition StoneyVCV.hpp:125