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
>
3
#include <
app/MultiLightWidget.hpp
>
4
#include <
ui/Tooltip.hpp
>
5
#include <
engine/Module.hpp
>
6
7
8
namespace
rack
{
9
namespace
app {
10
11
15
struct
ModuleLightWidget
:
MultiLightWidget
{
16
struct
Internal;
17
Internal*
internal
;
18
19
engine::Module
* module = NULL;
20
int
firstLightId
= -1;
21
22
ModuleLightWidget
();
23
~ModuleLightWidget
();
24
engine::Light
*
getLight
(
int
colorId);
25
engine::LightInfo
*
getLightInfo
();
26
void
createTooltip
();
27
void
destroyTooltip
();
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
Module.hpp
MultiLightWidget.hpp
Tooltip.hpp
common.hpp
rack
Root namespace for the Rack API.
Definition
AudioDisplay.hpp:9
rack::app::ModuleLightWidget
A MultiLightWidget that points to a module's Light or a range of lights Will access firstLightId,...
Definition
ModuleLightWidget.hpp:15
rack::app::ModuleLightWidget::~ModuleLightWidget
~ModuleLightWidget()
rack::app::ModuleLightWidget::getLight
engine::Light * getLight(int colorId)
rack::app::ModuleLightWidget::firstLightId
int firstLightId
Definition
ModuleLightWidget.hpp:20
rack::app::ModuleLightWidget::createTooltip
void createTooltip()
rack::app::ModuleLightWidget::internal
Internal * internal
Definition
ModuleLightWidget.hpp:17
rack::app::ModuleLightWidget::step
void step() override
Advances the module by one frame.
rack::app::ModuleLightWidget::onEnter
void onEnter(const EnterEvent &e) override
rack::app::ModuleLightWidget::onHover
void onHover(const HoverEvent &e) override
rack::app::ModuleLightWidget::getLightInfo
engine::LightInfo * getLightInfo()
rack::app::ModuleLightWidget::ModuleLightWidget
ModuleLightWidget()
rack::app::ModuleLightWidget::destroyTooltip
void destroyTooltip()
rack::app::ModuleLightWidget::onLeave
void onLeave(const LeaveEvent &e) override
rack::app::MultiLightWidget
Mixes a list of colors based on a list of brightness values.
Definition
MultiLightWidget.hpp:11
rack::engine::LightInfo
Definition
LightInfo.hpp:12
rack::engine::Light
Definition
Light.hpp:9
rack::engine::Module
DSP processor instance for your module.
Definition
Module.hpp:29
rack::widget::Widget::EnterEvent
Occurs when a Widget begins consuming the Hover event.
Definition
Widget.hpp:327
rack::widget::Widget::HoverEvent
Occurs every frame when the mouse is hovering over a Widget.
Definition
Widget.hpp:225
rack::widget::Widget::LeaveEvent
Occurs when a different Widget is entered.
Definition
Widget.hpp:333
include
app
ModuleLightWidget.hpp
Generated by
1.12.0