| @@ -231,6 +231,8 @@ public: | |||||
| d_stdout("handlePluginKeyEvent %i %i %li\n", down, index, (long int)value); | d_stdout("handlePluginKeyEvent %i %i %li\n", down, index, (long int)value); | ||||
| using namespace DGL_NAMESPACE; | |||||
| int special = 0; | int special = 0; | ||||
| switch (value) | switch (value) | ||||
| { | { | ||||
| @@ -528,7 +528,7 @@ public: | |||||
| return glWindow.handlePluginKeyboard(press, key); | return glWindow.handlePluginKeyboard(press, key); | ||||
| } | } | ||||
| bool handlePluginSpecial(const bool press, const Key key) | |||||
| bool handlePluginSpecial(const bool press, const DGL_NAMESPACE::Key key) | |||||
| { | { | ||||
| return glWindow.handlePluginSpecial(press, key); | return glWindow.handlePluginSpecial(press, key); | ||||
| } | } | ||||
| @@ -19,6 +19,10 @@ | |||||
| #include "Cairo.hpp" | #include "Cairo.hpp" | ||||
| #include "Window.hpp" | #include "Window.hpp" | ||||
| START_NAMESPACE_DGL | |||||
| // ----------------------------------------------------------------------- | |||||
| static const char* banner = | static const char* banner = | ||||
| " " | " " | ||||
| " * * * * * " | " * * * * * " | ||||
| @@ -90,3 +94,7 @@ void DemoWidgetBanner::onDisplay() | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| // ----------------------------------------------------------------------- | |||||
| END_NAMESPACE_DGL | |||||
| @@ -16,9 +16,19 @@ | |||||
| #include "Widget.hpp" | #include "Widget.hpp" | ||||
| START_NAMESPACE_DGL | |||||
| // ----------------------------------------------------------------------- | |||||
| class DemoWidgetBanner : public Widget | class DemoWidgetBanner : public Widget | ||||
| { | { | ||||
| public: | public: | ||||
| explicit DemoWidgetBanner(Widget* group); | explicit DemoWidgetBanner(Widget* group); | ||||
| void onDisplay() override; | void onDisplay() override; | ||||
| }; | }; | ||||
| // ----------------------------------------------------------------------- | |||||
| END_NAMESPACE_DGL | |||||
| using DGL_NAMESPACE::DemoWidgetBanner; | |||||
| @@ -19,6 +19,10 @@ | |||||
| #include "Cairo.hpp" | #include "Cairo.hpp" | ||||
| #include "Window.hpp" | #include "Window.hpp" | ||||
| START_NAMESPACE_DGL | |||||
| // ----------------------------------------------------------------------- | |||||
| DemoWidgetClickable::DemoWidgetClickable(Widget* group) | DemoWidgetClickable::DemoWidgetClickable(Widget* group) | ||||
| : Widget(group) | : Widget(group) | ||||
| { | { | ||||
| @@ -77,3 +81,7 @@ bool DemoWidgetClickable::onMouse(const MouseEvent& event) | |||||
| return Widget::onMouse(event); | return Widget::onMouse(event); | ||||
| } | } | ||||
| // ----------------------------------------------------------------------- | |||||
| END_NAMESPACE_DGL | |||||
| @@ -16,6 +16,10 @@ | |||||
| #include "Widget.hpp" | #include "Widget.hpp" | ||||
| START_NAMESPACE_DGL | |||||
| // ----------------------------------------------------------------------- | |||||
| class DemoWidgetClickable : public Widget | class DemoWidgetClickable : public Widget | ||||
| { | { | ||||
| public: | public: | ||||
| @@ -26,3 +30,9 @@ public: | |||||
| private: | private: | ||||
| unsigned fColorId = 0; | unsigned fColorId = 0; | ||||
| }; | }; | ||||
| // ----------------------------------------------------------------------- | |||||
| END_NAMESPACE_DGL | |||||
| using DGL_NAMESPACE::DemoWidgetClickable; | |||||
| @@ -18,6 +18,11 @@ | |||||
| START_NAMESPACE_DISTRHO | START_NAMESPACE_DISTRHO | ||||
| /** | |||||
| We need the Color class from DGL. | |||||
| */ | |||||
| using DGL_NAMESPACE::Color; | |||||
| /** | /** | ||||
| Smooth meters a bit. | Smooth meters a bit. | ||||
| */ | */ | ||||
| @@ -18,6 +18,11 @@ | |||||
| START_NAMESPACE_DISTRHO | START_NAMESPACE_DISTRHO | ||||
| /** | |||||
| We need the rectangle class from DGL. | |||||
| */ | |||||
| using DGL_NAMESPACE::Rectangle; | |||||
| // ----------------------------------------------------------------------------------------------------------- | // ----------------------------------------------------------------------------------------------------------- | ||||
| class ExampleUIParameters : public UI | class ExampleUIParameters : public UI | ||||
| @@ -18,6 +18,11 @@ | |||||
| START_NAMESPACE_DISTRHO | START_NAMESPACE_DISTRHO | ||||
| /** | |||||
| We need the rectangle class from DGL. | |||||
| */ | |||||
| using DGL_NAMESPACE::Rectangle; | |||||
| // ----------------------------------------------------------------------------------------------------------- | // ----------------------------------------------------------------------------------------------------------- | ||||
| class ExampleUIParameters : public UI | class ExampleUIParameters : public UI | ||||