| 894 | } |
| 895 | |
| 896 | void 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 | |
| 928 | void MacWindow::Hide() |
| 929 | { |
nothing calls this directly
no test coverage detected