![]() |
StoneyVCV v2
StoneyDSP Modules for VCV Rack 2.
|
The ThemedParamPanelWidget
struct.
More...
#include <ParamWidget.hpp>
Public Types | |
enum | Type { KNOB , SLIDER , BUTTON , SWITCH } |
using | DrawArgs = ::StoneyDSP::StoneyVCV::ComponentLibrary::TransparentWidget::DrawArgs |
![]() | |
using | DrawArgs = ::StoneyDSP::StoneyVCV::ComponentLibrary::Widget::DrawArgs |
![]() | |
using | DrawArgs = ::rack::widget::Widget::DrawArgs |
Public Attributes | |
::StoneyDSP::StoneyVCV::ComponentLibrary::ThemedParamPanelWidget::Type | type = ::StoneyDSP::StoneyVCV::ComponentLibrary::ThemedParamPanelWidget::Type::KNOB |
Protected Attributes | |
float | fontSize = 8.0F |
float | leading = 4.0F |
::std::string | labelText = "" |
bool | isBipolar |
![]() | |
::rack::math::Rect | box = ::rack::math::Rect(::rack::math::Vec(), ::rack::math::Vec(INFINITY, INFINITY)) |
Position relative to parent and size of Widget . | |
::rack::Widget * | parent = NULL |
Automatically set when Widget is added as a child to another Widget . | |
::std::list<::rack::Widget * > | children |
bool | visible = true |
Disables rendering but allow stepping. | |
bool | requestedDelete = false |
If set to true, parent will delete Widget in the next step() . | |
float | lastPixelRatio = { rack::contextGet() ->window->pixelRatio} |
const float * | pixelRatioPtr = NULL |
Private Member Functions | |
ThemedParamPanelWidget (const ThemedParamPanelWidget &)=delete | |
ThemedParamPanelWidget & | operator= (const ThemedParamPanelWidget &)=delete |
ThemedParamPanelWidget (ThemedParamPanelWidget &&)=delete | |
ThemedParamPanelWidget & | operator= (ThemedParamPanelWidget &&)=delete |
Private Attributes | |
const bool * | prefersDarkPanelsPtr = NULL |
{&::rack::settings::preferDarkPanels} | |
The ThemedParamPanelWidget
struct.
Provides a themed panel background which can fit around instances of the ThemedParamWidget
struct on a Module's panel.
Carries a labelText
member for writing a text label corresponding to the port's purpose.
using StoneyDSP::StoneyVCV::ComponentLibrary::ThemedParamPanelWidget::DrawArgs = ::StoneyDSP::StoneyVCV::ComponentLibrary::TransparentWidget::DrawArgs |
StoneyDSP::StoneyVCV::ComponentLibrary::ThemedParamPanelWidget::ThemedParamPanelWidget | ( | ) |
Constructs a new ThemedParamPanelWidget
object.
|
virtualnoexcept |
Destroys the ThemedParamPanelWidget
object.
|
privatedelete |
|
privatedelete |
|
overridevirtual |
Advances the ThemedParamPanelWidget
by one frame.
Calls the superclass's step()
method internally to recurse the children.
Reimplemented from StoneyDSP::StoneyVCV::ComponentLibrary::Widget.
Reimplemented in StoneyDSP::StoneyVCV::ComponentLibrary::ThemedRoundKnobPanelWidget.
|
overridevirtual |
Renders the ThemedParamPanelWidget
to the NanoVG context.
Calls the superclass's draw(args)
method internally to recurse the children.
args |
Reimplemented from StoneyDSP::StoneyVCV::ComponentLibrary::Widget.
Reimplemented in StoneyDSP::StoneyVCV::ComponentLibrary::ThemedRoundKnobPanelWidget.
|
virtualnoexcept |
|
virtualnoexcept |
|
virtualnoexcept |
|
virtualnoexcept |
|
virtualnoexcept |
|
virtualnoexcept |
|
virtualnoexcept |
|
virtual |
|
virtualnoexcept |
|
privatedelete |
|
privatedelete |
::StoneyDSP::StoneyVCV::ComponentLibrary::ThemedParamPanelWidget::Type StoneyDSP::StoneyVCV::ComponentLibrary::ThemedParamPanelWidget::type = ::StoneyDSP::StoneyVCV::ComponentLibrary::ThemedParamPanelWidget::Type::KNOB |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
{&::rack::settings::preferDarkPanels}