ISpacerBehaviour
Description
The ISpacerBehaviour interface aims to provide a unifyed function Apply(SpacerComponent) which must be implemented by inhertors.
The goal of this interface is to allow an instance implementing it to apply a certain configuration to a Spacer after it has been created.
UCGUI supports two native behaviours: HorizontalSpacerBehaviour and VerticalSpacerBehaviour
Examples
Simple UI Example
// if inside a valid respective layout the spacer will either expand ...
// ... horizontally
var spacerH = UI.Spacer(new HorizontalSpacerBehaviour());
// ... or vertically
var spacerV = UI.Spacer(new HorizontalSpacerBehaviour());
// ... or automatically choose the appropriate native behaviour
var spacerA = UI.Spacer();
References
This interface is implemented by: HorizontalSpacerBehaviour, VerticalSpacerBehaviour.