| |||||||||||||||||||||||
| |||||||||||||||||||||||
Contents | |||||||||||||||||||||||
Description | |||||||||||||||||||||||
StdPicture contains the drawing operations and access to Pictures. | |||||||||||||||||||||||
Synopsis | |||||||||||||||||||||||
Documentation | |||||||||||||||||||||||
data Draw a | |||||||||||||||||||||||
| |||||||||||||||||||||||
type Look = SelectState -> UpdateState -> Draw () | |||||||||||||||||||||||
doScreenDraw :: Draw x -> IO x | |||||||||||||||||||||||
accClipPicture :: Region -> Draw x -> Draw x | |||||||||||||||||||||||
accXorPicture :: Draw a -> Draw a | |||||||||||||||||||||||
Pen attributes | |||||||||||||||||||||||
setPenAttributes :: [PenAttribute] -> Draw () | |||||||||||||||||||||||
getPenAttributes :: Draw [PenAttribute] | |||||||||||||||||||||||
setPenPos :: Point2 -> Draw () | |||||||||||||||||||||||
getPenPos :: Draw Point2 | |||||||||||||||||||||||
The getPenPos function corresponds to the PenPos attribute. The function returns the current pen position. | |||||||||||||||||||||||
setPenSize :: Int -> Draw () | |||||||||||||||||||||||
getPenSize :: Draw Int | |||||||||||||||||||||||
setDefaultPenSize :: Draw () | |||||||||||||||||||||||
setPenColour :: Colour -> Draw () | |||||||||||||||||||||||
getPenColour :: Draw Colour | |||||||||||||||||||||||
setDefaultPenColour :: Draw () | |||||||||||||||||||||||
setPenBack :: Colour -> Draw () | |||||||||||||||||||||||
getPenBack :: Draw Colour | |||||||||||||||||||||||
setDefaultPenBack :: Draw () | |||||||||||||||||||||||
setPenFont :: Font -> Draw () | |||||||||||||||||||||||
getPenFont :: Draw Font | |||||||||||||||||||||||
setDefaultPenFont :: Draw () | |||||||||||||||||||||||
Font operations | |||||||||||||||||||||||
getFontNames :: Draw [FontName] | |||||||||||||||||||||||
getFontSizes :: Int -> Int -> FontName -> Draw [FontSize] | |||||||||||||||||||||||
getFontCharWidth :: Font -> Char -> Draw Int | |||||||||||||||||||||||
getFontCharWidths :: Font -> [Char] -> Draw [Int] | |||||||||||||||||||||||
getFontStringWidth :: Font -> String -> Draw Int | |||||||||||||||||||||||
getFontStringWidths :: Font -> [String] -> Draw [Int] | |||||||||||||||||||||||
getFontMetrics :: Font -> Draw FontMetrics | |||||||||||||||||||||||
getPenFontCharWidth :: Char -> Draw Int | |||||||||||||||||||||||
getPenFontCharWidths :: [Char] -> Draw [Int] | |||||||||||||||||||||||
getPenFontStringWidth :: String -> Draw Int | |||||||||||||||||||||||
getPenFontStringWidths :: [String] -> Draw [Int] | |||||||||||||||||||||||
getPenFontMetrics :: Draw FontMetrics | |||||||||||||||||||||||
Type classes | |||||||||||||||||||||||
class MovePen f where | |||||||||||||||||||||||
| |||||||||||||||||||||||
class Drawables figure where | |||||||||||||||||||||||
| |||||||||||||||||||||||
class Fillables figure where | |||||||||||||||||||||||
| |||||||||||||||||||||||
class Hilites figure where | |||||||||||||||||||||||
| |||||||||||||||||||||||
Data declarations | |||||||||||||||||||||||
data Region | |||||||||||||||||||||||
| |||||||||||||||||||||||
data RegionShape | |||||||||||||||||||||||
| |||||||||||||||||||||||
class ToRegion area where | |||||||||||||||||||||||
| |||||||||||||||||||||||
data PolygonAt | |||||||||||||||||||||||
| |||||||||||||||||||||||
Region functions | |||||||||||||||||||||||
isEmptyRegion :: Region -> Bool | |||||||||||||||||||||||
getRegionBound :: Region -> Rectangle | |||||||||||||||||||||||
sumRegion :: Region -> Region -> Region | |||||||||||||||||||||||
Drawing functions | |||||||||||||||||||||||
drawPoint :: Draw () | |||||||||||||||||||||||
drawPointAt :: Point2 -> Draw () | |||||||||||||||||||||||
drawLineTo :: Point2 -> Draw () | |||||||||||||||||||||||
drawLine :: Point2 -> Point2 -> Draw () | |||||||||||||||||||||||
undrawLineTo :: Point2 -> Draw () | |||||||||||||||||||||||
undrawLine :: Point2 -> Point2 -> Draw () | |||||||||||||||||||||||
stdUnfillNewFrameLook :: SelectState -> UpdateState -> Draw () | |||||||||||||||||||||||
stdUnfillUpdAreaLook :: SelectState -> UpdateState -> Draw () | |||||||||||||||||||||||
predefined fonts | |||||||||||||||||||||||
A visible module | |||||||||||||||||||||||
module Graphics.UI.ObjectIO.StdPictureDef | |||||||||||||||||||||||
Produced by Haddock version 0.3 |