diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-15 21:43:24 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-15 21:43:24 -0400 |
| commit | 318036d1552277439d0485277a0e81dcd2d4fcec (patch) | |
| tree | 8443cc565d8b9a4da281ed9e9e23162d7edc33b6 /redo/basicctrls.go | |
| parent | 6b77304c8a85bb5bd0ff2c398f9f901a61eba458 (diff) | |
Added Group and implemented it on GTK+.
Diffstat (limited to 'redo/basicctrls.go')
| -rw-r--r-- | redo/basicctrls.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/redo/basicctrls.go b/redo/basicctrls.go index 94f5c8d..8894e7c 100644 --- a/redo/basicctrls.go +++ b/redo/basicctrls.go @@ -102,3 +102,19 @@ func NewLabel(text string) Label { func NewStandaloneLabel(text string) Label { return newStandaloneLabel(text) } + +// Group is a Control that holds a single Control; if that Control also contains other Controls, then the Controls will appear visually grouped together. +// The appearance of a Group varies from system to system; for the most part a Group consists of a thin frame. +// All Groups have a text label indicating what the Group is for. +type Group interface { + Control + + // Text and SetText get and set the Group's label text. + Text() string + SetText(text string) +} + +// NewGroup creates a new Group with the given text label and child Control. +func NewGroup(text string, control Control) Group { + return newGroup(text, control) +} |
