Vixen
02b45cc4
csharp
public struct LayoutResult

What one layout pass decided about a node.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Everything here is physical and resolved — the flow-relative reasoning happens inside the algorithm and does not survive it. A consumer reading a rectangle should not have to know which way the text runs.

Fields and properties (25)

  • public EdgeValues Position

    The offset from the parent's content box, per physical edge.

  • public DimensionValues Dimensions

    The border-box size.

  • public EdgeValues RoundedPosition

    The offset after pixel rounding. What GetLeft returns.

  • public DimensionValues RoundedDimensions

    The size after pixel rounding. What GetWidth returns.

  • public DimensionValues MeasuredDimensions

    The size the algorithm settled on, before it was written to Dimensions.

  • public EdgeValues Margin

    The resolved margin.

  • public EdgeValues Border

    The resolved border.

  • public EdgeValues Padding

    The resolved padding.

  • public Direction Direction

    The direction this node was laid out in.

  • public bool HadOverflow

    Whether the content did not fit.

  • public float ComputedFlexBasis

    The main size this node contributed before growing and shrinking. NaN if unset.

  • public uint ComputedFlexBasisGeneration

    The pass in which ComputedFlexBasis was computed.

  • public float ComputedAutoMinMainSize

    The automatic minimum main size from CSS Flexbox §4.5, or NaN when none applies.

  • public uint GenerationCount

    The pass in which this node was last laid out.

  • public uint ImplGeneration

    The pass in which the algorithm actually ran for this node, as opposed to answering from cache.

  • public float RoundedAbsoluteLeft

    The absolute offset this node's children were last rounded against.

  • public float RoundedAbsoluteTop

    The absolute offset this node's children were last rounded against.

  • public Direction LastOwnerDirection

    The owner direction of the pass that produced this result.

  • public uint NextCachedMeasurementsIndex

    Where the next measurement goes in the ring of cached ones.

  • public CachedMeasurements CachedMeasurements

    The measurement cache.

  • public CachedMeasurement CachedLayout

    The last full layout, cached separately from the measurements.

  • public int LineIndex

    Which line of a wrapping container this node landed on.

  • public DimensionValues MinContentSizes

    The node's min-content size on each axis, or NaN for "not computed since it last changed".

  • public float MinContentOwnerWidth

    The owner width MinContentSizes was computed against.

  • public float MinContentOwnerHeight

    The owner height MinContentSizes was computed against.

Used by (1)

  • LayoutTreeVixen.Ui.Layout