wumpus-drawing-0.4.0: High-level drawing objects built on Wumpus-Basic.

PortabilityGHC
Stabilityunstable
Maintainerstephen.tetley@gmail.com

Wumpus.Drawing.Text.Base.DocTextZero

Description

Flexible text type, composable with pretty-print style operators.

Direction zero (left-to-right) only.

Synopsis

Documentation

data Doc u Source

Space is the width of a space in the current font - it is filled in during interpretation.

type TextFrame u = RectAddress -> LocImage u (BoundingBox u)Source

TextFrame is the result Graphic made from rendering multiple lines of DocText.

leftAlign :: [Doc u] -> Doc uSource

float :: (RealFloat a, InterpretUnit u) => a -> Doc uSource

Specialized version of ffloat - the answer is always rendered at "full precision".

ffloat :: (RealFloat a, InterpretUnit u) => Maybe Int -> a -> Doc uSource

This is equivalent to showFFloat in the Numeric module.

Like showFFloat, the answer is rendered to supplied precision. Nothing indicated full precision.

(<>) :: Doc u -> Doc u -> Doc uSource

Concatenate two DocTexts separated with no spacing.

(infixr 6)

(<+>) :: Doc u -> Doc u -> Doc uSource

Concatenate two Docs separated with a space.

(infixr 6)

vcatl :: Doc u -> Doc u -> Doc uSource

Vertically concatenate - aligning left.

(infixr 5)

vcatc :: Doc u -> Doc u -> Doc uSource

Vertically concatenate - aligning center.

(infixr 5)

vcatr :: Doc u -> Doc u -> Doc uSource

Vertically concatenate - aligning right.

(infixr 5)

lfill :: u -> Doc u -> Doc uSource

rfill :: u -> Doc u -> Doc uSource

centerfill :: u -> Doc u -> Doc uSource

textSize :: Int -> Doc u -> Doc uSource

bold :: Doc u -> Doc uSource

italic :: Doc u -> Doc uSource

highlight :: (Fractional u, InterpretUnit u) => RGBi -> Doc u -> Doc uSource

Background fill.