Safe Haskell | None |
---|---|
Language | Haskell98 |
- on :: Color -> Color -> Attr
- fgColor :: Color -> Attr
- bgColor :: Color -> Attr
- style :: Style -> Attr
- mergeAttr :: Attr -> Attr -> Attr
- mergeAttrs :: [Attr] -> Attr
- withWidth :: DisplayRegion -> Int -> DisplayRegion
- withHeight :: DisplayRegion -> Int -> DisplayRegion
- plusWidth :: DisplayRegion -> Int -> DisplayRegion
- plusHeight :: DisplayRegion -> Int -> DisplayRegion
- remove :: Int -> [a] -> [a]
- inject :: Int -> a -> [a] -> [a]
- repl :: Int -> a -> [a] -> [a]
- takeMaxText :: Phys -> Text -> Text
- takeMaxChars :: Phys -> [Char] -> [Char]
- chWidth :: Char -> Phys
- strWidth :: String -> Phys
- textWidth :: Text -> Phys
- regionWidth :: DisplayRegion -> Int
- regionHeight :: DisplayRegion -> Int
- newtype Phys = Phys Int
Documentation
on :: Color -> Color -> Attr Source
Infix attribute constructor. Use: foregroundColor on
backgroundColor.
fgColor :: Color -> Attr Source
Foreground-only attribute constructor. Background color and style are defaulted.
bgColor :: Color -> Attr Source
Background-only attribute constructor. Foreground color and style are defaulted.
mergeAttr :: Attr -> Attr -> Attr Source
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] -> Attr Source
List fold version of mergeAttr
.
withWidth :: DisplayRegion -> Int -> DisplayRegion Source
Modify the width component of a DisplayRegion
.
withHeight :: DisplayRegion -> Int -> DisplayRegion Source
Modify the height component of a DisplayRegion
.
plusWidth :: DisplayRegion -> Int -> DisplayRegion Source
Modify the width component of a DisplayRegion
.
plusHeight :: DisplayRegion -> Int -> DisplayRegion Source
Modify the height component of a DisplayRegion
.
takeMaxText :: Phys -> Text -> Text Source
takeMaxChars :: Phys -> [Char] -> [Char] Source
regionWidth :: DisplayRegion -> Int Source
regionHeight :: DisplayRegion -> Int Source