A layered widget that renders its children back-to-front over the same region. More...
Public Member Functions | |
| void | Render (IRenderContext ctx) |
| Renders each layer over the same region in declaration order. | |
| ZStack () | |
| Object-initializer constructor; all properties default. | |
| ZStack (IReadOnlyList< IWidget > layers) | |
| Positional constructor for inline usage. | |
Properties | |
| SizeConstraint | Height = SizeConstraint.Flex(1) [get] |
| Height constraint used by the layout engine. | |
| IReadOnlyList< IWidget > | Layers = [] [get] |
| Layers in back-to-front order. The last layer renders on top. | |
| Style | Style = Style.Default [get] |
| Visual style for the stack. Not rendered directly — ZStack has no visual output of its own. | |
| SizeConstraint | Width = SizeConstraint.Flex(1) [get] |
| Width constraint used by the layout engine. | |
A layered widget that renders its children back-to-front over the same region.
Each layer is given the full allocated region; later layers paint over earlier ones.
Typical usage — base layout + optional overlay:
Core.FocusManager traverses all layers for focus collection, so interactive widgets in any layer participate in Tab-order traversal.
| ConsoleForge.Widgets.ZStack.ZStack | ( | IReadOnlyList< IWidget > | layers | ) |
Positional constructor for inline usage.
| layers | Layers in back-to-front render order. |
| void ConsoleForge.Widgets.ZStack.Render | ( | IRenderContext | ctx | ) |
Renders each layer over the same region in declaration order.
Later layers paint over earlier ones, producing a stacked visual effect.
Implements ConsoleForge.Layout.IWidget.