Skip to content

BackdropExtensions

Namespace: Hex1b

Assembly: Hex1b.dll

Extension methods for creating .

csharp
public static class BackdropExtensions

Inheritance

ObjectBackdropExtensions

Methods

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

Creates a Backdrop with child content displayed on top. The child is centered within the backdrop.

Parameters:

  • ctx (WidgetContext<<TParent>>): The widget context.
  • child (Hex1bWidget): The child widget to display on top of the backdrop.

Returns: BackdropWidget

A new BackdropWidget with the child.

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

Backdrop<TParent>(WidgetContext<TParent>)

Creates a Backdrop that fills available space and intercepts all input. Use this to create modal overlays that prevent interaction with layers below.

Parameters:

  • ctx (WidgetContext<<TParent>>): The widget context.

Returns: BackdropWidget

A new BackdropWidget.

csharp
public static BackdropWidget Backdrop<TParent>(this WidgetContext<TParent> ctx) where TParent : Hex1bWidget

Released under the MIT License.