summaryrefslogtreecommitdiff
path: root/newctrl/control.go
diff options
context:
space:
mode:
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()
+}