Skip to content

ScrollPanelExtensions

Namespace: Hex1b

Assembly: Hex1b.dll

Extension methods for building ScrollPanelWidget.

csharp
public static class ScrollPanelExtensions

Inheritance

ObjectScrollPanelExtensions

Methods

HScrollPanel<TParent>(WidgetContext<TParent>, Func<WidgetContext<HStackWidget>, Hex1bWidget[]>, bool)

Creates a horizontal scroll panel with an HStack child built from a callback.

Parameters:

Returns: ScrollPanelWidget

csharp
public static ScrollPanelWidget HScrollPanel<TParent>(this WidgetContext<TParent> ctx, Func<WidgetContext<HStackWidget>, Hex1bWidget[]> childBuilder, bool showScrollbar = true) where TParent : Hex1bWidget

HScrollPanel<TParent>(WidgetContext<TParent>, Hex1bWidget, bool)

Creates a horizontal scroll panel with the specified child.

Parameters:

Returns: ScrollPanelWidget

csharp
public static ScrollPanelWidget HScrollPanel<TParent>(this WidgetContext<TParent> ctx, Hex1bWidget child, bool showScrollbar = true) where TParent : Hex1bWidget

ScrollPanel<TParent>(WidgetContext<TParent>, Hex1bWidget, ScrollOrientation, bool)

Creates a scroll panel with the specified orientation.

Parameters:

Returns: ScrollPanelWidget

csharp
public static ScrollPanelWidget ScrollPanel<TParent>(this WidgetContext<TParent> ctx, Hex1bWidget child, ScrollOrientation orientation, bool showScrollbar = true) where TParent : Hex1bWidget

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

Creates a vertical scroll panel with a VStack child built from a callback.

Parameters:

Returns: ScrollPanelWidget

csharp
public static ScrollPanelWidget VScrollPanel<TParent>(this WidgetContext<TParent> ctx, Func<WidgetContext<VStackWidget>, Hex1bWidget[]> childBuilder, bool showScrollbar = true) where TParent : Hex1bWidget

VScrollPanel<TParent>(WidgetContext<TParent>, Hex1bWidget, bool)

Creates a vertical scroll panel with the specified child.

Parameters:

Returns: ScrollPanelWidget

csharp
public static ScrollPanelWidget VScrollPanel<TParent>(this WidgetContext<TParent> ctx, Hex1bWidget child, bool showScrollbar = true) where TParent : Hex1bWidget

Released under the MIT License.