VCV Rack API v2
Loading...
Searching...
No Matches
ModuleLightWidget.hpp
Go to the documentation of this file.
1#pragma once
2#include <app/common.hpp>
4#include <ui/Tooltip.hpp>
5#include <engine/Module.hpp>
6
7
8namespace rack {
9namespace app {
10
11
16 struct Internal;
17 Internal* internal;
18
19 engine::Module* module = NULL;
20 int firstLightId = -1;
21
24 engine::Light* getLight(int colorId);
28
29 void step() override;
30 void onHover(const HoverEvent& e) override;
31 void onEnter(const EnterEvent& e) override;
32 void onLeave(const LeaveEvent& e) override;
33};
34
35
36} // namespace app
37} // namespace rack
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
A MultiLightWidget that points to a module's Light or a range of lights Will access firstLightId,...
Definition ModuleLightWidget.hpp:15
engine::Light * getLight(int colorId)
int firstLightId
Definition ModuleLightWidget.hpp:20
Internal * internal
Definition ModuleLightWidget.hpp:17
void step() override
Advances the module by one frame.
void onEnter(const EnterEvent &e) override
void onHover(const HoverEvent &e) override
engine::LightInfo * getLightInfo()
void onLeave(const LeaveEvent &e) override
Mixes a list of colors based on a list of brightness values.
Definition MultiLightWidget.hpp:11
Definition LightInfo.hpp:12
Definition Light.hpp:9
DSP processor instance for your module.
Definition Module.hpp:29
Occurs when a Widget begins consuming the Hover event.
Definition Widget.hpp:327
Occurs every frame when the mouse is hovering over a Widget.
Definition Widget.hpp:225
Occurs when a different Widget is entered.
Definition Widget.hpp:333