summaryrefslogtreecommitdiff
path: root/newctrl/control.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-18 17:03:38 -0400
committerPietro Gagliardi <[email protected]>2014-10-18 17:03:38 -0400
commitaed423a09f35e26a318bd44a6670d4222906de9a (patch)
tree01ad31d5c137859dfeae5f42094834b405971177 /newctrl/control.go
parent62048303a34f6cac733798651adb53b640e2114a (diff)
Remvoed the newctrl working directory.
Diffstat (limited to 'newctrl/control.go')
-rw-r--r--newctrl/control.go36
1 files changed, 0 insertions, 36 deletions
diff --git a/newctrl/control.go b/newctrl/control.go
deleted file mode 100644
index 34e5c84..0000000
--- a/newctrl/control.go
+++ /dev/null
@@ -1,36 +0,0 @@
-// 30 july 2014
-
-package ui
-
-// Control represents a control.
-type Control interface {
- setParent(p *controlParent) // controlParent defined per-platform
- preferredSize(d *sizing) (width, height int)
- resize(x int, y int, width int, height int, d *sizing)
- nTabStops() int // used by the Windows backend
-}
-
-type controlbase struct {
- fsetParent func(p *controlParent)
- fpreferredSize func(d *sizing) (width, height int)
- fresize func(x int, y int, width int, height int, d *sizing)
- fnTabStops func() int
-}
-
-// children should not use the same name as these, otherwise weird things will happen
-
-func (c *controlbase) setParent(p *controlParent) {
- c.fsetParent(p)
-}
-
-func (c *controlbase) preferredSize(d *sizing) (width, height int) {
- return c.fpreferredSize(d)
-}
-
-func (c *controlbase) resize(x int, y int, width int, height int, d *sizing) {
- c.fresize(x, y, width, height, d)
-}
-
-func (c *controlbase) nTabStops() int {
- return c.fnTabStops()
-}