diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-11 16:14:15 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-11 16:14:15 -0500 |
| commit | 9794814e9375e597d087b94e9643c943f7999f9c (patch) | |
| tree | 1e5df32921f49590756dbe604ec6578f6f671fe1 /control.go | |
| parent | 394bf3ed9c0319924c06e864763cf0464545fa6b (diff) | |
Started implementing the public API: added the Window and Control types and the skeleton of the Windows implementation.
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) +} |
