Skip to content

LayoutExtensions

Namespace: Hex1b

Assembly: Hex1b.dll

Extension methods for building LayoutWidget.

csharp
public static class LayoutExtensions

Inheritance

ObjectLayoutExtensions

Methods

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

Creates a Layout with a VStack child.

Parameters:

Returns: LayoutWidget

csharp
public static LayoutWidget Layout<TParent>(this WidgetContext<TParent> ctx, Func<WidgetContext<VStackWidget>, Hex1bWidget[]> builder, ClipMode clipMode = ClipMode.Clip) where TParent : Hex1bWidget

Layout<TParent>(WidgetContext<TParent>, Hex1bWidget, ClipMode)

Creates a Layout that wraps a single child widget with clipping enabled.

Parameters:

Returns: LayoutWidget

csharp
public static LayoutWidget Layout<TParent>(this WidgetContext<TParent> ctx, Hex1bWidget child, ClipMode clipMode = ClipMode.Clip) where TParent : Hex1bWidget

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

Wraps an existing widget in a Layout with clipping.

Parameters:

Returns: LayoutWidget

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

Released under the MIT License.