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

Function NewIcon

gui/label.go:40–42  ·  view source on GitHub ↗

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

(icon string)

Source from the content-addressed store, hash-verified

38// NewIcon creates and returns a label panel with
39// the specified text drawn using the default icon font.
40func NewIcon(icon string) *Label {
41 return NewLabelWithFont(icon, StyleDefault().FontIcon)
42}
43
44// NewLabelWithFont creates and returns a label panel with
45// the specified text drawn using the specified font.

Callers 12

AddMenuMethod · 0.85
SetIconMethod · 0.85
SetIconMethod · 0.85
NewDropDownFunction · 0.85
SetIconMethod · 0.85
NewTableFunction · 0.85
buildLabelFunction · 0.85
newCheckRadioFunction · 0.85
SetIconMethod · 0.85
NewTabBarFunction · 0.85
newTabFunction · 0.85
SetIconMethod · 0.85

Calls 2

NewLabelWithFontFunction · 0.85
StyleDefaultFunction · 0.85

Tested by

no test coverage detected