Documented the details of Area's coordinate system.

This commit is contained in:
Pietro Gagliardi 2014-03-15 17:27:42 -04:00
parent 0cf3a69ed7
commit a82a50c440
1 changed files with 1 additions and 0 deletions

View File

@ -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.