Table of Contents

Struct GraphicsConfigIdentity

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Represents a unique identifier for a graphics configuration, defined by a graphics backend type and a scale factor.

public readonly struct GraphicsConfigIdentity : IEquatable<GraphicsConfigIdentity>
Implements

Remarks

This structure is immutable and provides value-based equality semantics. It is primarily used to uniquely identify a specific graphics configuration in rendering systems.

Constructors

GraphicsConfigIdentity(Graphics)

Initializes a new instance of the GraphicsConfigIdentity struct.

GraphicsConfigIdentity(GraphicsBackendType, float)

Initializes a new instance of the GraphicsConfigIdentity class with the specified backend type and scale factor.

Properties

BackendType

Gets the graphics backend type used for rendering.

ScaleFactor

Gets the scale factor used for rendering.

Methods

Equals(GraphicsConfigIdentity)

Determines whether the specified GraphicsConfigIdentity is equal to the current instance.

Equals(object?)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

Operators

operator ==(GraphicsConfigIdentity, GraphicsConfigIdentity)

Determines whether two GraphicsConfigIdentity instances are equal.

operator !=(GraphicsConfigIdentity, GraphicsConfigIdentity)

Determines whether two GraphicsConfigIdentity instances are not equal.