module Graphics.PDF.Shape
(
line, rectangle, fillRectangle
,startPathAt,closePath,addLineToPath,addRectangleToPath,strokePath,fillPath, fillAndStrokePath, clipPath
, lineWidth, dashPattern
)
where
import Graphics.PDF.LowLevel
line :: Float -> Float -> Float -> Float -> PdfCmd
line xa ya xb yb = (PdfL xa ya xb yb,[])
lineWidth :: Float -> PdfCmd
lineWidth w = (PdfW w,[])
rectangle :: Float -> Float -> Float -> Float -> PdfCmd
rectangle xa ya width height = (PdfRect xa ya width height,[])
fillRectangle :: Float -> Float -> Float -> Float -> PdfCmd
fillRectangle xa ya width height = (PdfFillRect xa ya width height,[])
dashPattern :: [Float] -> Float -> PdfCmd
dashPattern a phase = (PdfDash a phase,[])
startPathAt :: Float -> Float -> PdfCmd
startPathAt xa ya = (PdfStartPath xa ya,[])
closePath :: PdfCmd
closePath = (PdfClosePath,[])
addLineToPath :: Float -> Float -> PdfCmd
addLineToPath xa ya = (PdfAddLineToPath xa ya,[])
addRectangleToPath :: Float -> Float -> Float -> Float -> PdfCmd
addRectangleToPath xa ya width height = (PdfAddRectangleToPath xa ya width height,[])
strokePath :: PdfCmd
strokePath = (PdfStroke,[])
fillPath :: PdfCmd
fillPath = (PdfFill,[])
fillAndStrokePath :: PdfCmd
fillAndStrokePath = (PdfFillAndStroke,[])
clipPath :: PdfCmd
clipPath = (PdfClip,[])