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 |
Graphics.X11.Xlib.Types
Description
A collection of type declarations for interfacing with Xlib.
Synopsis
- newtype Display = Display (Ptr Display)
- newtype Screen = Screen (Ptr Screen)
- newtype Visual = Visual (Ptr Visual)
- newtype GC = GC (Ptr GC)
- data GCValues
- data SetWindowAttributes
- data VisualInfo = VisualInfo {}
- newtype Image = Image (Ptr Image)
- data Point = Point {}
- data Rectangle = Rectangle {
- rect_x :: !Position
- rect_y :: !Position
- rect_width :: !Dimension
- rect_height :: !Dimension
- data Arc = Arc {
- arc_x :: Position
- arc_y :: Position
- arc_width :: Dimension
- arc_height :: Dimension
- arc_angle1 :: Angle
- arc_angle2 :: Angle
- data Segment = Segment {}
- data Color = Color {
- color_pixel :: Pixel
- color_red :: Word16
- color_green :: Word16
- color_blue :: Word16
- color_flags :: Word8
- type Pixel = Word64
- type Position = Int32
- type Dimension = Word32
- type Angle = CInt
- type ScreenNumber = Word32
- type Buffer = CInt
Documentation
pointer to an X11 Display
structure
Instances
Eq Display Source # | |
Data Display Source # | |
Defined in Graphics.X11.Xlib.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Display -> c Display Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Display Source # toConstr :: Display -> Constr Source # dataTypeOf :: Display -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Display) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Display) Source # gmapT :: (forall b. Data b => b -> b) -> Display -> Display Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Display -> r Source # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Display -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Display -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Display -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Display -> m Display Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Display -> m Display Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Display -> m Display Source # | |
Ord Display Source # | |
Defined in Graphics.X11.Xlib.Types | |
Show Display Source # | |
pointer to an X11 Screen
structure
Instances
Eq Screen Source # | |
Data Screen Source # | |
Defined in Graphics.X11.Xlib.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Screen -> c Screen Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Screen Source # toConstr :: Screen -> Constr Source # dataTypeOf :: Screen -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Screen) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Screen) Source # gmapT :: (forall b. Data b => b -> b) -> Screen -> Screen Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Screen -> r Source # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Screen -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Screen -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Screen -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Screen -> m Screen Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Screen -> m Screen Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Screen -> m Screen Source # | |
Ord Screen Source # | |
Show Screen Source # | |
pointer to an X11 Visual
structure
Instances
Eq Visual Source # | |
Data Visual Source # | |
Defined in Graphics.X11.Xlib.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Visual -> c Visual Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Visual Source # toConstr :: Visual -> Constr Source # dataTypeOf :: Visual -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Visual) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Visual) Source # gmapT :: (forall b. Data b => b -> b) -> Visual -> Visual Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Visual -> r Source # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Visual -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Visual -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Visual -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Visual -> m Visual Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Visual -> m Visual Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Visual -> m Visual Source # | |
Ord Visual Source # | |
Show Visual Source # | |
pointer to an X11 GC
structure
Instances
Eq GC Source # | |
Data GC Source # | |
Defined in Graphics.X11.Xlib.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GC -> c GC Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GC Source # toConstr :: GC -> Constr Source # dataTypeOf :: GC -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GC) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GC) Source # gmapT :: (forall b. Data b => b -> b) -> GC -> GC Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GC -> r Source # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GC -> r Source # gmapQ :: (forall d. Data d => d -> u) -> GC -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> GC -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> GC -> m GC Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GC -> m GC Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GC -> m GC Source # | |
Ord GC Source # | |
Show GC Source # | |
pointer to an X11 XGCValues
structure
Instances
Eq GCValues Source # | |
Data GCValues Source # | |
Defined in Graphics.X11.Xlib.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GCValues -> c GCValues Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GCValues Source # toConstr :: GCValues -> Constr Source # dataTypeOf :: GCValues -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GCValues) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GCValues) Source # gmapT :: (forall b. Data b => b -> b) -> GCValues -> GCValues Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GCValues -> r Source # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GCValues -> r Source # gmapQ :: (forall d. Data d => d -> u) -> GCValues -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> GCValues -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> GCValues -> m GCValues Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GCValues -> m GCValues Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GCValues -> m GCValues Source # | |
Ord GCValues Source # | |
Defined in Graphics.X11.Xlib.Types | |
Show GCValues Source # | |
data SetWindowAttributes Source #
pointer to an X11 XSetWindowAttributes
structure
Instances
data VisualInfo Source #
counterpart of an X11 XVisualInfo
structure
Constructors
VisualInfo | |
Fields |
Instances
Eq VisualInfo Source # | |
Defined in Graphics.X11.Xlib.Types Methods (==) :: VisualInfo -> VisualInfo -> Bool Source # (/=) :: VisualInfo -> VisualInfo -> Bool Source # | |
Show VisualInfo Source # | |
Defined in Graphics.X11.Xlib.Types | |
Storable VisualInfo Source # | |
Defined in Graphics.X11.Xlib.Types Methods sizeOf :: VisualInfo -> Int Source # alignment :: VisualInfo -> Int Source # peekElemOff :: Ptr VisualInfo -> Int -> IO VisualInfo Source # pokeElemOff :: Ptr VisualInfo -> Int -> VisualInfo -> IO () Source # peekByteOff :: Ptr b -> Int -> IO VisualInfo Source # pokeByteOff :: Ptr b -> Int -> VisualInfo -> IO () Source # peek :: Ptr VisualInfo -> IO VisualInfo Source # poke :: Ptr VisualInfo -> VisualInfo -> IO () Source # | |
Default VisualInfo Source # | |
Defined in Graphics.X11.Xlib.Types Methods def :: VisualInfo # |
pointer to an X11 XImage
structure
Instances
Eq Image Source # | |
Data Image Source # | |
Defined in Graphics.X11.Xlib.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Image -> c Image Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Image Source # toConstr :: Image -> Constr Source # dataTypeOf :: Image -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Image) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Image) Source # gmapT :: (forall b. Data b => b -> b) -> Image -> Image Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Image -> r Source # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Image -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Image -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Image -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Image -> m Image Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Image -> m Image Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Image -> m Image Source # | |
Ord Image Source # | |
Defined in Graphics.X11.Xlib.Types | |
Show Image Source # | |
counterpart of an X11 XPoint
structure
Instances
Eq Point Source # | |
Data Point Source # | |
Defined in Graphics.X11.Xlib.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Point -> c Point Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Point Source # toConstr :: Point -> Constr Source # dataTypeOf :: Point -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Point) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Point) Source # gmapT :: (forall b. Data b => b -> b) -> Point -> Point Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Point -> r Source # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Point -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Point -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Point -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Point -> m Point Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Point -> m Point Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Point -> m Point Source # | |
Show Point Source # | |
Storable Point Source # | |
Defined in Graphics.X11.Xlib.Types Methods sizeOf :: Point -> Int Source # alignment :: Point -> Int Source # peekElemOff :: Ptr Point -> Int -> IO Point Source # pokeElemOff :: Ptr Point -> Int -> Point -> IO () Source # peekByteOff :: Ptr b -> Int -> IO Point Source # pokeByteOff :: Ptr b -> Int -> Point -> IO () Source # |
counterpart of an X11 XRectangle
structure
Constructors
Rectangle | |
Fields
|
Instances
counterpart of an X11 XArc
structure
Constructors
Arc | |
Fields
|
Instances
Eq Arc Source # | |
Show Arc Source # | |
Storable Arc Source # | |
Defined in Graphics.X11.Xlib.Types |
counterpart of an X11 XSegment
structure
Constructors
Segment | |
Instances
Eq Segment Source # | |
Data Segment Source # | |
Defined in Graphics.X11.Xlib.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Segment -> c Segment Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Segment Source # toConstr :: Segment -> Constr Source # dataTypeOf :: Segment -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Segment) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Segment) Source # gmapT :: (forall b. Data b => b -> b) -> Segment -> Segment Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Segment -> r Source # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Segment -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Segment -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Segment -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Segment -> m Segment Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Segment -> m Segment Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Segment -> m Segment Source # | |
Show Segment Source # | |
Storable Segment Source # | |
Defined in Graphics.X11.Xlib.Types Methods sizeOf :: Segment -> Int Source # alignment :: Segment -> Int Source # peekElemOff :: Ptr Segment -> Int -> IO Segment Source # pokeElemOff :: Ptr Segment -> Int -> Segment -> IO () Source # peekByteOff :: Ptr b -> Int -> IO Segment Source # pokeByteOff :: Ptr b -> Int -> Segment -> IO () Source # |
counterpart of an X11 XColor
structure
Constructors
Color | |
Fields
|
Instances
Eq Color Source # | |
Data Color Source # | |
Defined in Graphics.X11.Xlib.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Color -> c Color Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Color Source # toConstr :: Color -> Constr Source # dataTypeOf :: Color -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Color) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Color) Source # gmapT :: (forall b. Data b => b -> b) -> Color -> Color Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Color -> r Source # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Color -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Color -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Color -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Color -> m Color Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Color -> m Color Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Color -> m Color Source # | |
Show Color Source # | |
Storable Color Source # | |
Defined in Graphics.X11.Xlib.Types Methods sizeOf :: Color -> Int Source # alignment :: Color -> Int Source # peekElemOff :: Ptr Color -> Int -> IO Color Source # pokeElemOff :: Ptr Color -> Int -> Color -> IO () Source # peekByteOff :: Ptr b -> Int -> IO Color Source # pokeByteOff :: Ptr b -> Int -> Color -> IO () Source # |
type ScreenNumber = Word32 Source #