![]() |
StoneyVCV v2
StoneyDSP Modules for VCV Rack 2.
|
The PanelLinesWidget
struct.
More...
#include <PanelWidget.hpp>
Public Types | |
using | DrawArgs = ::StoneyDSP::StoneyVCV::ComponentLibrary::TransparentWidget::DrawArgs |
![]() | |
using | DrawArgs = ::StoneyDSP::StoneyVCV::ComponentLibrary::Widget::DrawArgs |
![]() | |
using | DrawArgs = ::rack::widget::Widget::DrawArgs |
Public Member Functions | |
PanelLinesWidget () | |
Constructs a new PanelLinesWidget object. | |
PanelLinesWidget (::rack::math::Rect newBox) | |
Construct a new PanelLinesWidget object with its' position and size set using a rack::math::Rect . | |
virtual | ~PanelLinesWidget () noexcept |
Destroys the PanelLinesWidget object. | |
virtual void | draw (const ::StoneyDSP::StoneyVCV::ComponentLibrary::PanelLinesWidget::DrawArgs &args) override |
Draws a set of lines for spacing to the widget's NanoVG context. | |
const ::NVGcolor & | getBorderColor () const noexcept |
![]() | |
TransparentWidget () | |
TransparentWidget (::rack::math::Rect newBox) | |
virtual | ~TransparentWidget () noexcept |
![]() | |
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 | |
PanelLinesWidget (const PanelLinesWidget &)=delete | |
PanelLinesWidget & | operator= (const PanelLinesWidget &)=delete |
PanelLinesWidget (PanelLinesWidget &&)=delete | |
PanelLinesWidget & | operator= (PanelLinesWidget &&)=delete |
Private Attributes | |
const ::NVGcolor & | borderColor = ::StoneyDSP::StoneyVCV::Panels::borderColor |
Additional Inherited Members | |
![]() | |
::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 PanelLinesWidget
struct.
Draws 4 lines around the inner edges of the module. Does not send or respond to events.
using StoneyDSP::StoneyVCV::ComponentLibrary::PanelLinesWidget::DrawArgs = ::StoneyDSP::StoneyVCV::ComponentLibrary::TransparentWidget::DrawArgs |
StoneyDSP::StoneyVCV::ComponentLibrary::PanelLinesWidget::PanelLinesWidget | ( | ) |
Constructs a new PanelLinesWidget
object.
StoneyDSP::StoneyVCV::ComponentLibrary::PanelLinesWidget::PanelLinesWidget | ( | ::rack::math::Rect | newBox | ) |
Construct a new PanelLinesWidget
object with its' position and size set using a rack::math::Rect
.
|
virtualnoexcept |
Destroys the PanelLinesWidget
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 |