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.Core.Style

Description

Helper functions for creating style configurations, and corresponding instances.

Synopsis

Documentation

paddingH :: (Semigroup a, CmbPaddingL a, CmbPaddingR a) => Double -> a Source #

Creates an equally sized padding left and right.

paddingV :: (Semigroup a, CmbPaddingT a, CmbPaddingB a) => Double -> a Source #

Creates an equally sized padding top and bottom.

fixedSize :: Double -> SizeReq Source #

Creates a SizeReq with fixed size.

flexSize :: Double -> Double -> SizeReq Source #

Creates a SizeReq with flex size.

expandSize :: Double -> Double -> SizeReq Source #

Creates a SizeReq with expand size.

minSize :: Double -> Double -> SizeReq Source #

Creates a SizeReq with equal fixed and extra size, using the given factor.

maxSize :: Double -> Double -> SizeReq Source #

Creates a SizeReq with flex size, using the given factor.

rangeSize :: Double -> Double -> Double -> SizeReq Source #

Creates a SizeReq with fixed and flex size, using the given factor.

Orphan instances

CmbRadiusBR Radius Source # 
Instance details

CmbRadiusBR StyleState Source # 
Instance details

CmbRadiusBL Radius Source # 
Instance details

CmbRadiusBL StyleState Source # 
Instance details

CmbRadiusTR Radius Source # 
Instance details

CmbRadiusTR StyleState Source # 
Instance details

CmbRadiusTL Radius Source # 
Instance details

CmbRadiusTL StyleState Source # 
Instance details

CmbRadius Radius Source # 
Instance details

Methods

radius :: Double -> Radius Source #

CmbRadius StyleState Source # 
Instance details

CmbBorderB Border Source # 
Instance details

Methods

borderB :: Double -> Color -> Border Source #

CmbBorderB StyleState Source # 
Instance details

CmbBorderT Border Source # 
Instance details

Methods

borderT :: Double -> Color -> Border Source #

CmbBorderT StyleState Source # 
Instance details

CmbBorderR Border Source # 
Instance details

Methods

borderR :: Double -> Color -> Border Source #

CmbBorderR StyleState Source # 
Instance details

CmbBorderL Border Source # 
Instance details

Methods

borderL :: Double -> Color -> Border Source #

CmbBorderL StyleState Source # 
Instance details

CmbBorder Border Source # 
Instance details

Methods

border :: Double -> Color -> Border Source #

CmbBorder StyleState Source # 
Instance details

CmbPaddingB Padding Source # 
Instance details

CmbPaddingB StyleState Source # 
Instance details

CmbPaddingT Padding Source # 
Instance details

CmbPaddingT StyleState Source # 
Instance details

CmbPaddingR Padding Source # 
Instance details

CmbPaddingR StyleState Source # 
Instance details

CmbPaddingL Padding Source # 
Instance details

CmbPaddingL StyleState Source # 
Instance details

CmbPadding Padding Source # 
Instance details

CmbPadding StyleState Source # 
Instance details

CmbCursorIcon StyleState Source # 
Instance details

CmbHlColor StyleState Source # 
Instance details

CmbSndColor StyleState Source # 
Instance details

CmbFgColor StyleState Source # 
Instance details

CmbBgColor StyleState Source # 
Instance details

CmbSizeReqH StyleState Source # 
Instance details

CmbSizeReqW StyleState Source # 
Instance details

CmbRangeHeight StyleState Source # 
Instance details

CmbRangeHeight SizeReq Source # 
Instance details

CmbRangeWidth StyleState Source # 
Instance details

CmbRangeWidth SizeReq Source # 
Instance details

CmbExpandHeight StyleState Source # 
Instance details

CmbExpandHeight SizeReq Source # 
Instance details

CmbExpandWidth StyleState Source # 
Instance details

CmbExpandWidth SizeReq Source # 
Instance details

CmbMaxHeight StyleState Source # 
Instance details

CmbMaxHeight SizeReq Source # 
Instance details

CmbMaxWidth StyleState Source # 
Instance details

CmbMaxWidth SizeReq Source # 
Instance details

CmbMinHeight StyleState Source # 
Instance details

CmbMinHeight SizeReq Source # 
Instance details

CmbMinWidth StyleState Source # 
Instance details

CmbMinWidth SizeReq Source # 
Instance details

CmbFlexHeight StyleState Source # 
Instance details

CmbFlexHeight SizeReq Source # 
Instance details

CmbFlexWidth StyleState Source # 
Instance details

CmbFlexWidth SizeReq Source # 
Instance details

CmbHeight StyleState Source # 
Instance details

CmbHeight SizeReq Source # 
Instance details

CmbWidth StyleState Source # 
Instance details

CmbWidth SizeReq Source # 
Instance details

Methods

width :: Double -> SizeReq Source #

CmbTextThroughline TextStyle Source # 
Instance details

CmbTextThroughline StyleState Source # 
Instance details

CmbTextOverline TextStyle Source # 
Instance details

CmbTextOverline StyleState Source # 
Instance details

CmbTextUnderline TextStyle Source # 
Instance details

CmbTextUnderline StyleState Source # 
Instance details

CmbTextBaseline TextStyle Source # 
Instance details

CmbTextBaseline StyleState Source # 
Instance details

CmbTextBottom TextStyle Source # 
Instance details

CmbTextBottom StyleState Source # 
Instance details

CmbTextLowerX TextStyle Source # 
Instance details

CmbTextLowerX StyleState Source # 
Instance details

CmbTextAscender TextStyle Source # 
Instance details

CmbTextAscender StyleState Source # 
Instance details

CmbTextMiddle TextStyle Source # 
Instance details

CmbTextMiddle StyleState Source # 
Instance details

CmbTextTop TextStyle Source # 
Instance details

CmbTextTop StyleState Source # 
Instance details

CmbTextRight TextStyle Source # 
Instance details

CmbTextRight StyleState Source # 
Instance details

CmbTextCenter TextStyle Source # 
Instance details

CmbTextCenter StyleState Source # 
Instance details

CmbTextLeft TextStyle Source # 
Instance details

CmbTextLeft StyleState Source # 
Instance details

CmbTextColor TextStyle Source # 
Instance details

CmbTextColor StyleState Source # 
Instance details

CmbTextSpaceV TextStyle Source # 
Instance details

CmbTextSpaceV StyleState Source # 
Instance details

CmbTextSpaceH TextStyle Source # 
Instance details

CmbTextSpaceH StyleState Source # 
Instance details

CmbTextSize TextStyle Source # 
Instance details

CmbTextSize StyleState Source # 
Instance details

CmbTextFont TextStyle Source # 
Instance details

CmbTextFont StyleState Source # 
Instance details