Safe Haskell | None |
---|
Combinators for SDL graphics
- over :: Graphic -> Graphic -> Graphic
- under :: Graphic -> Graphic -> Graphic
- inside :: Draw c Mask => c -> Graphic -> Graphic
- emptyG :: Graphic
- render :: Graphic -> Graphic
- withinBox :: Rect -> Graphic -> GraphicOpt
- overOpt :: GraphicOpt -> GraphicOpt -> GraphicOpt
- overUpdate :: GraphicOpt -> GraphicUpdate -> GraphicUpdate
- intersect :: Rect -> Rect -> Bool
- between :: Int -> (Int, Int) -> Bool
- getTextRect :: AlignedText -> Rect -> IO Rect
- renderGraph :: Frameworks t => Behavior t Graphic -> Behavior t Screen -> Moment t ()
- renderGraphOnEvent :: Frameworks t => Behavior t Graphic -> Behavior t Screen -> Event t a -> Moment t ()
Documentation
inside :: Draw c Mask => c -> Graphic -> GraphicSource
draw a Draw relative to the result rect of the graphic
withinBox :: Rect -> Graphic -> GraphicOptSource
overOpt :: GraphicOpt -> GraphicOpt -> GraphicOptSource
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