aboutsummaryrefslogtreecommitdiffstats
path: root/src/sdl_window.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-04-03 19:50:59 +0200
committerLoïc Hoguin <[email protected]>2014-04-03 19:50:59 +0200
commita1afe564f1b5a3e8b91e3f706fbd5d7d66a9978c (patch)
tree1b1e0e8662ab8fe8b8ad20b2ef456a0f71292483 /src/sdl_window.erl
parent89b594e3a86da6cc6d08009bfe0fb26a18ce8365 (diff)
downloadesdl2-a1afe564f1b5a3e8b91e3f706fbd5d7d66a9978c.tar.gz
esdl2-a1afe564f1b5a3e8b91e3f706fbd5d7d66a9978c.tar.bz2
esdl2-a1afe564f1b5a3e8b91e3f706fbd5d7d66a9978c.zip
Add sdl_window:set_pos/3
Diffstat (limited to 'src/sdl_window.erl')
-rw-r--r--src/sdl_window.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sdl_window.erl b/src/sdl_window.erl
index f3bdcf7..80e5376 100644
--- a/src/sdl_window.erl
+++ b/src/sdl_window.erl
@@ -38,6 +38,7 @@
-export([set_icon/2]).
-export([set_max_size/3]).
-export([set_min_size/3]).
+-export([set_pos/3]).
create(Title, X, Y, W, H, Flags) ->
esdl2:create_window(Title, X, Y, W, H, Flags),
@@ -128,3 +129,6 @@ set_max_size(Window, W, H) ->
set_min_size(Window, W, H) ->
esdl2:set_window_minimum_size(Window, W, H).
+
+set_pos(Window, X, Y) ->
+ esdl2:set_window_position(Window, X, Y).