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

Function NewSideValues

styles/sides.go:223–227  ·  view source on GitHub ↗

NewSideValues is a helper that creates new side/corner values and calls Set on them with the given values.

(vals ...units.Value)

Source from the content-addressed store, hash-verified

221// NewSideValues is a helper that creates new side/corner values
222// and calls Set on them with the given values.
223func NewSideValues(vals ...units.Value) SideValues {
224 sides := Sides[units.Value]{}
225 sides.Set(vals...)
226 return SideValues{sides}
227}
228
229// ToDots converts the values for each of the sides/corners
230// to raw display pixels (dots) and sets the Dots field for each

Callers 2

ToValuesMethod · 0.85
box.goFile · 0.85

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected