Safe Haskell | None |
---|
Types for graphics handling
- type Screen = Surface
- newtype Graphic = Graphic {
- paintGraphic :: Screen -> IO (Maybe Rect)
- type GraphicOpt = Rect -> Graphic
- type GraphicUpdate = (GraphicOpt, Rect)
- data Alignment
- data Mask = Mask {}
- data Fill = Fill {
- _fillClip :: Maybe Rect
- _fillColor :: Color
- data Text = Text {}
- data AlignedText = AlignedText {}
- data Image = Image {
- _imagePath :: String
- data LoadedImage = LoadedImage {}
- imageScreen :: Lens LoadedImage Screen
- imagePath :: Lens Image String
- atextVAlign :: Lens AlignedText Alignment
- atextHAlign :: Lens AlignedText Alignment
- atextText :: Lens AlignedText Text
- textColor :: Lens Text Color
- textFont :: Lens Text Font
- textMsg :: Lens Text String
- fillColor :: Lens Fill Color
- fillClip :: Lens Fill (Maybe Rect)
- maskY :: Lens Mask Int
- maskX :: Lens Mask Int
- maskClip :: Lens Mask (Maybe Rect)
- class Draw canvas mask where
Documentation
alias for an operation to draw on a surface, returning the drawn rectangle area if relevant
type GraphicOpt = Rect -> GraphicSource
graphic operation on a rectangle
type GraphicUpdate = (GraphicOpt, Rect)Source
Graphic update
Mask coordinates and optional clipping rectangle
Standard Text
data AlignedText Source
Aligned Text