packages feed

X11 1.4.6.1 → 1.5.0.0

raw patch · 6 files changed

+38/−38 lines, 6 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

- Graphics.X11.Xlib.Extras: iconMaskHintBit :: Int
- Graphics.X11.Xlib.Extras: iconPixmapHintBit :: Int
- Graphics.X11.Xlib.Extras: iconPositionHintBit :: Int
- Graphics.X11.Xlib.Extras: iconWindowHintBit :: Int
- Graphics.X11.Xlib.Extras: iconicState :: Int
- Graphics.X11.Xlib.Extras: inputHintBit :: Int
- Graphics.X11.Xlib.Extras: instance Read Rectangle
- Graphics.X11.Xlib.Extras: normalState :: Int
- Graphics.X11.Xlib.Extras: pAspectBit :: Int
- Graphics.X11.Xlib.Extras: pBaseSizeBit :: Int
- Graphics.X11.Xlib.Extras: pMaxSizeBit :: Int
- Graphics.X11.Xlib.Extras: pMinSizeBit :: Int
- Graphics.X11.Xlib.Extras: pResizeIncBit :: Int
- Graphics.X11.Xlib.Extras: pWinGravityBit :: Int
- Graphics.X11.Xlib.Extras: propModeAppend :: CInt
- Graphics.X11.Xlib.Extras: propModePrepend :: CInt
- Graphics.X11.Xlib.Extras: propModeReplace :: CInt
- Graphics.X11.Xlib.Extras: stateHintBit :: Int
- Graphics.X11.Xlib.Extras: urgencyHintBit :: Int
- Graphics.X11.Xlib.Extras: waIsUnmapped :: CInt
- Graphics.X11.Xlib.Extras: waIsUnviewable :: CInt
- Graphics.X11.Xlib.Extras: waIsViewable :: CInt
- Graphics.X11.Xlib.Extras: windowGroupHintBit :: Int
- Graphics.X11.Xlib.Extras: withdrawnState :: Int
- Graphics.X11.Xlib.Region: rectangleIn :: RectInRegionResult
- Graphics.X11.Xlib.Region: rectangleOut :: RectInRegionResult
- Graphics.X11.Xlib.Region: rectanglePart :: RectInRegionResult
- Graphics.X11.Xlib.Types: Arc :: Position -> Position -> Dimension -> Dimension -> Angle -> Angle -> Arc
- Graphics.X11.Xlib.Types: Color :: Pixel -> Word16 -> Word16 -> Word16 -> Word8 -> Color
- Graphics.X11.Xlib.Types: Display :: (Ptr Display) -> Display
- Graphics.X11.Xlib.Types: Image :: (Ptr Image) -> Image
- Graphics.X11.Xlib.Types: Point :: !Position -> !Position -> Point
- Graphics.X11.Xlib.Types: Rectangle :: !Position -> !Position -> !Dimension -> !Dimension -> Rectangle
- Graphics.X11.Xlib.Types: Segment :: Position -> Position -> Position -> Position -> Segment
- Graphics.X11.Xlib.Types: arc_angle1 :: Arc -> Angle
- Graphics.X11.Xlib.Types: arc_angle2 :: Arc -> Angle
- Graphics.X11.Xlib.Types: arc_height :: Arc -> Dimension
- Graphics.X11.Xlib.Types: arc_width :: Arc -> Dimension
- Graphics.X11.Xlib.Types: arc_x :: Arc -> Position
- Graphics.X11.Xlib.Types: arc_y :: Arc -> Position
- Graphics.X11.Xlib.Types: color_blue :: Color -> Word16
- Graphics.X11.Xlib.Types: color_flags :: Color -> Word8
- Graphics.X11.Xlib.Types: color_green :: Color -> Word16
- Graphics.X11.Xlib.Types: color_pixel :: Color -> Pixel
- Graphics.X11.Xlib.Types: color_red :: Color -> Word16
- Graphics.X11.Xlib.Types: data Arc
- Graphics.X11.Xlib.Types: data Color
- Graphics.X11.Xlib.Types: data GC
- Graphics.X11.Xlib.Types: data GCValues
- Graphics.X11.Xlib.Types: data Point
- Graphics.X11.Xlib.Types: data Rectangle
- Graphics.X11.Xlib.Types: data Screen
- Graphics.X11.Xlib.Types: data Segment
- Graphics.X11.Xlib.Types: data SetWindowAttributes
- Graphics.X11.Xlib.Types: data Visual
- Graphics.X11.Xlib.Types: instance Data Color
- Graphics.X11.Xlib.Types: instance Data Display
- Graphics.X11.Xlib.Types: instance Data GC
- Graphics.X11.Xlib.Types: instance Data GCValues
- Graphics.X11.Xlib.Types: instance Data Image
- Graphics.X11.Xlib.Types: instance Data Point
- Graphics.X11.Xlib.Types: instance Data Rectangle
- Graphics.X11.Xlib.Types: instance Data Screen
- Graphics.X11.Xlib.Types: instance Data Segment
- Graphics.X11.Xlib.Types: instance Data SetWindowAttributes
- Graphics.X11.Xlib.Types: instance Data Visual
- Graphics.X11.Xlib.Types: instance Eq Arc
- Graphics.X11.Xlib.Types: instance Eq Color
- Graphics.X11.Xlib.Types: instance Eq Display
- Graphics.X11.Xlib.Types: instance Eq GC
- Graphics.X11.Xlib.Types: instance Eq GCValues
- Graphics.X11.Xlib.Types: instance Eq Image
- Graphics.X11.Xlib.Types: instance Eq Point
- Graphics.X11.Xlib.Types: instance Eq Rectangle
- Graphics.X11.Xlib.Types: instance Eq Screen
- Graphics.X11.Xlib.Types: instance Eq Segment
- Graphics.X11.Xlib.Types: instance Eq SetWindowAttributes
- Graphics.X11.Xlib.Types: instance Eq Visual
- Graphics.X11.Xlib.Types: instance Ord Display
- Graphics.X11.Xlib.Types: instance Ord GC
- Graphics.X11.Xlib.Types: instance Ord GCValues
- Graphics.X11.Xlib.Types: instance Ord Image
- Graphics.X11.Xlib.Types: instance Ord Screen
- Graphics.X11.Xlib.Types: instance Ord SetWindowAttributes
- Graphics.X11.Xlib.Types: instance Ord Visual
- Graphics.X11.Xlib.Types: instance Show Arc
- Graphics.X11.Xlib.Types: instance Show Color
- Graphics.X11.Xlib.Types: instance Show Display
- Graphics.X11.Xlib.Types: instance Show GC
- Graphics.X11.Xlib.Types: instance Show GCValues
- Graphics.X11.Xlib.Types: instance Show Image
- Graphics.X11.Xlib.Types: instance Show Point
- Graphics.X11.Xlib.Types: instance Show Rectangle
- Graphics.X11.Xlib.Types: instance Show Screen
- Graphics.X11.Xlib.Types: instance Show Segment
- Graphics.X11.Xlib.Types: instance Show SetWindowAttributes
- Graphics.X11.Xlib.Types: instance Show Visual
- Graphics.X11.Xlib.Types: instance Storable Arc
- Graphics.X11.Xlib.Types: instance Storable Color
- Graphics.X11.Xlib.Types: instance Storable Point
- Graphics.X11.Xlib.Types: instance Storable Rectangle
- Graphics.X11.Xlib.Types: instance Storable Segment
- Graphics.X11.Xlib.Types: instance Typeable Arc
- Graphics.X11.Xlib.Types: instance Typeable Color
- Graphics.X11.Xlib.Types: instance Typeable Display
- Graphics.X11.Xlib.Types: instance Typeable GC
- Graphics.X11.Xlib.Types: instance Typeable GCValues
- Graphics.X11.Xlib.Types: instance Typeable Image
- Graphics.X11.Xlib.Types: instance Typeable Point
- Graphics.X11.Xlib.Types: instance Typeable Rectangle
- Graphics.X11.Xlib.Types: instance Typeable Screen
- Graphics.X11.Xlib.Types: instance Typeable Segment
- Graphics.X11.Xlib.Types: instance Typeable SetWindowAttributes
- Graphics.X11.Xlib.Types: instance Typeable Visual
- Graphics.X11.Xlib.Types: newtype Display
- Graphics.X11.Xlib.Types: newtype Image
- Graphics.X11.Xlib.Types: pt_x :: Point -> !Position
- Graphics.X11.Xlib.Types: pt_y :: Point -> !Position
- Graphics.X11.Xlib.Types: rect_height :: Rectangle -> !Dimension
- Graphics.X11.Xlib.Types: rect_width :: Rectangle -> !Dimension
- Graphics.X11.Xlib.Types: rect_x :: Rectangle -> !Position
- Graphics.X11.Xlib.Types: rect_y :: Rectangle -> !Position
- Graphics.X11.Xlib.Types: seg_x1 :: Segment -> Position
- Graphics.X11.Xlib.Types: seg_x2 :: Segment -> Position
- Graphics.X11.Xlib.Types: seg_y1 :: Segment -> Position
- Graphics.X11.Xlib.Types: seg_y2 :: Segment -> Position
- Graphics.X11.Xlib.Types: type Angle = CInt
- Graphics.X11.Xlib.Types: type Buffer = CInt
- Graphics.X11.Xlib.Types: type Dimension = Word32
- Graphics.X11.Xlib.Types: type Pixel = Word32
- Graphics.X11.Xlib.Types: type Position = Int32
- Graphics.X11.Xlib.Types: type ScreenNumber = Word32
+ Graphics.X11.Xlib.Extras: getModifierMapping :: Display -> IO [(Modifier, [KeyCode])]
+ Graphics.X11.Xlib.Extras: inputHintBit, urgencyHintBit, windowGroupHintBit, iconMaskHintBit, iconPositionHintBit, iconWindowHintBit, iconPixmapHintBit, stateHintBit :: Int
+ Graphics.X11.Xlib.Extras: pMinSizeBit, pWinGravityBit, pBaseSizeBit, pAspectBit, pResizeIncBit, pMaxSizeBit :: Int
+ Graphics.X11.Xlib.Extras: propModeReplace, propModeAppend, propModePrepend :: CInt
+ Graphics.X11.Xlib.Extras: waIsUnmapped, waIsViewable, waIsUnviewable :: CInt
+ Graphics.X11.Xlib.Extras: withdrawnState, iconicState, normalState :: Int
+ Graphics.X11.Xlib.Extras: xFreeModifiermap :: Ptr () -> IO (Ptr CInt)
+ Graphics.X11.Xlib.Extras: xGetModifierMapping :: Display -> IO (Ptr ())
+ Graphics.X11.Xlib.Region: rectangleOut, rectanglePart, rectangleIn :: RectInRegionResult
- Graphics.X11.Types: type KeyCode = Char
+ Graphics.X11.Types: type KeyCode = Word8
- Graphics.X11.Xlib.Extras: rawGetWindowProperty :: (Storable a) => Int -> Display -> Atom -> Window -> IO (Maybe [a])
+ Graphics.X11.Xlib.Extras: rawGetWindowProperty :: Storable a => Int -> Display -> Atom -> Window -> IO (Maybe [a])

