diff --git a/canvas.go b/canvas.go index f51c74a..89b5bda 100644 --- a/canvas.go +++ b/canvas.go @@ -5,7 +5,7 @@ import "image/draw" import "image/color" // Canvas is like Image but also requires Set and SetRGBA methods. This -// interface can be easily satisfied using an image.RGBA struct. +// interface can be easily satisfied using a BasicCanvas struct. type Canvas interface { draw.Image Buffer () (data []color.RGBA, stride int) diff --git a/layout.go b/layout.go index a54420a..1904d13 100644 --- a/layout.go +++ b/layout.go @@ -20,6 +20,8 @@ type Layout interface { Arrange (entries []LayoutEntry, width, height int) // MinimumSize returns the minimum width and height that the layout - // needs to properly arrange the given slice of layout entries. + // needs to properly arrange the given slice of layout entries, given a + // "suqeeze" width so that the height can be determined for elements + // fulfilling the Expanding interface. MinimumSize (entries []LayoutEntry) (width, height int) }