Safe Haskell | None |
---|
- data Point = Point {}
- data Vector = Vector {}
- vscale :: Double -> Vector -> Vector
- pvadd :: Point -> Vector -> Point
- pvsub :: Point -> Vector -> Point
- psub :: Point -> Point -> Vector
- type PointMapFn = Point -> Point
- data Rect = Rect Point Point
- data RectEdge
- mkrect :: Point -> Point -> Point -> Point -> Rect
- vmap :: Range -> Range -> Double -> Double
- newtype CairoPointStyle = CairoPointStyle (Point -> Render ())
- newtype CairoLineStyle = CairoLineStyle (Render ())
- newtype CairoFillStyle = CairoFillStyle (Render ())
- newtype CairoFontStyle = CairoFontStyle (Render ())
- type Range = (Double, Double)
- type RectSize = (Double, Double)
- moveTo :: Point -> Render ()
- lineTo :: Point -> Render ()
- setClipRegion :: Point -> Point -> Render ()
- strokeLines :: [Point] -> Render ()
- rectPath :: Rect -> Render ()
- setFontStyle :: CairoFontStyle -> Render ()
- setLineStyle :: CairoLineStyle -> Render ()
- setFillStyle :: CairoFillStyle -> Render ()
- textSize :: String -> Render RectSize
- data HTextAnchor
- = HTA_Left
- | HTA_Centre
- | HTA_Right
- data VTextAnchor
- = VTA_Top
- | VTA_Centre
- | VTA_Bottom
- | VTA_BaseLine
- drawText :: HTextAnchor -> VTextAnchor -> Point -> String -> Render ()
- filledCircles :: Double -> Double -> Double -> Double -> CairoPointStyle
- hollowCircles :: Double -> Double -> Double -> Double -> Double -> CairoPointStyle
- hollowPolygon :: Double -> Double -> Int -> Bool -> Double -> Double -> Double -> CairoPointStyle
- filledPolygon :: Double -> Int -> Bool -> Double -> Double -> Double -> CairoPointStyle
- plusses :: Double -> Double -> Double -> Double -> Double -> CairoPointStyle
- exes :: Double -> Double -> Double -> Double -> Double -> CairoPointStyle
- stars :: Double -> Double -> Double -> Double -> Double -> CairoPointStyle
- solidLine :: Double -> Double -> Double -> Double -> CairoLineStyle
- dashedLine :: Double -> [Double] -> Double -> Double -> Double -> CairoLineStyle
- fontStyle :: String -> Double -> FontSlant -> FontWeight -> CairoFontStyle
- solidFillStyle :: Double -> Double -> Double -> CairoFillStyle
- defaultPointStyle :: CairoPointStyle
- defaultFontStyle :: CairoFontStyle
- isValidNumber :: RealFloat a => a -> Bool
Documentation
type PointMapFn = Point -> PointSource
a function mapping between points
mkrect :: Point -> Point -> Point -> Point -> RectSource
Create a rectangle based upon the coordinates of 4 points
newtype CairoPointStyle Source
Abstract data type for the style of a plotted point
The contained Cairo action draws a point in the desired style, at the supplied device coordinates.
CairoPointStyle (Point -> Render ()) |
newtype CairoLineStyle Source
Abstract data type for the style of a line
The contained Cairo action sets the required line in the Cairo rendering state.
CairoLineStyle (Render ()) |
newtype CairoFillStyle Source
Abstract data type for a fill style
The contained Cairo action sets the required fill style in the Cairo rendering state.
CairoFillStyle (Render ()) |
newtype CairoFontStyle Source
Abstract data type for a font.
The contained Cairo action sets the required font in the Cairo rendering state.
CairoFontStyle (Render ()) |
setClipRegion :: Point -> Point -> Render ()Source
strokeLines :: [Point] -> Render ()Source
stroke the lines between successive points
setFontStyle :: CairoFontStyle -> Render ()Source
setLineStyle :: CairoLineStyle -> Render ()Source
setFillStyle :: CairoFillStyle -> Render ()Source
drawText :: HTextAnchor -> VTextAnchor -> Point -> String -> Render ()Source
Function to draw a textual label anchored by one of it's corners or edges.
:: Double | radius of circle |
-> Double | red component of colour |
-> Double | green component of colour |
-> Double | blue component of colour |
-> CairoPointStyle |
:: Double | width of line |
-> Double | red component of colour |
-> Double | green component of colour |
-> Double | blue component of colour |
-> CairoLineStyle |
:: String | the font name |
-> Double | the font size |
-> FontSlant | the font slant |
-> FontWeight | the font weight |
-> CairoFontStyle |
:: Double | red component of colour |
-> Double | green component of colour |
-> Double | blue component of colour |
-> CairoFillStyle |
isValidNumber :: RealFloat a => a -> BoolSource