| 344 | } |
| 345 | |
| 346 | void onReshape(uint width, uint height) override |
| 347 | { |
| 348 | StandaloneWindow::onReshape(width, height); |
| 349 | |
| 350 | const double scaleFactor = getScaleFactor(); |
| 351 | |
| 352 | if (width < kSidebarWidth * scaleFactor) |
| 353 | return; |
| 354 | |
| 355 | const Size<uint> size(width - kSidebarWidth * scaleFactor, height); |
| 356 | wColor->setSize(size); |
| 357 | wImages->setSize(size); |
| 358 | wRects->setSize(size); |
| 359 | wShapes->setSize(size); |
| 360 | #ifdef DGL_OPENGL |
| 361 | wText->setSize(size); |
| 362 | #endif |
| 363 | wLeft->setSize((kSidebarWidth - 4) * scaleFactor, (height - 4) * scaleFactor); |
| 364 | } |
| 365 | |
| 366 | private: |
| 367 | ScopedPointer<ExampleColorSubWidget> wColor; |
nothing calls this directly
no test coverage detected