From c05e0825ac4dd35b8532d5384f6eceb234d67e8c Mon Sep 17 00:00:00 2001 From: Tommy X Date: Tue, 1 Sep 2015 20:20:05 -0400 Subject: [PATCH] Added Alert function --- lime/_backend/native/NativeWindow.hx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lime/_backend/native/NativeWindow.hx b/lime/_backend/native/NativeWindow.hx index 3d06f60df..c2d9bc80f 100644 --- a/lime/_backend/native/NativeWindow.hx +++ b/lime/_backend/native/NativeWindow.hx @@ -233,6 +233,16 @@ class NativeWindow { } + public function alert (count:Int, speed:Int, stopOnForeground:Bool):Void { + + if (handle != null) { + + lime_window_alert (handle, count, speed, stopOnForeground); + + } + + } + @:cffi private static function lime_window_close (handle:Float):Void; @:cffi private static function lime_window_create (application:Float, width:Int, height:Int, flags:Int, title:String):Float; @@ -250,6 +260,7 @@ class NativeWindow { @:cffi private static function lime_window_set_icon (handle:Float, buffer:Dynamic):Void; @:cffi private static function lime_window_set_minimized (handle:Float, minimized:Bool):Bool; @:cffi private static function lime_window_set_title (handle:Float, title:String):String; + @:cffi private static function lime_window_alert (handle:Float, count:Int, speed:Int, stopOnForeground:Bool):Void; } @@ -269,4 +280,4 @@ class NativeWindow { var WINDOW_FLAG_DEPTH_BUFFER = 0x00000200; var WINDOW_FLAG_STENCIL_BUFFER = 0x00000400; -} \ No newline at end of file +}