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.Grid

Description

Layout container which distributes size equally along the main axis. For hgrid it requests max width * elements as its width, and the max height as its height. The reverse happens for vgrid.

Configs:

  • sizeReqUpdater: allows modifying the SizeReq generated by the grid.
Synopsis

Documentation

hgrid :: Traversable t => t (WidgetNode s e) -> WidgetNode s e Source #

Creates a grid of items with the same width.

hgrid_ :: Traversable t => [GridCfg] -> t (WidgetNode s e) -> WidgetNode s e Source #

Creates a grid of items with the same width. Accepts config.

vgrid :: Traversable t => t (WidgetNode s e) -> WidgetNode s e Source #

Creates a grid of items with the same height.

vgrid_ :: Traversable t => [GridCfg] -> t (WidgetNode s e) -> WidgetNode s e Source #

Creates a grid of items with the same height. Accepts config.