summaryrefslogtreecommitdiff
path: root/button.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 /button.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 'button.go')
-rw-r--r--button.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/button.go b/button.go
index 4603ee0..d464780 100644
--- a/button.go
+++ b/button.go
@@ -49,6 +49,13 @@ func (b *Button) apply(window *sysData) error {
// TODO size to parent size
}
+func (b *Button) setRect(x int, y int, width int, height int) error {
+ b.lock.Lock()
+ defer b.lock.Unlock()
+
+ return b.sysData.setRect(x, y, width, height)
+}
+
func (b *Button) setParent(c Control) {
b.parent = c
}