summaryrefslogtreecommitdiff
path: root/button.go
diff options
context:
space:
mode:
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
}