Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Context
- data Canvas
- data Image
- data TextAlign
- data TextBaseline
- = Top
- | Hanging
- | Middle
- | Alphabetic
- | Ideographic
- | Bottom
- data LineCap
- data LineJoin
- data Repeat
- data Gradient
- data Pattern
- create :: Int -> Int -> IO Canvas
- getContext :: Canvas -> IO Context
- save :: Context -> IO ()
- restore :: Context -> IO ()
- scale :: Double -> Double -> Context -> IO ()
- rotate :: Double -> Context -> IO ()
- translate :: Double -> Double -> Context -> IO ()
- transform :: Double -> Double -> Double -> Double -> Double -> Double -> Context -> IO ()
- setTransform :: Double -> Double -> Double -> Double -> Double -> Double -> Context -> IO ()
- fill :: Context -> IO ()
- fillRule :: JSString -> Context -> IO ()
- stroke :: Context -> IO ()
- beginPath :: Context -> IO ()
- closePath :: Context -> IO ()
- clip :: Context -> IO ()
- moveTo :: Double -> Double -> Context -> IO ()
- lineTo :: Double -> Double -> Context -> IO ()
- quadraticCurveTo :: Double -> Double -> Double -> Double -> Context -> IO ()
- bezierCurveTo :: Double -> Double -> Double -> Double -> Double -> Double -> Context -> IO ()
- arc :: Double -> Double -> Double -> Double -> Double -> Bool -> Context -> IO ()
- arcTo :: Double -> Double -> Double -> Double -> Double -> Context -> IO ()
- rect :: Double -> Double -> Double -> Double -> Context -> IO ()
- isPointInPath :: Double -> Double -> Context -> IO ()
- fillStyle :: Int -> Int -> Int -> Double -> Context -> IO ()
- strokeStyle :: Int -> Int -> Int -> Double -> Context -> IO ()
- globalAlpha :: Double -> Context -> IO ()
- lineJoin :: LineJoin -> Context -> IO ()
- lineCap :: LineCap -> Context -> IO ()
- lineWidth :: Double -> Context -> IO ()
- setLineDash :: JSArray -> Context -> IO ()
- lineDashOffset :: Double -> Context -> IO ()
- miterLimit :: Double -> Context -> IO ()
- fillText :: JSString -> Double -> Double -> Context -> IO ()
- strokeText :: JSString -> Double -> Double -> Context -> IO ()
- font :: JSString -> Context -> IO ()
- measureText :: JSString -> Context -> IO Double
- textAlign :: TextAlign -> Context -> IO ()
- textBaseline :: TextBaseline -> Context -> IO ()
- fillRect :: Double -> Double -> Double -> Double -> Context -> IO ()
- strokeRect :: Double -> Double -> Double -> Double -> Context -> IO ()
- clearRect :: Double -> Double -> Double -> Double -> Context -> IO ()
- drawImage :: Image -> Int -> Int -> Int -> Int -> Context -> IO ()
Documentation
data TextBaseline Source
getContext :: Canvas -> IO Context Source
bezierCurveTo :: Double -> Double -> Double -> Double -> Double -> Double -> Context -> IO () Source
globalAlpha :: Double -> Context -> IO () Source
setLineDash :: JSArray -> Context -> IO () Source
pass an array of numbers
lineDashOffset :: Double -> Context -> IO () Source
miterLimit :: Double -> Context -> IO () Source
textBaseline :: TextBaseline -> Context -> IO () Source