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 /button.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 'button.go')
| -rw-r--r-- | button.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 } |
