vty-ui-0.4: A user interface composition library for Vty

Graphics.Vty.Widgets.Base

Description

A collection of primitive user interface widgets for composing and laying out Graphics.Vty user interfaces. This module provides basic static and box layout widgets.

Synopsis

Documentation

(<++>) :: Widget -> Widget -> WidgetSource

An alias for hBox intended as sugar to chain widgets horizontally.

(<-->) :: Widget -> Widget -> WidgetSource

An alias for vBox intended as sugar to chain widgets vertically.

hBox :: Widget -> Widget -> WidgetSource

Create a horizontal box layout widget containing two widgets side by side. Space consumed by the box will depend on its contents and the available space.

vBox :: Widget -> Widget -> WidgetSource

Create a vertical box layout widget containing two widgets. Space consumed by the box will depend on its contents and the available space.

hFill :: Attr -> Char -> Int -> WidgetSource

A horizontal fill widget. Fills the available horizontal space, one row high, using the specified character and attribute.

vFill :: Attr -> Char -> WidgetSource

A vertical fill widget. Fills all available space with the specified character and attribute.

hLimit :: Int -> Widget -> WidgetSource

Impose a maximum horizontal size, in columns, on a Widget.

vLimit :: Int -> Widget -> WidgetSource

Impose a maximum vertical size, in rows, on a Widget.