reactive-banana-sdl-0.2.0: Reactive Banana bindings for SDL

Safe HaskellNone

Reactive.Banana.SDL.Graphics.Types

Description

Types for graphics handling

Synopsis

Documentation

type Screen = SurfaceSource

alias for surface

newtype Graphic Source

alias for an operation to draw on a surface, returning the drawn rectangle area if relevant

Constructors

Graphic 

Fields

paintGraphic :: Screen -> IO (Maybe Rect)
 

type GraphicOpt = Rect -> GraphicSource

graphic operation on a rectangle

type GraphicUpdate = (GraphicOpt, Rect)Source

Graphic update

data Alignment Source

Alignment

Constructors

Start 
Middle 
End 

data Mask Source

Mask coordinates and optional clipping rectangle

Constructors

Mask 

Fields

_maskClip :: Maybe Rect
 
_maskX :: Int
 
_maskY :: Int
 

data Fill Source

color fill

Constructors

Fill 

Instances

data Text Source

Standard Text

Constructors

Text 

Instances

data AlignedText Source

Aligned Text

Instances

data Image Source

Image

Constructors

Image 

Fields

_imagePath :: String
 

Instances

data LoadedImage Source

a preloaded image

Constructors

LoadedImage 

Fields

_imageScreen :: Screen
 

Instances

class Draw canvas mask whereSource

the draw class for involved graphics

Methods

draw :: canvas -> mask -> GraphicSource