Copyright | (c) Alastair Reid 1999-2003 |
---|---|
License | BSD-style (see the file libraries/base/LICENSE) |
Maintainer | libraries@haskell.org |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell98 |
A collection of FFI declarations for interfacing with Xlib Regions.
- data Region
- type RectInRegionResult = CInt
- rectangleOut :: RectInRegionResult
- rectangleIn :: RectInRegionResult
- rectanglePart :: RectInRegionResult
- createRegion :: IO Region
- polygonRegion :: [Point] -> FillRule -> IO Region
- intersectRegion :: Region -> Region -> Region -> IO CInt
- subtractRegion :: Region -> Region -> Region -> IO CInt
- unionRectWithRegion :: Rectangle -> Region -> Region -> IO CInt
- unionRegion :: Region -> Region -> Region -> IO CInt
- xorRegion :: Region -> Region -> Region -> IO CInt
- emptyRegion :: Region -> IO Bool
- equalRegion :: Region -> Region -> IO Bool
- pointInRegion :: Region -> Point -> IO Bool
- rectInRegion :: Region -> Rectangle -> IO RectInRegionResult
- clipBox :: Region -> IO (Rectangle, CInt)
- offsetRegion :: Region -> Point -> IO CInt
- shrinkRegion :: Region -> Point -> IO CInt
- setRegion :: Display -> GC -> Region -> IO CInt
Documentation
type RectInRegionResult = CInt Source #
createRegion :: IO Region Source #
interface to the X11 library function XCreateRegion()
.
polygonRegion :: [Point] -> FillRule -> IO Region Source #
interface to the X11 library function XPolygonRegion()
.
intersectRegion :: Region -> Region -> Region -> IO CInt Source #
interface to the X11 library function XIntersectRegion()
.
subtractRegion :: Region -> Region -> Region -> IO CInt Source #
interface to the X11 library function XSubtractRegion()
.
unionRectWithRegion :: Rectangle -> Region -> Region -> IO CInt Source #
interface to the X11 library function XUnionRectWithRegion()
.
unionRegion :: Region -> Region -> Region -> IO CInt Source #
interface to the X11 library function XUnionRegion()
.
xorRegion :: Region -> Region -> Region -> IO CInt Source #
interface to the X11 library function XXorRegion()
.
equalRegion :: Region -> Region -> IO Bool Source #
interface to the X11 library function XEqualRegion()
.
pointInRegion :: Region -> Point -> IO Bool Source #
interface to the X11 library function XPointInRegion()
.
rectInRegion :: Region -> Rectangle -> IO RectInRegionResult Source #
interface to the X11 library function XRectInRegion()
.
offsetRegion :: Region -> Point -> IO CInt Source #
interface to the X11 library function XOffsetRegion()
.