funcmp-1.5: Functional MetaPost

Portabilityportable
Stabilityprovisional
Maintainersimons@cryp.to

FMP.Picture

Description

 

Documentation

(|-|) :: (IsPicture a, IsPicture b) => a -> b -> Picture

(|||) :: (IsPicture a, IsPicture b) => a -> b -> Picture

(|=|) :: (IsPicture a, IsPicture b) => a -> b -> Picture

(||||) :: (IsPicture a, IsPicture b) => a -> b -> Picture

(#) :: a -> (a -> b) -> b

(.&.) :: (IsPath a, IsPath b) => a -> b -> Path

(...) :: (IsPath a, IsPath b) => a -> b -> Path

(.-.) :: (IsPath a, IsPath b) => a -> b -> Path

(....) :: (IsPath a, IsPath b) => a -> b -> Path

(.--.) :: (IsPath a, IsPath b) => a -> b -> Path

class IsPath a where

Methods

toPath :: a -> Path

toPathList :: [a] -> Path

Instances

IsPath Char 
IsPath Point 
IsPath Name 
IsPath Path 
IsPath a => IsPath [a] 
(Real a, Real b) => IsPath (a, b) 

class IsArea a where

Methods

toArea :: a -> Area

Instances

class HasPicture a where

Methods

fromPicture :: IsPicture b => b -> a

Instances

class HasName a where

Methods

setName :: IsName b => b -> a -> a

getNames :: a -> [Name]

class HasDXY a where

Methods

setDX :: Numeric -> a -> a

getDX :: a -> Maybe Numeric

setDY :: Numeric -> a -> a

getDY :: a -> Maybe Numeric

Instances

class HasExtent a where

Methods

setWidth :: Numeric -> a -> a

removeWidth :: a -> a

getWidth :: a -> Maybe Numeric

setHeight :: Numeric -> a -> a

removeHeight :: a -> a

getHeight :: a -> Maybe Numeric

Instances

class HasLabel a where

Methods

setLabel :: IsPicture b => Double -> Dir -> b -> a -> a

removeLabel :: a -> a

class HasPen a where

Methods

setPen :: Pen -> a -> a

setDefaultPen :: a -> a

getPen :: a -> Pen

class HasStartEndCut a where

Methods

setStartCut :: IsName b => b -> a -> a

removeStartCut :: a -> a

setEndCut :: IsName b => b -> a -> a

removeEndCut :: a -> a

class HasStartEndDir a where

Methods

setStartAngle :: Numeric -> a -> a

setEndAngle :: Numeric -> a -> a

setStartCurl :: Numeric -> a -> a

setEndCurl :: Numeric -> a -> a

setStartVector :: Point -> a -> a

setEndVector :: Point -> a -> a

removeStartDir :: a -> a

removeEndDir :: a -> a

class HasJoin a where

Methods

setJoin :: BasicJoin -> a -> a

getJoin :: a -> BasicJoin

class HasShadow a where

Methods

setShadow :: (Numeric, Numeric) -> a -> a

clearShadow :: a -> a

getShadow :: a -> Maybe (Numeric, Numeric)

class HasLayer a where

Methods

setBack :: a -> a

setFront :: a -> a

getLayer :: a -> Layer

Instances

enumPics :: HasName a => [a] -> [a]

image :: BitDepth -> [String] -> Picture

data Layer

Constructors

Front 
Back 

Instances

Eq Layer 
Read Layer 
Show Layer 

data BitDepth

Constructors

Depth1 
Depth8 
Depth24 

Instances

Eq BitDepth 
Read BitDepth 
Show BitDepth 

row :: IsPicture a => [a] -> Picture

column :: IsPicture a => [a] -> Picture

rowSepBy :: IsPicture a => Numeric -> [a] -> Picture

fill :: (IsPicture a, IsArea b) => [b] -> a -> Picture

clip :: IsPicture a => Path -> a -> Picture

draw :: IsPicture a => [Path] -> a -> Picture

at :: (IsPicture a, IsPicture b) => Dir -> a -> b -> Picture

label :: (IsPicture a, IsPicture b) => Dir -> a -> b -> Picture

overlay :: IsPicture a => [Equation] -> [a] -> Picture

overlay' :: IsPicture a => [Equation] -> Maybe Int -> [a] -> Picture

ooalign :: IsPicture a => [a] -> Picture

class HasDefine a where

Methods

define :: [Equation] -> a -> a

text :: String -> Picture

tex :: String -> Picture

math :: String -> Picture

scale :: IsPicture a => Numeric -> a -> Picture

skewX :: IsPicture a => Numeric -> a -> Picture

skewY :: IsPicture a => Numeric -> a -> Picture

line :: (IsPath a, IsPath b) => a -> b -> Path

curve :: (IsPath a, IsPath b) => a -> b -> Path

arrow :: (IsPath b, IsPath a) => a -> b -> Path

lastNameIsDir :: Name -> Bool

arrowHeadSize :: Double -> Double -> ArrowHead

data Attrib

Constructors

Attrib 

Fields

aNames :: [Name]
 
aColor :: Color
 
aBGColor :: Color
 

Instances

Eq Attrib 
Read Attrib 
Show Attrib 

data PathLabel

Constructors

PathLabel Picture Double Dir 

Instances

Eq PathLabel 
Read PathLabel 
Show PathLabel 

data ArrowHead

Constructors

DefaultArrowHead 
ArrowHead (Maybe Double) (Maybe Double) ArrowHeadStyle 

Instances

data ArrowHeadStyle

Constructors

AHFilled 
AHLine 

Instances

data CutPic

Constructors

CutPicTrans CutPic [Int] 
CutPic Name 
CutPic' String 

Instances

Eq CutPic 
Read CutPic 
Show CutPic 

pathLength :: Num a => Path -> a

data Dir'

Instances

Eq Dir' 
Read Dir' 
Show Dir' 

data Tension

Instances

Eq Tension 
Read Tension 
Show Tension 

data AreaDescr

Constructors

AreaDescr 

Fields

arColor :: Color
 
arLayer :: Layer
 
arPen :: Pen
 

Instances

Eq AreaDescr 
Read AreaDescr 
Show AreaDescr 

getDefault :: Maybe a -> a -> a

data AbsOrRel

Instances

Show AbsOrRel 

data ExtentAttrib

Instances

box :: IsPicture a => a -> Frame

triangle :: IsPicture a => a -> Frame

rbox :: IsPicture a => Numeric -> a -> Frame

oval :: IsPicture a => a -> Frame

circle :: IsPicture a => a -> Frame