From f8e3f12ab02b528f2a05a4f713d7af7ea8e44b42 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 11 Dec 2015 20:37:59 -0500 Subject: LET'S GET THIS FINAL REWRITE EVER STARTED --- textbox_darwin.go | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 textbox_darwin.go (limited to 'textbox_darwin.go') diff --git a/textbox_darwin.go b/textbox_darwin.go deleted file mode 100644 index 0ad47f6..0000000 --- a/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) -} -- cgit v1.2.3