Copyright | (c) Daan Leijen 2003 |
---|---|
License | wxWindows |
Maintainer | wxhaskell-devel@lists.sourceforge.net |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
- class Drawn w where
- pen :: Drawn w => Attr w PenStyle
- penKind :: Drawn w => Attr w PenKind
- penWidth :: Drawn w => Attr w Int
- penCap :: Drawn w => Attr w CapStyle
- penJoin :: Drawn w => Attr w JoinStyle
- penColor :: Drawn w => Attr w Color
- class Brushed w where
- brush :: Brushed w => Attr w BrushStyle
- brushKind :: Brushed w => Attr w BrushKind
- brushColor :: Brushed w => Attr w Color
- type DC a = WxObject (CDC a)
- type Bitmap a = GDIObject (CBitmap a)
- circle :: DC a -> Point -> Int -> [Prop (DC a)] -> IO ()
- arc :: DC a -> Point -> Int -> Double -> Double -> [Prop (DC a)] -> IO ()
- ellipse :: DC a -> Rect -> [Prop (DC a)] -> IO ()
- ellipticArc :: DC a -> Rect -> Double -> Double -> [Prop (DC a)] -> IO ()
- line :: DC a -> Point -> Point -> [Prop (DC a)] -> IO ()
- polyline :: DC a -> [Point] -> [Prop (DC a)] -> IO ()
- polygon :: DC a -> [Point] -> [Prop (DC a)] -> IO ()
- drawPoint :: DC a -> Point -> [Prop (DC a)] -> IO ()
- drawRect :: DC a -> Rect -> [Prop (DC a)] -> IO ()
- roundedRect :: DC a -> Rect -> Double -> [Prop (DC a)] -> IO ()
- drawText :: DC a -> String -> Point -> [Prop (DC a)] -> IO ()
- rotatedText :: DC a -> String -> Point -> Double -> [Prop (DC a)] -> IO ()
- drawBitmap :: DC a -> Bitmap () -> Point -> Bool -> [Prop (DC a)] -> IO ()
- drawImage :: DC a -> Image b -> Point -> [Prop (DC a)] -> IO ()
- dcWith :: DC a -> [Prop (DC a)] -> IO b -> IO b
- dcClear :: DC a -> IO ()
Classes
Types
Drawing
circle :: DC a -> Point -> Int -> [Prop (DC a)] -> IO () Source #
Draw a circle given a center point and radius.
arc :: DC a -> Point -> Int -> Double -> Double -> [Prop (DC a)] -> IO () Source #
Draw an arc of a circle. Takes the center of the circle, its radius and a starting and ending point relative to the three-o'clock position. Angles are in degrees and positive values denote a counter clockwise motion. If the angles are equal, an entire circle is drawn.
ellipse :: DC a -> Rect -> [Prop (DC a)] -> IO () Source #
Draw an ellipse, bounded by a certain rectangle.
ellipticArc :: DC a -> Rect -> Double -> Double -> [Prop (DC a)] -> IO () Source #
Draw an elliptic arc. Takes the bounding rectangle, and a starting and ending point relative to the three-o'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.
polygon :: DC a -> [Point] -> [Prop (DC a)] -> IO () Source #
Draw a polygon. The polygon is filled with the odd-even rule. Note that the polygon is automatically closed.
roundedRect :: DC a -> Rect -> Double -> [Prop (DC a)] -> IO () Source #
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.
rotatedText :: DC a -> String -> Point -> Double -> [Prop (DC a)] -> IO () Source #
Draw rotated text. Takes an angle in degrees relative to the three-o'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.