ChildConstraints
struct ChildConstraintsimport ChildConstraints from Wax;The box constraints and layout weight supplied when measuring a child. An unweighted child has weight zero.
Members
boxfield
public BoxConstraints boxThe minimum and maximum dimensions the child must satisfy.
weightfield
public float weightThe child's allotted share of free main-axis space; zero for an unweighted child.
constructorconstructor
public constructor (BoxConstraints box, float weight)Stores the supplied box constraints and weight.
Tightmethod
public static fn Tight(Size size) : ChildConstraintsCreates exact-size box constraints with weight zero.
Loosemethod
public static fn Loose(Size size) : ChildConstraintsCreates zero-to-size box constraints with weight zero.
ToStringmethod
public fn ToString() : stringProvided by the compiler.
ToStringBuffermethod
public fn ToStringBuffer(StringBuilder builder) : int32Provided by the compiler.