diff options
| author | Pietro Gagliardi <[email protected]> | 2016-05-30 00:14:46 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2016-05-30 00:14:46 -0400 |
| commit | 52f7d276a6bb04b8827ac019ad1e135b43819cea (patch) | |
| tree | 5f0ebbfdf5885ef832e77e243b5916e59f46ba18 /prev/group_darwin.go | |
| parent | c9b32c1333e4009b342eedc5f5b39127a724fb42 (diff) | |
Removed prev/.
Diffstat (limited to 'prev/group_darwin.go')
| -rw-r--r-- | prev/group_darwin.go | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/prev/group_darwin.go b/prev/group_darwin.go deleted file mode 100644 index aeca48a..0000000 --- a/prev/group_darwin.go +++ /dev/null @@ -1,47 +0,0 @@ -// 16 august 2014 - -package ui - -import ( - "unsafe" -) - -// #include "objc_darwin.h" -import "C" - -type group struct { - *controlSingleObject - - child Control - container *container -} - -func newGroup(text string, control Control) Group { - g := new(group) - g.child = control - g.container = newContainer(g.child.resize) - g.child.setParent(g.container.parent()) - g.controlSingleObject = newControlSingleObject(C.newGroup(g.container.id)) - g.SetText(text) - return g -} - -func (g *group) Text() string { - return C.GoString(C.groupText(g.id)) -} - -func (g *group) SetText(text string) { - ctext := C.CString(text) - defer C.free(unsafe.Pointer(ctext)) - C.groupSetText(g.id, ctext) -} - -func (g *group) Margined() bool { - return g.container.margined -} - -func (g *group) SetMargined(margined bool) { - g.container.margined = margined -} - -// no need to override resize; the child container handles that for us |
