diff options
Diffstat (limited to 'combobox.go')
| -rw-r--r-- | combobox.go | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/combobox.go b/combobox.go index 5fa391f..9298f87 100644 --- a/combobox.go +++ b/combobox.go @@ -147,16 +147,24 @@ func (c *Combobox) make(window *sysData) (err error) { return nil } -func (c *Combobox) setRect(x int, y int, width int, height int, rr *[]resizerequest) { - *rr = append(*rr, resizerequest{ - sysData: c.sysData, +func (c *Combobox) allocate(x int, y int, width int, height int, d *sysSizeData) []*allocation { + return []*allocation{&allocation{ x: x, y: y, width: width, height: height, - }) + this: c, + }} } -func (c *Combobox) preferredSize() (width int, height int, yoff int) { - return c.sysData.preferredSize() +func (c *Combobox) preferredSize(d *sysSizeData) (width int, height int) { + return c.sysData.preferredSize(d) +} + +func (c *Combobox) commitResize(a *allocation, d *sysSizeData) { + c.sysData.preferredSize(a, d) +} + +func (c *Combobox) getAuxResizeInfo(d *sysSizeData) { + c.sysData.getAuxResizeInfo(d) } |
