VCV Rack API
v2
Loading...
Searching...
No Matches
LightWidget.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <
app/common.hpp
>
3
#include <
widget/TransparentWidget.hpp
>
4
5
6
namespace
rack
{
7
namespace
app {
8
9
10
struct
LightWidget
:
widget::TransparentWidget
{
11
NVGcolor
bgColor
= nvgRGBA(0, 0, 0, 0);
12
NVGcolor
color
= nvgRGBA(0, 0, 0, 0);
13
NVGcolor
borderColor
= nvgRGBA(0, 0, 0, 0);
14
15
void
draw
(
const
DrawArgs
& args)
override
;
16
void
drawLayer
(
const
DrawArgs
& args,
int
layer)
override
;
17
virtual
void
drawBackground
(
const
DrawArgs
& args);
18
virtual
void
drawLight
(
const
DrawArgs
& args);
19
virtual
void
drawHalo
(
const
DrawArgs
& args);
20
};
21
22
23
}
// namespace app
24
}
// namespace rack
TransparentWidget.hpp
common.hpp
rack
Root namespace for the Rack API.
Definition
AudioDisplay.hpp:9
rack::app::LightWidget
Definition
LightWidget.hpp:10
rack::app::LightWidget::borderColor
NVGcolor borderColor
Definition
LightWidget.hpp:13
rack::app::LightWidget::drawLayer
void drawLayer(const DrawArgs &args, int layer) override
Draw additional layers.
rack::app::LightWidget::drawHalo
virtual void drawHalo(const DrawArgs &args)
rack::app::LightWidget::drawLight
virtual void drawLight(const DrawArgs &args)
rack::app::LightWidget::bgColor
NVGcolor bgColor
Definition
LightWidget.hpp:11
rack::app::LightWidget::draw
void draw(const DrawArgs &args) override
Draws the widget to the NanoVG context.
rack::app::LightWidget::color
NVGcolor color
Definition
LightWidget.hpp:12
rack::app::LightWidget::drawBackground
virtual void drawBackground(const DrawArgs &args)
rack::widget::TransparentWidget
A Widget that does not respond to events and does not pass events to children.
Definition
TransparentWidget.hpp:10
rack::widget::Widget::DrawArgs
Definition
Widget.hpp:141
include
app
LightWidget.hpp
Generated by
1.12.0