Struct EncodedToken
Represents a single encoded token (start index + packed metadata)
Inherited Members
Namespace: Unity.AppUI.TextMateLib
Assembly: Unity.AppUI.TextMateLib.dll
Syntax
public readonly struct EncodedToken
Fields
Metadata
Bit-packed metadata (font style, foreground/background color IDs)
Declaration
public readonly uint Metadata
Field Value
| Type | Description |
|---|---|
| uint |
StartIndex
Start offset in UTF-16 code units
Declaration
public readonly int StartIndex
Field Value
| Type | Description |
|---|---|
| int |
Properties
BackgroundId
Gets the background color ID (index into the color map)
Declaration
public int BackgroundId { get; }
Property Value
| Type | Description |
|---|---|
| int |
FontStyle
Gets the font style flags
Declaration
public int FontStyle { get; }
Property Value
| Type | Description |
|---|---|
| int |
ForegroundId
Gets the foreground color ID (index into the color map)
Declaration
public int ForegroundId { get; }
Property Value
| Type | Description |
|---|---|
| int |