app: add Window.Maximize and Center, add Windows implementation

Signed-off-by: Jan Kare Vatne <jkvatne@online.no>
This commit is contained in:
Jan Kåre Vatne
2021-11-10 13:56:08 +01:00
committed by Elias Naur
parent dce453e130
commit 9835cd5996
10 changed files with 98 additions and 0 deletions
+6
View File
@@ -331,6 +331,12 @@ func (w *window) SetInputHint(_ key.InputHint) {}
// Close the window. Not implemented for iOS.
func (w *window) Close() {}
// Maximize the window. Not implemented for iOS.
func (w *window) Maximize() {}
// Center the window. Not implemented for iOS.
func (w *window) Center() {}
func newWindow(win *callbacks, options []Option) error {
mainWindow.in <- windowAndConfig{win, options}
return <-mainWindow.errs