Struct ThemeIcon
- Namespace
- Forma
- Assembly
- Forma.dll
Describes a non-owning bitmap atlas region or compiled vector rendered at a stable logical size. The resource cache owns any texture; copying or discarding this value never disposes resources.
public readonly struct ThemeIcon : IEquatable<ThemeIcon>
- Implements
- Inherited Members
Constructors
ThemeIcon(DrawingImage, Point, int)
public ThemeIcon(DrawingImage vectorSource, Point logicalSize, int density = 1)
Parameters
vectorSourceDrawingImagelogicalSizePointdensityint
ThemeIcon(ScalableImageSource, Texture2D, Rectangle, Point, int)
public ThemeIcon(ScalableImageSource scalableSource, Texture2D fallbackTexture, Rectangle fallbackSourceRectangle, Point logicalSize, int density = 1)
Parameters
scalableSourceScalableImageSourcefallbackTextureTexture2DfallbackSourceRectangleRectanglelogicalSizePointdensityint
ThemeIcon(ScalableImageSource, Point, int)
public ThemeIcon(ScalableImageSource scalableSource, Point logicalSize, int density = 1)
Parameters
scalableSourceScalableImageSourcelogicalSizePointdensityint
ThemeIcon(Texture2D, Rectangle, Point, int)
public ThemeIcon(Texture2D texture, Rectangle sourceRectangle, Point logicalSize, int density = 1)
Parameters
textureTexture2DsourceRectangleRectanglelogicalSizePointdensityint
Properties
Density
public int Density { get; }
Property Value
LogicalSize
public Point LogicalSize { get; }
Property Value
- Point
ScalableSource
public ScalableImageSource ScalableSource { get; }
Property Value
SourceRectangle
public Rectangle SourceRectangle { get; }
Property Value
- Rectangle
Texture
public Texture2D Texture { get; }
Property Value
- Texture2D
VectorSource
public DrawingImage VectorSource { get; }
Property Value
Methods
Equals(ThemeIcon)
public bool Equals(ThemeIcon other)
Parameters
otherThemeIcon
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator ==(ThemeIcon, ThemeIcon)
public static bool operator ==(ThemeIcon left, ThemeIcon right)
Parameters
Returns
operator !=(ThemeIcon, ThemeIcon)
public static bool operator !=(ThemeIcon left, ThemeIcon right)