aboutsummaryrefslogtreecommitdiffstats
path: root/mux.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-03-02 17:38:55 -0500
committerSam Anthony <sam@samanthony.xyz>2026-03-02 17:38:55 -0500
commit8858a54b5ddb3a2d8a42ecb1a837c02800bc934f (patch)
tree2428c445936eb8865c0b7c8f52560e97a44082f3 /mux.go
parentc6cd37a6b80d4e5ad1dbf8c8968b818811b8aa54 (diff)
downloadgui-8858a54b5ddb3a2d8a42ecb1a837c02800bc934f.zip
create lay/strain package
The lay/strain package uses the Cassowary algorithm to solve systems of layout constraints.
Diffstat (limited to 'mux.go')
-rw-r--r--mux.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/mux.go b/mux.go
index c3a8149..d251793 100644
--- a/mux.go
+++ b/mux.go
@@ -3,6 +3,8 @@ package gui
import (
"image"
"image/draw"
+
+ "github.com/faiface/gui/lay/strain"
)
// Mux can be used to multiplex an Env, let's call it a root Env. Mux implements a way to
@@ -11,7 +13,7 @@ import (
type Mux struct {
eventsIns chan chan<- Event
draw chan<- func(draw.Image) image.Rectangle
- impose chan<- Constraint
+ impose chan<- strain.Constraint
finish chan<- struct{}
}