DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 5b98b66c0f68c2e835a5c437aa56f3e945aac28b
parent 14faa195a6730c0ff531bbef978a5fc9b457dcdf
Author: falkTX <falktx@falktx.com>
Date:   Thu, 20 May 2021 20:06:25 +0100

NanoSubWidgets test: pain container grey to detect size issues

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mtests/NanoSubWidgets.cpp | 23+++++++++--------------
1 file changed, 9 insertions(+), 14 deletions(-)

diff --git a/tests/NanoSubWidgets.cpp b/tests/NanoSubWidgets.cpp @@ -77,6 +77,13 @@ public: protected: void onNanoDisplay() override { + beginPath(); + + fillColor(Color(0.5f, 0.5f, 0.5f)); + rect(0, 0, getWidth(), getHeight()); + fill(); + + closePath(); } private: @@ -92,25 +99,13 @@ public: : Window(app), container(*this) { - const uint targetWidth = 1000; - const uint targetHeight = 600; + const uint targetWidth = 400; + const uint targetHeight = 400; setSize(targetWidth, targetHeight); - // container.setSize(width, height); - setTitle("NanoVG SubWidgets test"); } - /* -protected: - void onReshape(uint width, uint height) override - { - container.setSize(width, height); - - Window::onReshape(width, height); - } - */ - private: NanoRectanglesContainer container; };