Interface IButtonAction<THost>
Zero-allocation click handler for button layers. Implement as a private nested struct inside the owning view so Execute(THost) receives the fully-typed host and can call any method on it without closures.
public interface IButtonAction<in THost> where THost : ILayerHost
Type Parameters
THost
Methods
Execute(THost)
Executes the button action on the given host view.
void Execute(THost host)
Parameters
hostTHostThe host view that owns the button.