API ReferenceSandbox.UI
public sealed class Sandbox.UI.MixinDefinition
Represents a parsed @mixin definition that can be included elsewhere.
Constructors
Showing 1 constructors
public MixinDefinition()
No results match this filter.
Methods
Showing 1 methods
public string Expand(System.Collections.Generic.Dictionary`2<string,string> arguments, string contentBlock = null)
Parameters
contentBlock: Default: null
No results match this filter.
Properties
Showing 6 properties
public string Sandbox.UI.MixinDefinition.Content { get; set; }
The raw content of the mixin body, to be expanded when included. This includes nested rules which will be parsed during expansion.
public int Sandbox.UI.MixinDefinition.FileLine { get; set; }
Source line for error messages
public string Sandbox.UI.MixinDefinition.FileName { get; set; }
Source file for error messages
public bool Sandbox.UI.MixinDefinition.HasVariadicParameter { get; set; }
Whether this mixin has a variadic parameter (last param ends with ...)
public string Sandbox.UI.MixinDefinition.Name { get; set; }
The name of the mixin (e.g., "button" from "@mixin button")
public System.Collections.Generic.List`1<Sandbox.UI.MixinParameter> Sandbox.UI.MixinDefinition.Parameters { get; set; }
Parameter definitions in order, with optional default values. Key = parameter name (without $), Value = default value (null if required)
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.UI |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.UI.MixinDefinition |