You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #pragma once
- #include "app/common.hpp"
- #include "widgets/OpaqueWidget.hpp"
- #include "app/MultiLightWidget.hpp"
- #include "engine/Module.hpp"
-
-
- namespace rack {
-
-
- struct PortWidget : OpaqueWidget {
- Module *module = NULL;
- int portId;
-
- enum Type {
- OUTPUT,
- INPUT
- };
- Type type;
- MultiLightWidget *plugLight;
-
- PortWidget();
- ~PortWidget();
-
- void step() override;
- void draw(NVGcontext *vg) override;
-
- void onButton(const event::Button &e) override;
- void onDragStart(const event::DragStart &e) override;
- void onDragEnd(const event::DragEnd &e) override;
- void onDragDrop(const event::DragDrop &e) override;
- void onDragEnter(const event::DragEnter &e) override;
- void onDragLeave(const event::DragLeave &e) override;
- };
-
-
- } // namespace rack
|