![]() |
StoneyVCV v2
StoneyDSP Modules for VCV Rack 2.
|
The PaneBorderWidget struct.
More...
#include <PanelWidget.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 |
Public Member Functions | |
| PanelBorderWidget () | |
Constructs a new PanelBorderWidget object. | |
| PanelBorderWidget (::rack::math::Rect newBox) | |
Construct a new PanelBorderWidget object with its' position and size set using a rack::math::Rect. | |
| virtual | ~PanelBorderWidget () noexcept |
Destroys the PanelBorderWidget object. | |
| virtual void | draw (const ::StoneyDSP::StoneyVCV::ComponentLibrary::PanelBorderWidget::DrawArgs &args) override |
| Draws a set of lines for spacing to the widget's NanoVG context. | |
| const ::NVGcolor & | getBorderColor () const noexcept |
Public Member Functions inherited from StoneyDSP::StoneyVCV::ComponentLibrary::TransparentWidget | |
| TransparentWidget () | |
| TransparentWidget (::rack::math::Rect newBox) | |
| virtual | ~TransparentWidget () noexcept |
Public Member Functions inherited from StoneyDSP::StoneyVCV::ComponentLibrary::Widget | |
| Widget () | |
Construct a new Widget object. | |
| Widget (::rack::math::Rect newBox) | |
Construct a new Widget object with its' position and size set using a rack::math::Rect. | |
| virtual | ~Widget () noexcept |
Destroys the Widget object. | |
| virtual void | step () override |
Advances the Widget by one frame. | |
| virtual void | onPixelRatioChange (const PixelRatioChangeEvent &e) |
Called after the App->window->pixelRatio setting is changed. | |
| const float & | getPixelRatio () const noexcept |
Private Member Functions | |
| PanelBorderWidget (const PanelBorderWidget &)=delete | |
| PanelBorderWidget & | operator= (const PanelBorderWidget &)=delete |
| PanelBorderWidget (PanelBorderWidget &&)=delete | |
| PanelBorderWidget & | operator= (PanelBorderWidget &&)=delete |
Private Attributes | |
| const ::NVGcolor & | borderColor = ::StoneyDSP::StoneyVCV::Panels::borderColor |
Additional Inherited Members | |
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 |
The PaneBorderWidget struct.
Draws 4 lines around the outer edges of the module. Does not send or respond to events.
| using StoneyDSP::StoneyVCV::ComponentLibrary::PanelBorderWidget::DrawArgs = ::StoneyDSP::StoneyVCV::ComponentLibrary::TransparentWidget::DrawArgs |
| StoneyDSP::StoneyVCV::ComponentLibrary::PanelBorderWidget::PanelBorderWidget | ( | ) |
Constructs a new PanelBorderWidget object.
| StoneyDSP::StoneyVCV::ComponentLibrary::PanelBorderWidget::PanelBorderWidget | ( | ::rack::math::Rect | newBox | ) |
Construct a new PanelBorderWidget object with its' position and size set using a rack::math::Rect.
|
virtualnoexcept |
Destroys the PanelBorderWidget object.
|
privatedelete |
|
privatedelete |
|
overridevirtual |
Draws a set of lines for spacing to the widget's NanoVG context.
| args |
Reimplemented from StoneyDSP::StoneyVCV::ComponentLibrary::Widget.
|
noexcept |
|
privatedelete |
|
privatedelete |
|
private |