aboutsummaryrefslogtreecommitdiffstats
path: root/layout/layout.go
diff options
context:
space:
mode:
authorClement Benard <contact@clementbenard.com>2019-07-15 15:44:34 +0200
committerClement Benard <contact@clementbenard.com>2019-07-15 15:44:34 +0200
commit736e35bd9b0c8f4f9649557e4b7a3085b4bdbe63 (patch)
tree53c854ae5142a879a1a0076e804f210db5cb7b85 /layout/layout.go
parent1b03644d1e0e1be27cdd22732f893d03c0e8421d (diff)
downloadgui-736e35bd9b0c8f4f9649557e4b7a3085b4bdbe63.zip
Easier and more idiomatic Layout initializing
Diffstat (limited to 'layout/layout.go')
-rw-r--r--layout/layout.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/layout/layout.go b/layout/layout.go
index dfacca1..8b8e039 100644
--- a/layout/layout.go
+++ b/layout/layout.go
@@ -3,14 +3,10 @@ package layout
import (
"image"
"image/draw"
-
- "github.com/faiface/gui"
)
// Layout represents any graphical layout
//
-// Items returns the Layout's childs in whatever order.
-//
// 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.
@@ -18,7 +14,6 @@ import (
//
// Redraw only draws the background or frame of the Layout, not the childs.
type Layout interface {
- Items() []*gui.Env
Lay(image.Rectangle) []image.Rectangle
Redraw(draw.Image, image.Rectangle)
}