Vixen
02b45cc4
csharp
public readonly record struct IconField

Where a path's field is in the atlas, and the quad to draw it in.

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

Remarks

⚠ The quad is in document pixels and not in a view box, which is the opposite of what AtlasGlyph does. A glyph's placement is in ems because a font's outline is size-independent and one entry serves every size; a path arrives here already scaled to where it is going, so its entry is per size. It is not per position — see IconAtlas, where that distinction is the whole design.

Fields and properties (4)

  • public AtlasRegion Region

    Its rectangle in the atlas texture, in pixels.

  • public Rectangle Quad

    Where it goes, in the same document pixels the path was in.

  • public float ScreenPixelRange

    How many screen pixels one unit of the field's range covers — what the shader thresholds with.

  • public bool IsEmpty

    Whether this draws nothing.

Methods (1)

  • public IconField(AtlasRegion Region, Rectangle Quad, float ScreenPixelRange)

    Where a path's field is in the atlas, and the quad to draw it in.

Used by (4)

  • EntryVixen.Ui
  • IconAtlasVixen.Ui
  • IconAtlasTestsVixen.Ui.Tests
  • UiGeometryBuilderVixen.Ui