csharp
public readonly record struct ClusterSpanOne shaping cluster: the characters it covers and the space it occupies.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (6)
public int StartThe first character it covers, as a UTF-16 index.
public int EndOne past the last. Clusters tile the text without gaps or overlaps.
public float XIts left edge, in design units from the start of the line.
public float AdvanceIts width. Zero if every glyph in it was a deleted default-ignorable.
public bool IsRightToLeftWhether the characters run right to left inside it — which decides which edge the first character is at, not which edge is X.
public float RightIts right edge.
Methods (1)
public ClusterSpan(int Start, int End, float X, float Advance, bool IsRightToLeft)One shaping cluster: the characters it covers and the space it occupies.
Used by (2)
- CaretTestsVixen.Ui.Text.Tests
- ShapedTextVixen.Ui.Text