|
Window Framework for UI Toolkit v2.0.x
|
Canonical friendly-key mapping for portable framework theme data. More...

Data Structures | |
| class | Entry |
| One friendly key, authoritative token and numeric validation bounds. More... | |
Public Types | |
| enum | ValueKind { Color , Number , Image } |
| Supported portable value categories. More... | |
Static Public Member Functions | |
| static bool | TryGet (string key, out Entry entry) |
| Finds an exact case-sensitive friendly key. | |
| static bool | TrySnapshot (VisualElement scope, out PlayerThemeValues snapshot, out string[] unavailable) |
| Reads effective theme values through public custom-style APIs without changing styles. | |
| static bool | TrySnapshot (VisualElement scope, PlayerThemeValues overrides, out PlayerThemeValues snapshot, out string[] unavailable) |
| Captures resolved shipped values and overlays accepted player fields for an effective copy. | |
Properties | |
| static IReadOnlyList< Entry > | Entries = Array.AsReadOnly(Definitions) [get] |
| Gets immutable mapping definitions, also suitable for generating field documentation. | |
Static Private Member Functions | |
| static Entry | C (string key, string token) |
| static Entry | I (string key, string token) |
| static Entry | N (string key, string token, float min, float max) |
| static bool | TryReadDimension (VisualElement scope, Entry entry, out float value) |
Static Private Attributes | |
| static readonly Entry[] | Definitions |
Canonical friendly-key mapping for portable framework theme data.
Contains no duplicate palette. Defaults are read from the active theme's resolved custom properties. Snapshot requires an attached, style-resolved element in the intended theme scope. This initial catalog covers colour, dimension and raster image roles; fonts, vectors and cursor semantics require separate validated handling.
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestatic |
Finds an exact case-sensitive friendly key.
| key | Grouped key. |
| entry | Definition when found. |

|
inlinestaticprivate |


|
inlinestatic |
Reads effective theme values through public custom-style APIs without changing styles.
| scope | Attached element whose custom properties represent the active theme. |
| snapshot | Resolved values, including explicitly empty images. |
| unavailable | Keys not available through this element's resolved custom styles. |
Missing values must be reported or resolved from authoritative source data, never filled with a hardcoded palette. Font/vector roles are not silently rasterized. Call after CustomStyleResolvedEvent/layout, not immediately after changing stylesheets.


|
inlinestatic |
Captures resolved shipped values and overlays accepted player fields for an effective copy.
| scope | Attached, style-resolved element in the intended baseline scope. |
| overrides | Validated player fields, or null for a shipped theme. |
| snapshot | Complete effective values only when successful. |
| unavailable | Missing fields; callers must refuse incomplete export. |
No default palette is fabricated. Missing/corrupt imported overrides have already been omitted by recovery. Unsupported vector/font values remain reported rather than dropped.

|
staticprivate |
|
staticget |
Gets immutable mapping definitions, also suitable for generating field documentation.