summaryrefslogtreecommitdiff
path: root/control.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-30 19:57:24 -0400
committerPietro Gagliardi <[email protected]>2014-03-30 19:57:24 -0400
commitce5cd80dba0cccf20e8a5c7de50b2202bce3a346 (patch)
tree603826b817a70fd11a93c47ea09a9dc582987366 /control.go
parent6a7cb73ddaa92a87fb4df77a7a3f3c2332f8761f (diff)
Updated the documentation: Area now works on all platforms, Modifiers behavior on both left and right keys simultaneously is undefined for now, and the way to create custom Controls no longer involves embedding Area.
Diffstat (limited to 'control.go')
-rw-r--r--control.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/control.go b/control.go
index f035ebb..d565adc 100644
--- a/control.go
+++ b/control.go
@@ -6,7 +6,7 @@ import (
// ...
)
-// A Control represents an UI control. Note that Control contains unexported members; this has the consequence that you can't build custom controls that interface directly with the system-specific code (fo rinstance, to import an unsupported control), or at least not without some hackery. If you want to make your own controls, embed Area and provide its necessities.
+// A Control represents an UI control. Note that Control contains unexported members; this has the consequence that you can't build custom controls that interface directly with the system-specific code (fo rinstance, to import an unsupported control), or at least not without some hackery. If you want to make your own controls, create an Area and provide an AreaHandler that does what you need.
type Control interface {
make(window *sysData) error
setRect(x int, y int, width int, height int, rr *[]resizerequest)