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

Safe HaskellNone

Graphics.Vty.Widgets.Util

Synopsis

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.

style :: Style -> AttrSource

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

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

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

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

newtype Phys Source

Constructors

Phys Int