Copyright | (c) 2018 Francisco Vallarino |
---|---|
License | BSD-3-Clause (see the LICENSE file) |
Maintainer | fjvallarino@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Layered container, stacking children one on top of the other. Useful for handling widgets that need to be visible in certain contexts only (dialogs), or to overlay unrelated widgets (text on top of an image).
The order of the widgets is from bottom to top.
The container will request the largest combination of horizontal and vertical size requested by its child nodes.
Synopsis
- data ZStackCfg
- onlyTopActive :: Bool -> ZStackCfg
- zstack :: Traversable t => t (WidgetNode s e) -> WidgetNode s e
- zstack_ :: Traversable t => [ZStackCfg] -> t (WidgetNode s e) -> WidgetNode s e
Configuration
Configuration options for zstack:
onlyTopActive
: whether the top visible node is the only node that may receive events.
onlyTopActive :: Bool -> ZStackCfg Source #
Whether the top visible node is the only node that may receive events. Defaults to True.
Constructors
zstack :: Traversable t => t (WidgetNode s e) -> WidgetNode s e Source #
Creates a zstack container with the provided nodes.
zstack_ :: Traversable t => [ZStackCfg] -> t (WidgetNode s e) -> WidgetNode s e Source #
Creates a zstack container with the provided nodes. Accepts config.