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 |
Helper functions for creating style configurations, and corresponding instances.
Synopsis
- module Monomer.Core.StyleTypes
- module Monomer.Core.ThemeTypes
- paddingH :: (Semigroup a, CmbPaddingL a, CmbPaddingR a) => Double -> a
- paddingV :: (Semigroup a, CmbPaddingT a, CmbPaddingB a) => Double -> a
- fixedSize :: Double -> SizeReq
- flexSize :: Double -> Double -> SizeReq
- expandSize :: Double -> Double -> SizeReq
- minSize :: Double -> Double -> SizeReq
- maxSize :: Double -> Double -> SizeReq
- rangeSize :: Double -> Double -> Double -> SizeReq
Documentation
module Monomer.Core.StyleTypes
module Monomer.Core.ThemeTypes
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.
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.