From 6cb12f50fcbe091de56461100b5d527294405dd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 31 Jan 2018 17:11:54 +0100 Subject: Add utf-8 support to the sdl_clipboard functions --- src/sdl_clipboard.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/sdl_clipboard.erl b/src/sdl_clipboard.erl index 8577206..f694e6f 100644 --- a/src/sdl_clipboard.erl +++ b/src/sdl_clipboard.erl @@ -18,7 +18,7 @@ -export([has_text/0]). -export([set_text/1]). --spec get_text() -> {ok, string()} | sdl:error(). +-spec get_text() -> {ok, binary()} | sdl:error(). get_text() -> esdl2:get_clipboard_text(). @@ -26,6 +26,6 @@ get_text() -> has_text() -> esdl2:has_clipboard_text(). --spec set_text(string()) -> ok | sdl:error(). +-spec set_text(binary()) -> ok | sdl:error(). set_text(Text) -> esdl2:set_clipboard_text(Text). -- cgit v1.2.3