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 /window.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 'window.go')
| -rw-r--r-- | window.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -77,6 +77,7 @@ func (w *Window) Open(control Control) (err error) { return err } if control != nil { + w.sysData.resize = control.setRect err = control.apply(w.sysData) if err != nil { return err @@ -101,6 +102,9 @@ func (w *Window) Hide() (err error) { func (w *Window) apply(window *sysData) error { panic("Window.apply() should never be called") } +func (w *Window) setRect(x int, y int, width int, height int) error { + panic("Window.setRect() should never be called") +} func (w *Window) setParent(c Control) { panic("Window.setParent() should never be called") } |
