Struct GorgonKerningPair
A kerning pair value.
Inherited Members
Namespace: Gorgon.Graphics.Fonts
Assembly: Gorgon.Graphics.Fonts.dll
Syntax
public readonly struct GorgonKerningPair : IGorgonEquatableByRef<GorgonKerningPair>, IEquatable<GorgonKerningPair>
Remarks
Kerning pairs are used to offset a pair of characters when they are next to each other.
Constructors
| Edit this page View SourceGorgonKerningPair(char, char)
Initializes a new instance of the GorgonKerningPair struct.
Declaration
public GorgonKerningPair(char leftChar, char rightChar)
Parameters
Type | Name | Description |
---|---|---|
char | leftChar | The left char. |
char | rightChar | The right char. |
Fields
| Edit this page View SourceLeftCharacter
Left character.
Declaration
public readonly char LeftCharacter
Field Value
Type | Description |
---|---|
char |
RightCharacter
Right character.
Declaration
public readonly char RightCharacter
Field Value
Type | Description |
---|---|
char |
Methods
| Edit this page View SourceEquals(GorgonKerningPair)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(GorgonKerningPair other)
Parameters
Type | Name | Description |
---|---|---|
GorgonKerningPair | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Equals(in GorgonKerningPair)
Function to compare this instance with another.
Declaration
public bool Equals(in GorgonKerningPair other)
Parameters
Type | Name | Description |
---|---|---|
GorgonKerningPair | other | The other instance to use for comparison. |
Returns
Type | Description |
---|---|
bool | true if equal, false if not. |
Equals(in GorgonKerningPair, in GorgonKerningPair)
Function to determine if 2 kerning pairs are the same.
Declaration
public static bool Equals(in GorgonKerningPair left, in GorgonKerningPair right)
Parameters
Type | Name | Description |
---|---|---|
GorgonKerningPair | left | Left kerning pair to compare. |
GorgonKerningPair | right | Right kerning pair to compare. |
Returns
Type | Description |
---|---|
bool | true if the same, false if not. |
Equals(object)
Determines whether the specified object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with this instance. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to this instance; otherwise, false. |
Overrides
| Edit this page View SourceGetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
| Edit this page View SourceToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(in GorgonKerningPair, in GorgonKerningPair)
Implements the operator ==.
Declaration
public static bool operator ==(in GorgonKerningPair left, in GorgonKerningPair right)
Parameters
Type | Name | Description |
---|---|---|
GorgonKerningPair | left | The left. |
GorgonKerningPair | right | The right. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
operator !=(in GorgonKerningPair, in GorgonKerningPair)
Implements the operator !=.
Declaration
public static bool operator !=(in GorgonKerningPair left, in GorgonKerningPair right)
Parameters
Type | Name | Description |
---|---|---|
GorgonKerningPair | left | The left. |
GorgonKerningPair | right | The right. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |