summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-06 23:03:29 -0400
committerPietro Gagliardi <[email protected]>2014-06-06 23:03:29 -0400
commitf5397475469b8e5b7a42d0bbb9bda4bca97f2b8a (patch)
tree99c98d83bff2089f3854f7e5750b6376719471e8 /area.go
parent84c41112b381700aae6bf3bf59b4143716c75a82 (diff)
Set Area's preferred size in the documentation and on Windows and Mac OS X.
Diffstat (limited to 'area.go')
-rw-r--r--area.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/area.go b/area.go
index ae890a3..686f4b8 100644
--- a/area.go
+++ b/area.go
@@ -14,6 +14,7 @@ import (
// An Area has an explicit size, represented in pixels, that may be different from the size shown in its Window; Areas have both horizontal and vertical scrollbars that are hidden when not needed.
// The coordinate system of an Area always has an origin of (0,0) which maps to the top-left corner; all image.Points and image.Rectangles sent across Area's channels conform to this.
// The size of an Area must be at least 1x1 (that is, neither its width nor its height may be zero or negative).
+// For control layout purposes, an Area prefers to be at the size you set it to (so if an Area is not stretchy in its layout, it will ask to have that size).
//
// To handle events to the Area, an Area must be paired with an AreaHandler.
// See AreaHandler for details.