Introducing a will-enter-full-screen event that's cancellable

This commit is contained in:
Heilig Benedek
2016-02-09 01:17:05 +01:00
parent d5bdb17144
commit a8ae14e94f
7 changed files with 36 additions and 8 deletions

View File

@@ -219,6 +219,10 @@ void Window::OnWindowMoved() {
Emit("moved");
}
void Window::OnWindowWillEnterFullScreen(bool* prevent_default) {
*prevent_default = Emit("will-enter-full-screen");
}
void Window::OnWindowEnterFullScreen() {
Emit("enter-full-screen");
}