mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 08:55:35 +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
@@ -922,6 +922,12 @@ func setNavigationColor(env *C.JNIEnv, view C.jobject, color color.NRGBA) {
|
||||
// Close the window. Not implemented for Android.
|
||||
func (w *window) Close() {}
|
||||
|
||||
// Maximize maximizes the window. Not implemented for Android.
|
||||
func (w *window) Maximize() {}
|
||||
|
||||
// Center the window. Not implemented for Android.
|
||||
func (w *window) Center() {}
|
||||
|
||||
// runOnMain runs a function on the Java main thread.
|
||||
func runOnMain(f func(env *C.JNIEnv)) {
|
||||
go func() {
|
||||
|
||||
Reference in New Issue
Block a user