monomer-1.0.0.0: A GUI library for writing native Haskell applications.
Copyright(c) 2018 Francisco Vallarino
LicenseBSD-3-Clause (see the LICENSE file)
Maintainerfjvallarino@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Monomer.Widgets.Containers.ZStack

Description

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 horizontal and vertical size from its child nodes.

Config:

  • onlyTopActive: whether the top visible node is the only node that may receive events.
Synopsis

Documentation

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.

onlyTopActive :: Bool -> ZStackCfg Source #

Whether the top visible node is the only node that may receive events. Defaults to True.