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

Method setWidth

dgl/src/Widget.cpp:78–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void Widget::setWidth(uint width) noexcept
79{
80 if (pData->size.getWidth() == width)
81 return;
82
83 ResizeEvent ev;
84 ev.oldSize = pData->size;
85 ev.size = Size<uint>(width, pData->size.getHeight());
86
87 pData->size.setWidth(width);
88 onResize(ev);
89
90 repaint();
91}
92
93void Widget::setHeight(uint height) noexcept
94{

Callers

nothing calls this directly

Calls 4

onResizeFunction · 0.50
repaintFunction · 0.50
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected