| Copyright | (c) Tim Docker 2014 |
|---|---|
| License | BSD-style (see chart/COPYRIGHT) |
| Safe Haskell | None |
| Language | Haskell98 |
Graphics.Rendering.Chart.Backend.Types
Description
Synopsis
- data LineCap
- data LineJoin
- data LineStyle = LineStyle {}
- data FontSlant
- data FontWeight
- data FontStyle = FontStyle {}
- data HTextAnchor
- data VTextAnchor
- data TextSize = TextSize {}
- newtype FillStyle = FillStyleSolid {}
- type AlignmentFn = Point -> Point
- data AlignmentFns = AlignmentFns {}
- bitmapAlignmentFns :: AlignmentFns
- vectorAlignmentFns :: AlignmentFns
- line_width :: Lens' LineStyle Double
- line_join :: Lens' LineStyle LineJoin
- line_dashes :: Lens' LineStyle [Double]
- line_color :: Lens' LineStyle (AlphaColour Double)
- line_cap :: Lens' LineStyle LineCap
- font_weight :: Lens' FontStyle FontWeight
- font_slant :: Lens' FontStyle FontSlant
- font_size :: Lens' FontStyle Double
- font_name :: Lens' FontStyle String
- font_color :: Lens' FontStyle (AlphaColour Double)
- fill_color :: Iso' FillStyle (AlphaColour Double)
Documentation
The different supported line ends.
Constructors
| LineCapButt | Just cut the line straight. |
| LineCapRound | Make a rounded line end. |
| LineCapSquare | Make a square that ends the line. |
The different supported ways to join line ends.
Constructors
| LineJoinMiter | Extends the outline until they meet each other. |
| LineJoinRound | Draw a circle fragment to connet line end. |
| LineJoinBevel | Like miter, but cuts it off if a certain threshold is exceeded. |
Data type for the style of a line.
Constructors
| LineStyle | |
Fields
| |
The possible slants of a font.
Constructors
| FontSlantNormal | Normal font style without slant. |
| FontSlantItalic | With a slight slant. |
| FontSlantOblique | With a greater slant. |
Instances
| Eq FontSlant Source # | |
| Ord FontSlant Source # | |
Defined in Graphics.Rendering.Chart.Backend.Types | |
| Show FontSlant Source # | |
| Default FontSlant Source # | The default font slant. |
Defined in Graphics.Rendering.Chart.Backend.Types | |
data FontWeight Source #
The possible weights of a font.
Constructors
| FontWeightNormal | Normal font style without weight. |
| FontWeightBold | Bold font. |
Instances
| Eq FontWeight Source # | |
Defined in Graphics.Rendering.Chart.Backend.Types | |
| Ord FontWeight Source # | |
Defined in Graphics.Rendering.Chart.Backend.Types Methods compare :: FontWeight -> FontWeight -> Ordering # (<) :: FontWeight -> FontWeight -> Bool # (<=) :: FontWeight -> FontWeight -> Bool # (>) :: FontWeight -> FontWeight -> Bool # (>=) :: FontWeight -> FontWeight -> Bool # max :: FontWeight -> FontWeight -> FontWeight # min :: FontWeight -> FontWeight -> FontWeight # | |
| Show FontWeight Source # | |
Defined in Graphics.Rendering.Chart.Backend.Types Methods showsPrec :: Int -> FontWeight -> ShowS # show :: FontWeight -> String # showList :: [FontWeight] -> ShowS # | |
| Default FontWeight Source # | The default font weight. |
Defined in Graphics.Rendering.Chart.Backend.Types Methods def :: FontWeight # | |
Data type for a font.
Constructors
| FontStyle | |
Fields
| |
data HTextAnchor Source #
Possible horizontal anchor points for text.
Constructors
| HTA_Left | |
| HTA_Centre | |
| HTA_Right |
Instances
| Eq HTextAnchor Source # | |
Defined in Graphics.Rendering.Chart.Backend.Types | |
| Ord HTextAnchor Source # | |
Defined in Graphics.Rendering.Chart.Backend.Types Methods compare :: HTextAnchor -> HTextAnchor -> Ordering # (<) :: HTextAnchor -> HTextAnchor -> Bool # (<=) :: HTextAnchor -> HTextAnchor -> Bool # (>) :: HTextAnchor -> HTextAnchor -> Bool # (>=) :: HTextAnchor -> HTextAnchor -> Bool # max :: HTextAnchor -> HTextAnchor -> HTextAnchor # min :: HTextAnchor -> HTextAnchor -> HTextAnchor # | |
| Show HTextAnchor Source # | |
Defined in Graphics.Rendering.Chart.Backend.Types Methods showsPrec :: Int -> HTextAnchor -> ShowS # show :: HTextAnchor -> String # showList :: [HTextAnchor] -> ShowS # | |
data VTextAnchor Source #
Possible vertical anchor points for text.
Constructors
| VTA_Top | |
| VTA_Centre | |
| VTA_Bottom | |
| VTA_BaseLine |
Instances
| Eq VTextAnchor Source # | |
Defined in Graphics.Rendering.Chart.Backend.Types | |
| Ord VTextAnchor Source # | |
Defined in Graphics.Rendering.Chart.Backend.Types Methods compare :: VTextAnchor -> VTextAnchor -> Ordering # (<) :: VTextAnchor -> VTextAnchor -> Bool # (<=) :: VTextAnchor -> VTextAnchor -> Bool # (>) :: VTextAnchor -> VTextAnchor -> Bool # (>=) :: VTextAnchor -> VTextAnchor -> Bool # max :: VTextAnchor -> VTextAnchor -> VTextAnchor # min :: VTextAnchor -> VTextAnchor -> VTextAnchor # | |
| Show VTextAnchor Source # | |
Defined in Graphics.Rendering.Chart.Backend.Types Methods showsPrec :: Int -> VTextAnchor -> ShowS # show :: VTextAnchor -> String # showList :: [VTextAnchor] -> ShowS # | |
Text metrics returned by textSize.
Constructors
| TextSize | |
Fields
| |
Abstract data type for a fill style.
The contained action sets the required fill style in the rendering state.
Constructors
| FillStyleSolid | |
Fields | |
type AlignmentFn = Point -> Point Source #
A function to align points for a certain rendering device.
data AlignmentFns Source #
Holds the point and coordinate alignment function.
Constructors
| AlignmentFns | |
Fields
| |
bitmapAlignmentFns :: AlignmentFns Source #
Alignment to render on raster based graphics.
vectorAlignmentFns :: AlignmentFns Source #
Alignment to render on vector based graphics.