Skip to content

ZStackWidget ​

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

A container that stacks children on the Z-axis (depth). All children occupy the same space, with later children rendering on top of earlier ones. This is useful for overlays, floating panels, menus, and modal dialogs.

csharp
public sealed record ZStackWidget : Hex1bWidget, IEquatable<Hex1bWidget>, IFloatWidgetContainer, IEquatable<ZStackWidget>

Inheritance ​

Object → Hex1bWidget → ZStackWidget

Implements ​

Constructors ​

ZStackWidget(IReadOnlyList<Hex1bWidget>) ​

A container that stacks children on the Z-axis (depth). All children occupy the same space, with later children rendering on top of earlier ones. This is useful for overlays, floating panels, menus, and modal dialogs.

Parameters:

csharp
public ZStackWidget(IReadOnlyList<Hex1bWidget> Children)

Properties ​

Children ​

The child widgets to stack. First child is at the bottom, last is on top.

Returns: IReadOnlyList<Hex1bWidget>

csharp
public IReadOnlyList<Hex1bWidget> Children { get; init; }

Methods ​

ClipTo(Hex1bWidget) ​

Clips content to a specific widget's bounds.

Parameters:

  • widget (Hex1bWidget): The widget whose bounds define the clip region.

Returns: ZStackWidget

csharp
public ZStackWidget ClipTo(Hex1bWidget widget)

ClipToParent() ​

Clips content to the parent's bounds. This is the default behavior.

Returns: ZStackWidget

csharp
public ZStackWidget ClipToParent()

ClipToScreen() ​

Allows content to render to the full screen without clipping. Useful for popups that should escape their container bounds.

Returns: ZStackWidget

csharp
public ZStackWidget ClipToScreen()

Fields ​

FocusNextAction ​

Returns: ActionId

csharp
public static readonly ActionId FocusNextAction

FocusPreviousAction ​

Returns: ActionId

csharp
public static readonly ActionId FocusPreviousAction

Released under the MIT License.