InputBindingExtensions
Namespace: Hex1b
Assembly: Hex1b.dll
Extension methods for adding input bindings to widgets.
csharp
public static class InputBindingExtensionsInheritance
Object → InputBindingExtensions
Methods
WithInputBindings<TWidget>(TWidget, Action<InputBindingsBuilder>)
Configures input bindings for a widget using a fluent builder. The builder is pre-populated with the widget's default bindings, which can be inspected, modified, or removed.
Parameters:
widget(<TWidget>): The widget to configure bindings for.configure(Action<InputBindingsBuilder>): A callback to configure bindings. The builder contains default bindings.
Returns: <TWidget>
A new widget with the binding configurator set.
csharp
public static TWidget WithInputBindings<TWidget>(this TWidget widget, Action<InputBindingsBuilder> configure) where TWidget : Hex1bWidget