X11-1.10.3: A binding to the X11 graphics library

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-Inferred
Language | Haskell98

Graphics.X11.Xlib.Region

Description

A collection of FFI declarations for interfacing with Xlib Regions.

Synopsis

- 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

data Region Source #

#### Instances

Instances details

Data Region Source # |

Instance details

Defined in Graphics.X11.Xlib.Region

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Region -> c Region Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Region Source #

toConstr :: Region -> Constr Source #

dataTypeOf :: Region -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Region) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Region) Source #

gmapT :: (forall b. Data b => b -> b) -> Region -> Region Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Region -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Region -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> Region -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Region -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Region -> m Region Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Region -> m Region Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Region -> m Region Source #

Show Region Source # |
Instance details Defined in Graphics.X11.Xlib.Region Methods showsPrec :: Int -> Region -> ShowS Source # show :: Region -> String Source # showList :: [Region] -> ShowS Source #
Eq Region Source # |
Instance details Defined in Graphics.X11.Xlib.Region Methods (==) :: Region -> Region -> Bool Source # (/=) :: Region -> Region -> Bool Source #
Ord Region Source # |
Instance details Defined in Graphics.X11.Xlib.Region Methods compare :: Region -> Region -> Ordering Source # (<) :: Region -> Region -> Bool Source # (<=) :: Region -> Region -> Bool Source # (>) :: Region -> Region -> Bool Source # (>=) :: Region -> Region -> Bool Source # max :: Region -> Region -> Region Source # min :: Region -> Region -> Region Source #

type RectInRegionResult = CInt Source #

rectangleOut :: RectInRegionResult Source #

rectangleIn :: RectInRegionResult Source #

rectanglePart :: RectInRegionResult 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()`.

emptyRegion :: Region -> IO Bool Source #

interface to the X11 library function `XEmptyRegion()`.

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()`.

clipBox :: Region -> IO (Rectangle, CInt) Source #

interface to the X11 library function `XClipBox()`.

offsetRegion :: Region -> Point -> IO CInt Source #

interface to the X11 library function `XOffsetRegion()`.

shrinkRegion :: Region -> Point -> IO CInt Source #

interface to the X11 library function `XShrinkRegion()`.

setRegion :: Display -> GC -> Region -> IO CInt Source #

interface to the X11 library function `XSetRegion()`.