Portability | GHC |
---|---|
Stability | experimental |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Safe Haskell | None |
- type Title = ByteString
- data Item
- data Stroke
- = Stroke {
- stroke_tool :: !ByteString
- stroke_color :: !ByteString
- stroke_width :: !Double
- stroke_data :: ![Pair Double Double]
- | VWStroke {
- stroke_tool :: ByteString
- stroke_color :: ByteString
- stroke_vwdata :: [(Double, Double, Double)]
- = Stroke {
- data Image = Image {}
- data SVG = SVG {
- svg_text :: Maybe ByteString
- svg_command :: Maybe ByteString
- svg_render :: ByteString
- svg_pos :: (Double, Double)
- svg_dim :: !Dimension
- data Dimension = Dim {
- dim_width :: !Double
- dim_height :: !Double
- data Background
- = Background {
- bkg_type :: !ByteString
- bkg_color :: !ByteString
- bkg_style :: !ByteString
- | BackgroundPdf { }
- = Background {
- data Hoodle = Hoodle {
- hoodle_title :: !Title
- hoodle_pages :: ![Page]
- data Page = Page {
- page_dim :: !Dimension
- page_bkg :: !Background
- page_layers :: ![Layer]
- data Layer = Layer {
- layer_items :: ![Item]
- getXYtuples :: Stroke -> [(Double, Double)]
- tool :: Simple Lens Stroke ByteString
- color :: Simple Lens Stroke ByteString
- title :: Simple Lens Hoodle Title
- pages :: Simple Lens Hoodle [Page]
- dimension :: Simple Lens Page Dimension
- background :: Simple Lens Page Background
- layers :: Simple Lens Page [Layer]
- items :: Simple Lens Layer [Item]
- emptyHoodle :: Hoodle
- emptyLayer :: Layer
- emptyStroke :: Stroke
- defaultBackground :: Background
- defaultPage :: Page
- defaultHoodle :: Hoodle
- newPageFromOld :: Page -> Page
Documentation
type Title = ByteStringSource
wrapper of object embeddable in Layer
Pen stroke item
Stroke | |
| |
VWStroke | |
|
Image item
SVG | |
|
Dim | |
|
data Background Source
Background | |
| |
BackgroundPdf | |
|
Page | |
|
getXYtuples :: Stroke -> [(Double, Double)]Source
newPageFromOld :: Page -> PageSource