diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-08-24 15:04:33 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-08-24 15:04:33 -0400 |
| commit | a8a38817d7bdd7505a7156e390460d48863a6bb3 (patch) | |
| tree | 77e0d50b01c0777789b72f4a59e2158352104a41 /layout/layout.go | |
| parent | eac0b4b31a1ae323222076dcb31dc7cd4d9402d5 (diff) | |
| download | gui-a8a38817d7bdd7505a7156e390460d48863a6bb3.zip | |
implement new layout design
Diffstat (limited to 'layout/layout.go')
| -rw-r--r-- | layout/layout.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/layout/layout.go b/layout/layout.go deleted file mode 100644 index 4d8e616..0000000 --- a/layout/layout.go +++ /dev/null @@ -1,20 +0,0 @@ -package layout - -import ( - "image" -) - -// Layout represents any graphical layout -// -// Lay represents the way to divide space among your childs. -// It takes a parameter of how much space is available, -// and returns where exactly to put its childs. -// -// Intercept transforms an Env channel to another. -// This way the Layout can emit its own Events, re-emit previous ones, -// or even stop an event from propagating, think win.MoScroll. -// It can be a no-op. -type Layout interface { - Lay(image.Rectangle) []image.Rectangle - Intercepter -} |