




Description 


Synopsis 




Classes


























Types


Drawing



Draw a circle given a center point and radius.



Draw an arc of a circle. Takes the center of the circle,
its radius and a starting and ending point relative to the
threeo'clock position. Angles are in degrees and positive
values denote a counter clockwise motion. If the angles are
equal, an entire circle is drawn.



Draw an ellipse, bounded by a certain rectangle.



Draw an elliptic arc. Takes the bounding rectangle,
and a starting and ending point relative to the
threeo'clock position from the center of the rectangle.
Angles are in degrees and positive
values denote a counter clockwise motion. If the angles are
equal, an entire ellipse is drawn.


line :: DC a > Point > Point > [Prop (DC a)] > IO ()  Source 

Draw a line.



Draw a polyline.



Draw a polygon. The polygon is filled with the oddeven rule.
Note that the polygon is automatically closed.



Draw a single point.



Draw a rectangle.



Draw a rectangle with rounded corners. The corners are
quarter circles with the given radius.
If radius is positive, the value is assumed to be the radius of the rounded corner.
If radius is negative, the absolute value is assumed to be the proportion of the smallest
dimension of the rectangle. This means that the corner can be a sensible size relative to
the size of the rectangle, and also avoids the strange effects X produces when the corners
are too big for the rectangle.



Draw text.



Draw rotated text. Takes an angle in degrees relative to the
threeo'clock position.


drawBitmap :: DC a > Bitmap () > Point > Bool > [Prop (DC a)] > IO ()  Source 

Draw a bitmap. Takes a bitmap, a point and a boolean
that is True when the bitmap is drawn with a transparency mask.


drawImage :: DC a > Image b > Point > [Prop (DC a)] > IO ()  Source 

Draw an image.


Internal




Produced by Haddock version 2.1.0 