diff options
Diffstat (limited to 'button.go')
| -rw-r--r-- | button.go | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -61,8 +61,14 @@ func (b *Button) make(window *sysData) error { return nil } -func (b *Button) setRect(x int, y int, width int, height int, winheight int) error { - return b.sysData.setRect(x, y, width, height, winheight) +func (b *Button) setRect(x int, y int, width int, height int) []resizerequest { + return []resizerequest{resizerequest{ + sysData: b.sysData, + x: x, + y: y, + width: width, + height: height, + }} } func (b *Button) preferredSize() (width int, height int) { |
