Merge branch 'develop' into 8.1.0-Dev

This commit is contained in:
Josh Tynjala
2023-06-06 12:35:57 -07:00
39 changed files with 97 additions and 51 deletions

View File

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

View File

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