class
StyleSheet
public class StyleSheet Constructors
StyleSheet() Properties
| Name | Type | Description |
|---|---|---|
Loaded static | List<StyleSheet> | |
Nodes | List<StyleBlock> | |
FileName | String | |
IncludedFiles | List<String> |
Methods
Void Release() Releases the filesystem watcher so we won't get file changed events.
static StyleSheet FromFile(String filename, ValueTuple<String, String>> variables = null, Boolean failSilently = False) static StyleSheet FromString(String styles, String filename = none, ValueTuple<String, String>> variables = null) String GetVariable(String name, String defaultValue = null) String ReplaceVariables(String str) Void AddKeyFrames(KeyFrames frames) Void SetMixin(MixinDefinition mixin) Register a mixin definition.
Boolean TryGetMixin(String name, MixinDefinition mixin) Try to get a mixin by name.
MixinDefinition GetMixin(String name) Get a mixin by name or null if not found.
Fields
| Name | Type | Description |
|---|---|---|
Variables | Dictionary<String, String> | |
KeyFrames | Dictionary<String, KeyFrames> | |
Mixins | Dictionary<String, MixinDefinition> |