| Portability | portable |
|---|---|
| Stability | experimental |
| Maintainer | byorgey@gmail.com |
| Safe Haskell | None |
Graphics.Rendering.Diagrams.Layouts
Description
Layout definitions for Graphics.Rendering.Diagrams, an embedded domain-specific language (EDSL) for creating simple diagrams.
- (##) :: Diagram -> Diagram -> Diagram
- union :: [Diagram] -> Diagram
- unionA :: HAlignment -> VAlignment -> [Diagram] -> Diagram
- (<>) :: Diagram -> Diagram -> Diagram
- (//) :: Diagram -> Diagram -> Diagram
- hcat :: [Diagram] -> Diagram
- vcat :: [Diagram] -> Diagram
- hcatA :: VAlignment -> [Diagram] -> Diagram
- vcatA :: HAlignment -> [Diagram] -> Diagram
- hsep :: Double -> [Diagram] -> Diagram
- vsep :: Double -> [Diagram] -> Diagram
- hsepA :: Double -> VAlignment -> [Diagram] -> Diagram
- vsepA :: Double -> HAlignment -> [Diagram] -> Diagram
- hdistrib :: Double -> HAlignment -> [Diagram] -> Diagram
- vdistrib :: Double -> VAlignment -> [Diagram] -> Diagram
- hdistribA :: Double -> HAlignment -> VAlignment -> [Diagram] -> Diagram
- vdistribA :: Double -> VAlignment -> HAlignment -> [Diagram] -> Diagram
- type VAlignment = Alignment
- top :: VAlignment
- vcenter :: VAlignment
- bottom :: VAlignment
- type HAlignment = Alignment
- left :: HAlignment
- hcenter :: HAlignment
- right :: HAlignment
Union
unionA :: HAlignment -> VAlignment -> [Diagram] -> DiagramSource
Create a Diagram as a union of subdiagrams superimposed on one
another, aligned vertically and/or horizontally.
Lists
(<>) :: Diagram -> Diagram -> DiagramSource
d1 d2 is a Diagram with d1 to the left of d2, aligned
along their top edges.
(//) :: Diagram -> Diagram -> DiagramSource
d1 d2 is a Diagram with d1 above d2, aligned
along their left edges.
hcat :: [Diagram] -> DiagramSource
Lay out a list of Diagrams horizontally from left to right,
aligned along their top edges.
vcat :: [Diagram] -> DiagramSource
Lay out a list of Diagrams vertically from top to bottom,
aligned along their left edges.
hcatA :: VAlignment -> [Diagram] -> DiagramSource
vcatA :: HAlignment -> [Diagram] -> DiagramSource
Lay out a list of Diagrams horizontally, aligned along their
top edges, with a given amount of separation in between each pair.
Lay out a list of Diagrams vertically, aligned along their
left edges, with a given amount of separation in between each pair.
Arguments
| :: Double | amount of separation between each pair of diagrams |
| -> VAlignment | |
| -> [Diagram] | |
| -> Diagram |
Arguments
| :: Double | amount of separation between each pair of diagrams |
| -> HAlignment | |
| -> [Diagram] | |
| -> Diagram |
Arguments
| :: Double | How far from one diagram to the next? |
| -> HAlignment | Distribute according to which parts of
the diagrams ( |
| -> [Diagram] | |
| -> Diagram |
Distribute a list of Diagrams horizontally according to a
regular spacing, aligned along their top edges.
Arguments
| :: Double | How far from one diagram to the next? |
| -> VAlignment | Distribute according to which parts of
the diagrams ( |
| -> [Diagram] | |
| -> Diagram |
Distribute a list of Diagrams vertically according to a regular
spacing, aligned along their left edges.
Arguments
| :: Double | How far from one diagram to the next? |
| -> HAlignment | Distribute according to which parts of
the diagrams ( |
| -> VAlignment | |
| -> [Diagram] | |
| -> Diagram |
Distribute a list of Diagrams horizontally according to a
regular spacing, with the given alignment.
Arguments
| :: Double | How far from one diagram to the next? |
| -> VAlignment | Distribute according to which parts of
the diagrams ( |
| -> HAlignment | |
| -> [Diagram] | |
| -> Diagram |
Distribute a list of Diagrams vertically according to a
regular spacing, with the given alignment.
type VAlignment = AlignmentSource
Vertical alignment.
type HAlignment = AlignmentSource
Horizontal alignment.