Skip to content

TextStudioApplicationSelectorNode

StructTextStudioTextStudio
public struct TextStudioApplicationSelectorNode

One node in a compact indexed application-selector tree.

public static TextStudioApplicationSelectorNode All()

Creates a predicate node that selects every logical text unit.

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode None()

Creates a predicate node that selects no logical text units.

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode Range(int start, int count, bool invert = false)

Creates an optionally inverted predicate for a start-and-count range of logical units within the current selector scope.

Parameters

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

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode Range(TextStudioTextRange range, bool invert = false)

Creates an optionally inverted range predicate resolved from a half-open text range within the current selector scope.

Parameters

Name Type
range TextStudio.TextStudioTextRange
invert System.Boolean

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode Tag(string tag, bool invert = false)

Creates an optionally inverted predicate for units inside the named text region.

Parameters

Name Type
tag System.String
invert System.Boolean

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode AppearanceTag(string id, bool invert = false)

Creates an optionally inverted predicate for units covered by an invocation of the named appearance.

Parameters

Name Type
id System.String
invert System.Boolean

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode SourceColor(Color color, float tolerance, bool invert = false)

Creates an optionally inverted predicate matching source color within the supplied tolerance.

Parameters

Name Type
color UnityEngine.Color
tolerance System.Single
invert System.Boolean

Returns

TextStudio.TextStudioApplicationSelectorNode

Semantic(TextStudioSelectorSemanticState, bool)

Section titled “Semantic(TextStudioSelectorSemanticState, bool)”
public static TextStudioApplicationSelectorNode Semantic(TextStudioSelectorSemanticState state, bool invert = false)

Creates an optionally inverted predicate matching any requested semantic-state flag.

Parameters

Name Type
state TextStudio.TextStudioSelectorSemanticState
invert System.Boolean

Returns

TextStudio.TextStudioApplicationSelectorNode

Coverage(TextStudioSelectorComparison, float)

Section titled “Coverage(TextStudioSelectorComparison, float)”
public static TextStudioApplicationSelectorNode Coverage(TextStudioSelectorComparison comparison, float value)

Creates a predicate comparing a text unit’s current coverage with the supplied scalar value.

Parameters

Name Type
comparison TextStudio.TextStudioSelectorComparison
value System.Single

Returns

TextStudio.TextStudioApplicationSelectorNode

RenderProperty(string, TextStudioSelectorComparison, float)

Section titled “RenderProperty(string, TextStudioSelectorComparison, float)”
public static TextStudioApplicationSelectorNode RenderProperty(string propertyId, TextStudioSelectorComparison comparison, float value)

Creates a predicate comparing a render property’s unsigned value or first vector component with the supplied scalar.

Parameters

Name Type
propertyId System.String
comparison TextStudio.TextStudioSelectorComparison
value System.Single

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode And(int left, int right)

Creates a conjunction of the predicates at the supplied node indices.

Parameters

Name Type
left System.Int32
right System.Int32

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode Or(int left, int right)

Creates a disjunction of the predicates at the supplied node indices.

Parameters

Name Type
left System.Int32
right System.Int32

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode Within(int parent, int child)

Evaluates the child separately in each logical occurrence of the parent.

Parameters

Name Type
parent System.Int32
child System.Int32

Returns

TextStudio.TextStudioApplicationSelectorNode

public static TextStudioApplicationSelectorNode Not(int child)

Creates a predicate that negates the child at the supplied node index.

Parameters

Name Type
child System.Int32

Returns

TextStudio.TextStudioApplicationSelectorNode

public TextStudioSelectorNodeKind Kind { get; }

Returns

TextStudio.TextStudioSelectorNodeKind

public int Left { get; }

Returns

System.Int32

public int Right { get; }

Returns

System.Int32

public int Count { get; }

Returns

System.Int32

public TextStudioTextRange TextRange { get; }

Returns

TextStudio.TextStudioTextRange

public bool UsesTextRange { get; }

Returns

System.Boolean

public string Key { get; }

Returns

System.String

public Color Color { get; }

Returns

UnityEngine.Color

public float Tolerance { get; }

Returns

System.Single

public float Value { get; }

Returns

System.Single

public TextStudioSelectorComparison Comparison { get; }

Returns

TextStudio.TextStudioSelectorComparison

public TextStudioSelectorSemanticState SemanticState { get; }

Returns

TextStudio.TextStudioSelectorSemanticState

public bool Invert { get; }

Returns

System.Boolean