csharp
public readonly record struct IconPathOne 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 GeometryThe path, in the art's view box.
public IconPaint FillWhat the inside is filled with.
public IconPaint StrokeWhat the outline is drawn with, or nothing.
public float WidthHow wide the stroke is, in view-box units.
public PathFillRule FillRuleHow the inside is decided.
Methods (1)
public IconPath(PathBuilder Geometry, IconPaint Fill, IconPaint Stroke = default(IconPaint), float Width = 1.5, PathFillRule FillRule = NonZero)One path of an icon, and how it is painted.
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