summaryrefslogtreecommitdiff
path: root/redo/controls.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-25 17:34:45 -0400
committerPietro Gagliardi <[email protected]>2014-07-25 17:34:45 -0400
commit4680e35300544a90d5426cbf44b4c533fa025105 (patch)
tree3242d6b03f2171d7090fd3a6e8383be99867f43f /redo/controls.go
parentd03b8f4b7ce5cc04753679798e14233135026a25 (diff)
Simplified the control nesting model by removing Control.unparent() and requiring all Windows to have a Control at construct time; implemented such on Windows.
Diffstat (limited to 'redo/controls.go')
-rw-r--r--redo/controls.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/redo/controls.go b/redo/controls.go
index 984f868..cf94339 100644
--- a/redo/controls.go
+++ b/redo/controls.go
@@ -5,8 +5,7 @@ package ui
// Control represents a control.
// All Controls have event handlers that take a single argument (the Doer active during the event) and return nothing.
type Control interface {
- unparent()
- parent(*window)
+ controlParent // platform-specific
// TODO enable/disable (public)
// TODO show/hide (public)
containerShow() // for Windows, where all controls need ot belong to an overlapped window, not to a container control; these respect programmer settings