Module: reefvision.widgets.label
Source: ./reefvision/widgets/label.reef
Overview
reefvision.widgets.label โ static text leaf (design ยง10.5)
object Label extends view.View. No focus, no event consumption. Paint only. set_wrap(true) word-wraps at the label width (MessageBox uses this). Default is truncate; windows do not wrap every child on resize.
Objects
Label
Extends: view.View
Fields:
| Name | Type |
|---|---|
text |
string |
wrap |
bool |
proc init(bounds: cell.Rect, text: string)
Methods:
exclusive proc set_text(text: string)
exclusive proc set_wrap(wrap: bool)
override exclusive proc draw(buf: cell.CellBuffer, abs: cell.Rect, clip: cell.Rect, focused: bool, th: theme.Theme)
Generated by reefc doc