InteractableExtensions
Namespace: Hex1b
Assembly: Hex1b.dll
Extension methods for creating .
csharp
public static class InteractableExtensionsInheritance
Object → InteractableExtensions
Methods
Interactable<TParent>(WidgetContext<TParent>, Func<InteractableContext, Hex1bWidget[]>)
Creates an interactable wrapper with an implicit VStack for multiple children.
Parameters:
ctx(WidgetContext<<TParent>>):builder(Func<InteractableContext, Hex1bWidget[]>):
Returns: InteractableWidget
csharp
public static InteractableWidget Interactable<TParent>(this WidgetContext<TParent> ctx, Func<InteractableContext, Hex1bWidget[]> builder) where TParent : Hex1bWidgetInteractable<TParent>(WidgetContext<TParent>, Func<InteractableContext, Hex1bWidget>)
Creates an interactable wrapper around a single child widget. The builder lambda receives an with and properties that reflect the current interaction state.
Parameters:
ctx(WidgetContext<<TParent>>):builder(Func<InteractableContext, Hex1bWidget>):
Returns: InteractableWidget
csharp
public static InteractableWidget Interactable<TParent>(this WidgetContext<TParent> ctx, Func<InteractableContext, Hex1bWidget> builder) where TParent : Hex1bWidget