Api Sandbox UI MixinDefinition
class

MixinDefinition

public sealed class MixinDefinition

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

Constructors

MixinDefinition()

Properties

Name Type Description
Name String The name of the mixin (e.g., "button" from "@mixin button")
Parameters List<MixinParameter> Parameter definitions in order, with optional default values. Key = parameter name (without $), Value = default value (null if required)
HasVariadicParameter Boolean Whether this mixin has a variadic parameter (last param ends with ...)
Content String The raw content of the mixin body, to be expanded when included. This includes nested rules which will be parsed during expansion.
FileName String Source file for error messages
FileLine Int32 Source line for error messages

Methods

String Expand(Dictionary<String, String> arguments, String contentBlock = null)
Assembly: Sandbox.Engine Namespace: Sandbox.UI Full Name: Sandbox.UI.MixinDefinition