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

Method Frame

modifier.go:218–225  ·  view source on GitHub ↗

Frame sets the preferred minimum size. Pass 0 to leave an axis unconstrained.

(width, height float32)

Source from the content-addressed store, hash-verified

216
217// Frame sets the preferred minimum size. Pass 0 to leave an axis unconstrained.
218func (n *viewNode) Frame(width, height float32) *viewNode {
219 if n.modifier.frame == nil {
220 n.modifier.frame = &frameModifier{}
221 }
222 n.modifier.frame.width = width
223 n.modifier.frame.height = height
224 return n
225}
226
227// MinWidth sets the minimum width.
228func (n *viewNode) MinWidth(w float32) *viewNode {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected