Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Winding
- beginPath :: Context -> IO ()
- moveTo :: Context -> CFloat -> CFloat -> IO ()
- lineTo :: Context -> CFloat -> CFloat -> IO ()
- bezierTo :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- quadTo :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- arcTo :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- closePath :: Context -> IO ()
- pathWinding :: Context -> CInt -> IO ()
- arc :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> Winding -> IO ()
- rect :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- roundedRect :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- roundedRectVarying :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- ellipse :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- circle :: Context -> CFloat -> CFloat -> CFloat -> IO ()
- fill :: Context -> IO ()
- stroke :: Context -> IO ()
- beginPath'_ :: Context -> IO ()
- moveTo'_ :: Context -> CFloat -> CFloat -> IO ()
- lineTo'_ :: Context -> CFloat -> CFloat -> IO ()
- bezierTo'_ :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- quadTo'_ :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- arcTo'_ :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- closePath'_ :: Context -> IO ()
- pathWinding'_ :: Context -> CInt -> IO ()
- arc'_ :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CInt -> IO ()
- rect'_ :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- roundedRect'_ :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- roundedRectVarying'_ :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- ellipse'_ :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- circle'_ :: Context -> CFloat -> CFloat -> CFloat -> IO ()
- fill'_ :: Context -> IO ()
- stroke'_ :: Context -> IO ()
Documentation
Instances
Enum Winding Source # | |
Eq Winding Source # | |
Ord Winding Source # | |
Read Winding Source # | |
Show Winding Source # | |
moveTo :: Context -> CFloat -> CFloat -> IO () Source #
Starts new sub-path with specified point as first point.
lineTo :: Context -> CFloat -> CFloat -> IO () Source #
Adds line segment from the last point in the path to the specified point.
bezierTo :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> IO () Source #
Adds cubic bezier segment from last point in the path via two control points to the specified point.
quadTo :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO () Source #
Adds quadratic bezier segment from last point in the path via a control point to the specified point
arcTo :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> IO () Source #
Adds an arc segment at the corner defined by the last path point, and two specified points.
pathWinding :: Context -> CInt -> IO () Source #
Sets the current sub-path winding, see NVGwinding and NVGsolidity.
arc :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> Winding -> IO () Source #
Creates new circle arc shaped sub-path. The arc center is at cx,cy, the arc radius is r, and the arc is drawn from angle a0 to a1, and swept in direction dir (NVG_CCW, or NVG_CW). Angles are specified in radians.
rect :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO () Source #
Creates new rectangle shaped sub-path. Receives x, y, w and h
roundedRect :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> IO () Source #
Creates new rounded rectangle shaped sub-path. In addition to x, y, w and h, it receives | r, indicating the radius (equal in all corners)
roundedRectVarying :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> CFloat -> IO () Source #
Creates new rounded rectangle shaped sub-path. In addition to x, y, w and h, it receives | rtl, rtr, rbr, rbl, the radius of each corner in clockwise order starting from top left
ellipse :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO () Source #
Creates new ellipse shaped sub-path.
circle :: Context -> CFloat -> CFloat -> CFloat -> IO () Source #
Creates new circle shaped sub-path.
beginPath'_ :: Context -> IO () Source #
closePath'_ :: Context -> IO () Source #