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

Method SetLineSpacing

gui/label.go:200–205  ·  view source on GitHub ↗

SetLineSpacing sets the spacing between lines.

(spacing float64)

Source from the content-addressed store, hash-verified

198
199// SetLineSpacing sets the spacing between lines.
200func (l *Label) SetLineSpacing(spacing float64) *Label {
201
202 l.style.LineSpacing = spacing
203 l.SetText(l.text)
204 return l
205}
206
207// LineSpacing returns the spacing between lines.
208func (l *Label) LineSpacing() float64 {

Callers 1

buildLabelFunction · 0.95

Calls 1

SetTextMethod · 0.95

Tested by

no test coverage detected