Chart-1.9.5: A library for generating 2D Charts and Plots
Copyright(c) Tim Docker 2014
LicenseBSD-style (see chart/COPYRIGHT)
Safe HaskellSafe-Inferred
LanguageHaskell98

Graphics.Rendering.Chart.Backend.Types

Description

 
Synopsis

Documentation

data LineCap Source #

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.

Instances

Instances details
Show LineCap Source # 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Eq LineCap Source # 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Methods

(==) :: LineCap -> LineCap -> Bool #

(/=) :: LineCap -> LineCap -> Bool #

Ord LineCap Source # 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

data LineJoin Source #

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 LineStyle Source #

Data type for the style of a line.

Constructors

LineStyle 

Fields

Instances

Instances details
Show LineStyle Source # 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Default LineStyle Source #

The default line style.

Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Methods

def :: LineStyle #

Eq LineStyle Source # 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

data FontSlant Source #

The possible slants of a font.

Constructors

FontSlantNormal

Normal font style without slant.

FontSlantItalic

With a slight slant.

FontSlantOblique

With a greater slant.

data FontWeight Source #

The possible weights of a font.

Constructors

FontWeightNormal

Normal font style without weight.

FontWeightBold

Bold font.

data FontStyle Source #

Data type for a font.

Constructors

FontStyle 

Fields

Instances

Instances details
Show FontStyle Source # 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Default FontStyle Source #

The default font style.

Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Methods

def :: FontStyle #

Eq FontStyle Source # 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

data TextSize Source #

Text metrics returned by textSize.

Constructors

TextSize 

Fields

Instances

Instances details
Show TextSize Source # 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Eq TextSize Source # 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

newtype FillStyle Source #

Abstract data type for a fill style.

The contained action sets the required fill style in the rendering state.

Instances

Instances details
Show FillStyle Source # 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Default FillStyle Source #

The default fill style.

Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Methods

def :: FillStyle #

Eq FillStyle Source # 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

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

  • afPointAlignFn :: AlignmentFn

    An adjustment applied immediately prior to points being displayed in device coordinates.

    When device coordinates correspond to pixels, a cleaner image is created if this transform rounds to the nearest pixel. With higher-resolution output, this transform can just be the identity function.

    This is usually used to align prior to stroking.

  • afCoordAlignFn :: AlignmentFn

    The adjustment applied immediately prior to coordinates being transformed.

    This is usually used to align prior to filling.

bitmapAlignmentFns :: AlignmentFns Source #

Alignment to render on raster based graphics.

vectorAlignmentFns :: AlignmentFns Source #

Alignment to render on vector based graphics.