Safe Haskell | Safe-Infered |
---|
- on :: Color -> Color -> Attr
- fgColor :: Color -> Attr
- bgColor :: Color -> Attr
- style :: Style -> Attr
- mergeAttr :: Attr -> Attr -> Attr
- mergeAttrs :: [Attr] -> Attr
- withWidth :: DisplayRegion -> Word -> DisplayRegion
- withHeight :: DisplayRegion -> Word -> DisplayRegion
- plusWidth :: DisplayRegion -> Word -> DisplayRegion
- plusHeight :: DisplayRegion -> Word -> DisplayRegion
- remove :: Int -> [a] -> [a]
- inject :: Int -> a -> [a] -> [a]
- repl :: Int -> a -> [a] -> [a]
Documentation
on :: Color -> Color -> AttrSource
Infix attribute constructor. Use: foregroundColor on
backgroundColor.
fgColor :: Color -> AttrSource
Foreground-only attribute constructor. Background color and style are defaulted.
bgColor :: Color -> AttrSource
Background-only attribute constructor. Foreground color and style are defaulted.
mergeAttr :: Attr -> Attr -> AttrSource
Merge two attributes. Leftmost attribute takes precedence where it specifies any of the foreground color, background color, or style. Note that the style precedence is total: all bits of the style mask will take precedence if any are set.
mergeAttrs :: [Attr] -> AttrSource
List fold version of mergeAttr
.
withWidth :: DisplayRegion -> Word -> DisplayRegionSource
Modify the width component of a DisplayRegion
.
withHeight :: DisplayRegion -> Word -> DisplayRegionSource
Modify the height component of a DisplayRegion
.
plusWidth :: DisplayRegion -> Word -> DisplayRegionSource
Modify the width component of a DisplayRegion
.
plusHeight :: DisplayRegion -> Word -> DisplayRegionSource
Modify the height component of a DisplayRegion
.