Files

Graphics/X11/Types.hsc view
@@ -826,7 +826,7 @@ type Colormap = XID type GContext = XID -type KeyCode  = Char+type KeyCode  = #{type KeyCode}  type KeySym   = XID 
Graphics/X11/Xlib/Cursor.hsc view
@@ -8,7 +8,7 @@ -- Stability   :  provisional -- Portability :  portable ----- A collection of cursor types defined by /usr/include/X11/cursorfont.h.+-- A collection of cursor types defined by \/usr/include/X11/cursorfont.h. -- ----------------------------------------------------------------------------- 
Graphics/X11/Xlib/Extras.hsc view
@@ -913,8 +913,8 @@ -}  -- | The XGetWMProtocols function returns the list of atoms--- stored in the WM_PROTOCOLS property on the specified win­--- dow.  These atoms describe window manager protocols in+-- stored in the WM_PROTOCOLS property on the specified window.+-- These atoms describe window manager protocols in -- which the owner of this window is willing to participate. -- If the property exists, is of type ATOM, is of format 32, -- and the atom WM_PROTOCOLS can be interned, XGetWMProtocols@@ -1360,24 +1360,6 @@ foreign import ccall unsafe "XlibExtras.h x11_extras_IsPrivateKeypadKey"     isPrivateKeypadKey :: KeySym -> Bool --- FIXME: X11 doesn't have a Read instance for Rectangle, so we include one for now.-{-* Generated by DrIFT : Look, but Don't Touch. *-}-instance Read Rectangle where-    readsPrec d input =-          readParen (d > 9)-          (\ inp ->-           [((Rectangle aa ab ac ad) , rest) | ("Rectangle" , inp) <- lex inp-        , ("{" , inp) <- lex inp , ("rect_x" , inp) <- lex inp ,-        ("=" , inp) <- lex inp , (aa , inp) <- readsPrec 10 inp ,-        ("," , inp) <- lex inp , ("rect_y" , inp) <- lex inp ,-        ("=" , inp) <- lex inp , (ab , inp) <- readsPrec 10 inp ,-        ("," , inp) <- lex inp , ("rect_width" , inp) <- lex inp ,-        ("=" , inp) <- lex inp , (ac , inp) <- readsPrec 10 inp ,-        ("," , inp) <- lex inp , ("rect_height" , inp) <- lex inp ,-        ("=" , inp) <- lex inp , (ad , inp) <- readsPrec 10 inp ,-        ("}" , rest) <- lex inp])-          input- ------------------------------------------------------------------------------- -- Selections --@@ -1465,3 +1447,21 @@     texts <- flip mapM [0 .. fromIntegral $ pred argc] $ \i -> peekElemOff argv i >>= peekCWString     wcFreeStringList argv     return texts++foreign import ccall unsafe "HsXlib.h XGetModifierMapping"+    xGetModifierMapping :: Display -> IO (Ptr ())++foreign import ccall unsafe "HsXlib.h XFreeModifiermap"+    xFreeModifiermap :: Ptr () -> IO (Ptr CInt)++getModifierMapping :: Display -> IO [(Modifier, [KeyCode])]+getModifierMapping d = do+    p <- xGetModifierMapping d+    m' <- #{peek XModifierKeymap, max_keypermod} p :: IO CInt+    let m = fromIntegral m'+    pks <- #{peek XModifierKeymap, modifiermap} p :: IO (Ptr KeyCode)+    ks <- peekArray (m * 8) pks+    xFreeModifiermap p+    return . zip masks . map fst . tail . iterate (splitAt m . snd) $ ([], ks)+ where+    masks = [shiftMapIndex .. mod5MapIndex]
Graphics/X11/Xlib/Types.hsc view
@@ -15,7 +15,7 @@  -- #hide module Graphics.X11.Xlib.Types(-        Display(..), Screen, Visual, GC, GCValues, SetWindowAttributes,+        Display(..), Screen(..), Visual, GC, GCValues, SetWindowAttributes,         Image(..), Point(..), Rectangle(..), Arc(..), Segment(..), Color(..),         Pixel, Position, Dimension, Angle, ScreenNumber, Buffer         ) where@@ -171,9 +171,9 @@         rect_height :: !Dimension         } #if __GLASGOW_HASKELL__-        deriving (Eq, Show, Typeable, Data)+        deriving (Eq, Read, Show, Typeable, Data) #else-        deriving (Eq, Show)+        deriving (Eq, Read, Show) #endif  instance Storable Rectangle where
X11.cabal view
@@ -1,10 +1,10 @@ name:               X11-version:            1.4.6.1+version:            1.5.0.0 license:            BSD3 license-file:       LICENSE-copyright:          Alastair Reid, 1999-2003, libraries@haskell.org 2003-2007, Don Stewart 2007-2009.-maintainer:         Don Stewart <dons@galois.com>-homepage:           http://darcs.haskell.org/X11+copyright:          Alastair Reid, 1999-2003, libraries@haskell.org 2003-2007, Don Stewart 2007-2009, Spencer Janssen 2007-2009.+maintainer:         Spencer Janssen <spencerjanssen@gmail.com>+homepage:           http://code.haskell.org/X11 category:           Graphics synopsis:           A binding to the X11 graphics library description:        A Haskell binding to the X11 graphics library.
configure view
@@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles.-# Generated by GNU Autoconf 2.64 for Haskell X11 package 1.4.5.+# Generated by GNU Autoconf 2.64 for Haskell X11 package 1.4.6. # # Report bugs to <dons@galois.com>. #@@ -549,8 +549,8 @@ # Identity of this package. PACKAGE_NAME='Haskell X11 package' PACKAGE_TARNAME='X11'-PACKAGE_VERSION='1.4.5'-PACKAGE_STRING='Haskell X11 package 1.4.5'+PACKAGE_VERSION='1.4.6'+PACKAGE_STRING='Haskell X11 package 1.4.6' PACKAGE_BUGREPORT='dons@galois.com' PACKAGE_URL='' @@ -1208,7 +1208,7 @@   # Omit some internal or obsolete options to make the list less imposing.   # This message is too long to be a string in the A/UX 3.1 sh.   cat <<_ACEOF-\`configure' configures Haskell X11 package 1.4.5 to adapt to many kinds of systems.+\`configure' configures Haskell X11 package 1.4.6 to adapt to many kinds of systems.  Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1273,7 +1273,7 @@  if test -n "$ac_init_help"; then   case $ac_init_help in-     short | recursive ) echo "Configuration of Haskell X11 package 1.4.5:";;+     short | recursive ) echo "Configuration of Haskell X11 package 1.4.6:";;    esac   cat <<\_ACEOF @@ -1368,7 +1368,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then   cat <<\_ACEOF-Haskell X11 package configure 1.4.5+Haskell X11 package configure 1.4.6 generated by GNU Autoconf 2.64  Copyright (C) 2009 Free Software Foundation, Inc.@@ -1739,7 +1739,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by Haskell X11 package $as_me 1.4.5, which was+It was created by Haskell X11 package $as_me 1.4.6, which was generated by GNU Autoconf 2.64.  Invocation command line was    $ $0 $@@@ -4703,7 +4703,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log="-This file was extended by Haskell X11 package $as_me 1.4.5, which was+This file was extended by Haskell X11 package $as_me 1.4.6, which was generated by GNU Autoconf 2.64.  Invocation command line was    CONFIG_FILES    = $CONFIG_FILES@@ -4763,7 +4763,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_version="\\-Haskell X11 package config.status 1.4.5+Haskell X11 package config.status 1.4.6 configured by $0, generated by GNU Autoconf 2.64,   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"