Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- scissor :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- intersectScissor :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- resetScissor :: Context -> IO ()
- scissor'_ :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- intersectScissor'_ :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO ()
- resetScissor'_ :: Context -> IO ()
Documentation
scissor :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO () Source #
Sets the current scissor rectangle. The scissor rectangle is transformed by the current transform.
intersectScissor :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO () Source #
Intersects current scissor rectangle with the specified rectangle. The scissor rectangle is transformed by the current transform. Note: in case the rotation of previous scissor rect differs from the current one, the intersection will be done between the specified rectangle and the previous scissor rectangle transformed in the current transform space. The resulting shape is always rectangle.
resetScissor :: Context -> IO () Source #
Reset and disables scissoring.
resetScissor'_ :: Context -> IO () Source #