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>
4
5
6namespace rack {
7namespace app {
8
9
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
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Definition LightWidget.hpp:10
NVGcolor borderColor
Definition LightWidget.hpp:13
void drawLayer(const DrawArgs &args, int layer) override
Draw additional layers.
virtual void drawHalo(const DrawArgs &args)
virtual void drawLight(const DrawArgs &args)
NVGcolor bgColor
Definition LightWidget.hpp:11
void draw(const DrawArgs &args) override
Draws the widget to the NanoVG context.
NVGcolor color
Definition LightWidget.hpp:12
virtual void drawBackground(const DrawArgs &args)
A Widget that does not respond to events and does not pass events to children.
Definition TransparentWidget.hpp:10
Definition Widget.hpp:141