aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-04-03 19:40:06 +0200
committerLoïc Hoguin <[email protected]>2014-04-03 19:40:06 +0200
commit89b594e3a86da6cc6d08009bfe0fb26a18ce8365 (patch)
treeaf2d26dd936b30b04c83305b5b52140fb22308a7 /src
parenta538eb1deb61edd4c166dcba1dfd3dcc57663fc9 (diff)
downloadesdl2-89b594e3a86da6cc6d08009bfe0fb26a18ce8365.tar.gz
esdl2-89b594e3a86da6cc6d08009bfe0fb26a18ce8365.tar.bz2
esdl2-89b594e3a86da6cc6d08009bfe0fb26a18ce8365.zip
Add sdl_window:set_min_size/3
Diffstat (limited to 'src')
-rw-r--r--src/esdl2.erl4
-rw-r--r--src/sdl_window.erl4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/esdl2.erl b/src/esdl2.erl
index 6dcd62d..8067c5f 100644
--- a/src/esdl2.erl
+++ b/src/esdl2.erl
@@ -94,6 +94,7 @@
-export([set_window_grab/2]).
-export([set_window_icon/2]).
-export([set_window_maximum_size/3]).
+-export([set_window_minimum_size/3]).
%% @todo We probably want to accept an env variable or somthing for the location.
-on_load(on_load/0).
@@ -305,3 +306,6 @@ set_window_icon(_, _) ->
set_window_maximum_size(_, _, _) ->
erlang:nif_error({not_loaded, ?MODULE}).
+
+set_window_minimum_size(_, _, _) ->
+ erlang:nif_error({not_loaded, ?MODULE}).
diff --git a/src/sdl_window.erl b/src/sdl_window.erl
index 13757b1..f3bdcf7 100644
--- a/src/sdl_window.erl
+++ b/src/sdl_window.erl
@@ -37,6 +37,7 @@
-export([grab_input/2]).
-export([set_icon/2]).
-export([set_max_size/3]).
+-export([set_min_size/3]).
create(Title, X, Y, W, H, Flags) ->
esdl2:create_window(Title, X, Y, W, H, Flags),
@@ -124,3 +125,6 @@ set_icon(Window, Surface) ->
set_max_size(Window, W, H) ->
esdl2:set_window_maximum_size(Window, W, H).
+
+set_min_size(Window, W, H) ->
+ esdl2:set_window_minimum_size(Window, W, H).