ebiten/internal/uidriver/glfw
Hajime Hoshi 49c3c30c79 ebiten: Add IsWindowBeingClosed / SetWindowClosingHandled / IsWindowClosingHandled
IsWindowBeingClosed reports whether the window is being closed by
the user.

SetWindowClosingHandled sets whether the window closing is handled
or not. If the state is true, the window is not closed immediately
by the user and the game can handle the closing state. In this case,
the Update function should return an error in order to end the game.

This change also adds examples/windowclosing.

Closes #1574
2021-06-14 02:29:11 +09:00
..
graphics_darwin.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
graphics_opengl.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
hideconsole_notwindows.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
hideconsole_windows.go Clean up the 'js' build tags 2020-10-07 01:33:10 +09:00
input.go internal/glfw: Bug fix: NewCallbackCDecl objects were leaked 2021-06-13 22:23:01 +09:00
keys.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
run_notsinglethread.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
run_singlethread.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
ui_darwin.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
ui_unix.go Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
ui_windows.go internal/uidriver/glfw: Native macOS implementation for setting cursor shape (#1624) 2021-05-02 14:50:50 +09:00
ui.go ebiten: Add IsWindowBeingClosed / SetWindowClosingHandled / IsWindowClosingHandled 2021-06-14 02:29:11 +09:00
window.go ebiten: Add IsWindowBeingClosed / SetWindowClosingHandled / IsWindowClosingHandled 2021-06-14 02:29:11 +09:00