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

Method SetFontSize

gui/image_button.go:125–131  ·  view source on GitHub ↗

SetFontSize sets the font size of the label/icon

(size float64)

Source from the content-addressed store, hash-verified

123
124// SetFontSize sets the font size of the label/icon
125func (b *ImageButton) SetFontSize(size float64) {
126
127 if b.label != nil {
128 b.label.SetFontSize(size)
129 b.recalc()
130 }
131}
132
133// SetImage sets the button left image from the specified filename
134// If there is currently a selected icon, it is removed

Callers

nothing calls this directly

Calls 1

recalcMethod · 0.95

Tested by

no test coverage detected