monomer-1.0.0.1: 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.

Synopsis

Configuration

data GridCfg Source #

Configuration options for grid:

Instances

Instances details
Semigroup GridCfg Source # 
Instance details

Defined in Monomer.Widgets.Containers.Grid

Monoid GridCfg Source # 
Instance details

Defined in Monomer.Widgets.Containers.Grid

Default GridCfg Source # 
Instance details

Defined in Monomer.Widgets.Containers.Grid

Methods

def :: GridCfg #

CmbSizeReqUpdater GridCfg Source # 
Instance details

Defined in Monomer.Widgets.Containers.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.