Struct HudElementTreeOrder.Row
One element's place in the solved display order.
Inherited Members
Namespace: Serenity.GameUi.Application.Authoring
Assembly: Serenity.GameUi.Application.dll
Syntax
public readonly struct HudElementTreeOrder.Row
Constructors
Row(int, int, int, int, int, int, int, ParentStatus)
Creates a row.
Declaration
public Row(int elementIndex, int depth, int siblingOrdinal, int siblingCount, int previousSiblingIndex, int nextSiblingIndex, int parentElementIndex, HudElementTreeOrder.ParentStatus parentStatus)
Parameters
| Type | Name | Description |
|---|---|---|
| int | elementIndex | |
| int | depth | |
| int | siblingOrdinal | |
| int | siblingCount | |
| int | previousSiblingIndex | |
| int | nextSiblingIndex | |
| int | parentElementIndex | |
| HudElementTreeOrder.ParentStatus | parentStatus |
Fields
Depth
How many boxes deep this row nests, capped at MaxChainWalkDepth.
Declaration
public readonly int Depth
Field Value
| Type | Description |
|---|---|
| int |
ElementIndex
Position of this element in the original, unnested list — what a caller indexes with.
Declaration
public readonly int ElementIndex
Field Value
| Type | Description |
|---|---|
| int |
NextSiblingIndex
The element index of the next sibling, or NoSibling when this is the last.
Declaration
public readonly int NextSiblingIndex
Field Value
| Type | Description |
|---|---|
| int |
ParentElementIndex
The element index this row actually nests under in the tree, or NoSibling for a root — exact and never clamped, unlike Depth, so a caller walking descendants or children stays correct past the display depth cap.
Declaration
public readonly int ParentElementIndex
Field Value
| Type | Description |
|---|---|
| int |
ParentStatus
Why this row sits where it does — see Authoring.ParentStatus.
Declaration
public readonly HudElementTreeOrder.ParentStatus ParentStatus
Field Value
| Type | Description |
|---|---|
| HudElementTreeOrder.ParentStatus |
PreviousSiblingIndex
The element index of the previous sibling, or NoSibling when this is the first.
Declaration
public readonly int PreviousSiblingIndex
Field Value
| Type | Description |
|---|---|
| int |
SiblingCount
How many siblings share this row's parent, this row included.
Declaration
public readonly int SiblingCount
Field Value
| Type | Description |
|---|---|
| int |
SiblingOrdinal
This row's 0-based position among its siblings, in their own array order.
Declaration
public readonly int SiblingOrdinal
Field Value
| Type | Description |
|---|---|
| int |