diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-13 05:28:26 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-13 05:28:26 -0500 |
| commit | 5626b9e35c5824707a905a26f9b074240cd54e7a (patch) | |
| tree | a5f4a22013ad236a65aadf38d3346e6bffd70653 /sysdata_windows.go | |
| parent | ae9afced2afe8d4d80ecaf4ff3d09f09d3c9c3df (diff) | |
Added sizing of windows and the main window control. It presently deadlocks; I'll need to redo my mutexes...
Diffstat (limited to 'sysdata_windows.go')
| -rw-r--r-- | sysdata_windows.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sysdata_windows.go b/sysdata_windows.go index da1c6b8..fd0d180 100644 --- a/sysdata_windows.go +++ b/sysdata_windows.go @@ -174,3 +174,25 @@ func (s *sysData) setText(text string) error { } return nil } + +func (s *sysData) setRect(x int, y int, width int, height int) error { + ret := make(chan uiret) + defer close(ret) + uitask <- &uimsg{ + call: _moveWindow, + p: []uintptr{ + uintptr(s.hwnd), + uintptr(x), + uintptr(y), + uintptr(width), + uintptr(height), + uintptr(_TRUE), + }, + ret: ret, + } + r := <-ret + if r.ret == 0 { // failure + return r.err + } + return nil +} |
