Class EncodedTokenAttributes
Helpers for decoding encoded token metadata (bit-packed uint32)
Inherited Members
Namespace: Unity.AppUI.TextMateLib
Assembly: Unity.AppUI.TextMateLib.dll
Syntax
public static class EncodedTokenAttributes
Methods
GetBackground(uint)
Gets the background color ID (index into the color map)
Declaration
public static int GetBackground(uint metadata)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | metadata | The bit-packed token metadata. |
Returns
| Type | Description |
|---|---|
| int | The background color ID (index into the color map). |
GetFontStyle(uint)
Gets the font style flags from encoded metadata
Declaration
public static int GetFontStyle(uint metadata)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | metadata | The bit-packed token metadata. |
Returns
| Type | Description |
|---|---|
| int | The font style flag bits. |
GetForeground(uint)
Gets the foreground color ID (index into the color map)
Declaration
public static int GetForeground(uint metadata)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | metadata | The bit-packed token metadata. |
Returns
| Type | Description |
|---|---|
| int | The foreground color ID (index into the color map). |