DragBarPanelExtensions
Namespace: Hex1b
Assembly: Hex1b.dll
Extension methods for building DragBarPanel widgets.
csharp
public static class DragBarPanelExtensionsInheritance
Object → DragBarPanelExtensions
Methods
DragBarPanel<TParent>(WidgetContext<TParent>, Func<WidgetContext<DragBarPanelWidget>, Hex1bWidget>)
Creates a DragBarPanel that wraps content built from a callback.
Parameters:
ctx(WidgetContext<<TParent>>):contentBuilder(Func<DragBarPanelWidget>, Hex1bWidget>):
Returns: DragBarPanelWidget
csharp
public static DragBarPanelWidget DragBarPanel<TParent>(this WidgetContext<TParent> ctx, Func<WidgetContext<DragBarPanelWidget>, Hex1bWidget> contentBuilder) where TParent : Hex1bWidgetDragBarPanel<TParent>(WidgetContext<TParent>, Hex1bWidget)
Creates a DragBarPanel that wraps a widget directly.
Parameters:
ctx(WidgetContext<<TParent>>):content(Hex1bWidget):
Returns: DragBarPanelWidget
csharp
public static DragBarPanelWidget DragBarPanel<TParent>(this WidgetContext<TParent> ctx, Hex1bWidget content) where TParent : Hex1bWidgetHandleEdge(DragBarPanelWidget, DragBarEdge)
Explicitly sets which edge the resize handle appears on, overriding auto-detection from layout context.
Parameters:
widget(DragBarPanelWidget):edge(DragBarEdge):
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:
widget(DragBarPanelWidget):size(Int32):
Returns: DragBarPanelWidget
csharp
public static DragBarPanelWidget InitialSize(this DragBarPanelWidget widget, int size)MaxSize(DragBarPanelWidget, int)
Sets the maximum allowed size in characters.
Parameters:
widget(DragBarPanelWidget):size(Int32):
Returns: DragBarPanelWidget
csharp
public static DragBarPanelWidget MaxSize(this DragBarPanelWidget widget, int size)MinSize(DragBarPanelWidget, int)
Sets the minimum allowed size in characters.
Parameters:
widget(DragBarPanelWidget):size(Int32):
Returns: DragBarPanelWidget
csharp
public static DragBarPanelWidget MinSize(this DragBarPanelWidget widget, int size)