Copyright | (c) A. V. H. McPhail 2010 |
---|---|
License | BSD3 |
Maintainer | haskell.vivian.mcphail <at> gmail <dot> com |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
Rendering Figure
s
- render :: Figure () -> (Int, Int) -> Render ()
- newFigureState :: Figure () -> IO FigureState
- updateFigureState :: FigureState -> Figure () -> FigureState
- renderFigureState :: FigureState -> (Int, Int) -> Render ()
- data OutputType
- writeFigure :: OutputType -> FilePath -> (Int, Int) -> Figure () -> IO ()
- writeFigureState :: OutputType -> FilePath -> (Int, Int) -> FigureState -> IO ()
Rendering
render a Figure
Access to FigureState
newFigureState :: Figure () -> IO FigureState Source #
create FigureState
from a series of Figure
actions
updateFigureState :: FigureState -> Figure () -> FigureState Source #
modify a FigureState
with some new actions
:: FigureState | the figure state |
-> (Int, Int) | (width,height) |
-> Render () | a Cairo operation |
render a FigureState
Outputting to file
:: OutputType | output file type |
-> FilePath | file path |
-> (Int, Int) | (width,height) |
-> Figure () | the |
-> IO () |
output the Figure
:: OutputType | output file type |
-> FilePath | file path |
-> (Int, Int) | (width,height) |
-> FigureState | a FigureState |
-> IO () |
output the FigureState