| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Affection.Draw
Description
Module for drawing primitives
- drawRect :: GeglNode -> Color -> DrawType -> GeglRectangle -> GeglBuffer -> Affection us ()
- handleDrawRequest :: Ptr a -> Int -> Int -> DrawRequest -> Affection us (Maybe DrawRequest)
- invalidateDrawRequest :: Ptr a -> Int -> Int -> DrawRequest -> Affection us ()
- present :: GeglRectangle -> GeglBuffer -> Bool -> Affection us ()
- clearArea :: GeglBuffer -> GeglRectangle -> IO ()
Documentation
Arguments
| :: GeglNode | Target Node |
| -> Color | Color to draw in |
| -> DrawType | Draw type |
| -> GeglRectangle | Dimensions of Rectangle |
| -> GeglBuffer | Final Buffer |
| -> Affection us () |
Arguments
| :: Ptr a | Pixel buffer to blit to -> B.BablFormatPtr -- ^ format to blit in |
| -> Int | Stride |
| -> Int | Components per Pixel |
| -> DrawRequest |
|
| -> Affection us (Maybe DrawRequest) |
function for handling DrawRequests and updating the output
Arguments
| :: Ptr a | Pixel buffer to blit to -> B.BablFormatPtr -- ^ format to blit in |
| -> Int | Stride |
| -> Int | Components per Pixel |
| -> DrawRequest | Drawrequest to invalidate |
| -> Affection us () |
clear a previously drawn area
Arguments
| :: GeglRectangle | Area to be updated |
| -> GeglBuffer | Target buffer |
| -> Bool | Shall the |
| -> Affection us () |
Force update of a specific region on screen
Arguments
| :: GeglBuffer | Target buffer |
| -> GeglRectangle | Area to clear |
| -> IO () |
Clear a specified area of a buffer from all data