MCPcopy Create free account
hub / github.com/cogentcore/core / ToDots

Method ToDots

styles/text.go:93–99  ·  view source on GitHub ↗

ToDots runs ToDots on unit values, to compile down to raw pixels

(uc *units.Context)

Source from the content-addressed store, hash-verified

91
92// ToDots runs ToDots on unit values, to compile down to raw pixels
93func (ts *Text) ToDots(uc *units.Context) {
94 ts.LetterSpacing.ToDots(uc)
95 ts.WordSpacing.ToDots(uc)
96 ts.LineHeight.ToDots(uc)
97 ts.Indent.ToDots(uc)
98 ts.ParaSpacing.ToDots(uc)
99}
100
101// InheritFields from parent
102func (ts *Text) InheritFields(parent *Text) {

Callers 11

StyleMethod · 0.45
StyleMethod · 0.45
StyleMethod · 0.45
setUnitContextFunction · 0.45
styleSizeUpdateMethod · 0.45
RenderMethod · 0.45
RenderTextMethod · 0.45
LayoutToDotsMethod · 0.45
styleEditorMethod · 0.45
UnmarshalXMLMethod · 0.45
SetUnitContextMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected