diff options
Diffstat (limited to 'control.go')
| -rw-r--r-- | control.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/control.go b/control.go new file mode 100644 index 0000000..40ce61a --- /dev/null +++ b/control.go @@ -0,0 +1,14 @@ +// 11 february 2014 +//package ui +package main + +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. +type Control interface { + apply() error + unapply() error + setParent(c Control) +} |
