From 8858a54b5ddb3a2d8a42ecb1a837c02800bc934f Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Mon, 2 Mar 2026 17:38:55 -0500 Subject: create lay/strain package The lay/strain package uses the Cassowary algorithm to solve systems of layout constraints. --- env.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'env.go') diff --git a/env.go b/env.go index 005ef80..68b02d1 100644 --- a/env.go +++ b/env.go @@ -3,6 +3,8 @@ package gui import ( "image" "image/draw" + + "github.com/faiface/gui/lay/strain" ) // Env is the most important thing in this package. It is an interactive graphical @@ -35,7 +37,7 @@ type Env interface { // enough space. // // The Impose() channel may be synchronous. - Impose() chan<- Constraint + Impose() chan<- strain.Constraint // Close destroys the Env. The Env will subsequently close the Events(), Draw(), // and Impose() channels. -- cgit v1.2.3