summaryrefslogtreecommitdiff
path: root/prev/textbox_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2016-05-30 00:14:46 -0400
committerPietro Gagliardi <[email protected]>2016-05-30 00:14:46 -0400
commit52f7d276a6bb04b8827ac019ad1e135b43819cea (patch)
tree5f0ebbfdf5885ef832e77e243b5916e59f46ba18 /prev/textbox_darwin.go
parentc9b32c1333e4009b342eedc5f5b39127a724fb42 (diff)
Removed prev/.
Diffstat (limited to 'prev/textbox_darwin.go')
-rw-r--r--prev/textbox_darwin.go33
1 files changed, 0 insertions, 33 deletions
diff --git a/prev/textbox_darwin.go b/prev/textbox_darwin.go
deleted file mode 100644
index 0ad47f6..0000000
--- a/prev/textbox_darwin.go
+++ /dev/null
@@ -1,33 +0,0 @@
-// 24 october 2014
-
-package ui
-
-import (
- "unsafe"
-)
-
-// #include "objc_darwin.h"
-import "C"
-
-type textbox struct {
- *scroller
-}
-
-func newTextbox() Textbox {
- id := C.newTextbox()
- t := &textbox{
- scroller: newScroller(id, true), // border on Textbox (TODO confirm type)
- }
- // TODO preferred size
- return t
-}
-
-func (t *textbox) Text() string {
- return C.GoString(C.textboxText(t.id))
-}
-
-func (t *textbox) SetText(text string) {
- ctext := C.CString(text)
- defer C.free(unsafe.Pointer(ctext))
- C.textboxSetText(t.id, ctext)
-}