mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
app: add Window.Maximize and Center, add Windows implementation
Signed-off-by: Jan Kare Vatne <jkvatne@online.no>
This commit is contained in:
committed by
Elias Naur
parent
dce453e130
commit
9835cd5996
@@ -566,6 +566,12 @@ func (w *window) SetInputHint(mode key.InputHint) {
|
||||
// Close the window. Not implemented for js.
|
||||
func (w *window) Close() {}
|
||||
|
||||
// Maximize the window. Not implemented for js.
|
||||
func (w *window) Maximize() {}
|
||||
|
||||
// Center the window. Not implemented for js.
|
||||
func (w *window) Center() {}
|
||||
|
||||
func (w *window) resize() {
|
||||
w.scale = float32(w.window.Get("devicePixelRatio").Float())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user