| Copyright | (C) Frank Staals |
|---|---|
| License | see the LICENSE file |
| Maintainer | Frank Staals |
| Safe Haskell | None |
| Language | GHC2024 |
Ipe.Writer
Description
Synopsis
- writeIpeFile :: IpeWriteText r => OsPath -> IpeFile r -> IO ()
- writeIpeFile' :: IpeWrite t => t -> OsPath -> IO ()
- writeIpePage :: IpeWriteText r => OsPath -> IpePage r -> IO ()
- toIpeXML :: IpeWrite t => t -> Maybe ByteString
- printAsIpeSelection :: IpeWrite t => t -> IO ()
- toIpeSelectionXML :: IpeWrite t => t -> Maybe ByteString
- class IpeWrite t where
- class IpeWriteText t where
- ipeWriteText :: t -> Maybe Text
- class IpeWriteAttributes ats where
- ipeWriteAttrs :: ats -> [(Text, Text)]
Documentation
writeIpeFile :: IpeWriteText r => OsPath -> IpeFile r -> IO () Source #
Write an IpeFiele to file.
writeIpeFile' :: IpeWrite t => t -> OsPath -> IO () Source #
Convert to ipe XML and write the output to a file.
writeIpePage :: IpeWriteText r => OsPath -> IpePage r -> IO () Source #
Creates a single page ipe file with the given page
printAsIpeSelection :: IpeWrite t => t -> IO () Source #
Convert the input to ipeXml, and prints it to standard out in such a way that the copied text can be pasted into ipe as a geometry object.
toIpeSelectionXML :: IpeWrite t => t -> Maybe ByteString Source #
Convert input into an ipe selection.
class IpeWrite t where Source #
Types that correspond to an XML Element. All instances should produce an
Element. If the type should produce a Node with the Text constructor, use
the IpeWriteText typeclass instead.
Instances
class IpeWriteText t where Source #
For types that can produce a text value
Methods
ipeWriteText :: t -> Maybe Text Source #
Instances
class IpeWriteAttributes ats where Source #
Instances
| (AllB IpeWriteText (CommonAttributes r), IpeWriteText r) => IpeWriteAttributes (GroupAttributes r) Source # | |
Defined in Ipe.Writer Methods ipeWriteAttrs :: GroupAttributes r -> [(Text, Text)] Source # | |
| (AllB IpeWriteText (CommonAttributes r), IpeWriteText r) => IpeWriteAttributes (PathAttributes r) Source # | |
Defined in Ipe.Writer Methods ipeWriteAttrs :: PathAttributes r -> [(Text, Text)] Source # | |
| (AllB IpeWriteText (CommonAttributes r), IpeWriteText r) => IpeWriteAttributes (SymbolAttributes r) Source # | |
Defined in Ipe.Writer Methods ipeWriteAttrs :: SymbolAttributes r -> [(Text, Text)] Source # | |
| (AllB IpeWriteText (CommonAttributes r), IpeWriteText r) => IpeWriteAttributes (TextAttributes r) Source # | |
Defined in Ipe.Writer Methods ipeWriteAttrs :: TextAttributes r -> [(Text, Text)] Source # | |
| AllB IpeWriteText (CommonAttributes r) => IpeWriteAttributes (CommonAttributes r Maybe) Source # | |
Defined in Ipe.Writer Methods ipeWriteAttrs :: CommonAttributes r Maybe -> [(Text, Text)] Source # | |