diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-15 14:04:20 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-15 14:04:20 -0400 |
| commit | 474436e9f6e84f26edd08bfcff16d62a3cd40175 (patch) | |
| tree | 32ccc7d216db527b0c058f194623e62e06dfe55e /redo/window_darwin.go | |
| parent | c61666b6b4528e7a691fc3c20f2cf681d188bec7 (diff) | |
Implemented window resize handling on Mac OS X. Now for actually setting child controls and resizing them.
Diffstat (limited to 'redo/window_darwin.go')
| -rw-r--r-- | redo/window_darwin.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/redo/window_darwin.go b/redo/window_darwin.go index c3d4521..be9ceec 100644 --- a/redo/window_darwin.go +++ b/redo/window_darwin.go @@ -4,6 +4,7 @@ package ui import ( "unsafe" +"fmt" ) // #include "objc_darwin.h" @@ -123,7 +124,13 @@ func windowClosing(xw unsafe.Pointer) C.BOOL { } return C.NO } - + +//export windowResized +func windowResized(xw unsafe.Pointer, width C.uintptr_t, height C.uintptr_t) { + w := (*window)(unsafe.Pointer(xw)) +_=w//TODO + fmt.Printf("new size %d x %d\n", width, height) +} // TODO for testing func newButton(string) *Request { return nil } |
