diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/esdl2.erl | 4 | ||||
-rw-r--r-- | src/sdl_window.erl | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/esdl2.erl b/src/esdl2.erl index 9be4e55..7318945 100644 --- a/src/esdl2.erl +++ b/src/esdl2.erl @@ -83,6 +83,7 @@ -export([get_window_position/1]). -export([get_window_size/1]). -export([get_window_title/1]). +-export([hide_window/1]). %% @todo We probably want to accept an env variable or somthing for the location. -on_load(on_load/0). @@ -261,3 +262,6 @@ get_window_size(_) -> get_window_title(_) -> erlang:nif_error({not_loaded, ?MODULE}). + +hide_window(_) -> + erlang:nif_error({not_loaded, ?MODULE}). diff --git a/src/sdl_window.erl b/src/sdl_window.erl index 82e2b17..9c3fdbd 100644 --- a/src/sdl_window.erl +++ b/src/sdl_window.erl @@ -26,6 +26,7 @@ -export([get_pos/1]). -export([get_size/1]). -export([get_title/1]). +-export([hide/1]). create(Title, X, Y, W, H, Flags) -> esdl2:create_window(Title, X, Y, W, H, Flags), @@ -77,3 +78,6 @@ get_size(Window) -> get_title(Window) -> esdl2:get_window_title(Window), receive {'_nif_thread_ret_', Ret} -> Ret end. + +hide(Window) -> + esdl2:hide_window(Window). |