Skip to content

PastableExtensions

Namespace: Hex1b

Assembly: Hex1b.dll

Extension methods for building PastableWidget.

csharp
public static class PastableExtensions

Inheritance

ObjectPastableExtensions

Methods

Pastable<TParent>(WidgetContext<TParent>, Func<WidgetContext<VStackWidget>, Hex1bWidget[]>)

Creates a Pastable container with a VStack child.

Parameters:

Returns: PastableWidget

csharp
public static PastableWidget Pastable<TParent>(this WidgetContext<TParent> ctx, Func<WidgetContext<VStackWidget>, Hex1bWidget[]> builder) where TParent : Hex1bWidget

Pastable<TParent>(WidgetContext<TParent>, Hex1bWidget)

Creates a Pastable container wrapping a single child widget.

Parameters:

Returns: PastableWidget

csharp
public static PastableWidget Pastable<TParent>(this WidgetContext<TParent> ctx, Hex1bWidget child) where TParent : Hex1bWidget

Released under the MIT License.