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

Safe HaskellNone

Reactive.Banana.SDL.Graphics.Util

Description

Combinators for SDL graphics

Synopsis

Documentation

over :: Graphic -> Graphic -> GraphicSource

draw a Graphic over another

under :: Graphic -> Graphic -> GraphicSource

draw a Graphic under another

inside :: Draw c Mask => c -> Graphic -> GraphicSource

draw a Draw relative to the result rect of the graphic

emptyG :: GraphicSource

empty graphic

render :: Graphic -> GraphicSource

render and swap

intersect :: Rect -> Rect -> BoolSource

do the two rectangle intersect?

between :: Int -> (Int, Int) -> BoolSource

is the given x in between the range

getTextRect :: AlignedText -> Rect -> IO RectSource

get the text rect given the alignment, inside the given rectangle

renderGraph :: Frameworks t => Behavior t Graphic -> Behavior t Screen -> Moment t ()Source

rendrer Graph given a behavior for Graphics and a behavior for the Screen

renderGraphOnEvent :: Frameworks t => Behavior t Graphic -> Behavior t Screen -> Event t a -> Moment t ()Source

render graph on a event