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

Function NewLabelWithFont

gui/label.go:46–51  ·  view source on GitHub ↗

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

(msg string, font *text.Font)

Source from the content-addressed store, hash-verified

44// NewLabelWithFont creates and returns a label panel with
45// the specified text drawn using the specified font.
46func NewLabelWithFont(msg string, font *text.Font) *Label {
47
48 l := new(Label)
49 l.initialize(msg, font)
50 return l
51}
52
53// initialize initializes this label and is normally used by other
54// components which contain a label.

Callers 2

NewLabelFunction · 0.85
NewIconFunction · 0.85

Calls 1

initializeMethod · 0.45

Tested by

no test coverage detected