TextStudioGlyphIdentity
public readonly struct TextStudioGlyphIdentityStable semantic identity for one glyph within a compiled source generation.
Constructors
Section titled “Constructors”
TextStudioGlyphIdentity(uint, int, int, int, int, int)
Section titled “TextStudioGlyphIdentity(uint, int, int, int, int, int)”public TextStudioGlyphIdentity(uint sourceVersion, int glyphIndex, int resolvedStart, int resolvedLength, int sourceStart, int sourceLength)Creates a semantic glyph identity from source and resolved-text coordinates.
Parameters
| Name | Type |
|---|---|
sourceVersion |
System.UInt32 |
glyphIndex |
System.Int32 |
resolvedStart |
System.Int32 |
resolvedLength |
System.Int32 |
sourceStart |
System.Int32 |
sourceLength |
System.Int32 |
Methods
Section titled “Methods”
FromFrame(in TextStudioFrame, int)
Section titled “FromFrame(in TextStudioFrame, int)”public static TextStudioGlyphIdentity FromFrame(in TextStudioFrame frame, int glyphIndex)Returns the semantic identity of a glyph in a frame, or an invalid identity when unavailable.
Parameters
| Name | Type |
|---|---|
frame |
TextStudio.TextStudioFrame |
glyphIndex |
System.Int32 |
Returns
TextStudio.TextStudioGlyphIdentity
Equals(TextStudioGlyphIdentity)
Section titled “Equals(TextStudioGlyphIdentity)”public bool Equals(TextStudioGlyphIdentity other)Parameters
| Name | Type |
|---|---|
other |
TextStudio.TextStudioGlyphIdentity |
Returns
System.Boolean
Equals(object)
Section titled “Equals(object)”public override bool Equals(object obj)Parameters
| Name | Type |
|---|---|
obj |
System.Object |
Returns
System.Boolean
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Returns
System.Int32
Properties
Section titled “Properties”
SourceVersion
Section titled “SourceVersion”public uint SourceVersion { get; }Returns
System.UInt32
GlyphIndex
Section titled “GlyphIndex”public int GlyphIndex { get; }Returns
System.Int32
ResolvedStart
Section titled “ResolvedStart”public int ResolvedStart { get; }Returns
System.Int32
ResolvedLength
Section titled “ResolvedLength”public int ResolvedLength { get; }Returns
System.Int32
SourceStart
Section titled “SourceStart”public int SourceStart { get; }Returns
System.Int32
SourceLength
Section titled “SourceLength”public int SourceLength { get; }Returns
System.Int32
IsValid
Section titled “IsValid”public bool IsValid { get; }Returns
System.Boolean