From 7442ec4b60d4fe90213a497b339c9bd55fc43670 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sun, 15 Jan 2023 12:37:10 -0500 Subject: [PATCH] More comment changes --- canvas.go | 2 +- layout.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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) }