summaryrefslogtreecommitdiff
path: root/redo/window_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-17 11:24:58 -0400
committerPietro Gagliardi <[email protected]>2014-07-17 11:24:58 -0400
commit659bc03f171d8639eefa47e5d37abe7af81e5534 (patch)
tree34ac690633b55d25596e40d69189ffa9332e5ce4 /redo/window_darwin.go
parent819caea42279fdc0d37b7a55aaeccbd825d2d638 (diff)
Migrated control sizing code for Mac OS X.
Diffstat (limited to 'redo/window_darwin.go')
-rw-r--r--redo/window_darwin.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/redo/window_darwin.go b/redo/window_darwin.go
index d9a72a4..d6eeb3c 100644
--- a/redo/window_darwin.go
+++ b/redo/window_darwin.go
@@ -16,6 +16,8 @@ type window struct {
child Control
closing *event
+
+ spaced bool
}
func newWindow(title string, width int, height int) *Request {
@@ -133,7 +135,8 @@ func windowClosing(xw unsafe.Pointer) C.BOOL {
//export windowResized
func windowResized(xw unsafe.Pointer, width C.uintptr_t, height C.uintptr_t) {
+ // TODO this isn't called when the window first opens up
w := (*window)(unsafe.Pointer(xw))
-_=w//TODO
+ w.doresize(int(width), int(height))
fmt.Printf("new size %d x %d\n", width, height)
}