Safe Haskell | None |
---|
- data IpeDrawing a = IpeDrawing {}
- data Page a = Page {
- layers :: [Layer a]
- views :: [ViewDefinition]
- data Layer a = Layer {
- layerDef :: LayerDefinition
- layerContent :: IGC a
- emptyDrawing :: IpeDrawing a
- emptyPage :: Page a
- emptyLayer :: Layer a
- class HasContent t where
- extend :: IpeDrawing a -> IpeDrawing a -> IpeDrawing a
- view :: [LayerDefinition] -> ViewDefinition
- runOnFile :: Arrow arr => arr (IpeDrawing a) (IpeDrawing b) -> arr (IpeFile a) (IpeFile b)
- runOnPath :: Coordinate a => Kleisli IO (IpeDrawing a) (IpeDrawing b) -> Kleisli IO FilePath (IpeFile b)
- findLayer :: Int -> LayerDefinition -> IpeDrawing a -> Maybe (Layer a)
- findLayer' :: LayerDefinition -> Page a -> Maybe (Layer a)
- data IpeFile a
- type LayerDefinition = String
- data ViewDefinition = ViewDefinition {
- layerNames :: [String]
- activeLayer :: String
- type AMap = Map String String
- class HasAttributes c where
Documentation
data IpeDrawing a Source
Representing ipe drawings
Eq a => Eq (IpeDrawing a) | |
Show a => Show (IpeDrawing a) | |
Monoid (IpeDrawing a) | |
HasContent (IpeDrawing a) |
Page | |
|
Layer | |
|
emptyDrawing :: IpeDrawing aSource
A new blank ipe drawing
emptyLayer :: Layer aSource
class HasContent t whereSource
Getting the content of pages/layers etc
HasContent (Layer a) | |
HasContent (Page a) | |
HasContent (IpeDrawing a) |
extend :: IpeDrawing a -> IpeDrawing a -> IpeDrawing aSource
Merges the two drawings. i.e. page by page we merge the pages in the sense that objects on layers with the same names are *BOTH* included
Working with views
view :: [LayerDefinition] -> ViewDefinitionSource
Working with views
Running computations on ipe files
runOnFile :: Arrow arr => arr (IpeDrawing a) (IpeDrawing b) -> arr (IpeFile a) (IpeFile b)Source
runOnPath :: Coordinate a => Kleisli IO (IpeDrawing a) (IpeDrawing b) -> Kleisli IO FilePath (IpeFile b)Source
Manipulating Ipe documents
Querying
findLayer :: Int -> LayerDefinition -> IpeDrawing a -> Maybe (Layer a)Source
Querying a drawing for layersviewspages etc
findLayer' :: LayerDefinition -> Page a -> Maybe (Layer a)Source
Other types
A complete ipe file
Eq a => Eq (IpeFile a) | |
Show a => Show (IpeFile a) | |
Coordinate a => XmlPickler (IpeFile a) | |
IsConvertableToIGC (IpeFile a) |
type LayerDefinition = StringSource
data ViewDefinition Source
The definition of a view make active layer into an index ?
ViewDefinition | |
|
class HasAttributes c whereSource
Stuff with attributes
updateWith :: (AMap -> AMap) -> c -> cSource
getAttr :: String -> c -> Maybe StringSource
setAttr :: String -> String -> c -> cSource
setAttrs :: [(String, String)] -> c -> cSource
hasAttrWithValue :: String -> String -> c -> BoolSource
hasAttr :: String -> c -> BoolSource
extractAttr :: String -> c -> cSource