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

Safe HaskellSafe-Infered

Graphics.Vty.Widgets.Fixed

Description

This module provides wrapper widgets for fixing the size of child widgets in one or more dimensions in rows or columns, respectively. This differs from the ''limit'' widgets in the Limits module in that Limits enforce an upper bound on size.

Synopsis

Documentation

data VFixed a Source

Instances

Show (VFixed a) 

data HFixed a Source

Instances

Show (HFixed a) 

hFixed :: Show a => Int -> Widget a -> IO (Widget (HFixed a))Source

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

vFixed :: Show a => Int -> Widget a -> IO (Widget (VFixed a))Source

Impose a fixed vertical size, in columns, on a Widget.

boxFixedSource

Arguments

:: Show a 
=> Int

Maximum width in columns

-> Int

Maximum height in rows

-> Widget a 
-> IO (Widget (VFixed (HFixed a))) 

Impose a maximum horizontal and vertical size on a widget.

setVFixed :: Widget (VFixed a) -> Int -> IO ()Source

Set the vertical fixed size of a child widget.

setHFixed :: Widget (HFixed a) -> Int -> IO ()Source

Set the horizontal fixed size of a child widget.

addToVFixed :: Widget (VFixed a) -> Int -> IO ()Source

Add to the vertical fixed size of a child widget.

addToHFixed :: Widget (HFixed a) -> Int -> IO ()Source

Add to the horizontal fixed size of a child widget.

getVFixedSize :: Widget (VFixed a) -> IO IntSource

Get the vertical fixed size of a child widget.

getHFixedSize :: Widget (HFixed a) -> IO IntSource

Get the horizontal fixed size of a child widget.