summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-12-21 23:50:36 -0500
committerPietro Gagliardi <[email protected]>2015-12-21 23:50:36 -0500
commitcb632002e599a8432e7e1fe380f28172be434f32 (patch)
tree65a249da49178dac60c696c581a4226fad022cc6 /area.go
parentae1ce9f98c4be37bb34d37d381b488bd9b309a5e (diff)
Wrote clarification on the sizes of points parameters to Areas.
Diffstat (limited to 'area.go')
-rw-r--r--area.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/area.go b/area.go
index 2904c38..4248523 100644
--- a/area.go
+++ b/area.go
@@ -39,7 +39,11 @@ var areas = make(map[*C.uiArea]*Area)
//
// The internal coordinate system of an Area is points, which are
// floating-point and device-independent. For more details, see
-// AreaHandler.
+// AreaHandler. The size of a scrolling Area must be an exact integer
+// number of points (that is, you cannot have an Area that is 32.5
+// points tall) and thus the parameters to NewScrollingArea and
+// SetSize are ints. All other instances of points in parameters and
+// structures (including sizes of drawn objects) are float64s.
type Area struct {
c *C.uiControl
a *C.uiArea