MCPcopy Create free account
hub / github.com/DISTRHO/DPF / FOR_EACH_TOP_LEVEL_WIDGET

Function FOR_EACH_TOP_LEVEL_WIDGET

dgl/src/WindowPrivateData.cpp:678–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676
677#ifndef DPF_TEST_WINDOW_CPP
678 FOR_EACH_TOP_LEVEL_WIDGET(it)
679 {
680 TopLevelWidget* const widget = *it;
681
682 /* Some special care here, we call Widget::setSize instead of the TopLevelWidget one.
683 * This is because we want TopLevelWidget::setSize to handle both window and widget size,
684 * but we dont want to change window size here, because we are the window..
685 * So we just call the Widget specific method manually.
686 *
687 * Alternatively, we could expose a resize function on the pData, like done with the display function.
688 * But there is nothing extra we need to do in there, so this works fine.
689 */
690 ((Widget*)widget)->setSize(uwidth, uheight);
691 }
692#endif
693
694 // always repaint after a resize

Callers

nothing calls this directly

Calls 3

setSizeMethod · 0.45
isVisibleMethod · 0.45
displayMethod · 0.45

Tested by

no test coverage detected