SetResizable has been implemented
This commit is contained in:
parent
1951b6e408
commit
95b1d033a9
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user