TextStudioApplicationSelectorNode
public struct TextStudioApplicationSelectorNodeOne node in a compact indexed application-selector tree.
Methods
Section titled “Methods”
public static TextStudioApplicationSelectorNode All()Creates a predicate node that selects every logical text unit.
Returns
TextStudio.TextStudioApplicationSelectorNode
None()
Section titled “None()”public static TextStudioApplicationSelectorNode None()Creates a predicate node that selects no logical text units.
Returns
TextStudio.TextStudioApplicationSelectorNode
Range(int, int, bool)
Section titled “Range(int, int, bool)”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
Range(TextStudioTextRange, bool)
Section titled “Range(TextStudioTextRange, bool)”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
Tag(string, bool)
Section titled “Tag(string, bool)”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
AppearanceTag(string, bool)
Section titled “AppearanceTag(string, bool)”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
SourceColor(Color, float, bool)
Section titled “SourceColor(Color, float, bool)”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
And(int, int)
Section titled “And(int, int)”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
Or(int, int)
Section titled “Or(int, int)”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
Within(int, int)
Section titled “Within(int, int)”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
Not(int)
Section titled “Not(int)”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
Properties
Section titled “Properties”
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
TextRange
Section titled “TextRange”public TextStudioTextRange TextRange { get; }Returns
TextStudio.TextStudioTextRange
UsesTextRange
Section titled “UsesTextRange”public bool UsesTextRange { get; }Returns
System.Boolean
public string Key { get; }Returns
System.String
public Color Color { get; }Returns
UnityEngine.Color
Tolerance
Section titled “Tolerance”public float Tolerance { get; }Returns
System.Single
public float Value { get; }Returns
System.Single
Comparison
Section titled “Comparison”public TextStudioSelectorComparison Comparison { get; }Returns
TextStudio.TextStudioSelectorComparison
SemanticState
Section titled “SemanticState”public TextStudioSelectorSemanticState SemanticState { get; }Returns
TextStudio.TextStudioSelectorSemanticState
Invert
Section titled “Invert”public bool Invert { get; }Returns
System.Boolean