diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-25 12:45:56 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-25 12:45:56 -0400 |
| commit | d515bd74c68dfef84fface6d61a6ea9264d4e70e (patch) | |
| tree | 8720ebddae600a7b8053abafc3315f258a7bcdcb /redo/containers.go | |
| parent | 5e9b60a79539a2723e5f3459feba3688ef854047 (diff) | |
Added the framework for tabs, added necessary assistant routines for tabs, and implemented those assistant routines on the Windows backend.
Diffstat (limited to 'redo/containers.go')
| -rw-r--r-- | redo/containers.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/redo/containers.go b/redo/containers.go new file mode 100644 index 0000000..428e2a7 --- /dev/null +++ b/redo/containers.go @@ -0,0 +1,24 @@ +// 25 july 2014 + +package ui + +// Tab is a Control that contains multiple pages of tabs, each containing a single Control. +// You can add and remove tabs from the Tab at any time. +// TODO rename? +type Tab interface { + Control + + // Append adds a new tab to Tab. + // The tab is added to the end of the current list of tabs. + Append(name string, control Control) + + // Delete removes the given tab. + // It panics if index is out of range. +// Delete(index int) +//TODO +} + +// NewTab creates a new Tab with no tabs. +func NewTab() Tab { + return newTab() +} |
