Skip to content

DragBarPanelExtensions

Namespace: Hex1b

Assembly: Hex1b.dll

Extension methods for building DragBarPanel widgets.

csharp
public static class DragBarPanelExtensions

Inheritance

ObjectDragBarPanelExtensions

Methods

DragBarPanel<TParent>(WidgetContext<TParent>, Func<WidgetContext<DragBarPanelWidget>, Hex1bWidget>)

Creates a DragBarPanel that wraps content built from a callback.

Parameters:

Returns: DragBarPanelWidget

csharp
public static DragBarPanelWidget DragBarPanel<TParent>(this WidgetContext<TParent> ctx, Func<WidgetContext<DragBarPanelWidget>, Hex1bWidget> contentBuilder) where TParent : Hex1bWidget

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

Creates a DragBarPanel that wraps a widget directly.

Parameters:

Returns: DragBarPanelWidget

csharp
public static DragBarPanelWidget DragBarPanel<TParent>(this WidgetContext<TParent> ctx, Hex1bWidget content) where TParent : Hex1bWidget

HandleEdge(DragBarPanelWidget, DragBarEdge)

Explicitly sets which edge the resize handle appears on, overriding auto-detection from layout context.

Parameters:

Returns: DragBarPanelWidget

csharp
public static DragBarPanelWidget HandleEdge(this DragBarPanelWidget widget, DragBarEdge edge)

InitialSize(DragBarPanelWidget, int)

Sets the initial size of the panel in characters (width or height depending on edge).

Parameters:

Returns: DragBarPanelWidget

csharp
public static DragBarPanelWidget InitialSize(this DragBarPanelWidget widget, int size)

MaxSize(DragBarPanelWidget, int)

Sets the maximum allowed size in characters.

Parameters:

Returns: DragBarPanelWidget

csharp
public static DragBarPanelWidget MaxSize(this DragBarPanelWidget widget, int size)

MinSize(DragBarPanelWidget, int)

Sets the minimum allowed size in characters.

Parameters:

Returns: DragBarPanelWidget

csharp
public static DragBarPanelWidget MinSize(this DragBarPanelWidget widget, int size)

Released under the MIT License.