MCPcopy Create free account
hub / github.com/NV404/gova / Shadow

Method Shadow

modifier.go:277–280  ·  view source on GitHub ↗

Shadow casts a drop shadow from the view's visual box.

(c any, radius, offsetX, offsetY float32)

Source from the content-addressed store, hash-verified

275
276// Shadow casts a drop shadow from the view's visual box.
277func (n *viewNode) Shadow(c any, radius, offsetX, offsetY float32) *viewNode {
278 n.modifier.shadow = &shadowModifier{color: c, radius: radius, offsetX: offsetX, offsetY: offsetY}
279 return n
280}
281
282// Stroke adds a colored border (stroke) around the view's visual box.
283// Named Stroke (not Border) because "Border" was the name of the old

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected