Vixen
02b45cc4
csharp
public readonly record struct IconPath

One path of an icon, and how it is painted.

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

Remarks

⚠ The stroke width is in view-box units and is scaled with the geometry. An icon drawn on a 24 grid with a 1.5 stroke reads the same at 16 pixels and at 32; a width in device pixels would make the same icon hairline in a toolbar and heavy in a header.

Fields and properties (5)

  • public PathBuilder Geometry

    The path, in the art's view box.

  • public IconPaint Fill

    What the inside is filled with.

  • public IconPaint Stroke

    What the outline is drawn with, or nothing.

  • public float Width

    How wide the stroke is, in view-box units.

  • public PathFillRule FillRule

    How the inside is decided.

Methods (1)

Used by (9)

  • IconVixen.Ui.Controls
  • IconArtVixen.Ui.Controls
  • IconArtTestsVixen.Ui.Controls.Tests
  • EditorIconAttributeVixen.Editor.Ui
  • IconContributionTestsVixen.Editor.App.Tests
  • MaterialIconsVixen.Editor.App
  • ModeArtVixen.Editor.Ui
  • OutOfTreePluginTestsVixen.Editor.App.Tests
  • TerrainModuleVixen.Editor.Terrain