Added Alert function

This commit is contained in:
Tommy X
2015-09-01 20:20:05 -04:00
parent 3a2b94009c
commit c05e0825ac

View File

@@ -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;
}
}