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.
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:
Children(IReadOnlyList<Hex1bWidget>): The child widgets to stack. First child is at the bottom, last is on top.
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>
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
public ZStackWidget ClipTo(Hex1bWidget widget)ClipToParent()
Clips content to the parent's bounds. This is the default behavior.
Returns: ZStackWidget
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
public ZStackWidget ClipToScreen()Fields
FocusNextAction
Returns: ActionId
public static readonly ActionId FocusNextActionFocusPreviousAction
Returns: ActionId
public static readonly ActionId FocusPreviousAction