diff options
Diffstat (limited to 'lineedit.go')
| -rw-r--r-- | lineedit.go | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/lineedit.go b/lineedit.go index 26fbaa1..3e71db1 100644 --- a/lineedit.go +++ b/lineedit.go @@ -68,16 +68,24 @@ func (l *LineEdit) make(window *sysData) error { return nil } -func (l *LineEdit) setRect(x int, y int, width int, height int, rr *[]resizerequest) { - *rr = append(*rr, resizerequest{ - sysData: l.sysData, +func (l *LineEdit) allocate(x int, y int, width int, height int, d *sysSizeData) []*allocation { + return []*allocation{&allocation{ x: x, y: y, width: width, height: height, - }) + this: l, + }} } -func (l *LineEdit) preferredSize() (width int, height int, yoff int) { - return l.sysData.preferredSize() +func (l *LineEdit) preferredSize(d *sysSizeData) (width int, height int) { + return l.sysData.preferredSize(d) +} + +func (l *LineEdit) commitResize(a *allocation, d *sysSizeData) { + l.sysData.preferredSize(a, d) +} + +func (l *LineEdit) getAuxResizeInfo(d *sysSizeData) { + l.sysData.getAuxResizeInfo(d) } |
