| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Graphics.Rendering.MiniTypeset.Common
Description
Common data types and functions
Synopsis
- data BasicStyle
- = Regular
- | Bold
- | Italic
- | BoldItalic
- newtype Height = Height Int
- data Col = Col !Double !Double !Double
- colToTriple :: Col -> (Double, Double, Double)
- tripleToCol :: (Double, Double, Double) -> Col
- black :: Col
- white :: Col
- red :: Col
- green :: Col
- blue :: Col
- yellow :: Col
- cyan :: Col
- magenta :: Col
- data HAlign
- data VAlign
- data Pos = Pos !Double !Double
- posToPair :: Pos -> (Double, Double)
- class Translate a where
- data Bracket
- = Paren
- | Square
- | Brace
- | Angle
- | Ceil
- | Floor
- | Top
- | Bottom
- | AngleQuote
- | FrenchQuote
- bracketChars :: Bracket -> (Char, Char)
- mapAccumM :: Monad m => (a -> b -> m (a, c)) -> a -> [b] -> m (a, [c])
Font-related things
data BasicStyle Source #
Basic variations in a typeface (font family)
Constructors
| Regular | |
| Bold | |
| Italic | |
| BoldItalic |
Instances
| Eq BasicStyle Source # | |
Defined in Graphics.Rendering.MiniTypeset.Common | |
| Ord BasicStyle Source # | |
Defined in Graphics.Rendering.MiniTypeset.Common Methods compare :: BasicStyle -> BasicStyle -> Ordering # (<) :: BasicStyle -> BasicStyle -> Bool # (<=) :: BasicStyle -> BasicStyle -> Bool # (>) :: BasicStyle -> BasicStyle -> Bool # (>=) :: BasicStyle -> BasicStyle -> Bool # max :: BasicStyle -> BasicStyle -> BasicStyle # min :: BasicStyle -> BasicStyle -> BasicStyle # | |
| Show BasicStyle Source # | |
Defined in Graphics.Rendering.MiniTypeset.Common Methods showsPrec :: Int -> BasicStyle -> ShowS # show :: BasicStyle -> String # showList :: [BasicStyle] -> ShowS # | |
Font height in pixels
Colors
Alignment
Constructors
| AlignLeft | |
| AlignRight |
Constructors
| AlignBottom | |
| AlignTop |
Positions
A position. We use screen-space coordinates here (so the top-left corner of the screen is the origin, and the vertical coordinate increases downwards).
It is monomorphic so that GHC can optimize it better.
Brackets
Constructors
| Paren | |
| Square | |
| Brace | |
| Angle | |
| Ceil | |
| Floor | |
| Top | |
| Bottom | |
| AngleQuote | |
| FrenchQuote |