app: add Maximize and Center methods support for macOS and X11

Commit 9835cd59 added support for the Window.Maximize and
Window.Center methods for Windows only.
This patch also adds support for macOS and X11.

Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
Pierre Curto
2021-11-13 18:23:30 +01:00
committed by Elias Naur
parent f4c82adeff
commit a699f771c6
3 changed files with 90 additions and 34 deletions
+2 -2
View File
@@ -312,7 +312,7 @@ func (w *Window) Close() {
}
// Maximize the window.
// Note: only implemented on Windows.
// Note: only implemented on Windows, macOS and X11.
func (w *Window) Maximize() {
w.driverDefer(func(d driver) {
d.Maximize()
@@ -320,7 +320,7 @@ func (w *Window) Maximize() {
}
// Center the window.
// Note: only implemented on Windows.
// Note: only implemented on Windows, macOS and X11.
func (w *Window) Center() {
w.driverDefer(func(d driver) {
d.Center()