Table of Contents

Interface IButtonAction<THost>

Namespace
Xui.Core.UI.Layer
Assembly
Xui.Core.dll

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

host THost

The host view that owns the button.