Skip to content

InteractableExtensions

Namespace: Hex1b

Assembly: Hex1b.dll

Extension methods for creating .

csharp
public static class InteractableExtensions

Inheritance

ObjectInteractableExtensions

Methods

Interactable<TParent>(WidgetContext<TParent>, Func<InteractableContext, Hex1bWidget[]>)

Creates an interactable wrapper with an implicit VStack for multiple children.

Parameters:

Returns: InteractableWidget

csharp
public static InteractableWidget Interactable<TParent>(this WidgetContext<TParent> ctx, Func<InteractableContext, Hex1bWidget[]> builder) where TParent : Hex1bWidget

Interactable<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:

Returns: InteractableWidget

csharp
public static InteractableWidget Interactable<TParent>(this WidgetContext<TParent> ctx, Func<InteractableContext, Hex1bWidget> builder) where TParent : Hex1bWidget

Released under the MIT License.