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 |
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.
Synopsis
- data GridCfg
- hgrid :: Traversable t => t (WidgetNode s e) -> WidgetNode s e
- hgrid_ :: Traversable t => [GridCfg] -> t (WidgetNode s e) -> WidgetNode s e
- vgrid :: Traversable t => t (WidgetNode s e) -> WidgetNode s e
- vgrid_ :: Traversable t => [GridCfg] -> t (WidgetNode s e) -> WidgetNode s e
Configuration
Configuration options for grid:
sizeReqUpdater
: allows modifying theSizeReq
generated by the grid.
Constructors
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.