Copyright | (c) 2018-2019 Kowainik |
---|---|
License | MPL-2.0 |
Maintainer | Kowainik <xrom.xkov@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Summoner.Tui.Widget
Description
This module contains useful helpers to work with Widget
s
Synopsis
- label :: String -> Widget n -> Widget n
- borderLabel :: String -> Widget n -> Widget n
- borderName :: String -> Widget n
- hArrange :: [Widget n] -> Widget n
- listInBorder :: String -> Int -> Int -> [Text] -> Widget n
Documentation
borderLabel :: String -> Widget n -> Widget n Source #
Like borderWithLabel
but receives String
. Also adds padding and fancy
unicode characters for border label.
Example:
┌─────╼ Some label ╾───┐ │ │ │ │ │ │ │ │ │ │ └──────────────────────┘
borderName :: String -> Widget n Source #
Border label pretty text Widget
hArrange :: [Widget n] -> Widget n Source #
Arranges Widget
s horizontally.
Example:
[x] Cabal [ ] Stack
Arguments
:: String | Border label |
-> Int | Horizontal limit |
-> Int | Additional vertical limit |
-> [Text] | List of text entries |
-> Widget n |
Shows list of elements inside borderWithLabel
.
Example:
┌────────────Some label──────────────────┐ │ │ │ > 8.2.2 │ │ > 8.4.3 │ │ > 8.4.4 │ │ │ └────────────────────────────────────────┘