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

Method initPost

dgl/src/WindowPrivateData.cpp:310–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310bool Window::PrivateData::initPost()
311{
312 if (view == nullptr)
313 return false;
314
315 // create view now, as a few methods we allow devs to use require it
316 if (puglRealize(view) != PUGL_SUCCESS)
317 {
318 view = nullptr;
319 d_stderr2("Failed to realize Pugl view, everything will fail!");
320 return false;
321 }
322
323 if (isEmbed)
324 {
325 appData->oneWindowShown();
326 puglShow(view, PUGL_SHOW_PASSIVE);
327 }
328
329 return true;
330}
331
332// -----------------------------------------------------------------------
333

Callers 2

WindowMethod · 0.80
PluginWindowFunction · 0.80

Calls 4

d_stderr2Function · 0.85
oneWindowShownMethod · 0.80
puglRealizeFunction · 0.50
puglShowFunction · 0.50

Tested by

no test coverage detected