summaryrefslogtreecommitdiff
path: root/newctrl/control.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-16 18:41:17 -0400
committerPietro Gagliardi <[email protected]>2014-10-16 18:41:17 -0400
commit3084d0f243299b40ebdaf2f0310f315e4987705a (patch)
treecde5115c080fab26d7958981d426d685b623f759 /newctrl/control.go
parent634ef7d4d9f96a556962167e2cd3d839f8528d5c (diff)
Implemented tabbing properly. Tab order still backwards.
Diffstat (limited to 'newctrl/control.go')
-rw-r--r--newctrl/control.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/newctrl/control.go b/newctrl/control.go
index 028b195..1f08ce2 100644
--- a/newctrl/control.go
+++ b/newctrl/control.go
@@ -8,12 +8,14 @@ type Control interface {
// nChildren() int // TODO
preferredSize(d *sizing) (width, height int)
resize(x int, y int, width int, height int, d *sizing)
+ nTabStops() int
}
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
}
func (c *controlbase) setParent(p *controlParent) {
@@ -27,3 +29,7 @@ func (c *controlbase) preferredSize(d *sizing) (width, height int) {
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()
+}