s&box docs
API ReferenceSandbox.UI

public sealed class Sandbox.UI.MixinDefinition

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

Constructors

Showing 1 constructors

Methods

Showing 1 methods

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

Parameters

  • contentBlock: Default: null

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)

Metadata

FieldValue
NamespaceSandbox.UI
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.UI.MixinDefinition

On this page