Copyright | (c) Ivan A. Malison |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | Ivan A. Malison |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
System.Taffybar.Information.SafeX11
Contents
Description
Documentation
module Graphics.X11.Xlib
type XErrorHandler = Display -> XErrorEventPtr -> IO () #
type XErrorEventPtr = Ptr () #
data WindowChanges #
Constructors
WindowChanges | |
Fields
|
Instances
Storable WindowChanges | |
Defined in Graphics.X11.Xlib.Extras Methods sizeOf :: WindowChanges -> Int Source # alignment :: WindowChanges -> Int Source # peekElemOff :: Ptr WindowChanges -> Int -> IO WindowChanges Source # pokeElemOff :: Ptr WindowChanges -> Int -> WindowChanges -> IO () Source # peekByteOff :: Ptr b -> Int -> IO WindowChanges Source # pokeByteOff :: Ptr b -> Int -> WindowChanges -> IO () Source # peek :: Ptr WindowChanges -> IO WindowChanges Source # poke :: Ptr WindowChanges -> WindowChanges -> IO () Source # |
data WindowAttributes #
Constructors
WindowAttributes | |
Fields
|
Instances
Storable WindowAttributes | |
Defined in Graphics.X11.Xlib.Extras Methods sizeOf :: WindowAttributes -> Int Source # alignment :: WindowAttributes -> Int Source # peekElemOff :: Ptr WindowAttributes -> Int -> IO WindowAttributes Source # pokeElemOff :: Ptr WindowAttributes -> Int -> WindowAttributes -> IO () Source # peekByteOff :: Ptr b -> Int -> IO WindowAttributes Source # pokeByteOff :: Ptr b -> Int -> WindowAttributes -> IO () Source # peek :: Ptr WindowAttributes -> IO WindowAttributes Source # poke :: Ptr WindowAttributes -> WindowAttributes -> IO () Source # |
Constructors
WMHints | |
Fields
|
Instances
Storable WMHints | |
Defined in Graphics.X11.Xlib.Extras Methods sizeOf :: WMHints -> Int Source # alignment :: WMHints -> Int Source # peekElemOff :: Ptr WMHints -> Int -> IO WMHints Source # pokeElemOff :: Ptr WMHints -> Int -> WMHints -> IO () Source # peekByteOff :: Ptr b -> Int -> IO WMHints Source # pokeByteOff :: Ptr b -> Int -> WMHints -> IO () Source # |
data TextProperty #
Constructors
TextProperty | |
Instances
Storable TextProperty | |
Defined in Graphics.X11.Xlib.Extras Methods sizeOf :: TextProperty -> Int Source # alignment :: TextProperty -> Int Source # peekElemOff :: Ptr TextProperty -> Int -> IO TextProperty Source # pokeElemOff :: Ptr TextProperty -> Int -> TextProperty -> IO () Source # peekByteOff :: Ptr b -> Int -> IO TextProperty Source # pokeByteOff :: Ptr b -> Int -> TextProperty -> IO () Source # peek :: Ptr TextProperty -> IO TextProperty Source # poke :: Ptr TextProperty -> TextProperty -> IO () Source # |
Constructors
SizeHints | |
Fields
|
Instances
Storable SizeHints | |
Defined in Graphics.X11.Xlib.Extras Methods sizeOf :: SizeHints -> Int Source # alignment :: SizeHints -> Int Source # peekElemOff :: Ptr SizeHints -> Int -> IO SizeHints Source # pokeElemOff :: Ptr SizeHints -> Int -> SizeHints -> IO () Source # peekByteOff :: Ptr b -> Int -> IO SizeHints Source # pokeByteOff :: Ptr b -> Int -> SizeHints -> IO () Source # |
Instances
Eq FontSet | |
Ord FontSet | |
Defined in Graphics.X11.Xlib.Extras | |
Show FontSet | |
Constructors
data ErrorEvent #
Constructors
ErrorEvent | |
Fields
|
Instances
Show ErrorEvent Source # | |
Defined in System.Taffybar.Information.SafeX11 |
type CXErrorHandler = Display -> XErrorEventPtr -> IO CInt #
xwcTextPropertyToTextList :: Display -> Ptr TextProperty -> Ptr (Ptr CWString) -> Ptr CInt -> IO CInt #
xwcDrawString :: Display -> Drawable -> FontSet -> GC -> Position -> Position -> CWString -> CInt -> IO () #
xwcDrawImageString :: Display -> Drawable -> FontSet -> GC -> Position -> Position -> CWString -> CInt -> IO () #
xSetErrorHandler :: IO () #
xRefreshKeyboardMapping :: Ptr () -> IO CInt #
xQueryTree :: Display -> Window -> Ptr Window -> Ptr Window -> Ptr (Ptr Window) -> Ptr CInt -> IO Status #
xGetWindowProperty :: Display -> Window -> Atom -> CLong -> CLong -> Bool -> Atom -> Ptr Atom -> Ptr CInt -> Ptr CULong -> Ptr CULong -> Ptr (Ptr CUChar) -> IO Status #
xGetWindowAttributes :: Display -> Window -> Ptr WindowAttributes -> IO Status #
xGetTextProperty :: Display -> Window -> Ptr TextProperty -> Atom -> IO Status #
xGetModifierMapping :: Display -> IO (Ptr ()) #
xCreateFontSet :: Display -> CString -> Ptr (Ptr CString) -> Ptr CInt -> Ptr CString -> IO (Ptr FontSet) #
xConfigureWindow :: Display -> Window -> CULong -> Ptr WindowChanges -> IO CInt #
xChangeProperty :: Display -> Window -> Atom -> Atom -> CInt -> CInt -> Ptr CUChar -> CInt -> IO Status #
xAllocWMHints :: IO (Ptr WMHints) #
withdrawnState :: Int #
withServer :: Display -> IO () -> IO () #
wcTextPropertyToTextList :: Display -> TextProperty -> IO [String] #
wcTextEscapement :: FontSet -> String -> Int32 #
wcFreeStringList :: Ptr CWString -> IO () #
wcDrawImageString :: Display -> Drawable -> FontSet -> GC -> Position -> Position -> String -> IO () #
waIsViewable :: CInt #
waIsUnviewable :: CInt #
waIsUnmapped :: CInt #
urgencyHintBit :: Int #
unmapWindow :: Display -> Window -> IO () #
stateHintBit :: Int #
setEventType :: XEventPtr -> EventType -> IO () #
setErrorHandler :: XErrorHandler -> IO () #
setConfigureEvent :: XEventPtr -> Window -> Window -> CInt -> CInt -> CInt -> CInt -> CInt -> Window -> Bool -> IO () #
propModeReplace :: CInt #
propModePrepend :: CInt #
propModeAppend :: CInt #
pWinGravityBit :: Int #
pResizeIncBit :: Int #
pMinSizeBit :: Int #
pMaxSizeBit :: Int #
pBaseSizeBit :: Int #
pAspectBit :: Int #
normalState :: Int #
mkXErrorHandler :: CXErrorHandler -> IO (FunPtr CXErrorHandler) #
isPrivateKeypadKey :: KeySym -> Bool #
isModifierKey :: KeySym -> Bool #
isMiscFunctionKey :: KeySym -> Bool #
isKeypadKey :: KeySym -> Bool #
isFunctionKey :: KeySym -> Bool #
isCursorKey :: KeySym -> Bool #
inputHintBit :: Int #
iconicState :: Int #
iconMaskHintBit :: Int #
getWindowAttributes :: Display -> Window -> IO WindowAttributes #
getTextProperty :: Display -> Window -> Atom -> IO TextProperty #
getErrorEvent :: XErrorEventPtr -> IO ErrorEvent #
freeStringList :: Ptr CString -> IO () #
freeFontSet :: Display -> FontSet -> IO () #
eventTable :: [(EventType, String)] #
currentTime :: Time #
configureWindow :: Display -> Window -> CULong -> WindowChanges -> IO () #
changeWindowAttributes :: Display -> Window -> AttributeMask -> Ptr SetWindowAttributes -> IO () #
anyPropertyType :: Atom #
Constructors
IORequest | |
Fields
|
data SafeX11Exception Source #
Constructors
SafeX11Exception |
Instances
Eq SafeX11Exception Source # | |
Defined in System.Taffybar.Information.SafeX11 Methods (==) :: SafeX11Exception -> SafeX11Exception -> Bool Source # (/=) :: SafeX11Exception -> SafeX11Exception -> Bool Source # | |
Show SafeX11Exception Source # | |
Defined in System.Taffybar.Information.SafeX11 | |
Exception SafeX11Exception Source # | |
Defined in System.Taffybar.Information.SafeX11 Methods toException :: SafeX11Exception -> SomeException Source # fromException :: SomeException -> Maybe SafeX11Exception Source # |
xGetGeometry :: Display -> Drawable -> Ptr Window -> Ptr Position -> Ptr Position -> Ptr Dimension -> Ptr Dimension -> Ptr Dimension -> Ptr CInt -> IO Status Source #
safeXGetWindowProperty :: Display -> Window -> Atom -> CLong -> CLong -> Bool -> Atom -> Ptr Atom -> Ptr CInt -> Ptr CULong -> Ptr CULong -> Ptr (Ptr CUChar) -> IO Status Source #
rawGetWindowPropertyBytes :: Storable a => Int -> Display -> Atom -> Window -> IO (Maybe (ForeignPtr a, Int)) Source #
withErrorHandler :: XErrorHandler -> IO a -> IO a Source #
startHandlingX11Requests :: IO () Source #
handleX11Requests :: IO () Source #
postX11RequestSync :: IO a -> IO (Either SafeX11Exception a) Source #
postX11RequestSyncDef :: a -> IO a -> IO a Source #
safeGetGeometry :: Display -> Drawable -> IO (Window, Position, Position, Dimension, Dimension, Dimension, CInt) Source #
outParameters7 :: (Storable a, Storable b, Storable c, Storable d, Storable e, Storable f, Storable g) => (IO r -> IO ()) -> (Ptr a -> Ptr b -> Ptr c -> Ptr d -> Ptr e -> Ptr f -> Ptr g -> IO r) -> IO (a, b, c, d, e, f, g) Source #