Merge branch 'develop' into 8.1.0-Dev
This commit is contained in:
@@ -565,6 +565,12 @@ class NativeApplication
|
||||
window.__fullscreen = false;
|
||||
window.__minimized = false;
|
||||
window.onRestore.dispatch();
|
||||
|
||||
case WINDOW_SHOW:
|
||||
window.onShow.dispatch();
|
||||
|
||||
case WINDOW_HIDE:
|
||||
window.onHide.dispatch();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -973,4 +979,6 @@ class NativeApplication
|
||||
var WINDOW_MOVE = 10;
|
||||
var WINDOW_RESIZE = 11;
|
||||
var WINDOW_RESTORE = 12;
|
||||
var WINDOW_SHOW = 13;
|
||||
var WINDOW_HIDE = 14;
|
||||
}
|
||||
|
||||
@@ -66,6 +66,7 @@ class Window
|
||||
public var onFocusIn(default, null) = new Event<Void->Void>();
|
||||
public var onFocusOut(default, null) = new Event<Void->Void>();
|
||||
public var onFullscreen(default, null) = new Event<Void->Void>();
|
||||
public var onHide(default, null) = new Event<Void->Void>();
|
||||
public var onKeyDown(default, null) = new Event<KeyCode->KeyModifier->Void>();
|
||||
public var onKeyUp(default, null) = new Event<KeyCode->KeyModifier->Void>();
|
||||
public var onLeave(default, null) = new Event<Void->Void>();
|
||||
@@ -82,6 +83,7 @@ class Window
|
||||
public var onRenderContextRestored(default, null) = new Event<RenderContext->Void>();
|
||||
public var onResize(default, null) = new Event<Int->Int->Void>();
|
||||
public var onRestore(default, null) = new Event<Void->Void>();
|
||||
public var onShow(default, null) = new Event<Void->Void>();
|
||||
public var onTextEdit(default, null) = new Event<String->Int->Int->Void>();
|
||||
public var onTextInput(default, null) = new Event<String->Void>();
|
||||
public var opacity(get, set):Float;
|
||||
|
||||
Reference in New Issue
Block a user