Safe Haskell | None |
---|
Graphics.Rendering.Chart.Renderable
Description
- data Renderable = Renderable {}
- class ToRenderable a where
- toRenderable :: a -> Renderable
- emptyRenderable :: Renderable
- addMargins :: (Double, Double, Double, Double) -> Renderable -> Renderable
- fillBackground :: CairoFillStyle -> Renderable -> Renderable
- vertical :: [(Double, Renderable)] -> Renderable
- horizontal :: [(Double, Renderable)] -> Renderable
- renderableToPNGFile :: Renderable -> Int -> Int -> FilePath -> IO ()
- renderableToPDFFile :: Renderable -> Int -> Int -> FilePath -> IO ()
- renderableToPSFile :: Renderable -> Int -> Int -> FilePath -> IO ()
- alignPixels :: Render ()
- data LegendStyle = LegendStyle {}
- data Legend = Legend Bool LegendStyle [(String, Plot)]
- minsizeLegend :: Legend -> Render RectSize
- renderLegend :: Legend -> Rect -> Render ()
- legendSpacer :: Render Double
- defaultLegendStyle :: LegendStyle
- label :: CairoFontStyle -> HTextAnchor -> VTextAnchor -> String -> Renderable
Documentation
data Renderable Source
A Renderable is a record of functions required to layout a graphic element.
class ToRenderable a whereSource
A type class abtracting the conversion of a value to a Renderable.
Methods
toRenderable :: a -> RenderableSource
Instances
addMargins :: (Double, Double, Double, Double) -> Renderable -> RenderableSource
vertical :: [(Double, Renderable)] -> RenderableSource
horizontal :: [(Double, Renderable)] -> RenderableSource
renderableToPNGFile :: Renderable -> Int -> Int -> FilePath -> IO ()Source
renderableToPDFFile :: Renderable -> Int -> Int -> FilePath -> IO ()Source
renderableToPSFile :: Renderable -> Int -> Int -> FilePath -> IO ()Source
alignPixels :: Render ()Source
data LegendStyle Source
Constructors
LegendStyle | |
Fields |
renderLegend :: Legend -> Rect -> Render ()Source
label :: CairoFontStyle -> HTextAnchor -> VTextAnchor -> String -> RenderableSource