|
Window Framework for UI Toolkit v2.0.x
|
Read-only ordered source graph for preparation of shipped 2.0 theme tokens. More...
Data Structures | |
| class | ScopedDeclaration |
Public Member Functions | |
| bool | IsDeveloperPosition (string source, int position) |
| Whether an original source position belongs to a valid marked developer region. | |
Static Public Member Functions | |
| static string | ResolveAssetPath (string origin, string reference) |
| Resolves local imports/references through actual origin paths and GUID URLs. | |
| static bool | TryRead (ThemeStyleSheet source, out ThemeSourceGraph graph, out string error) |
| Reads an attached asset's source graph without changing files or importing player data. | |
| static bool | TryRead (WindowFrameThemeData data, ThemeStyleSheet source, out ThemeSourceGraph graph, out string error, bool requireModern=true) |
| Reads collection application sheets in order before selected theme settings. | |
Properties | |
| int | ComponentRuleCount [get, private set] |
| Number of component rules outside root token snapshot semantics. | |
| IReadOnlyList< KeyValuePair< string, string > > | ComponentRules [get] |
| Original component rule text with its source path, for source-preserving editor migration. | |
| IReadOnlyDictionary< string, string > | Origins [get] |
| Declaring source path for each final token; editor-only provenance. | |
| IReadOnlyList< int > | SourceRuleOffsets [get] |
| Original offsets corresponding to SourceRules; used for declaration ownership validation. | |
| IReadOnlyList< KeyValuePair< string, string > > | SourceRules [get] |
| Every original rule, including root annotations, in configured import/declaration order. | |
| IReadOnlyList< string > | Sources [get] |
| Ordered visited source assets, including repeated non-cyclic imports. | |
| IReadOnlyDictionary< string, string > | Tokens [get] |
| Final root declarations in stylesheet import order. | |
Private Member Functions | |
| void | RecordDeveloperRegion (string path, string original, string masked) |
| void | Visit (string path, int depth) |
Static Private Member Functions | |
| static int | Find (string text, int start, char target) |
| static int | FindMarker (string original, string masked, string marker) |
| static string | RemoveComments (string text) |
Private Attributes | |
| int | _characters |
| readonly List< KeyValuePair< string, string > > | _componentRules = new List<KeyValuePair<string, string>>() |
| readonly Dictionary< string, KeyValuePair< int, int > > | _developerRegions = new Dictionary<string, KeyValuePair<int, int>>(StringComparer.Ordinal) |
| readonly Dictionary< string, string > | _origins = new Dictionary<string, string>(StringComparer.Ordinal) |
| readonly List< ScopedDeclaration > | _scopedDeclarations = new List<ScopedDeclaration>() |
| readonly List< int > | _sourceRuleOffsets = new List<int>() |
| readonly List< KeyValuePair< string, string > > | _sourceRules = new List<KeyValuePair<string, string>>() |
| readonly List< string > | _sources = new List<string>() |
| readonly HashSet< string > | _stack = new HashSet<string>(StringComparer.Ordinal) |
| readonly Dictionary< string, string > | _tokens = new Dictionary<string, string>(StringComparer.Ordinal) |
Read-only ordered source graph for preparation of shipped 2.0 theme tokens.
Not a full USS cascade engine. Non-root custom declarations are refused rather than flattened into global values. Ordinary component rules are retained in source and reported as outside root-token preparation. No source adoption/rewrite occurs. Imported assets resolve relative to their actual AssetDatabase paths or GUID URLs, never an assumed package directory.
|
inlinestaticprivate |

|
inlinestaticprivate |

|
inline |
Whether an original source position belongs to a valid marked developer region.

|
inlineprivate |


|
inlinestaticprivate |

|
inlinestatic |
Resolves local imports/references through actual origin paths and GUID URLs.
| origin | Project-relative path of the declaring stylesheet, used for relative references. |
| reference | Local Assets/Packages path, project database URL or origin-relative reference. |
| InvalidDataException | External reference or path outside project is encountered. |
This is editor-source resolution, not the portable player's SafeAssetPath policy. GUID resolution takes priority where valid. It neither copies dependencies nor imports files.

|
inlinestatic |
Reads an attached asset's source graph without changing files or importing player data.
| source | Shipped theme asset. |
| graph | Read graph on success. |
| error | Bounded diagnostic without absolute paths. |


|
inlinestatic |
Reads collection application sheets in order before selected theme settings.
| data | Composition owner, or null for isolated source inspection. |
| source | Selected theme entry sheet. |
| graph | Combined ordered source graph. |
| error | Preparation diagnostic. |
| requireModern | True for modern preparation; false for migration inspection without modern marker/scoped-value equivalence checks. Syntax/import/resource bounds still apply. |

|
inlineprivate |


|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
getprivate set |
Number of component rules outside root token snapshot semantics.
|
get |
Original component rule text with its source path, for source-preserving editor migration.
|
get |
Declaring source path for each final token; editor-only provenance.
|
get |
Original offsets corresponding to SourceRules; used for declaration ownership validation.
|
get |
Every original rule, including root annotations, in configured import/declaration order.
Comments and declaring origins are retained for the developer compiler. The framework root catalog still uses its own strict root-token validation.
|
get |
Ordered visited source assets, including repeated non-cyclic imports.
|
get |
Final root declarations in stylesheet import order.