Safe Haskell | None |
---|---|
Language | Haskell98 |
This module provides wrapper widgets for enforcing an upper bound on the size of child widgets in one or more dimensions in rows or columns, respectively. This differs from the ''fixed'' widgets in the Fixed module in that Fixed widgets enforce a fixed size regardless of how big or small the child widget is, and add padding to guarantee that the fixed size is honored.
- data VLimit a
- data HLimit a
- hLimit :: Show a => Int -> Widget a -> IO (Widget (HLimit a))
- vLimit :: Show a => Int -> Widget a -> IO (Widget (VLimit a))
- boxLimit :: Show a => Int -> Int -> Widget a -> IO (Widget (VLimit (HLimit a)))
- setVLimit :: Widget (VLimit a) -> Int -> IO ()
- setHLimit :: Widget (HLimit a) -> Int -> IO ()
- addToVLimit :: Widget (VLimit a) -> Int -> IO ()
- addToHLimit :: Widget (HLimit a) -> Int -> IO ()
- getVLimit :: Widget (VLimit a) -> IO Int
- getHLimit :: Widget (HLimit a) -> IO Int
Documentation
hLimit :: Show a => Int -> Widget a -> IO (Widget (HLimit a)) Source
Impose a maximum horizontal size, in columns, on a Widget
.
vLimit :: Show a => Int -> Widget a -> IO (Widget (VLimit a)) Source
Impose a maximum vertical size, in columns, on a Widget
.
:: Show a | |
=> Int | Maximum width in columns |
-> Int | Maximum height in rows |
-> Widget a | |
-> IO (Widget (VLimit (HLimit a))) |
Impose a horizontal and vertical upper bound on the size of a widget.
setVLimit :: Widget (VLimit a) -> Int -> IO () Source
Set the vertical limit of a child widget's size.
setHLimit :: Widget (HLimit a) -> Int -> IO () Source
Set the horizontal limit of a child widget's size.
addToVLimit :: Widget (VLimit a) -> Int -> IO () Source
Add to the vertical limit of a child widget's size.