|
Window Framework for UI Toolkit v2.0.x
|
Validated data-only portable manifest with preserved purchaser extension sections. More...
Public Member Functions | |
| GWG.WindowFramework.Theming.Json.JsonObject | GetExtensionData () |
| Returns a copy of extension data; callers cannot mutate the retained manifest. | |
| GWG.WindowFramework.Theming.Json.JsonObject | GetExtensions () |
| Returns independently owned extension data without an external JSON package. | |
| string | ToJson () |
| Serializes the retained validated data, preserving unknown extension sections. | |
Static Public Member Functions | |
| static bool | TryParse (string json, out PlayerThemeManifest manifest, out string error) |
| Parses and validates a bounded manifest without touching disk assets. | |
Static Public Attributes | |
| const int | MaximumBytes = 262144 |
| Maximum UTF-8 manifest size. | |
Properties | |
| string | Description [get, private set] |
| Gets bounded description. | |
| string | FontId [get, private set] |
| Optional shipped font identifier; resolved only against configured prepared themes. | |
| string | Id [get, private set] |
| Gets validated stable player ID. | |
| IReadOnlyDictionary< string, string > | ImagePaths [get] |
| Gets validated relative image references keyed by canonical token. | |
| IReadOnlyList< string > | Issues [get] |
| Gets recoverable field errors; omitted overrides inherit the configured default. | |
| string | Name [get, private set] |
| Gets bounded plain-text display name. | |
| bool | UsesFolderName [get, private set] |
| Whether display name follows the folder rather than legacy manifest metadata. | |
| PlayerThemeValues | Values = new PlayerThemeValues() [get] |
| Gets resolved explicit colour/number overrides; omitted keys remain absent. | |
Static Private Member Functions | |
| static string | QuoteInput (string text) |
| Quotes only bounded player-supplied text; path/control redaction still applies. | |
| static string | Text (GWG.WindowFramework.Theming.Json.JsonNode token, string key, int maximum, bool required) |
Private Attributes | |
| readonly Dictionary< string, string > | _imagePaths = new Dictionary<string, string>(StringComparer.Ordinal) |
| readonly List< string > | _issues = new List<string>() |
| GWG.WindowFramework.Theming.Json.JsonObject | _source |
Validated data-only portable manifest with preserved purchaser extension sections.
No polymorphic deserialization, reflection, code or URLs are executed. Extension sections are preserved as bounded JSON but are not applied without compiled handlers. Image paths here are only relative-path syntax checked; filesystem containment and link checks are still required by the importer before opening any file.
|
inline |
Returns a copy of extension data; callers cannot mutate the retained manifest.


|
inline |
Returns independently owned extension data without an external JSON package.
Explicitly typed callers must use GWG.WindowFramework.Theming.Json.JsonObject. The return type changes to remove the external serializer requirement; var callers and the method name remain usable. Existing saved JSON and compiled string-based extension contracts are unchanged.

|
inlinestaticprivate |
Quotes only bounded player-supplied text; path/control redaction still applies.
Do not pass runtime exceptions or internal paths. This is a search hint, not executable markup.


|
inlinestaticprivate |

|
inline |
Serializes the retained validated data, preserving unknown extension sections.

|
inlinestatic |
Parses and validates a bounded manifest without touching disk assets.
| json | UTF-8-compatible JSON text. |
| manifest | Validated result or null. |
| error | Bounded validation message identifying the failing key. |


|
private |
|
private |
|
private |
|
static |
Maximum UTF-8 manifest size.
|
getprivate set |
Gets bounded description.
|
getprivate set |
Optional shipped font identifier; resolved only against configured prepared themes.
|
getprivate set |
Gets validated stable player ID.
|
get |
Gets validated relative image references keyed by canonical token.
|
get |
Gets recoverable field errors; omitted overrides inherit the configured default.
|
getprivate set |
Gets bounded plain-text display name.
|
getprivate set |
Whether display name follows the folder rather than legacy manifest metadata.
|
get |
Gets resolved explicit colour/number overrides; omitted keys remain absent.