diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-03-02 17:38:55 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-03-02 17:38:55 -0500 |
| commit | 8858a54b5ddb3a2d8a42ecb1a837c02800bc934f (patch) | |
| tree | 2428c445936eb8865c0b7c8f52560e97a44082f3 /env.go | |
| parent | c6cd37a6b80d4e5ad1dbf8c8968b818811b8aa54 (diff) | |
| download | gui-8858a54b5ddb3a2d8a42ecb1a837c02800bc934f.zip | |
create lay/strain package
The lay/strain package uses the Cassowary algorithm to solve systems of
layout constraints.
Diffstat (limited to 'env.go')
| -rw-r--r-- | env.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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. |