MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Show

Method Show

Source/Engine/Platform/Mac/MacWindow.cpp:896–926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894}
895
896void MacWindow::Show()
897{
898 if (!_visible)
899 {
900 InitSwapChain();
901 if (_showAfterFirstPaint)
902 {
903 if (RenderTask)
904 RenderTask->Enabled = true;
905 return;
906 }
907
908 // Show
909 NSWindow* window = (NSWindow*)_window;
910 if (_settings.Parent)
911 {
912 NSWindow* parent = (NSWindow*)_settings.Parent->GetNativePtr();
913 [parent addChildWindow:window ordered:NSWindowAbove];
914 }
915 if (_settings.AllowInput)
916 [window makeKeyAndOrderFront:nil];
917 else
918 [window orderFront:window];
919 if (_settings.ActivateWhenFirstShown)
920 [NSApp activateIgnoringOtherApps:YES];
921 _focused = true;
922
923 // Base
924 WindowBase::Show();
925 }
926}
927
928void MacWindow::Hide()
929{

Callers

nothing calls this directly

Calls 1

GetNativePtrMethod · 0.45

Tested by

no test coverage detected