summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-15 17:27:42 -0400
committerPietro Gagliardi <[email protected]>2014-03-15 17:27:42 -0400
commita82a50c4403c9e2338bc11495b3a503f75714819 (patch)
treedcc53ad46af70bd543ea6ad8726d1ad1a49ba6c0
parent0cf3a69ed7f8383260b18ebd2f12574610840777 (diff)
Documented the details of Area's coordinate system.
-rw-r--r--area.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/area.go b/area.go
index 86997fb..f948ade 100644
--- a/area.go
+++ b/area.go
@@ -9,6 +9,7 @@ import (
// Area represents a blank canvas upon which programs may draw anything and receive arbitrary events from the user.
// An Area has an explicit size, represented in pixels, that may be different from the size shown in its Window; scrollbars are placed automatically should they be 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.
// To facilitate development and debugging, for the time being, Areas have a fixed size of 320x240 and only work on GTK+.
type Area struct {
// Paint is signaled when the Area needs to be redrawn.