Browse Source

NanoSubWidgets test: pain container grey to detect size issues

Signed-off-by: falkTX <falktx@falktx.com>
pull/272/head
falkTX 4 years ago
parent
commit
5b98b66c0f
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 9 additions and 14 deletions
  1. +9
    -14
      tests/NanoSubWidgets.cpp

+ 9
- 14
tests/NanoSubWidgets.cpp View File

@@ -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;
};


Loading…
Cancel
Save