Skip to content

LayerSelection3DSpec

StructTextStudio.ThreeDTextStudio.3D
public struct LayerSelection3DSpec

Selects which visible glyphs receive a layer without changing the layer’s geometry recipe. Selection is evaluated before stacking, so omitted layers consume no depth for that glyph.

public LayerSelection3DMode mode

Returns

TextStudio.ThreeD.LayerSelection3DMode

public int startIndex

Returns

System.Int32

public int count

Returns

System.Int32

public string characters

Returns

System.String

public bool invert

Returns

System.Boolean

public bool Matches(int visibleGlyphIndex, uint codepoint)

Reports whether a visible glyph identity satisfies the selection mode, range or character set, and inversion flag.

Parameters

Name Type
visibleGlyphIndex System.Int32
codepoint System.UInt32

Returns

System.Boolean

public static LayerSelection3DSpec VisibleRange(int startIndex, int count, bool invert = false)

Selects a consecutive range of visible glyph identities, optionally selecting its complement.

Parameters

Name Type
startIndex System.Int32
count System.Int32
invert System.Boolean

Returns

TextStudio.ThreeD.LayerSelection3DSpec

public static LayerSelection3DSpec CharacterSet(string characters, bool invert = false)

Selects visible glyphs whose Unicode scalar appears in the supplied character set, optionally selecting its complement.

Parameters

Name Type
characters System.String
invert System.Boolean

Returns

TextStudio.ThreeD.LayerSelection3DSpec

public static LayerSelection3DSpec All { get; }

Returns

TextStudio.ThreeD.LayerSelection3DSpec