Class StyleSlotRecipe
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Defines class names for UI patterns with multiple slots (parts) in one place. Each slot can have a base class and variant axes.
public sealed class StyleSlotRecipe
- Inheritance
-
objectStyleSlotRecipe
Constructors
- StyleSlotRecipe(Dictionary<string, string>)
Recipe without variants.
- StyleSlotRecipe(Dictionary<string, string>, Dictionary<string, Dictionary<string, Dictionary<string, string>>>, Dictionary<string, string>?, SlotCompoundVariant[]?)
Recipe with variant axes.
Methods
- Apply()
Returns class names for all slots without selecting any variants.
- Apply(params (string axis, string value)[])
Returns class names for all slots with the given variant selections.