diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-03-03 14:29:13 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-03-03 14:29:13 -0500 |
| commit | 474f4984f8be450524eedd3e89bcbfdfa1b4f516 (patch) | |
| tree | f36f3f23dddeecb5d281c5146265a5b357b92039 /win/win.go | |
| parent | 0a0b9b8cc9cdc0ffe1819de0266dd1e3c3eb564f (diff) | |
| download | gui-474f4984f8be450524eedd3e89bcbfdfa1b4f516.zip | |
fix compiler errors
Diffstat (limited to 'win/win.go')
| -rw-r--r-- | win/win.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -9,6 +9,7 @@ import ( "unsafe" "github.com/faiface/gui" + "github.com/faiface/gui/lay/strain" "github.com/faiface/mainthread" "github.com/go-gl/gl/v2.1/gl" "github.com/go-gl/glfw/v3.2/glfw" @@ -23,7 +24,7 @@ type Win struct { eventsOut <-chan gui.Event eventsIn chan<- gui.Event draw chan func(draw.Image) image.Rectangle - impose chan gui.Constraint + impose chan strain.Constraint newSize chan image.Rectangle ctx context.Context @@ -56,7 +57,7 @@ func New(opts ...Option) (*Win, error) { eventsOut: eventsOut, eventsIn: eventsIn, draw: make(chan func(draw.Image) image.Rectangle), - impose: make(chan gui.Constraint), + impose: make(chan strain.Constraint), newSize: make(chan image.Rectangle), ctx: ctx, cancel: cancel, @@ -136,7 +137,7 @@ func (w *Win) Draw() chan<- func(draw.Image) image.Rectangle { return w.draw } // Impose returns the impose channel of the window. // The window ignores constraints sent to the impose channel. -func (w *Win) Impose() chan<- gui.Constraint { return w.impose } +func (w *Win) Impose() chan<- strain.Constraint { return w.impose } // Close destroys the window. func (w *Win) Close() { |