wx-0.10.2: wxHaskellSource codeContentsIndex
Graphics.UI.WX.Draw
Contents
Classes
Types
Drawing
Internal
Description
Synopsis
class Drawn w where
pen :: Attr w PenStyle
penKind :: Attr w PenKind
penWidth :: Attr w Int
penCap :: Attr w CapStyle
penJoin :: Attr w JoinStyle
penColor :: Attr w Color
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 :: Attr w BrushStyle
brushKind :: Attr w BrushKind
brushColor :: Attr w Color
brush :: Brushed w => Attr w BrushStyle
brushKind :: Brushed w => Attr w BrushKind
brushColor :: Brushed w => Attr w Color
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
Classes
class Drawn w whereSource
Methods
pen :: Attr w PenStyleSource
penKind :: Attr w PenKindSource
penWidth :: Attr w IntSource
penCap :: Attr w CapStyleSource
penJoin :: Attr w JoinStyleSource
penColor :: Attr w ColorSource
pen :: Drawn w => Attr w PenStyleSource
penKind :: Drawn w => Attr w PenKindSource
penWidth :: Drawn w => Attr w IntSource
penCap :: Drawn w => Attr w CapStyleSource
penJoin :: Drawn w => Attr w JoinStyleSource
penColor :: Drawn w => Attr w ColorSource
class Brushed w whereSource
Methods
brush :: Attr w BrushStyleSource
brushKind :: Attr w BrushKindSource
brushColor :: Attr w ColorSource
brush :: Brushed w => Attr w BrushStyleSource
brushKind :: Brushed w => Attr w BrushKindSource
brushColor :: Brushed w => Attr w ColorSource
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.
line :: DC a -> Point -> Point -> [Prop (DC a)] -> IO ()Source
Draw a line.
polyline :: DC a -> [Point] -> [Prop (DC a)] -> IO ()Source
Draw a polyline.
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.
drawPoint :: DC a -> Point -> [Prop (DC a)] -> IO ()Source
Draw a single point.
drawRect :: DC a -> Rect -> [Prop (DC a)] -> IO ()Source
Draw a rectangle.
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.
drawText :: DC a -> String -> Point -> [Prop (DC a)] -> IO ()Source
Draw text.
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.
drawImage :: DC a -> Image b -> Point -> [Prop (DC a)] -> IO ()Source
Draw an image.
Internal
dcWith :: DC a -> [Prop (DC a)] -> IO b -> IO bSource
Produced by Haddock version 2.1.0