PastableExtensions
Namespace: Hex1b
Assembly: Hex1b.dll
Extension methods for building PastableWidget.
csharp
public static class PastableExtensionsInheritance
Object → PastableExtensions
Methods
Pastable<TParent>(WidgetContext<TParent>, Func<WidgetContext<VStackWidget>, Hex1bWidget[]>)
Creates a Pastable container with a VStack child.
Parameters:
ctx(WidgetContext<<TParent>>):builder(Func<VStackWidget>, Hex1bWidget[]>):
Returns: PastableWidget
csharp
public static PastableWidget Pastable<TParent>(this WidgetContext<TParent> ctx, Func<WidgetContext<VStackWidget>, Hex1bWidget[]> builder) where TParent : Hex1bWidgetPastable<TParent>(WidgetContext<TParent>, Hex1bWidget)
Creates a Pastable container wrapping a single child widget.
Parameters:
ctx(WidgetContext<<TParent>>):child(Hex1bWidget):
Returns: PastableWidget
csharp
public static PastableWidget Pastable<TParent>(this WidgetContext<TParent> ctx, Hex1bWidget child) where TParent : Hex1bWidget