| Copyright | (c) 2003-2010 Peter Simons (c) 2002-2003 Ferenc Wágner (c) 2002-2003 Meik Hellmund (c) 1998-2002 Ralf Hinze (c) 1998-2002 Joachim Korittky (c) 1998-2002 Marco Kuhlmann |
|---|---|
| License | GPLv3 |
| Maintainer | simons@cryp.to |
| Stability | provisional |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell98 |
FMP.Picture
Contents
Description
Documentation
class Show a => IsPicture a where #
Minimal complete definition
Nothing
Instances
| IsPicture Char # | |
Defined in FMP.Picture | |
| IsPicture Int # | |
Defined in FMP.Picture | |
| IsPicture Integer # | |
Defined in FMP.Picture | |
| IsPicture () # | |
Defined in FMP.Picture | |
| IsPicture Numeric # | |
Defined in FMP.Picture | |
| IsPicture Frame # | |
Defined in FMP.Picture | |
| IsPicture Area # | |
Defined in FMP.Picture | |
| IsPicture Path # | |
Defined in FMP.Picture | |
| IsPicture Picture # | |
Defined in FMP.Picture | |
| IsPicture Tree # | |
| IsPicture Canvas # | |
Defined in FMP.Canvas | |
| IsPicture Turtle # | |
Defined in FMP.Turtle | |
| IsPicture a => IsPicture [a] # | |
Defined in FMP.Picture | |
| (IsPicture a, IsPicture b) => IsPicture (a, b) # | |
Defined in FMP.Picture | |
| (IsPicture a, IsPicture b, IsPicture c) => IsPicture (a, b, c) # | |
Defined in FMP.Picture | |
Minimal complete definition
Instances
| IsPath Char # | |
Defined in FMP.Picture | |
| IsPath Point # | |
Defined in FMP.Picture | |
| IsPath Name # | |
Defined in FMP.Picture | |
| IsPath Path # | |
Defined in FMP.Picture | |
| IsPath a => IsPath [a] # | |
Defined in FMP.Picture | |
| (Real a, Real b) => IsPath (a, b) # | |
Defined in FMP.Picture | |
class HasPicture a where #
Methods
fromPicture :: IsPicture b => b -> a #
Instances
| HasPicture Turtle # | |
Defined in FMP.Turtle Methods fromPicture :: IsPicture b => b -> Turtle # | |
Methods
Instances
| HasLabel Path # | |
| HasLabel PathElemDescr # | |
Defined in FMP.Picture Methods setLabel :: IsPicture b => Double -> Dir -> b -> PathElemDescr -> PathElemDescr # | |
| HasLabel Edge # | |
class HasPattern a where #
Instances
| HasPattern Frame # | |
Defined in FMP.Picture Methods setPattern :: Pattern -> Frame -> Frame # setDefaultPattern :: Frame -> Frame # getPattern :: Frame -> Pattern # | |
| HasPattern Path # | |
Defined in FMP.Picture Methods setPattern :: Pattern -> Path -> Path # setDefaultPattern :: Path -> Path # getPattern :: Path -> Pattern # | |
| HasPattern PathElemDescr # | |
Defined in FMP.Picture Methods setPattern :: Pattern -> PathElemDescr -> PathElemDescr # setDefaultPattern :: PathElemDescr -> PathElemDescr # getPattern :: PathElemDescr -> Pattern # | |
| HasPattern FrameAttrib # | |
Defined in FMP.Picture Methods setPattern :: Pattern -> FrameAttrib -> FrameAttrib # setDefaultPattern :: FrameAttrib -> FrameAttrib # getPattern :: FrameAttrib -> Pattern # | |
| HasPattern Edge # | |
Defined in FMP.Tree Methods setPattern :: Pattern -> Edge -> Edge # setDefaultPattern :: Edge -> Edge # getPattern :: Edge -> Pattern # | |
Instances
| HasPen Frame # | |
| HasPen Area # | |
| HasPen Path # | |
| HasPen PathElemDescr # | |
Defined in FMP.Picture Methods setPen :: Pen -> PathElemDescr -> PathElemDescr # setDefaultPen :: PathElemDescr -> PathElemDescr # getPen :: PathElemDescr -> Pen # | |
| HasPen FrameAttrib # | |
Defined in FMP.Picture Methods setPen :: Pen -> FrameAttrib -> FrameAttrib # setDefaultPen :: FrameAttrib -> FrameAttrib # getPen :: FrameAttrib -> Pen # | |
| HasPen Edge # | |
| HasPen Turtle # | |
class HasArrowHead a where #
Methods
setArrowHead :: ArrowHead -> a -> a #
removeArrowHead :: a -> a #
getArrowHead :: a -> Maybe ArrowHead #
setStartArrowHead :: ArrowHead -> a -> a #
removeStartArrowHead :: a -> a #
getStartArrowHead :: a -> Maybe ArrowHead #
Instances
| HasArrowHead Path # | |
Defined in FMP.Picture Methods setArrowHead :: ArrowHead -> Path -> Path # removeArrowHead :: Path -> Path # getArrowHead :: Path -> Maybe ArrowHead # setStartArrowHead :: ArrowHead -> Path -> Path # removeStartArrowHead :: Path -> Path # getStartArrowHead :: Path -> Maybe ArrowHead # | |
| HasArrowHead PathElemDescr # | |
Defined in FMP.Picture Methods setArrowHead :: ArrowHead -> PathElemDescr -> PathElemDescr # removeArrowHead :: PathElemDescr -> PathElemDescr # getArrowHead :: PathElemDescr -> Maybe ArrowHead # setStartArrowHead :: ArrowHead -> PathElemDescr -> PathElemDescr # | |
| HasArrowHead Edge # | |
Defined in FMP.Tree Methods setArrowHead :: ArrowHead -> Edge -> Edge # removeArrowHead :: Edge -> Edge # getArrowHead :: Edge -> Maybe ArrowHead # setStartArrowHead :: ArrowHead -> Edge -> Edge # removeStartArrowHead :: Edge -> Edge # getStartArrowHead :: Edge -> Maybe ArrowHead # | |
class HasStartEndCut a where #
Methods
setStartCut :: IsName b => b -> a -> a #
removeStartCut :: a -> a #
setEndCut :: IsName b => b -> a -> a #
removeEndCut :: a -> a #
Instances
| HasStartEndCut Path # | |
Defined in FMP.Picture | |
| HasStartEndCut PathElemDescr # | |
Defined in FMP.Picture Methods setStartCut :: IsName b => b -> PathElemDescr -> PathElemDescr # removeStartCut :: PathElemDescr -> PathElemDescr # setEndCut :: IsName b => b -> PathElemDescr -> PathElemDescr # | |
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 #
Instances
Instances
| HasJoin Path # | |
| HasJoin PathElemDescr # | |
Defined in FMP.Picture Methods setJoin :: BasicJoin -> PathElemDescr -> PathElemDescr # getJoin :: PathElemDescr -> BasicJoin # | |
Instances
| HasShadow Frame # | |
| HasShadow FrameAttrib # | |
Defined in FMP.Picture Methods setShadow :: (Numeric, Numeric) -> FrameAttrib -> FrameAttrib # clearShadow :: FrameAttrib -> FrameAttrib # | |
Instances
| HasConcat Path # | |
| HasConcat Transformation # | |
Defined in FMP.Picture Methods (&) :: Transformation -> Transformation -> Transformation # | |
| HasConcat MetaPost # | |
| HasConcat SymNum # | |
| HasConcat SymPoint # | |
| HasConcat Symbols # | |
| HasConcat Canvas # | |
| HasConcat Turtle # | |
| FromList a => HasConcat [a] # | |
Defined in FMP.Picture | |
class IsHideable a where #
Instances
| IsHideable Frame # | |
Defined in FMP.Picture | |
| IsHideable Path # | |
Defined in FMP.Picture | |
| IsHideable PathElemDescr # | |
Defined in FMP.Picture Methods hide :: PathElemDescr -> PathElemDescr # | |
| IsHideable FrameAttrib # | |
Defined in FMP.Picture Methods hide :: FrameAttrib -> FrameAttrib # | |
| IsHideable Edge # | |
| IsHideable Turtle # | |
Defined in FMP.Turtle | |
joinTension :: Tension -> BasicJoin #
joinTensions :: Tension -> Tension -> BasicJoin #
joinControl :: Point -> BasicJoin #
joinControls :: Point -> Point -> BasicJoin #
tensionAtLeast :: Numeric -> Tension #
buildCycle :: Path -> Path -> Path #
transformPath :: Transformation -> Path -> Path #
fullcircle :: Path #
halfcircle :: Path #
quartercircle :: Path #
unitsquare :: Path #
Constructors
Instances
| Eq Picture # | |
| Read Picture # | |
| Show Picture # | |
| HasBGColor Picture # | |
Defined in FMP.Picture Methods setBGColor :: Color -> Picture -> Picture # setDefaultBGColor :: Picture -> Picture # getBGColor :: Picture -> Color # | |
| HasColor Picture # | |
| HasRelax Picture # | |
Defined in FMP.Picture | |
| HasDefine Picture # | |
| HasName Picture # | |
| IsPicture Picture # | |
Defined in FMP.Picture | |
data Transformation #
Instances
| Eq Transformation # | |
Defined in FMP.Picture Methods (==) :: Transformation -> Transformation -> Bool # (/=) :: Transformation -> Transformation -> Bool # | |
| Read Transformation # | |
Defined in FMP.Picture Methods readsPrec :: Int -> ReadS Transformation # readList :: ReadS [Transformation] # | |
| Show Transformation # | |
Defined in FMP.Picture Methods showsPrec :: Int -> Transformation -> ShowS # show :: Transformation -> String # showList :: [Transformation] -> ShowS # | |
| HasConcat Transformation # | |
Defined in FMP.Picture Methods (&) :: Transformation -> Transformation -> Transformation # | |
columnSepBy :: IsPicture a => Numeric -> [a] -> Picture #
setTrueBoundingBox :: IsPicture a => a -> Picture #
transform :: IsPicture a => Transformation -> a -> Picture #
shifted :: (Numeric, Numeric) -> Transformation #
rotated :: Numeric -> Transformation #
scaledX :: Numeric -> Transformation #
scaledY :: Numeric -> Transformation #
scaled :: Numeric -> Transformation #
skewedX :: Numeric -> Transformation #
skewedY :: Numeric -> Transformation #
lastNameIsDir :: Name -> Bool #
arrowHeadSize :: Double -> Double -> ArrowHead #
setArrowHeadStyle :: ArrowHeadStyle -> ArrowHead -> ArrowHead #
data FrameAttrib #
Constructors
| FrameAttrib | |
Instances
data PathElemDescr #
Constructors
| PathElemDescr | |
Instances
Constructors
| PathBuildCycle Path Path | |
| PathTransform Transformation Path | |
| PathPoint Point | |
| PathCycle | |
| PathJoin Path PathElemDescr Path | |
| PathEndDir Point Dir' | |
| PathDefine [Equation] Path |
Instances
Constructors
| DefaultArrowHead | |
| ArrowHead (Maybe Double) (Maybe Double) ArrowHeadStyle |
data ArrowHeadStyle #
Instances
| Eq ArrowHeadStyle # | |
Defined in FMP.Picture Methods (==) :: ArrowHeadStyle -> ArrowHeadStyle -> Bool # (/=) :: ArrowHeadStyle -> ArrowHeadStyle -> Bool # | |
| Read ArrowHeadStyle # | |
Defined in FMP.Picture Methods readsPrec :: Int -> ReadS ArrowHeadStyle # readList :: ReadS [ArrowHeadStyle] # | |
| Show ArrowHeadStyle # | |
Defined in FMP.Picture Methods showsPrec :: Int -> ArrowHeadStyle -> ShowS # show :: ArrowHeadStyle -> String # showList :: [ArrowHeadStyle] -> ShowS # | |
pathLength :: Num a => Path -> a #
forEachPath :: (PathElemDescr -> PathElemDescr) -> Path -> Path #
Constructors
| BJCat | |
| BJFree | |
| BJBounded | |
| BJStraight | |
| BJTense | |
| BJTension Tension | |
| BJTension2 Tension Tension | |
| BJControls Point | |
| BJControls2 Point Point |
Constructors
| Tension Numeric | |
| TensionAtLeast Numeric |
getDefault :: Maybe a -> a -> a #
Constructors
| Frame' FrameAttrib ExtentAttrib Path Picture |
Instances
| Show Frame # | |
| HasBGColor Frame # | |
Defined in FMP.Picture Methods setBGColor :: Color -> Frame -> Frame # setDefaultBGColor :: Frame -> Frame # getBGColor :: Frame -> Color # | |
| HasColor Frame # | |
| HasRelax Frame # | |
Defined in FMP.Picture | |
| HasShadow Frame # | |
| IsHideable Frame # | |
Defined in FMP.Picture | |
| HasPen Frame # | |
| HasPattern Frame # | |
Defined in FMP.Picture Methods setPattern :: Pattern -> Frame -> Frame # setDefaultPattern :: Frame -> Frame # getPattern :: Frame -> Pattern # | |
| HasExtent Frame # | |
| HasDXY Frame # | |
| HasName Frame # | |
| IsPicture Frame # | |
Defined in FMP.Picture | |
Constructors
| AORAbs Numeric | |
| AORRel Numeric | |
| AORDefault |
data ExtentAttrib #
Constructors
| ExtentAttrib | |
Instances
| Show ExtentAttrib # | |
Defined in FMP.Picture Methods showsPrec :: Int -> ExtentAttrib -> ShowS # show :: ExtentAttrib -> String # showList :: [ExtentAttrib] -> ShowS # | |