| Portability | GHC |
|---|---|
| Stability | experimental |
| Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
| Safe Haskell | None |
Graphics.Hoodle.Render.Type.Renderer
Description
Documentation
data PDFCommand whereSource
Constructors
| GetDocFromFile :: !ByteString -> TMVar (Maybe Document) -> PDFCommand | |
| GetDocFromDataURI :: !ByteString -> TMVar (Maybe Document) -> PDFCommand | |
| GetPageFromDoc :: !Document -> !Int -> TMVar (Maybe Page) -> PDFCommand | |
| RenderPageScaled :: !Page -> !Dimension -> !Dimension -> PDFCommand |
Instances
type Renderer = ReaderT ((UUID, (Double, Surface)) -> IO (), TVar (Seq (UUID, PDFCommand))) IOSource
sendPDFCommand :: UUID -> TVar (Seq (UUID, PDFCommand)) -> PDFCommand -> STM ()Source