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

Graphics.Vty.Widgets.Padding

Description

This module provides a ''padding'' mechanism for adding padding to a widget on one or more sides.

Synopsis

Documentation

data Padded Source

Instances

data Padding Source

The type of padding on widgets.

class Paddable a whereSource

The class of types to which we can add padding.

Methods

pad :: a -> Padding -> aSource

(+++) :: Monoid a => a -> a -> aSource

padded :: (MonadIO m, Show a) => Widget a -> Padding -> m (Widget Padded)Source

Create a Padded wrapper to add padding.

withPadding :: (MonadIO m, Show a) => Padding -> Widget a -> m (Widget Padded)Source

Monadic combinator to construct a Padded wrapper.

padNone :: PaddingSource

Padding constructor with no padding.

padLeft :: Int -> PaddingSource

Padding constructor with left padding in columns.

padRight :: Int -> PaddingSource

Padding constructor with right padding in columns.

padTop :: Int -> PaddingSource

Padding constructor with top padding in rows.

padBottom :: Int -> PaddingSource

Padding constructor with bottom padding in rows.

padLeftRight :: Int -> PaddingSource

Padding constructor with padding on left and right in columns.

padTopBottom :: Int -> PaddingSource

Padding constructor with padding on top and bottom in rows.

padAll :: Int -> PaddingSource

Padding constructor with padding on all sides in rows and columns.