added size change event handler to events example
This commit is contained in:
parent
50941d3075
commit
eee6571d44
1 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,9 @@ func main() {
|
||||||
circles = append(circles, circle{x: mx, y: my, color: "#00F"})
|
circles = append(circles, circle{x: mx, y: my, color: "#00F"})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
wnd.SizeChange = func(w, h int) {
|
||||||
|
cv.SetSize(w, h)
|
||||||
|
}
|
||||||
|
|
||||||
lastTime := time.Now()
|
lastTime := time.Now()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue