Safe Haskell | None |
---|
- data Renderable = Renderable {}
- class ToRenderable a where
- toRenderable :: a -> Renderable
- emptyRenderable :: Renderable
- spacer :: RectSize -> Renderable
- addMargins :: (Double, Double, Double, Double) -> Renderable -> Renderable
- fillBackground :: CairoFillStyle -> Renderable -> Renderable
- vertical :: [(Double, Renderable)] -> Renderable
- horizontal :: [(Double, Renderable)] -> Renderable
- grid :: [Double] -> [Double] -> [[(Int, Renderable)]] -> Renderable
- allocate :: Double -> [Double] -> [Double] -> [Double]
- renderableToPNGFile :: Renderable -> Int -> Int -> FilePath -> IO ()
- renderableToPDFFile :: Renderable -> Int -> Int -> FilePath -> IO ()
- renderableToPSFile :: Renderable -> Int -> Int -> FilePath -> IO ()
- bitmapEnv :: CEnv
- vectorEnv :: CEnv
- alignPixels :: CRender ()
- embedRenderable :: CRender Renderable -> Renderable
- data LegendStyle = LegendStyle {}
- data Legend = Legend Bool LegendStyle [(String, Plot)]
- minsizeLegend :: Legend -> CRender RectSize
- renderLegend :: Legend -> Rect -> CRender ()
- legendSpacer :: CRender Double
- defaultLegendStyle :: LegendStyle
- label :: CairoFontStyle -> HTextAnchor -> VTextAnchor -> String -> Renderable
- rlabel :: CairoFontStyle -> HTextAnchor -> VTextAnchor -> Double -> String -> Renderable
- labelTest :: Double -> IO ()
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.
toRenderable :: a -> RenderableSource
spacer :: RectSize -> RenderableSource
addMargins :: (Double, Double, Double, Double) -> Renderable -> RenderableSource
vertical :: [(Double, Renderable)] -> RenderableSource
horizontal :: [(Double, Renderable)] -> RenderableSource
grid :: [Double] -> [Double] -> [[(Int, Renderable)]] -> RenderableSource
Layout multiple Renderables into a grid. Arg 1 is the weights for the allocation of extra horizontal space to columns, Arg 2 is the weights for the allocation of extra vertical space to rows, and Arg 3 is the grid of renderables to be layed out. Each element of the grid is a tuple - the first item of the tuple is the drawing priority. Lower priorities get drawn first. Drawing order is significant when Renderables draw outside their edges.
renderableToPNGFile :: Renderable -> Int -> Int -> FilePath -> IO ()Source
Output the given renderable to a PNG file of the specifed size (in pixels), to the specified file.
renderableToPDFFile :: Renderable -> Int -> Int -> FilePath -> IO ()Source
Output the given renderable to a PDF file of the specifed size (in points), to the specified file.
renderableToPSFile :: Renderable -> Int -> Int -> FilePath -> IO ()Source
Output the given renderable to a postscript file of the specifed size (in points), to the specified file.
alignPixels :: CRender ()Source
data LegendStyle Source
renderLegend :: Legend -> Rect -> CRender ()Source
label :: CairoFontStyle -> HTextAnchor -> VTextAnchor -> String -> RenderableSource
rlabel :: CairoFontStyle -> HTextAnchor -> VTextAnchor -> Double -> String -> RenderableSource