MCPcopy
hub / github.com/g3n/engine / NewLabel

Function NewLabel

gui/label.go:34–36  ·  view source on GitHub ↗

NewLabel creates and returns a label panel with the specified text drawn using the default text font.

(text string)

Source from the content-addressed store, hash-verified

32// NewLabel creates and returns a label panel with
33// the specified text drawn using the default text font.
34func NewLabel(text string) *Label {
35 return NewLabelWithFont(text, StyleDefault().Font)
36}
37
38// NewIcon creates and returns a label panel with
39// the specified text drawn using the default icon font.

Callers 12

newMenuItemFunction · 0.85
SetShortcutMethod · 0.85
SetTextMethod · 0.85
NewTableFunction · 0.85
SetTitleMethod · 0.85
SetScaleXMethod · 0.85
SetScaleYMethod · 0.85
buildLabelFunction · 0.85
newCheckRadioFunction · 0.85
SetTextMethod · 0.85
NewButtonFunction · 0.85
newTabFunction · 0.85

Calls 2

NewLabelWithFontFunction · 0.85
StyleDefaultFunction · 0.85

Tested by

no test coverage detected