-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3747a1e
commit 418f78c
Showing
6 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module Graphics.UI.Gtk.OSX ( | ||
module Graphics.UI.Gtk.OSX.Application | ||
) where | ||
module Graphics.UI.Gtk.OSX.Application | ||
, module Graphics.UI.Gtk.OSX.Window | ||
) where | ||
|
||
import Graphics.UI.Gtk.OSX.Application | ||
import Graphics.UI.Gtk.OSX.Window |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{-# LANGUAGE CPP #-} | ||
module Graphics.UI.Gtk.OSX.Window ( | ||
allowFullscreen | ||
) where | ||
|
||
import System.Glib.FFI | ||
{#import Graphics.UI.Gtk.OSX.Types#} | ||
|
||
allowFullscreen window = | ||
{# call unsafe gtk2hs_osx_allow_fullscreen #} | ||
(toDrawWindow window) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <gtk/gtk.h> | ||
#include <gdk/gdkquartz.h> | ||
|
||
void gtk2hs_osx_allow_fullscreen(GdkWindow *wnd) | ||
{ | ||
if (wnd != NULL) | ||
{ | ||
NSWindow *native = gdk_quartz_window_get_nswindow (wnd); | ||
[native setCollectionBehavior: [native collectionBehavior] | NSWindowCollectionBehaviorFullScreenPrimary]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
#endif | ||
#include <gtkosxapplication.h> | ||
|
||
void gtk2hs_osx_allow_fullscreen(GdkWindow *wnd); |