Frame sets the preferred minimum size. Pass 0 to leave an axis unconstrained.
(width, height float32)
| 216 | |
| 217 | // Frame sets the preferred minimum size. Pass 0 to leave an axis unconstrained. |
| 218 | func (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. |
| 228 | func (n *viewNode) MinWidth(w float32) *viewNode { |
nothing calls this directly
no outgoing calls
no test coverage detected