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

Safe HaskellSafe-Infered

Graphics.Vty.Widgets.Centering

Description

This module provides widgets to center other widgets horizontally and vertically. These centering widgets relay focus and key events to their children.

Synopsis

Documentation

data HCentered a Source

Instances

data VCentered a Source

Instances

hCentered :: Show a => Widget a -> IO (Widget (HCentered a))Source

Wrap another widget to center it horizontally.

vCentered :: Show a => Widget a -> IO (Widget (VCentered a))Source

Wrap another widget to center it vertically.

centered :: Show a => Widget a -> IO (Widget (VCentered (HCentered a)))Source

Wrap another widget to center it both vertically and horizontally.