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

Function puglRaiseWindow

dgl/src/pugl.cpp:280–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278// bring view window into the foreground, aka "raise" window
279
280void puglRaiseWindow(PuglView* const view)
281{
282 // this does the same as puglShow(view, PUGL_SHOW_FORCE_RAISE) + puglShow(view, PUGL_SHOW_RAISE)
283 #if defined(DISTRHO_OS_HAIKU)
284 #elif defined(DISTRHO_OS_MAC)
285 NSWindow* const window = [view->impl->wrapperView window];
286 [window orderFrontRegardless];
287 [window orderFront:view->impl->wrapperView];
288 #elif defined(DISTRHO_OS_WASM)
289 // nothing
290 #elif defined(DISTRHO_OS_WINDOWS)
291 SetForegroundWindow(view->impl->hwnd);
292 SetActiveWindow(view->impl->hwnd);
293 #elif defined(HAVE_X11)
294 XRaiseWindow(view->world->impl->display, view->impl->win);
295 #endif
296}
297
298// --------------------------------------------------------------------------------------------------------------------
299// Combined puglSetSizeHint using PUGL_MIN_SIZE and PUGL_FIXED_ASPECT

Callers 1

focusMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected