TextStudioGlyphImageRequest
public readonly struct TextStudioGlyphImageRequestOne exact shaped occurrence. Revisions and layout positions are separate from the reusable raster identity.
Constructors
Section titled “Constructors”
TextStudioGlyphImageRequest(in TextStudioGlyphImageIdentity, in TextStudioBackendShapedGlyph, int, int, int, int)
Section titled “TextStudioGlyphImageRequest(in TextStudioGlyphImageIdentity, in TextStudioBackendShapedGlyph, int, int, int, int)”public TextStudioGlyphImageRequest(in TextStudioGlyphImageIdentity identity, in TextStudioBackendShapedGlyph glyph, int shapedRevision, int shapedGlyphIndex, int sourceStart, int sourceLength)Associates an exact image identity with one validated shaped glyph occurrence and source range.
Parameters
| Name | Type |
|---|---|
identity |
TextStudio.TextStudioGlyphImageIdentity |
glyph |
TextStudio.TextStudioBackendShapedGlyph |
shapedRevision |
System.Int32 |
shapedGlyphIndex |
System.Int32 |
sourceStart |
System.Int32 |
sourceLength |
System.Int32 |
Methods
Section titled “Methods”
IsCurrentFor(ITextStudioShapedGlyphBackend)
Section titled “IsCurrentFor(ITextStudioShapedGlyphBackend)”public bool IsCurrentFor(ITextStudioShapedGlyphBackend backend)Rejects stale requests before and after provider capture without reading native image buffers.
Parameters
| Name | Type |
|---|---|
backend |
TextStudio.ITextStudioShapedGlyphBackend |
Returns
System.Boolean
MatchesGlyph(in TextStudioBackendShapedGlyph)
Section titled “MatchesGlyph(in TextStudioBackendShapedGlyph)”public bool MatchesGlyph(in TextStudioBackendShapedGlyph glyph)Checks that the complete shaped glyph placement and identity still match this request.
Parameters
| Name | Type |
|---|---|
glyph |
TextStudio.TextStudioBackendShapedGlyph |
Returns
System.Boolean
Equals(TextStudioGlyphImageRequest)
Section titled “Equals(TextStudioGlyphImageRequest)”public bool Equals(TextStudioGlyphImageRequest other)Parameters
| Name | Type |
|---|---|
other |
TextStudio.TextStudioGlyphImageRequest |
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”
Identity
Section titled “Identity”public TextStudioGlyphImageIdentity Identity { get; }Returns
TextStudio.TextStudioGlyphImageIdentity
public TextStudioBackendShapedGlyph Glyph { get; }Returns
TextStudio.TextStudioBackendShapedGlyph
ShapedRevision
Section titled “ShapedRevision”public int ShapedRevision { get; }Returns
System.Int32
ShapedGlyphIndex
Section titled “ShapedGlyphIndex”public int ShapedGlyphIndex { 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