hipe-0.2.0.0: Support for reading and writing ipe7 files (http://ipe7.sourceforge.net)

Safe HaskellNone

Data.Geometry.Ipe.IpeTypes

Contents

Synopsis

Documentation

data IpeDrawing a Source

Representing ipe drawings

Constructors

IpeDrawing 

Fields

pages :: [Page a]
 

Instances

data Page a Source

Constructors

Page 

Fields

layers :: [Layer a]
 
views :: [ViewDefinition]
 

Instances

Eq a => Eq (Page a) 
Show a => Show (Page a) 
Monoid (Page a)

When mappending two pages, they are are merged, i.e. if both contain a layer named A, say layers l and r, then the output page contains only one layer named A, containing all items from both l and r

HasContent (Page a) 

data Layer a Source

Constructors

Layer 

Instances

Eq a => Eq (Layer a) 
Show a => Show (Layer a) 
Monoid (Layer a) 
HasContent (Layer a) 

emptyDrawing :: IpeDrawing aSource

A new blank ipe drawing

emptyPage :: Page aSource

A new empty page

class HasContent t whereSource

Getting the content of pages/layers etc

Associated Types

type PM t Source

Methods

content :: t -> IGC (PM t)Source

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

Other types

data IpeFile a Source

A complete ipe file

Instances

data ViewDefinition Source

The definition of a view make active layer into an index ?

Constructors

ViewDefinition 

type AMap = Map String StringSource

Attribute Map