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.
- data VFixed a
- data HFixed a
- hFixed :: Show a => Int -> Widget a -> IO (Widget (HFixed a))
- vFixed :: Show a => Int -> Widget a -> IO (Widget (VFixed a))
- boxFixed :: Show a => Int -> Int -> Widget a -> IO (Widget (VFixed (HFixed a)))
- setVFixed :: Widget (VFixed a) -> Int -> IO ()
- setHFixed :: Widget (HFixed a) -> Int -> IO ()
- addToVFixed :: Widget (VFixed a) -> Int -> IO ()
- addToHFixed :: Widget (HFixed a) -> Int -> IO ()
- getVFixedSize :: Widget (VFixed a) -> IO Int
- getHFixedSize :: Widget (HFixed a) -> IO Int
Documentation
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
.
:: 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.
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.