Vixen
02b45cc4
csharp
public readonly record struct LayoutNodeId

A node's index into the layout store.

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

Remarks

A dense Int32 and nothing else, so that a hundred thousand of them are a four-hundred-kilobyte array rather than a hundred thousand references. It is not a Handle<T>: the layout store is internal to the UI framework, an id never leaves the element that owns it, and identity that never escapes is the case Vixen.Core.Collections' README describes a free list for rather than a handle pool.

Fields and properties (3)

  • public int Index

    The slot.

  • public static readonly LayoutNodeId Invalid

    The id no node has.

  • public bool IsValid

    Whether this refers to a slot at all.

Methods (2)

  • public LayoutNodeId(int Index)

    A node's index into the layout store.

  • public override string ToString()

    Returns the fully qualified type name of this instance.

Used by (35)

  • LayoutBenchmarksVixen.Benchmarks.Ui
  • AbsolutePositionTestsVixen.Ui.Layout.Tests
  • AlignContentTestsVixen.Ui.Layout.Tests
  • AlignItemsTestsVixen.Ui.Layout.Tests
  • AlignSelfTestsVixen.Ui.Layout.Tests
  • AndroidNewsFeedTestsVixen.Ui.Layout.Tests
  • AspectRatioTestsVixen.Ui.Layout.Tests
  • AutoTestsVixen.Ui.Layout.Tests
  • AutomaticMinimumSizeTestsVixen.Ui.Layout.Tests
  • BorderTestsVixen.Ui.Layout.Tests
  • BoxSizingTestsVixen.Ui.Layout.Tests
  • DimensionTestsVixen.Ui.Layout.Tests
  • DisplayTestsVixen.Ui.Layout.Tests
  • FlexBasisFitContentTestsVixen.Ui.Layout.Tests
  • FlexDirectionTestsVixen.Ui.Layout.Tests
  • FlexTestsVixen.Ui.Layout.Tests
  • FlexWrapTestsVixen.Ui.Layout.Tests
  • GapTestsVixen.Ui.Layout.Tests
  • IntrinsicSizeTestsVixen.Ui.Layout.Tests
  • JustifyContentTestsVixen.Ui.Layout.Tests
  • LayoutPassTestsVixen.Ui.Layout.Tests
  • LayoutTreeVixen.Ui.Layout
  • LayoutTreeTestsVixen.Ui.Layout.Tests
  • MarginTestsVixen.Ui.Layout.Tests
  • MeasureRequestVixen.Ui.Layout
  • MinMaxDimensionTestsVixen.Ui.Layout.Tests
  • PaddingTestsVixen.Ui.Layout.Tests
  • PanelSpecVixen.Ui.Layout.Tests
  • PercentageTestsVixen.Ui.Layout.Tests
  • PixelRoundingTestsVixen.Ui.Layout.Tests
  • RoundingTestsVixen.Ui.Layout.Tests
  • SizeOverflowTestsVixen.Ui.Layout.Tests
  • StaticPositionTestsVixen.Ui.Layout.Tests
  • UiDocumentVixen.Ui
  • UiElementVixen.Ui