vty-ui-1.8: An interactive terminal user interface library for Vty

Safe HaskellNone
LanguageHaskell98

Graphics.Vty.Widgets.Util

Synopsis

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.

style :: Style -> Attr Source

Style-only attribute constructor. Colors 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.

remove :: Int -> [a] -> [a] Source

inject :: Int -> a -> [a] -> [a] Source

repl :: Int -> a -> [a] -> [a] Source

newtype Phys Source

Constructors

Phys Int