API ReferenceSandbox.UI

MixinDefinitionclass

Represents a parsed @mixin definition that can be included elsewhere.

objectMixinDefinition
Namespace
Sandbox.UI
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.UI.MixinDefinition

Constructors1

Showing 1 constructors

Methods1

Showing 1 methods

public string Expand(System.Collections.Generic.Dictionary`2<string,string> arguments, string contentBlock = null)PUBLIC

ParameterTypeDescription
argumentsDictionary<string,string>
contentBlock = nullstring
Returns:string

Properties6

Showing 6 properties

public string Sandbox.UI.MixinDefinition.Content { get; set; }PUBLICGETSET

The raw content of the mixin body, to be expanded when included. This includes nested rules which will be parsed during expansion.

Returns:string

public int Sandbox.UI.MixinDefinition.FileLine { get; set; }PUBLICGETSET

Source line for error messages

Returns:int

public string Sandbox.UI.MixinDefinition.FileName { get; set; }PUBLICGETSET

Source file for error messages

Returns:string

public bool Sandbox.UI.MixinDefinition.HasVariadicParameter { get; set; }PUBLICGETSET

Whether this mixin has a variadic parameter (last param ends with ...)

Returns:bool

public string Sandbox.UI.MixinDefinition.Name { get; set; }PUBLICGETSET

The name of the mixin (e.g., "button" from "@mixin button")

Returns:string

public System.Collections.Generic.List`1<Sandbox.UI.MixinParameter> Sandbox.UI.MixinDefinition.Parameters { get; set; }PUBLICGETSET

Parameter definitions in order, with optional default values. Key = parameter name (without $), Value = default value (null if required)

Returns:List<MixinParameter>

On this page