From 95b1d033a91bb50fb2846156e027f8a5fa264fd2 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Tue, 11 Jun 2024 23:58:19 -0400 Subject: [PATCH] SetResizable has been implemented --- x/window.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/x/window.go b/x/window.go index 5eaaad2..a3090d6 100644 --- a/x/window.go +++ b/x/window.go @@ -32,6 +32,8 @@ type window struct { hasModal bool shy bool visible bool + resizeX bool + resizeY bool metrics struct { bounds image.Rectangle @@ -216,7 +218,10 @@ func (this *window) SetIcon (sizes ...canvas.Texture) { } func (this *window) SetResizable (x, y bool) { - // TODO + if this.resizeX == x && this.resizeY == y { return } + this.resizeX = x + this.resizeY = y + this.doMinimumSize() } func (this *window) SetBounds (bounds image.Rectangle) {