From 9794814e9375e597d087b94e9643c943f7999f9c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 11 Feb 2014 16:14:15 -0500 Subject: Started implementing the public API: added the Window and Control types and the skeleton of the Windows implementation. --- control.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 control.go (limited to 'control.go') 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) +} -- cgit v1.2.3