SetResizable has been implemented

This commit is contained in:
Sasha Koshka 2024-06-11 23:58:19 -04:00
parent 1951b6e408
commit 95b1d033a9

View File

@ -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) {