diff options
Diffstat (limited to 'label.go')
| -rw-r--r-- | label.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -62,3 +62,11 @@ func (l *Label) setRect(x int, y int, width int, height int) error { return l.sysData.setRect(x, y, width, height) } + +func (l *Label) preferredSize() (width int, height int, err error) { + l.lock.Lock() + defer l.lock.Unlock() + + width, height = l.sysData.preferredSize() + return +} |
