layout: replace NewContext with a Queue argument to Context.Reset

We're about to reduce the scope of the Window.Queue by moving it
to FrameEvent. As a consequence, Context can no longer rely on a
Queue constant over its lifetime.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-05-03 21:00:52 +02:00
parent d350f82011
commit 289fe02b90
3 changed files with 8 additions and 14 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import (
func TestStack(t *testing.T) {
var gtx Context
gtx.Reset(nil, image.Point{X: 100, Y: 100})
gtx.Reset(nil, nil, image.Point{X: 100, Y: 100})
gtx.Constraints.Width.Min = 0
gtx.Constraints.Height.Min = 0
exp := image.Point{X: 60, Y: 70}