Skip to content

TextStudioGlyphImageRequest

StructTextStudioTextStudio
public readonly struct TextStudioGlyphImageRequest

One exact shaped occurrence. Revisions and layout positions are separate from the reusable raster identity.

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

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

public bool Equals(TextStudioGlyphImageRequest other)

Parameters

Name Type
other TextStudio.TextStudioGlyphImageRequest

Returns

System.Boolean

public override bool Equals(object obj)

Parameters

Name Type
obj System.Object

Returns

System.Boolean

public override int GetHashCode()

Returns

System.Int32

public TextStudioGlyphImageIdentity Identity { get; }

Returns

TextStudio.TextStudioGlyphImageIdentity

public TextStudioBackendShapedGlyph Glyph { get; }

Returns

TextStudio.TextStudioBackendShapedGlyph

public int ShapedRevision { get; }

Returns

System.Int32

public int ShapedGlyphIndex { get; }

Returns

System.Int32

public int SourceStart { get; }

Returns

System.Int32

public int SourceLength { get; }

Returns

System.Int32

public bool IsValid { get; }

Returns

System.Boolean