Interface IButtonAction<THost>
Zero-allocation click handler for ButtonLayer<THost,TAction>. 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)
void Execute(THost host)
Parameters
hostTHost