public readonly record struct IconFieldWhere 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 RegionIts rectangle in the atlas texture, in pixels.
public Rectangle QuadWhere it goes, in the same document pixels the path was in.
public float ScreenPixelRangeHow many screen pixels one unit of the field's range covers — what the shader thresholds with.
public bool IsEmptyWhether 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