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

Function ZStack

layout.go:43–45  ·  view source on GitHub ↗

ZStack layers children on top of each other at the same position. Default alignment is Center; change with .Align(g.BottomTrailing) etc.

(children ...any)

Source from the content-addressed store, hash-verified

41// ZStack layers children on top of each other at the same position.
42// Default alignment is Center; change with .Align(g.BottomTrailing) etc.
43func ZStack(children ...any) *viewNode {
44 return stackNode(viewKindZStack, children)
45}
46
47// Group flattens its children into the parent layout. Use to satisfy
48// variadic spread limitations (Go forbids mixing spread with named args).

Callers

nothing calls this directly

Calls 1

stackNodeFunction · 0.85

Tested by

no test coverage detected