BeginLabel#
func BeginLabel(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect) LabelPainterBeginLabel starts a label declaration.
type LabelPainter struct {
// contains filtered or unexported fields
}LabelPainter is a compact field-label declaration.
BeginLabel#func BeginLabel(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect) LabelPainterBeginLabel starts a label declaration.
Disabled#func (label LabelPainter) Disabled() LabelPainterDisabled uses the muted label treatment.
For#func (label LabelPainter) For(control ui.ID) LabelPainterFor makes the label the label of a control, as `htmlFor` does: pressing the text focuses and clicks the control (see ui.Canvas.HitLabel), and the text names it for assistive technology. A disabled label does nothing.
Paint#func (label LabelPainter) Paint(text string)Paint draws the label text and optional required marker.
Required#func (label LabelPainter) Required() LabelPainterRequired appends a semantic danger-colored required marker.