MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / onResize

Method onResize

src/CardinalRemote/RemoteUI.cpp:385–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385void CardinalRemoteUI::onResize(const ResizeEvent& ev)
386{
387 NanoTopLevelWidget::onResize(ev);
388
389 CardinalPluginContext* context = static_cast<CardinalPluginContext*>(rack::contextGet());
390 WindowSetInternalSize(context->window, rack::math::Vec(ev.size.getWidth(), ev.size.getHeight()));
391}
392
393// --------------------------------------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 6

VecClass · 0.85
getWidthMethod · 0.80
getHeightMethod · 0.80
WindowSetInternalSizeFunction · 0.70
onResizeFunction · 0.50
contextGetFunction · 0.50

Tested by

no test coverage detected