![]() |
StoneyVCV v2
StoneyDSP Modules for VCV Rack 2.
|
The ThemedPortPanelWidget struct.
More...
#include <PortWidget.hpp>
Public Types | |
| using | DrawArgs = ::StoneyDSP::StoneyVCV::ComponentLibrary::TransparentWidget::DrawArgs |
Public Types inherited from StoneyDSP::StoneyVCV::ComponentLibrary::TransparentWidget | |
| using | DrawArgs = ::StoneyDSP::StoneyVCV::ComponentLibrary::Widget::DrawArgs |
Public Types inherited from StoneyDSP::StoneyVCV::ComponentLibrary::Widget | |
| using | DrawArgs = ::rack::widget::Widget::DrawArgs |
Protected Attributes | |
| ::std::string | labelText |
| bool | isOutput |
| Set whether the parent is an input or an output port. | |
Protected Attributes inherited from StoneyDSP::StoneyVCV::ComponentLibrary::Widget | |
| ::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 | |
| ThemedPortPanelWidget (const ThemedPortPanelWidget &)=delete | |
| ThemedPortPanelWidget & | operator= (const ThemedPortPanelWidget &)=delete |
| ThemedPortPanelWidget (ThemedPortPanelWidget &&)=delete | |
| ThemedPortPanelWidget & | operator= (ThemedPortPanelWidget &&)=delete |
Private Attributes | |
| const bool * | prefersDarkPanelsPtr = NULL |
{&::rack::settings::preferDarkPanels} | |
The ThemedPortPanelWidget struct.
Provides a themed panel background which can fit around instances of the ThemedPortWidget 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::ThemedPortPanelWidget::DrawArgs = ::StoneyDSP::StoneyVCV::ComponentLibrary::TransparentWidget::DrawArgs |
| StoneyDSP::StoneyVCV::ComponentLibrary::ThemedPortPanelWidget::ThemedPortPanelWidget | ( | ) |
Constructs a new ThemedPortPanelWidget object.
|
virtualnoexcept |
Destroys the ThemedPortPanelWidget object.
|
privatedelete |
|
privatedelete |
|
overridevirtual |
Advances the ThemedPortPanelWidget by one frame.
Calls the superclass's step() method internally to recurse the children.
Reimplemented from StoneyDSP::StoneyVCV::ComponentLibrary::Widget.
|
overridevirtual |
Renders the ThemedPortPanelWidget to the NanoVG context.
Calls the superclass's draw(args) method internally to recurse the children.
| args |
Reimplemented from StoneyDSP::StoneyVCV::ComponentLibrary::Widget.
|
virtualnoexcept |
|
virtualnoexcept |
|
virtualnoexcept |
|
virtualnoexcept |
|
virtualnoexcept |
|
privatedelete |
|
privatedelete |
|
protected |
|
protected |
Set whether the parent is an input or an output port.
|
private |
{&::rack::settings::preferDarkPanels}