summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-13 05:28:26 -0500
committerPietro Gagliardi <[email protected]>2014-02-13 05:28:26 -0500
commit5626b9e35c5824707a905a26f9b074240cd54e7a (patch)
treea5f4a22013ad236a65aadf38d3346e6bffd70653 /window.go
parentae9afced2afe8d4d80ecaf4ff3d09f09d3c9c3df (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.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/window.go b/window.go
index 0e4f7aa..29003ec 100644
--- a/window.go
+++ b/window.go
@@ -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")
}