|
12345678910111213141516171819202122232425262728293031323334353637383940 |
- #pragma once
- #include "app/common.hpp"
- #include "widgets/Widget.hpp"
- #include "widgets/TransparentWidget.hpp"
- #include "ui/TextField.hpp"
-
-
- namespace rack {
-
-
- struct LedDisplay : Widget {
- void draw(NVGcontext *vg) override;
- };
-
- struct LedDisplaySeparator : TransparentWidget {
- LedDisplaySeparator();
- void draw(NVGcontext *vg) override;
- };
-
- struct LedDisplayChoice : TransparentWidget {
- std::string text;
- std::shared_ptr<Font> font;
- math::Vec textOffset;
- NVGcolor color;
- LedDisplayChoice();
- void draw(NVGcontext *vg) override;
- void onButton(const event::Button &e) override;
- };
-
- struct LedDisplayTextField : TextField {
- std::shared_ptr<Font> font;
- math::Vec textOffset;
- NVGcolor color;
- LedDisplayTextField();
- void draw(NVGcontext *vg) override;
- int getTextPosition(math::Vec mousePos) override;
- };
-
-
- } // namespace rack
|