xmonad-0.18.0: A tiling window manager

Copyright | (c) Don Stewart
License | BSD3
Maintainer | Don Stewart <dons@galois.com>
Stability | provisional
Portability |
Safe Haskell | None
Language | Haskell2010

XMonad

Description

Synopsis

- module XMonad.Main
- module XMonad.Core
- module XMonad.Config
- module XMonad.Layout
- module XMonad.ManageHook
- module XMonad.Operations
- type XRRModeFlags = Word64
- type RRMode = Word64
- type RRCrtc = Word64
- type RROutput = Word64
- type Connection = Word16
- type SubpixelOrder = Word16
- type SizeID = Word16
- type Reflection = Word16
- type Rotation = Word16
- type ImageFormat = CInt
- type FontDirection = CInt
- type BackingStore = CInt
- type WindowGravity = CInt
- type BitGravity = CInt
- type ChangeSaveSetMode = CInt
- type MappingRequest = CInt
- type ColormapAlloc = CInt
- type ByteOrder = CInt
- type CirculationDirection = CInt
- type GCMask = CInt
- type ArcMode = CInt
- type PolygonShape = CInt
- type CoordinateMode = CInt
- type SubWindowMode = CInt
- type FillRule = CInt
- type FillStyle = CInt
- type JoinStyle = CInt
- type CapStyle = CInt
- type LineStyle = CInt
- type GXFunction = CInt
- type QueryBestSizeClass = CInt
- type CloseDownMode = CInt
- type AttributeMask = Mask
- type WindowClass = CInt
- type Status = CInt
- type ErrorCode = CInt
- type FocusMode = CInt
- type AllowEvents = CInt
- type GrabStatus = CInt
- type GrabMode = CInt
- type ColormapNotification = CInt
- type PropertyNotification = CInt
- type Protocol = CInt
- type Place = CInt
- type Visibility = CInt
- type NotifyDetail = CInt
- type NotifyMode = CInt
- type Button = Word32
- type ButtonMask = Modifier
- type KeyMask = Modifier
- type Modifier = CUInt
- type EventType = Word32
- type EventMask = Mask
- type KeySym = XID
- type KeyCode = Word8
- type GContext = XID
- type Colormap = XID
- type Cursor = XID
- type Pixmap = XID
- type Font = XID
- type Drawable = XID
- type Window = XID
- type Time = Word64
- type VisualID = Word64
- type Atom = Word64
- type Mask = Word64
- type XID = Word64
- xK_VoidSymbol :: KeySym
- xK_BackSpace :: KeySym
- xK_Tab :: KeySym
- xK_Linefeed :: KeySym
- xK_Clear :: KeySym
- xK_Return :: KeySym
- xK_Pause :: KeySym
- xK_Scroll_Lock :: KeySym
- xK_Sys_Req :: KeySym
- xK_Escape :: KeySym
- xK_Delete :: KeySym
- xK_Multi_key :: KeySym
- xK_Codeinput :: KeySym
- xK_SingleCandidate :: KeySym
- xK_MultipleCandidate :: KeySym
- xK_PreviousCandidate :: KeySym
- xK_Home :: KeySym
- xK_Left :: KeySym
- xK_Up :: KeySym
- xK_Right :: KeySym
- xK_Down :: KeySym
- xK_Prior :: KeySym
- xK_Page_Up :: KeySym
- xK_Next :: KeySym
- xK_Page_Down :: KeySym
- xK_End :: KeySym
- xK_Begin :: KeySym
- xK_Select :: KeySym
- xK_Print :: KeySym
- xK_Execute :: KeySym
- xK_Insert :: KeySym
- xK_Undo :: KeySym
- xK_Redo :: KeySym
- xK_Menu :: KeySym
- xK_Find :: KeySym
- xK_Cancel :: KeySym
- xK_Help :: KeySym
- xK_Break :: KeySym
- xK_Mode_switch :: KeySym
- xK_script_switch :: KeySym
- xK_Num_Lock :: KeySym
- xK_KP_Space :: KeySym
- xK_KP_Tab :: KeySym
- xK_KP_Enter :: KeySym
- xK_KP_F1 :: KeySym
- xK_KP_F2 :: KeySym
- xK_KP_F3 :: KeySym
- xK_KP_F4 :: KeySym
- xK_KP_Home :: KeySym
- xK_KP_Left :: KeySym
- xK_KP_Up :: KeySym
- xK_KP_Right :: KeySym
- xK_KP_Down :: KeySym
- xK_KP_Prior :: KeySym
- xK_KP_Page_Up :: KeySym
- xK_KP_Next :: KeySym
- xK_KP_Page_Down :: KeySym
- xK_KP_End :: KeySym
- xK_KP_Begin :: KeySym
- xK_KP_Insert :: KeySym
- xK_KP_Delete :: KeySym
- xK_KP_Equal :: KeySym
- xK_KP_Multiply :: KeySym
- xK_KP_Add :: KeySym
- xK_KP_Separator :: KeySym
- xK_KP_Subtract :: KeySym
- xK_KP_Decimal :: KeySym
- xK_KP_Divide :: KeySym
- xK_KP_0 :: KeySym
- xK_KP_1 :: KeySym
- xK_KP_2 :: KeySym
- xK_KP_3 :: KeySym
- xK_KP_4 :: KeySym
- xK_KP_5 :: KeySym
- xK_KP_6 :: KeySym
- xK_KP_7 :: KeySym
- xK_KP_8 :: KeySym
- xK_KP_9 :: KeySym
- xK_F1 :: KeySym
- xK_F2 :: KeySym
- xK_F3 :: KeySym
- xK_F4 :: KeySym
- xK_F5 :: KeySym
- xK_F6 :: KeySym
- xK_F7 :: KeySym
- xK_F8 :: KeySym
- xK_F9 :: KeySym
- xK_F10 :: KeySym
- xK_F11 :: KeySym
- xK_L1 :: KeySym
- xK_F12 :: KeySym
- xK_L2 :: KeySym
- xK_F13 :: KeySym
- xK_L3 :: KeySym
- xK_F14 :: KeySym
- xK_L4 :: KeySym
- xK_F15 :: KeySym
- xK_L5 :: KeySym
- xK_F16 :: KeySym
- xK_L6 :: KeySym
- xK_F17 :: KeySym
- xK_L7 :: KeySym
- xK_F18 :: KeySym
- xK_L8 :: KeySym
- xK_F19 :: KeySym
- xK_L9 :: KeySym
- xK_F20 :: KeySym
- xK_L10 :: KeySym
- xK_F21 :: KeySym
- xK_R1 :: KeySym
- xK_F22 :: KeySym
- xK_R2 :: KeySym
- xK_F23 :: KeySym
- xK_R3 :: KeySym
- xK_F24 :: KeySym
- xK_R4 :: KeySym
- xK_F25 :: KeySym
- xK_R5 :: KeySym
- xK_F26 :: KeySym
- xK_R6 :: KeySym
- xK_F27 :: KeySym
- xK_R7 :: KeySym
- xK_F28 :: KeySym
- xK_R8 :: KeySym
- xK_F29 :: KeySym
- xK_R9 :: KeySym
- xK_F30 :: KeySym
- xK_R10 :: KeySym
- xK_F31 :: KeySym
- xK_R11 :: KeySym
- xK_F32 :: KeySym
- xK_R12 :: KeySym
- xK_F33 :: KeySym
- xK_R13 :: KeySym
- xK_F34 :: KeySym
- xK_R14 :: KeySym
- xK_F35 :: KeySym
- xK_R15 :: KeySym
- xK_Shift_L :: KeySym
- xK_Shift_R :: KeySym
- xK_Control_L :: KeySym
- xK_Control_R :: KeySym
- xK_Caps_Lock :: KeySym
- xK_Shift_Lock :: KeySym
- xK_Meta_L :: KeySym
- xK_Meta_R :: KeySym
- xK_Alt_L :: KeySym
- xK_Alt_R :: KeySym
- xK_Super_L :: KeySym
- xK_Super_R :: KeySym
- xK_Hyper_L :: KeySym
- xK_Hyper_R :: KeySym
- xK_space :: KeySym
- xK_exclam :: KeySym
- xK_quotedbl :: KeySym
- xK_numbersign :: KeySym
- xK_dollar :: KeySym
- xK_percent :: KeySym
- xK_ampersand :: KeySym
- xK_apostrophe :: KeySym
- xK_quoteright :: KeySym
- xK_parenleft :: KeySym
- xK_parenright :: KeySym
- xK_asterisk :: KeySym
- xK_plus :: KeySym
- xK_comma :: KeySym
- xK_minus :: KeySym
- xK_period :: KeySym
- xK_slash :: KeySym
- xK_0 :: KeySym
- xK_1 :: KeySym
- xK_2 :: KeySym
- xK_3 :: KeySym
- xK_4 :: KeySym
- xK_5 :: KeySym
- xK_6 :: KeySym
- xK_7 :: KeySym
- xK_8 :: KeySym
- xK_9 :: KeySym
- xK_colon :: KeySym
- xK_semicolon :: KeySym
- xK_less :: KeySym
- xK_equal :: KeySym
- xK_greater :: KeySym
- xK_question :: KeySym
- xK_at :: KeySym
- xK_A :: KeySym
- xK_B :: KeySym
- xK_C :: KeySym
- xK_D :: KeySym
- xK_E :: KeySym
- xK_F :: KeySym
- xK_G :: KeySym
- xK_H :: KeySym
- xK_I :: KeySym
- xK_J :: KeySym
- xK_K :: KeySym
- xK_L :: KeySym
- xK_M :: KeySym
- xK_N :: KeySym
- xK_O :: KeySym
- xK_P :: KeySym
- xK_Q :: KeySym
- xK_R :: KeySym
- xK_S :: KeySym
- xK_T :: KeySym
- xK_U :: KeySym
- xK_V :: KeySym
- xK_W :: KeySym
- xK_X :: KeySym
- xK_Y :: KeySym
- xK_Z :: KeySym
- xK_bracketleft :: KeySym
- xK_backslash :: KeySym
- xK_bracketright :: KeySym
- xK_asciicircum :: KeySym
- xK_underscore :: KeySym
- xK_grave :: KeySym
- xK_quoteleft :: KeySym
- xK_a :: KeySym
- xK_b :: KeySym
- xK_c :: KeySym
- xK_d :: KeySym
- xK_e :: KeySym
- xK_f :: KeySym
- xK_g :: KeySym
- xK_h :: KeySym
- xK_i :: KeySym
- xK_j :: KeySym
- xK_k :: KeySym
- xK_l :: KeySym
- xK_m :: KeySym
- xK_n :: KeySym
- xK_o :: KeySym
- xK_p :: KeySym
- xK_q :: KeySym
- xK_r :: KeySym
- xK_s :: KeySym
- xK_t :: KeySym
- xK_u :: KeySym
- xK_v :: KeySym
- xK_w :: KeySym
- xK_x :: KeySym
- xK_y :: KeySym
- xK_z :: KeySym
- xK_braceleft :: KeySym
- xK_bar :: KeySym
- xK_braceright :: KeySym
- xK_asciitilde :: KeySym
- xK_nobreakspace :: KeySym
- xK_exclamdown :: KeySym
- xK_cent :: KeySym
- xK_sterling :: KeySym
- xK_currency :: KeySym
- xK_yen :: KeySym
- xK_brokenbar :: KeySym
- xK_section :: KeySym
- xK_diaeresis :: KeySym
- xK_copyright :: KeySym
- xK_ordfeminine :: KeySym
- xK_guillemotleft :: KeySym
- xK_notsign :: KeySym
- xK_hyphen :: KeySym
- xK_registered :: KeySym
- xK_macron :: KeySym
- xK_degree :: KeySym
- xK_plusminus :: KeySym
- xK_twosuperior :: KeySym
- xK_threesuperior :: KeySym
- xK_acute :: KeySym
- xK_mu :: KeySym
- xK_paragraph :: KeySym
- xK_periodcentered :: KeySym
- xK_cedilla :: KeySym
- xK_onesuperior :: KeySym
- xK_masculine :: KeySym
- xK_guillemotright :: KeySym
- xK_onequarter :: KeySym
- xK_onehalf :: KeySym
- xK_threequarters :: KeySym
- xK_questiondown :: KeySym
- xK_Agrave :: KeySym
- xK_Aacute :: KeySym
- xK_Acircumflex :: KeySym
- xK_Atilde :: KeySym
- xK_Adiaeresis :: KeySym
- xK_Aring :: KeySym
- xK_AE :: KeySym
- xK_Ccedilla :: KeySym
- xK_Egrave :: KeySym
- xK_Eacute :: KeySym
- xK_Ecircumflex :: KeySym
- xK_Ediaeresis :: KeySym
- xK_Igrave :: KeySym
- xK_Iacute :: KeySym
- xK_Icircumflex :: KeySym
- xK_Idiaeresis :: KeySym
- xK_ETH :: KeySym
- xK_Eth :: KeySym
- xK_Ntilde :: KeySym
- xK_Ograve :: KeySym
- xK_Oacute :: KeySym
- xK_Ocircumflex :: KeySym
- xK_Otilde :: KeySym
- xK_Odiaeresis :: KeySym
- xK_multiply :: KeySym
- xK_Ooblique :: KeySym
- xK_Ugrave :: KeySym
- xK_Uacute :: KeySym
- xK_Ucircumflex :: KeySym
- xK_Udiaeresis :: KeySym
- xK_Yacute :: KeySym
- xK_THORN :: KeySym
- xK_Thorn :: KeySym
- xK_ssharp :: KeySym
- xK_agrave :: KeySym
- xK_aacute :: KeySym
- xK_acircumflex :: KeySym
- xK_atilde :: KeySym
- xK_adiaeresis :: KeySym
- xK_aring :: KeySym
- xK_ae :: KeySym
- xK_ccedilla :: KeySym
- xK_egrave :: KeySym
- xK_eacute :: KeySym
- xK_ecircumflex :: KeySym
- xK_ediaeresis :: KeySym
- xK_igrave :: KeySym
- xK_iacute :: KeySym
- xK_icircumflex :: KeySym
- xK_idiaeresis :: KeySym
- xK_eth :: KeySym
- xK_ntilde :: KeySym
- xK_ograve :: KeySym
- xK_oacute :: KeySym
- xK_ocircumflex :: KeySym
- xK_otilde :: KeySym
- xK_odiaeresis :: KeySym
- xK_division :: KeySym
- xK_oslash :: KeySym
- xK_ugrave :: KeySym
- xK_uacute :: KeySym
- xK_ucircumflex :: KeySym
- xK_udiaeresis :: KeySym
- xK_yacute :: KeySym
- xK_thorn :: KeySym
- xK_ydiaeresis :: KeySym
- noEventMask :: EventMask
- keyPressMask :: EventMask
- keyReleaseMask :: EventMask
- buttonPressMask :: EventMask
- buttonReleaseMask :: EventMask
- enterWindowMask :: EventMask
- leaveWindowMask :: EventMask
- pointerMotionMask :: EventMask
- pointerMotionHintMask :: EventMask
- button1MotionMask :: EventMask
- button2MotionMask :: EventMask
- button3MotionMask :: EventMask
- button4MotionMask :: EventMask
- button5MotionMask :: EventMask
- buttonMotionMask :: EventMask
- keymapStateMask :: EventMask
- exposureMask :: EventMask
- visibilityChangeMask :: EventMask
- structureNotifyMask :: EventMask
- resizeRedirectMask :: EventMask
- substructureNotifyMask :: EventMask
- substructureRedirectMask :: EventMask
- focusChangeMask :: EventMask
- propertyChangeMask :: EventMask
- colormapChangeMask :: EventMask
- ownerGrabButtonMask :: EventMask
- rrScreenChangeNotifyMask :: EventMask
- rrCrtcChangeNotifyMask :: EventMask
- rrOutputChangeNotifyMask :: EventMask
- rrOutputPropertyNotifyMask :: EventMask
- screenSaverCycleMask :: EventMask
- screenSaverNotifyMask :: EventMask
- keyPress :: EventType
- keyRelease :: EventType
- buttonPress :: EventType
- buttonRelease :: EventType
- motionNotify :: EventType
- enterNotify :: EventType
- leaveNotify :: EventType
- focusIn :: EventType
- focusOut :: EventType
- keymapNotify :: EventType
- expose :: EventType
- graphicsExpose :: EventType
- noExpose :: EventType
- visibilityNotify :: EventType
- createNotify :: EventType
- destroyNotify :: EventType
- unmapNotify :: EventType
- mapNotify :: EventType
- mapRequest :: EventType
- reparentNotify :: EventType
- configureNotify :: EventType
- configureRequest :: EventType
- gravityNotify :: EventType
- resizeRequest :: EventType
- circulateNotify :: EventType
- circulateRequest :: EventType
- propertyNotify :: EventType
- selectionClear :: EventType
- selectionRequest :: EventType
- selectionNotify :: EventType
- colormapNotify :: EventType
- clientMessage :: EventType
- mappingNotify :: EventType
- rrScreenChangeNotify :: EventType
- rrNotify :: EventType
- rrNotifyCrtcChange :: EventType
- rrNotifyOutputChange :: EventType
- rrNotifyOutputProperty :: EventType
- lASTEvent :: EventType
- screenSaverNotify :: EventType
- shiftMapIndex :: Modifier
- lockMapIndex :: Modifier
- controlMapIndex :: Modifier
- mod1MapIndex :: Modifier
- mod2MapIndex :: Modifier
- mod3MapIndex :: Modifier
- mod4MapIndex :: Modifier
- mod5MapIndex :: Modifier
- anyModifier :: Modifier
- noModMask :: KeyMask
- shiftMask :: KeyMask
- lockMask :: KeyMask
- controlMask :: KeyMask
- mod1Mask :: KeyMask
- mod2Mask :: KeyMask
- mod3Mask :: KeyMask
- mod4Mask :: KeyMask
- mod5Mask :: KeyMask
- button1Mask :: ButtonMask
- button2Mask :: ButtonMask
- button3Mask :: ButtonMask
- button4Mask :: ButtonMask
- button5Mask :: ButtonMask
- button1 :: Button
- button2 :: Button
- button3 :: Button
- button4 :: Button
- button5 :: Button
- notifyNormal :: NotifyMode
- notifyGrab :: NotifyMode
- notifyUngrab :: NotifyMode
- notifyWhileGrabbed :: NotifyMode
- notifyHint :: NotifyMode
- notifyAncestor :: NotifyDetail
- notifyVirtual :: NotifyDetail
- notifyInferior :: NotifyDetail
- notifyNonlinear :: NotifyDetail
- notifyNonlinearVirtual :: NotifyDetail
- notifyPointer :: NotifyDetail
- notifyPointerRoot :: NotifyDetail
- notifyDetailNone :: NotifyDetail
- visibilityUnobscured :: Visibility
- visibilityPartiallyObscured :: Visibility
- visibilityFullyObscured :: Visibility
- placeOnTop :: Place
- placeOnBottom :: Place
- familyInternet :: Protocol
- familyDECnet :: Protocol
- familyChaos :: Protocol
- propertyNewValue :: PropertyNotification
- propertyDelete :: PropertyNotification
- colormapUninstalled :: ColormapNotification
- colormapInstalled :: ColormapNotification
- grabModeSync :: GrabMode
- grabModeAsync :: GrabMode
- grabSuccess :: GrabStatus
- alreadyGrabbed :: GrabStatus
- grabInvalidTime :: GrabStatus
- grabNotViewable :: GrabStatus
- grabFrozen :: GrabStatus
- asyncPointer :: AllowEvents
- syncPointer :: AllowEvents
- replayPointer :: AllowEvents
- asyncKeyboard :: AllowEvents
- syncKeyboard :: AllowEvents
- replayKeyboard :: AllowEvents
- asyncBoth :: AllowEvents
- syncBoth :: AllowEvents
- revertToNone :: FocusMode
- revertToPointerRoot :: FocusMode
- revertToParent :: FocusMode
- success :: ErrorCode
- badRequest :: ErrorCode
- badValue :: ErrorCode
- badWindow :: ErrorCode
- badPixmap :: ErrorCode
- badAtom :: ErrorCode
- badCursor :: ErrorCode
- badFont :: ErrorCode
- badMatch :: ErrorCode
- badDrawable :: ErrorCode
- badAccess :: ErrorCode
- badAlloc :: ErrorCode
- badColor :: ErrorCode
- badGC :: ErrorCode
- badIDChoice :: ErrorCode
- badName :: ErrorCode
- badLength :: ErrorCode
- badImplementation :: ErrorCode
- firstExtensionError :: ErrorCode
- lastExtensionError :: ErrorCode
- throwIfZero :: String -> IO Status -> IO ()
- copyFromParent :: WindowClass
- inputOutput :: WindowClass
- inputOnly :: WindowClass
- cWBackPixmap :: AttributeMask
- cWBackPixel :: AttributeMask
- cWBorderPixmap :: AttributeMask
- cWBorderPixel :: AttributeMask
- cWBitGravity :: AttributeMask
- cWWinGravity :: AttributeMask
- cWBackingStore :: AttributeMask
- cWBackingPlanes :: AttributeMask
- cWBackingPixel :: AttributeMask
- cWOverrideRedirect :: AttributeMask
- cWSaveUnder :: AttributeMask
- cWEventMask :: AttributeMask
- cWDontPropagate :: AttributeMask
- cWColormap :: AttributeMask
- cWCursor :: AttributeMask
- cWX :: AttributeMask
- cWY :: AttributeMask
- cWWidth :: AttributeMask
- cWHeight :: AttributeMask
- destroyAll :: CloseDownMode
- retainPermanent :: CloseDownMode
- retainTemporary :: CloseDownMode
- cursorShape :: QueryBestSizeClass
- tileShape :: QueryBestSizeClass
- stippleShape :: QueryBestSizeClass
- gXclear :: GXFunction
- gXand :: GXFunction
- gXandReverse :: GXFunction
- gXcopy :: GXFunction
- gXandInverted :: GXFunction
- gXnoop :: GXFunction
- gXxor :: GXFunction
- gXor :: GXFunction
- gXnor :: GXFunction
- gXequiv :: GXFunction
- gXinvert :: GXFunction
- gXorReverse :: GXFunction
- gXcopyInverted :: GXFunction
- gXorInverted :: GXFunction
- gXnand :: GXFunction
- gXset :: GXFunction
- lineSolid :: LineStyle
- lineOnOffDash :: LineStyle
- lineDoubleDash :: LineStyle
- capNotLast :: CapStyle
- capButt :: CapStyle
- capRound :: CapStyle
- capProjecting :: CapStyle
- joinMiter :: JoinStyle
- joinRound :: JoinStyle
- joinBevel :: JoinStyle
- fillSolid :: FillStyle
- fillTiled :: FillStyle
- fillStippled :: FillStyle
- fillOpaqueStippled :: FillStyle
- evenOddRule :: FillRule
- windingRule :: FillRule
- clipByChildren :: SubWindowMode
- includeInferiors :: SubWindowMode
- coordModeOrigin :: CoordinateMode
- coordModePrevious :: CoordinateMode
- complex :: PolygonShape
- nonconvex :: PolygonShape
- convex :: PolygonShape
- arcChord :: ArcMode
- arcPieSlice :: ArcMode
- gCFunction :: GCMask
- gCPlaneMask :: GCMask
- gCForeground :: GCMask
- gCBackground :: GCMask
- gCLineWidth :: GCMask
- gCLineStyle :: GCMask
- gCCapStyle :: GCMask
- gCJoinStyle :: GCMask
- gCFillStyle :: GCMask
- gCFillRule :: GCMask
- gCTile :: GCMask
- gCStipple :: GCMask
- gCTileStipXOrigin :: GCMask
- gCTileStipYOrigin :: GCMask
- gCFont :: GCMask
- gCSubwindowMode :: GCMask
- gCGraphicsExposures :: GCMask
- gCClipXOrigin :: GCMask
- gCClipYOrigin :: GCMask
- gCClipMask :: GCMask
- gCDashOffset :: GCMask
- gCDashList :: GCMask
- gCArcMode :: GCMask
- gCLastBit :: GCMask
- raiseLowest :: CirculationDirection
- lowerHighest :: CirculationDirection
- lSBFirst :: ByteOrder
- mSBFirst :: ByteOrder
- allocNone :: ColormapAlloc
- allocAll :: ColormapAlloc
- mappingModifier :: MappingRequest
- mappingKeyboard :: MappingRequest
- mappingPointer :: MappingRequest
- setModeInsert :: ChangeSaveSetMode
- setModeDelete :: ChangeSaveSetMode
- forgetGravity :: BitGravity
- northWestGravity :: BitGravity
- northGravity :: BitGravity
- northEastGravity :: BitGravity
- westGravity :: BitGravity
- centerGravity :: BitGravity
- eastGravity :: BitGravity
- southWestGravity :: BitGravity
- southGravity :: BitGravity
- southEastGravity :: BitGravity
- staticGravity :: BitGravity
- unmapGravity :: WindowGravity
- notUseful :: BackingStore
- whenMapped :: BackingStore
- always :: BackingStore
- doRed :: Word8
- doGreen :: Word8
- doBlue :: Word8
- fontLeftToRight :: FontDirection
- fontRightToLeft :: FontDirection
- xyBitmap :: ImageFormat
- xyPixmap :: ImageFormat
- zPixmap :: ImageFormat
- xRR_Rotate_0 :: Rotation
- xRR_Rotate_90 :: Rotation
- xRR_Rotate_180 :: Rotation
- xRR_Rotate_270 :: Rotation
- xRR_Reflect_X :: Reflection
- xRR_Reflect_Y :: Reflection
- xRR_Connected :: Connection
- xRR_Disconnected :: Connection
- xRR_UnknownConnection :: Connection
- data Color = Color {
  - color_pixel :: Pixel
  - color_red :: Word16
  - color_green :: Word16
  - color_blue :: Word16
  - color_flags :: Word8
  }
- data Segment = Segment {
  - seg_x1 :: Position
  - seg_y1 :: Position
  - seg_x2 :: Position
  - seg_y2 :: Position
  }
- data Arc = Arc {
  - arc_x :: Position
  - arc_y :: Position
  - arc_width :: Dimension
  - arc_height :: Dimension
  - arc_angle1 :: Angle
  - arc_angle2 :: Angle
  }
- data Rectangle = Rectangle {
  - rect_x :: !Position
  - rect_y :: !Position
  - rect_width :: !Dimension
  - rect_height :: !Dimension
  }
- data Point = Point {
  - pt_x :: !Position
  - pt_y :: !Position
  }
- type Buffer = CInt
- type ScreenNumber = Word32
- type Angle = CInt
- type Dimension = Word32
- type Position = Int32
- type Pixel = Word64
- data Image
- data VisualInfo = VisualInfo {
  - visualInfo_visual :: Visual
  - visualInfo_visualID :: VisualID
  - visualInfo_screen :: ScreenNumber
  - visualInfo_depth :: CInt
  - visualInfo_class :: CInt
  - visualInfo_redMask :: CULong
  - visualInfo_greenMask :: CULong
  - visualInfo_blueMask :: CULong
  - visualInfo_colormapSize :: CInt
  - visualInfo_bitsPerRGB :: CInt
  }
- data SetWindowAttributes
- data GC
- data Visual
- data Screen
- newtype Display = Display (Ptr Display)
- screenNumberOfScreen :: Screen -> ScreenNumber
- planesOfScreen :: Screen -> CInt
- heightMMOfScreen :: Screen -> Dimension
- heightOfScreen :: Screen -> Dimension
- widthMMOfScreen :: Screen -> Dimension
- widthOfScreen :: Screen -> Dimension
- rootWindowOfScreen :: Screen -> Window
- maxCmapsOfScreen :: Screen -> CInt
- minCmapsOfScreen :: Screen -> CInt
- eventMaskOfScreen :: Screen -> EventMask
- displayOfScreen :: Screen -> Display
- doesSaveUnders :: Screen -> Bool
- doesBackingStore :: Screen -> Bool
- defaultVisualOfScreen :: Screen -> Visual
- defaultGCOfScreen :: Screen -> GC
- defaultDepthOfScreen :: Screen -> CInt
- defaultColormapOfScreen :: Screen -> Colormap
- cellsOfScreen :: Screen -> CInt
- whitePixelOfScreen :: Screen -> Pixel
- blackPixelOfScreen :: Screen -> Pixel
- type RectInRegionResult = CInt
- data Region
- 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
- xGetPixel :: Image -> CInt -> CInt -> IO CULong
- destroyImage :: Image -> IO ()
- putImage :: Display -> Drawable -> GC -> Image -> Position -> Position -> Position -> Position -> Dimension -> Dimension -> IO ()
- createImage :: Display -> Visual -> CInt -> ImageFormat -> CInt -> Ptr CChar -> Dimension -> Dimension -> CInt -> CInt -> IO Image
- getImage :: Display -> Drawable -> CInt -> CInt -> CUInt -> CUInt -> CULong -> ImageFormat -> IO Image
- getPixel :: Image -> CInt -> CInt -> CULong
- type CharStruct = (CInt, CInt, CInt, CInt, CInt)
- data FontStruct
- type Glyph = Word16
- freeFont :: Display -> FontStruct -> IO ()
- queryFont :: Display -> Font -> IO FontStruct
- fontFromGC :: Display -> GC -> IO Font
- loadQueryFont :: Display -> String -> IO FontStruct
- fontFromFontStruct :: FontStruct -> Font
- ascentFromFontStruct :: FontStruct -> Int32
- descentFromFontStruct :: FontStruct -> Int32
- textExtents :: FontStruct -> String -> (FontDirection, Int32, Int32, CharStruct)
- textWidth :: FontStruct -> String -> Int32
- xC_X_cursor :: Glyph
- xC_arrow :: Glyph
- xC_based_arrow_down :: Glyph
- xC_based_arrow_up :: Glyph
- xC_boat :: Glyph
- xC_bogosity :: Glyph
- xC_bottom_left_corner :: Glyph
- xC_bottom_right_corner :: Glyph
- xC_bottom_side :: Glyph
- xC_bottom_tee :: Glyph
- xC_box_spiral :: Glyph
- xC_center_ptr :: Glyph
- xC_circle :: Glyph
- xC_clock :: Glyph
- xC_coffee_mug :: Glyph
- xC_cross :: Glyph
- xC_cross_reverse :: Glyph
- xC_crosshair :: Glyph
- xC_diamond_cross :: Glyph
- xC_dot :: Glyph
- xC_dotbox :: Glyph
- xC_double_arrow :: Glyph
- xC_draft_large :: Glyph
- xC_draft_small :: Glyph
- xC_draped_box :: Glyph
- xC_exchange :: Glyph
- xC_fleur :: Glyph
- xC_gobbler :: Glyph
- xC_gumby :: Glyph
- xC_hand1 :: Glyph
- xC_hand2 :: Glyph
- xC_heart :: Glyph
- xC_icon :: Glyph
- xC_iron_cross :: Glyph
- xC_left_ptr :: Glyph
- xC_left_side :: Glyph
- xC_left_tee :: Glyph
- xC_leftbutton :: Glyph
- xC_ll_angle :: Glyph
- xC_lr_angle :: Glyph
- xC_man :: Glyph
- xC_mouse :: Glyph
- xC_pencil :: Glyph
- xC_pirate :: Glyph
- xC_plus :: Glyph
- xC_question_arrow :: Glyph
- xC_right_ptr :: Glyph
- xC_right_side :: Glyph
- xC_right_tee :: Glyph
- xC_rightbutton :: Glyph
- xC_rtl_logo :: Glyph
- xC_sailboat :: Glyph
- xC_sb_down_arrow :: Glyph
- xC_sb_h_double_arrow :: Glyph
- xC_sb_left_arrow :: Glyph
- xC_sb_right_arrow :: Glyph
- xC_sb_up_arrow :: Glyph
- xC_sb_v_double_arrow :: Glyph
- xC_shuttle :: Glyph
- xC_sizing :: Glyph
- xC_spider :: Glyph
- xC_spraycan :: Glyph
- xC_star :: Glyph
- xC_target :: Glyph
- xC_tcross :: Glyph
- xC_top_left_arrow :: Glyph
- xC_top_left_corner :: Glyph
- xC_top_right_corner :: Glyph
- xC_top_side :: Glyph
- xC_top_tee :: Glyph
- xC_trek :: Glyph
- xC_ul_angle :: Glyph
- xC_umbrella :: Glyph
- xC_ur_angle :: Glyph
- xC_watch :: Glyph
- xC_xterm :: Glyph
- closeDisplay :: Display -> IO ()
- noOp :: Display -> IO ()
- qLength :: Display -> IO CInt
- rootWindow :: Display -> ScreenNumber -> IO Window
- defaultRootWindow :: Display -> Window
- screenOfDisplay :: Display -> ScreenNumber -> Screen
- displayPlanes :: Display -> ScreenNumber -> CInt
- displayCells :: Display -> ScreenNumber -> CInt
- defaultVisual :: Display -> ScreenNumber -> Visual
- screenCount :: Display -> CInt
- protocolVersion :: Display -> CInt
- protocolRevision :: Display -> CInt
- imageByteOrder :: Display -> CInt
- displayMotionBufferSize :: Display -> CInt
- maxRequestSize :: Display -> CInt
- displayWidthMM :: Display -> ScreenNumber -> CInt
- displayWidth :: Display -> ScreenNumber -> CInt
- displayHeightMM :: Display -> ScreenNumber -> CInt
- displayHeight :: Display -> ScreenNumber -> CInt
- defaultScreenOfDisplay :: Display -> Screen
- defaultScreen :: Display -> ScreenNumber
- defaultDepth :: Display -> ScreenNumber -> CInt
- defaultGC :: Display -> ScreenNumber -> GC
- defaultColormap :: Display -> ScreenNumber -> Colormap
- connectionNumber :: Display -> CInt
- whitePixel :: Display -> ScreenNumber -> Pixel
- blackPixel :: Display -> ScreenNumber -> Pixel
- allPlanes_aux :: Pixel
- resourceManagerString :: Display -> String
- screenResourceString :: Screen -> String
- displayString :: Display -> String
- serverVendor :: Display -> String
- openDisplay :: String -> IO Display
- type XConfigureEvent = (Position, Position, Dimension, Dimension)
- type XMappingEvent = (MappingRequest, KeyCode, CInt)
- type XExposeEvent = (Position, Position, Dimension, Dimension, CInt)
- type XMotionEvent = (Window, Window, Time, CInt, CInt, CInt, CInt, Modifier, NotifyMode, Bool)
- type XButtonEvent = (Window, Window, Time, CInt, CInt, CInt, CInt, Modifier, Button, Bool)
- type XKeyEventPtr = Ptr XKeyEvent
- type XKeyEvent = (Window, Window, Time, CInt, CInt, CInt, CInt, Modifier, KeyCode, Bool)
- type XEventPtr = Ptr XEvent
- newtype XEvent = XEvent XEventPtr
- type QueuedMode = CInt
- peekEvent :: Display -> XEventPtr -> IO ()
- putBackEvent :: Display -> XEventPtr -> IO ()
- checkTypedWindowEvent :: Display -> Window -> EventType -> XEventPtr -> IO Bool
- checkTypedEvent :: Display -> EventType -> XEventPtr -> IO Bool
- checkMaskEvent :: Display -> EventMask -> XEventPtr -> IO Bool
- maskEvent :: Display -> EventMask -> XEventPtr -> IO ()
- checkWindowEvent :: Display -> Window -> EventMask -> XEventPtr -> IO Bool
- windowEvent :: Display -> Window -> EventMask -> XEventPtr -> IO ()
- selectInput :: Display -> Window -> EventMask -> IO ()
- allowEvents :: Display -> AllowEvents -> Time -> IO ()
- nextEvent :: Display -> XEventPtr -> IO ()
- eventsQueued :: Display -> QueuedMode -> IO CInt
- pending :: Display -> IO CInt
- sync :: Display -> Bool -> IO ()
- flush :: Display -> IO ()
- queuedAlready :: QueuedMode
- queuedAfterFlush :: QueuedMode
- queuedAfterReading :: QueuedMode
- allocaXEvent :: (XEventPtr -> IO a) -> IO a
- get_EventType :: XEventPtr -> IO EventType
- get_Window :: XEventPtr -> IO Window
- get_KeyEvent :: XEventPtr -> IO XKeyEvent
- asKeyEvent :: XEventPtr -> XKeyEventPtr
- get_ButtonEvent :: XEventPtr -> IO XButtonEvent
- get_MotionEvent :: XEventPtr -> IO XMotionEvent
- get_ExposeEvent :: XEventPtr -> IO XExposeEvent
- get_ConfigureEvent :: XEventPtr -> IO XConfigureEvent
- waitForEvent :: Display -> Word32 -> IO Bool
- gettimeofday_in_milliseconds :: IO Integer
- sendEvent :: Display -> Window -> Bool -> EventMask -> XEventPtr -> IO ()
- copyGC :: Display -> GC -> Mask -> GC -> IO ()
- flushGC :: Display -> GC -> IO ()
- freeGC :: Display -> GC -> IO ()
- gContextFromGC :: GC -> GContext
- setTile :: Display -> GC -> Pixmap -> IO ()
- setTSOrigin :: Display -> GC -> Position -> Position -> IO ()
- setSubwindowMode :: Display -> GC -> SubWindowMode -> IO ()
- setStipple :: Display -> GC -> Pixmap -> IO ()
- setState :: Display -> GC -> Pixel -> Pixel -> GXFunction -> Pixel -> IO ()
- setPlaneMask :: Display -> GC -> Pixel -> IO ()
- setLineAttributes :: Display -> GC -> CInt -> LineStyle -> CapStyle -> JoinStyle -> IO ()
- setFont :: Display -> GC -> Font -> IO ()
- setFillStyle :: Display -> GC -> FillStyle -> IO ()
- setFillRule :: Display -> GC -> FillRule -> IO ()
- setClipOrigin :: Display -> GC -> Position -> Position -> IO ()
- setClipMask :: Display -> GC -> Pixmap -> IO ()
- setGraphicsExposures :: Display -> GC -> Bool -> IO ()
- setFunction :: Display -> GC -> GXFunction -> IO ()
- setForeground :: Display -> GC -> Pixel -> IO ()
- setBackground :: Display -> GC -> Pixel -> IO ()
- setArcMode :: Display -> GC -> ArcMode -> IO ()
- setDashes :: Display -> GC -> CInt -> String -> CInt -> IO ()
- createGC :: Display -> Drawable -> IO GC
- freeColormap :: Display -> Colormap -> IO ()
- createColormap :: Display -> Window -> Visual -> ColormapAlloc -> IO Colormap
- copyColormapAndFree :: Display -> Colormap -> IO Colormap
- uninstallColormap :: Display -> Colormap -> IO ()
- installColormap :: Display -> Colormap -> IO ()
- lookupColor :: Display -> Colormap -> String -> IO (Color, Color)
- allocNamedColor :: Display -> Colormap -> String -> IO (Color, Color)
- allocColor :: Display -> Colormap -> Color -> IO Color
- parseColor :: Display -> Colormap -> String -> IO Color
- freeColors :: Display -> Colormap -> [Pixel] -> Pixel -> IO ()
- storeColor :: Display -> Colormap -> Color -> IO ()
- queryColor :: Display -> Colormap -> Color -> IO Color
- queryColors :: Display -> Colormap -> [Color] -> IO [Color]
- internAtom :: Display -> String -> Bool -> IO Atom
- getAtomName :: Display -> Atom -> IO (Maybe String)
- getAtomNames :: Display -> [Atom] -> IO [String]
- pRIMARY :: Atom
- sECONDARY :: Atom
- aRC :: Atom
- aTOM :: Atom
- bITMAP :: Atom
- cARDINAL :: Atom
- cOLORMAP :: Atom
- cURSOR :: Atom
- cUT_BUFFER0 :: Atom
- cUT_BUFFER1 :: Atom
- cUT_BUFFER2 :: Atom
- cUT_BUFFER3 :: Atom
- cUT_BUFFER4 :: Atom
- cUT_BUFFER5 :: Atom
- cUT_BUFFER6 :: Atom
- cUT_BUFFER7 :: Atom
- dRAWABLE :: Atom
- fONT :: Atom
- iNTEGER :: Atom
- pIXMAP :: Atom
- pOINT :: Atom
- rECTANGLE :: Atom
- rESOURCE_MANAGER :: Atom
- rGB_COLOR_MAP :: Atom
- rGB_BEST_MAP :: Atom
- rGB_BLUE_MAP :: Atom
- rGB_DEFAULT_MAP :: Atom
- rGB_GRAY_MAP :: Atom
- rGB_GREEN_MAP :: Atom
- rGB_RED_MAP :: Atom
- sTRING :: Atom
- vISUALID :: Atom
- wINDOW :: Atom
- wM_COMMAND :: Atom
- wM_HINTS :: Atom
- wM_CLIENT_MACHINE :: Atom
- wM_ICON_NAME :: Atom
- wM_ICON_SIZE :: Atom
- wM_NAME :: Atom
- wM_NORMAL_HINTS :: Atom
- wM_SIZE_HINTS :: Atom
- wM_ZOOM_HINTS :: Atom
- mIN_SPACE :: Atom
- nORM_SPACE :: Atom
- mAX_SPACE :: Atom
- eND_SPACE :: Atom
- sUPERSCRIPT_X :: Atom
- sUPERSCRIPT_Y :: Atom
- sUBSCRIPT_X :: Atom
- sUBSCRIPT_Y :: Atom
- uNDERLINE_POSITION :: Atom
- uNDERLINE_THICKNESS :: Atom
- sTRIKEOUT_ASCENT :: Atom
- sTRIKEOUT_DESCENT :: Atom
- iTALIC_ANGLE :: Atom
- x_HEIGHT :: Atom
- qUAD_WIDTH :: Atom
- wEIGHT :: Atom
- pOINT_SIZE :: Atom
- rESOLUTION :: Atom
- cOPYRIGHT :: Atom
- nOTICE :: Atom
- fONT_NAME :: Atom
- fAMILY_NAME :: Atom
- fULL_NAME :: Atom
- cAP_HEIGHT :: Atom
- wM_CLASS :: Atom
- wM_TRANSIENT_FOR :: Atom
- lAST_PREDEFINED :: Atom
- type VisualInfoMask = CLong
- type ScreenSaverMode = CInt
- type PreferBlankingMode = CInt
- type AllowExposuresMode = CInt
- copyPlane :: Display -> Drawable -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> Position -> Position -> Pixel -> IO ()
- copyArea :: Display -> Drawable -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> Position -> Position -> IO ()
- fillArc :: Display -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> Angle -> Angle -> IO ()
- fillRectangle :: Display -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> IO ()
- drawArc :: Display -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> Angle -> Angle -> IO ()
- drawRectangle :: Display -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> IO ()
- drawLine :: Display -> Drawable -> GC -> Position -> Position -> Position -> Position -> IO ()
- drawPoint :: Display -> Drawable -> GC -> Position -> Position -> IO ()
- freeCursor :: Display -> Font -> IO ()
- createFontCursor :: Display -> Glyph -> IO Cursor
- undefineCursor :: Display -> Window -> IO ()
- defineCursor :: Display -> Window -> Cursor -> IO ()
- keysymToKeycode :: Display -> KeySym -> IO KeyCode
- keycodeToKeysym :: Display -> KeyCode -> CInt -> IO KeySym
- lookupKeysym :: XKeyEventPtr -> CInt -> IO KeySym
- bitmapPad :: Display -> CInt
- bitmapUnit :: Display -> CInt
- bitmapBitOrder :: Display -> ByteOrder
- freePixmap :: Display -> Pixmap -> IO ()
- createPixmap :: Display -> Drawable -> Dimension -> Dimension -> CInt -> IO Pixmap
- unlockDisplay :: Display -> IO ()
- lockDisplay :: Display -> IO ()
- initThreads :: IO Status
- visualIDFromVisual :: Visual -> IO VisualID
- warpPointer :: Display -> Window -> Window -> Position -> Position -> Dimension -> Dimension -> Position -> Position -> IO ()
- forceScreenSaver :: Display -> ScreenSaverMode -> IO ()
- resetScreenSaver :: Display -> IO ()
- activateScreenSaver :: Display -> IO ()
- setScreenSaver :: Display -> CInt -> CInt -> PreferBlankingMode -> AllowExposuresMode -> IO ()
- supportsLocale :: IO Bool
- ungrabServer :: Display -> IO ()
- grabServer :: Display -> IO ()
- ungrabKeyboard :: Display -> Time -> IO ()
- grabKeyboard :: Display -> Window -> Bool -> GrabMode -> GrabMode -> Time -> IO GrabStatus
- ungrabKey :: Display -> KeyCode -> KeyMask -> Window -> IO ()
- grabKey :: Display -> KeyCode -> KeyMask -> Window -> Bool -> GrabMode -> GrabMode -> IO ()
- ungrabPointer :: Display -> Time -> IO ()
- grabPointer :: Display -> Window -> Bool -> EventMask -> GrabMode -> GrabMode -> Window -> Cursor -> Time -> IO GrabStatus
- ungrabButton :: Display -> Button -> ButtonMask -> Window -> IO ()
- grabButton :: Display -> Button -> ButtonMask -> Window -> Bool -> EventMask -> GrabMode -> GrabMode -> Window -> Cursor -> IO ()
- setInputFocus :: Display -> Window -> FocusMode -> Time -> IO ()
- lastKnownRequestProcessed :: Display -> IO CInt
- setCloseDownMode :: Display -> CloseDownMode -> IO ()
- bell :: Display -> CInt -> IO ()
- autoRepeatOn :: Display -> IO ()
- autoRepeatOff :: Display -> IO ()
- rmInitialize :: IO ()
- getInputFocus :: Display -> IO (Window, FocusMode)
- queryBestTile :: Display -> Drawable -> Dimension -> Dimension -> IO (Dimension, Dimension)
- queryBestStipple :: Display -> Drawable -> Dimension -> Dimension -> IO (Dimension, Dimension)
- queryBestCursor :: Display -> Drawable -> Dimension -> Dimension -> IO (Dimension, Dimension)
- queryBestSize :: Display -> QueryBestSizeClass -> Drawable -> Dimension -> Dimension -> IO (Dimension, Dimension)
- queryPointer :: Display -> Window -> IO (Bool, Window, Window, CInt, CInt, CInt, CInt, Modifier)
- displayName :: String -> String
- setDefaultErrorHandler :: IO ()
- geometry :: Display -> CInt -> String -> String -> Dimension -> Dimension -> Dimension -> CInt -> CInt -> IO (CInt, Position, Position, Dimension, Dimension)
- getGeometry :: Display -> Drawable -> IO (Window, Position, Position, Dimension, Dimension, Dimension, CInt)
- setLocaleModifiers :: String -> IO String
- dontAllowExposures :: AllowExposuresMode
- allowExposures :: AllowExposuresMode
- defaultExposures :: AllowExposuresMode
- dontPreferBlanking :: PreferBlankingMode
- preferBlanking :: PreferBlankingMode
- defaultBlanking :: PreferBlankingMode
- screenSaverActive :: ScreenSaverMode
- screenSaverReset :: ScreenSaverMode
- getScreenSaver :: Display -> IO (CInt, CInt, PreferBlankingMode, AllowExposuresMode)
- getPointerControl :: Display -> IO (CInt, CInt, CInt)
- visualNoMask :: VisualInfoMask
- visualIDMask :: VisualInfoMask
- visualScreenMask :: VisualInfoMask
- visualDepthMask :: VisualInfoMask
- visualClassMask :: VisualInfoMask
- visualRedMaskMask :: VisualInfoMask
- visualGreenMaskMask :: VisualInfoMask
- visualBlueMaskMask :: VisualInfoMask
- visualColormapSizeMask :: VisualInfoMask
- visualBitsPerRGBMask :: VisualInfoMask
- visualAllMask :: VisualInfoMask
- getVisualInfo :: Display -> VisualInfoMask -> VisualInfo -> IO [VisualInfo]
- matchVisualInfo :: Display -> ScreenNumber -> CInt -> CInt -> IO (Maybe VisualInfo)
- readBitmapFile :: Display -> Drawable -> String -> IO (Either String (Dimension, Dimension, Pixmap, Maybe CInt, Maybe CInt))
- displayKeycodes :: Display -> (CInt, CInt)
- keysymToString :: KeySym -> String
- stringToKeysym :: String -> KeySym
- noSymbol :: KeySym
- lookupString :: XKeyEventPtr -> IO (Maybe KeySym, String)
- getIconName :: Display -> Window -> IO String
- setIconName :: Display -> Window -> String -> IO ()
- createPixmapCursor :: Display -> Pixmap -> Pixmap -> Color -> Color -> Dimension -> Dimension -> IO Cursor
- createGlyphCursor :: Display -> Font -> Font -> Glyph -> Glyph -> Color -> Color -> IO Cursor
- recolorCursor :: Display -> Cursor -> Color -> Color -> IO ()
- setWMProtocols :: Display -> Window -> [Atom] -> IO ()
- allocaSetWindowAttributes :: (Ptr SetWindowAttributes -> IO a) -> IO a
- set_background_pixmap :: Ptr SetWindowAttributes -> Pixmap -> IO ()
- set_background_pixel :: Ptr SetWindowAttributes -> Pixel -> IO ()
- set_border_pixmap :: Ptr SetWindowAttributes -> Pixmap -> IO ()
- set_border_pixel :: Ptr SetWindowAttributes -> Pixel -> IO ()
- set_bit_gravity :: Ptr SetWindowAttributes -> BitGravity -> IO ()
- set_win_gravity :: Ptr SetWindowAttributes -> WindowGravity -> IO ()
- set_backing_store :: Ptr SetWindowAttributes -> BackingStore -> IO ()
- set_backing_planes :: Ptr SetWindowAttributes -> Pixel -> IO ()
- set_backing_pixel :: Ptr SetWindowAttributes -> Pixel -> IO ()
- set_save_under :: Ptr SetWindowAttributes -> Bool -> IO ()
- set_event_mask :: Ptr SetWindowAttributes -> EventMask -> IO ()
- set_do_not_propagate_mask :: Ptr SetWindowAttributes -> EventMask -> IO ()
- set_override_redirect :: Ptr SetWindowAttributes -> Bool -> IO ()
- set_colormap :: Ptr SetWindowAttributes -> Colormap -> IO ()
- set_cursor :: Ptr SetWindowAttributes -> Cursor -> IO ()
- drawPoints :: Display -> Drawable -> GC -> [Point] -> CoordinateMode -> IO ()
- drawLines :: Display -> Drawable -> GC -> [Point] -> CoordinateMode -> IO ()
- drawSegments :: Display -> Drawable -> GC -> [Segment] -> IO ()
- drawRectangles :: Display -> Drawable -> GC -> [Rectangle] -> IO ()
- drawArcs :: Display -> Drawable -> GC -> [Arc] -> IO ()
- fillRectangles :: Display -> Drawable -> GC -> [Rectangle] -> IO ()
- fillPolygon :: Display -> Drawable -> GC -> [Point] -> PolygonShape -> CoordinateMode -> IO ()
- fillArcs :: Display -> Drawable -> GC -> [Arc] -> IO ()
- drawString :: Display -> Drawable -> GC -> Position -> Position -> String -> IO ()
- drawImageString :: Display -> Drawable -> GC -> Position -> Position -> String -> IO ()
- storeBuffer :: Display -> String -> CInt -> IO ()
- storeBytes :: Display -> String -> IO ()
- fetchBuffer :: Display -> CInt -> IO String
- fetchBytes :: Display -> IO String
- rotateBuffers :: Display -> CInt -> IO ()
- setTextProperty :: Display -> Window -> String -> Atom -> IO ()
- clearArea :: Display -> Window -> Position -> Position -> Dimension -> Dimension -> Bool -> IO ()
- clearWindow :: Display -> Window -> IO ()
- changeSaveSet :: Display -> Window -> ChangeSaveSetMode -> IO ()
- removeFromSaveSet :: Display -> Window -> IO ()
- addToSaveSet :: Display -> Window -> IO ()
- setWindowColormap :: Display -> Window -> Colormap -> IO ()
- setWindowBackgroundPixmap :: Display -> Window -> Pixmap -> IO ()
- setWindowBackground :: Display -> Window -> Pixel -> IO ()
- setWindowBorderWidth :: Display -> Window -> Dimension -> IO ()
- setWindowBorderPixmap :: Display -> Window -> Pixmap -> IO ()
- setWindowBorder :: Display -> Window -> Pixel -> IO ()
- destroySubwindows :: Display -> Window -> IO ()
- destroyWindow :: Display -> Window -> IO ()
- circulateSubwindows :: Display -> Window -> CirculationDirection -> IO ()
- circulateSubwindowsUp :: Display -> Window -> IO ()
- circulateSubwindowsDown :: Display -> Window -> IO ()
- raiseWindow :: Display -> Window -> IO ()
- lowerWindow :: Display -> Window -> IO ()
- mapWindow :: Display -> Window -> IO ()
- unmapSubwindows :: Display -> Window -> IO ()
- mapSubwindows :: Display -> Window -> IO ()
- reparentWindow :: Display -> Window -> Window -> Position -> Position -> IO ()
- moveWindow :: Display -> Window -> Position -> Position -> IO ()
- resizeWindow :: Display -> Window -> Dimension -> Dimension -> IO ()
- moveResizeWindow :: Display -> Window -> Position -> Position -> Dimension -> Dimension -> IO ()
- createWindow :: Display -> Window -> Position -> Position -> Dimension -> Dimension -> CInt -> CInt -> WindowClass -> Visual -> AttributeMask -> Ptr SetWindowAttributes -> IO Window
- createSimpleWindow :: Display -> Window -> Position -> Position -> Dimension -> Dimension -> CInt -> Pixel -> Pixel -> IO Window
- storeName :: Display -> Window -> String -> IO ()
- translateCoordinates :: Display -> Window -> Window -> Position -> Position -> IO (Bool, Position, Position, Window)
- iconifyWindow :: Display -> Window -> ScreenNumber -> IO ()
- withdrawWindow :: Display -> Window -> ScreenNumber -> IO ()
- restackWindows :: Display -> [Window] -> IO ()
- module Graphics.X11.Xlib.Extras
- (.|.) :: Bits a => a -> a -> a
- class Monad m => MonadState s (m :: Type -> Type) | m -> s where
  - get :: m s
  - put :: s -> m ()
  - state :: (s -> (a, s)) -> m a
- gets :: MonadState s m => (s -> a) -> m a
- modify :: MonadState s m => (s -> s) -> m ()
- class Monad m => MonadReader r (m :: Type -> Type) | m -> r where
  - ask :: m r
  - local :: (r -> r) -> m a -> m a
  - reader :: (r -> a) -> m a
- asks :: MonadReader r m => (r -> a) -> m a
- class Monad m => MonadIO (m :: Type -> Type) where
  - liftIO :: IO a -> m a

# Documentation

module XMonad.Main

module XMonad.Core

module XMonad.Config

module XMonad.Layout

module XMonad.ManageHook

module XMonad.Operations

type XRRModeFlags = Word64 Source #

type RRMode = Word64 Source #

type RRCrtc = Word64 Source #

type RROutput = Word64 Source #

type Connection = Word16 Source #

type SubpixelOrder = Word16 Source #

type SizeID = Word16 Source #

type Reflection = Word16 Source #

type Rotation = Word16 Source #

type ImageFormat = CInt Source #

type FontDirection = CInt Source #

type BackingStore = CInt Source #

type WindowGravity = CInt Source #

type BitGravity = CInt Source #

type ChangeSaveSetMode = CInt Source #

type MappingRequest = CInt Source #

type ColormapAlloc = CInt Source #

type ByteOrder = CInt Source #

type CirculationDirection = CInt Source #

type GCMask = CInt Source #

type ArcMode = CInt Source #

type PolygonShape = CInt Source #

type CoordinateMode = CInt Source #

type SubWindowMode = CInt Source #

type FillRule = CInt Source #

type FillStyle = CInt Source #

type JoinStyle = CInt Source #

type CapStyle = CInt Source #

type LineStyle = CInt Source #

type GXFunction = CInt Source #

type QueryBestSizeClass = CInt Source #

type CloseDownMode = CInt Source #

type AttributeMask = Mask Source #

type WindowClass = CInt Source #

type Status = CInt Source #

type ErrorCode = CInt Source #

type FocusMode = CInt Source #

type AllowEvents = CInt Source #

type GrabStatus = CInt Source #

type GrabMode = CInt Source #

type ColormapNotification = CInt Source #

type PropertyNotification = CInt Source #

type Protocol = CInt Source #

type Place = CInt Source #

Place of window relative to siblings (used in Circulation requests or events)

type Visibility = CInt Source #

type NotifyDetail = CInt Source #

type NotifyMode = CInt Source #

type Button = Word32 Source #

type ButtonMask = Modifier Source #

type KeyMask = Modifier Source #

type Modifier = CUInt Source #

type EventType = Word32 Source #

type EventMask = Mask Source #

type KeySym = XID Source #

type KeyCode = Word8 Source #

type GContext = XID Source #

type Colormap = XID Source #

type Cursor = XID Source #

type Pixmap = XID Source #

type Font = XID Source #

type Drawable = XID Source #

type Window = XID Source #

type Time = Word64 Source #

type VisualID = Word64 Source #

type Atom = Word64 Source #

type Mask = Word64 Source #

type XID = Word64 Source #

xK_VoidSymbol :: KeySym Source #

xK_BackSpace :: KeySym Source #

xK_Tab :: KeySym Source #

xK_Linefeed :: KeySym Source #

xK_Clear :: KeySym Source #

xK_Return :: KeySym Source #

xK_Pause :: KeySym Source #

xK_Scroll_Lock :: KeySym Source #

xK_Sys_Req :: KeySym Source #

xK_Escape :: KeySym Source #

xK_Delete :: KeySym Source #

xK_Multi_key :: KeySym Source #

xK_Codeinput :: KeySym Source #

xK_SingleCandidate :: KeySym Source #

xK_MultipleCandidate :: KeySym Source #

xK_PreviousCandidate :: KeySym Source #

xK_Home :: KeySym Source #

xK_Left :: KeySym Source #

xK_Up :: KeySym Source #

xK_Right :: KeySym Source #

xK_Down :: KeySym Source #

xK_Prior :: KeySym Source #

xK_Page_Up :: KeySym Source #

xK_Next :: KeySym Source #

xK_Page_Down :: KeySym Source #

xK_End :: KeySym Source #

xK_Begin :: KeySym Source #

xK_Select :: KeySym Source #

xK_Print :: KeySym Source #

xK_Execute :: KeySym Source #

xK_Insert :: KeySym Source #

xK_Undo :: KeySym Source #

xK_Redo :: KeySym Source #

xK_Menu :: KeySym Source #

xK_Find :: KeySym Source #

xK_Cancel :: KeySym Source #

xK_Help :: KeySym Source #

xK_Break :: KeySym Source #

xK_Mode_switch :: KeySym Source #

xK_script_switch :: KeySym Source #

xK_Num_Lock :: KeySym Source #

xK_KP_Space :: KeySym Source #

xK_KP_Tab :: KeySym Source #

xK_KP_Enter :: KeySym Source #

xK_KP_F1 :: KeySym Source #

xK_KP_F2 :: KeySym Source #

xK_KP_F3 :: KeySym Source #

xK_KP_F4 :: KeySym Source #

xK_KP_Home :: KeySym Source #

xK_KP_Left :: KeySym Source #

xK_KP_Up :: KeySym Source #

xK_KP_Right :: KeySym Source #

xK_KP_Down :: KeySym Source #

xK_KP_Prior :: KeySym Source #

xK_KP_Page_Up :: KeySym Source #

xK_KP_Next :: KeySym Source #

xK_KP_Page_Down :: KeySym Source #

xK_KP_End :: KeySym Source #

xK_KP_Begin :: KeySym Source #

xK_KP_Insert :: KeySym Source #

xK_KP_Delete :: KeySym Source #

xK_KP_Equal :: KeySym Source #

xK_KP_Multiply :: KeySym Source #

xK_KP_Add :: KeySym Source #

xK_KP_Separator :: KeySym Source #

xK_KP_Subtract :: KeySym Source #

xK_KP_Decimal :: KeySym Source #

xK_KP_Divide :: KeySym Source #

xK_KP_0 :: KeySym Source #

xK_KP_1 :: KeySym Source #

xK_KP_2 :: KeySym Source #

xK_KP_3 :: KeySym Source #

xK_KP_4 :: KeySym Source #

xK_KP_5 :: KeySym Source #

xK_KP_6 :: KeySym Source #

xK_KP_7 :: KeySym Source #

xK_KP_8 :: KeySym Source #

xK_KP_9 :: KeySym Source #

xK_F1 :: KeySym Source #

xK_F2 :: KeySym Source #

xK_F3 :: KeySym Source #

xK_F4 :: KeySym Source #

xK_F5 :: KeySym Source #

xK_F6 :: KeySym Source #

xK_F7 :: KeySym Source #

xK_F8 :: KeySym Source #

xK_F9 :: KeySym Source #

xK_F10 :: KeySym Source #

xK_F11 :: KeySym Source #

xK_L1 :: KeySym Source #

xK_F12 :: KeySym Source #

xK_L2 :: KeySym Source #

xK_F13 :: KeySym Source #

xK_L3 :: KeySym Source #

xK_F14 :: KeySym Source #

xK_L4 :: KeySym Source #

xK_F15 :: KeySym Source #

xK_L5 :: KeySym Source #

xK_F16 :: KeySym Source #

xK_L6 :: KeySym Source #

xK_F17 :: KeySym Source #

xK_L7 :: KeySym Source #

xK_F18 :: KeySym Source #

xK_L8 :: KeySym Source #

xK_F19 :: KeySym Source #

xK_L9 :: KeySym Source #

xK_F20 :: KeySym Source #

xK_L10 :: KeySym Source #

xK_F21 :: KeySym Source #

xK_R1 :: KeySym Source #

xK_F22 :: KeySym Source #

xK_R2 :: KeySym Source #

xK_F23 :: KeySym Source #

xK_R3 :: KeySym Source #

xK_F24 :: KeySym Source #

xK_R4 :: KeySym Source #

xK_F25 :: KeySym Source #

xK_R5 :: KeySym Source #

xK_F26 :: KeySym Source #

xK_R6 :: KeySym Source #

xK_F27 :: KeySym Source #

xK_R7 :: KeySym Source #

xK_F28 :: KeySym Source #

xK_R8 :: KeySym Source #

xK_F29 :: KeySym Source #

xK_R9 :: KeySym Source #

xK_F30 :: KeySym Source #

xK_R10 :: KeySym Source #

xK_F31 :: KeySym Source #

xK_R11 :: KeySym Source #

xK_F32 :: KeySym Source #

xK_R12 :: KeySym Source #

xK_F33 :: KeySym Source #

xK_R13 :: KeySym Source #

xK_F34 :: KeySym Source #

xK_R14 :: KeySym Source #

xK_F35 :: KeySym Source #

xK_R15 :: KeySym Source #

xK_Shift_L :: KeySym Source #

xK_Shift_R :: KeySym Source #

xK_Control_L :: KeySym Source #

xK_Control_R :: KeySym Source #

xK_Caps_Lock :: KeySym Source #

xK_Shift_Lock :: KeySym Source #

xK_Meta_L :: KeySym Source #

xK_Meta_R :: KeySym Source #

xK_Alt_L :: KeySym Source #

xK_Alt_R :: KeySym Source #

xK_Super_L :: KeySym Source #

xK_Super_R :: KeySym Source #

xK_Hyper_L :: KeySym Source #

xK_Hyper_R :: KeySym Source #

xK_space :: KeySym Source #

xK_exclam :: KeySym Source #

xK_quotedbl :: KeySym Source #

xK_numbersign :: KeySym Source #

xK_dollar :: KeySym Source #

xK_percent :: KeySym Source #

xK_ampersand :: KeySym Source #

xK_apostrophe :: KeySym Source #

xK_quoteright :: KeySym Source #

xK_parenleft :: KeySym Source #

xK_parenright :: KeySym Source #

xK_asterisk :: KeySym Source #

xK_plus :: KeySym Source #

xK_comma :: KeySym Source #

xK_minus :: KeySym Source #

xK_period :: KeySym Source #

xK_slash :: KeySym Source #

xK_0 :: KeySym Source #

xK_1 :: KeySym Source #

xK_2 :: KeySym Source #

xK_3 :: KeySym Source #

xK_4 :: KeySym Source #

xK_5 :: KeySym Source #

xK_6 :: KeySym Source #

xK_7 :: KeySym Source #

xK_8 :: KeySym Source #

xK_9 :: KeySym Source #

xK_colon :: KeySym Source #

xK_semicolon :: KeySym Source #

xK_less :: KeySym Source #

xK_equal :: KeySym Source #

xK_greater :: KeySym Source #

xK_question :: KeySym Source #

xK_at :: KeySym Source #

xK_A :: KeySym Source #

xK_B :: KeySym Source #

xK_C :: KeySym Source #

xK_D :: KeySym Source #

xK_E :: KeySym Source #

xK_F :: KeySym Source #

xK_G :: KeySym Source #

xK_H :: KeySym Source #

xK_I :: KeySym Source #

xK_J :: KeySym Source #

xK_K :: KeySym Source #

xK_L :: KeySym Source #

xK_M :: KeySym Source #

xK_N :: KeySym Source #

xK_O :: KeySym Source #

xK_P :: KeySym Source #

xK_Q :: KeySym Source #

xK_R :: KeySym Source #

xK_S :: KeySym Source #

xK_T :: KeySym Source #

xK_U :: KeySym Source #

xK_V :: KeySym Source #

xK_W :: KeySym Source #

xK_X :: KeySym Source #

xK_Y :: KeySym Source #

xK_Z :: KeySym Source #

xK_bracketleft :: KeySym Source #

xK_backslash :: KeySym Source #

xK_bracketright :: KeySym Source #

xK_asciicircum :: KeySym Source #

xK_underscore :: KeySym Source #

xK_grave :: KeySym Source #

xK_quoteleft :: KeySym Source #

xK_a :: KeySym Source #

xK_b :: KeySym Source #

xK_c :: KeySym Source #

xK_d :: KeySym Source #

xK_e :: KeySym Source #

xK_f :: KeySym Source #

xK_g :: KeySym Source #

xK_h :: KeySym Source #

xK_i :: KeySym Source #

xK_j :: KeySym Source #

xK_k :: KeySym Source #

xK_l :: KeySym Source #

xK_m :: KeySym Source #

xK_n :: KeySym Source #

xK_o :: KeySym Source #

xK_p :: KeySym Source #

xK_q :: KeySym Source #

xK_r :: KeySym Source #

xK_s :: KeySym Source #

xK_t :: KeySym Source #

xK_u :: KeySym Source #

xK_v :: KeySym Source #

xK_w :: KeySym Source #

xK_x :: KeySym Source #

xK_y :: KeySym Source #

xK_z :: KeySym Source #

xK_braceleft :: KeySym Source #

xK_bar :: KeySym Source #

xK_braceright :: KeySym Source #

xK_asciitilde :: KeySym Source #

xK_nobreakspace :: KeySym Source #

xK_exclamdown :: KeySym Source #

xK_cent :: KeySym Source #

xK_sterling :: KeySym Source #

xK_currency :: KeySym Source #

xK_yen :: KeySym Source #

xK_brokenbar :: KeySym Source #

xK_section :: KeySym Source #

xK_diaeresis :: KeySym Source #

xK_copyright :: KeySym Source #

xK_ordfeminine :: KeySym Source #

xK_guillemotleft :: KeySym Source #

xK_notsign :: KeySym Source #

xK_hyphen :: KeySym Source #

xK_registered :: KeySym Source #

xK_macron :: KeySym Source #

xK_degree :: KeySym Source #

xK_plusminus :: KeySym Source #

xK_twosuperior :: KeySym Source #

xK_threesuperior :: KeySym Source #

xK_acute :: KeySym Source #

xK_mu :: KeySym Source #

xK_paragraph :: KeySym Source #

xK_periodcentered :: KeySym Source #

xK_cedilla :: KeySym Source #

xK_onesuperior :: KeySym Source #

xK_masculine :: KeySym Source #

xK_guillemotright :: KeySym Source #

xK_onequarter :: KeySym Source #

xK_onehalf :: KeySym Source #

xK_threequarters :: KeySym Source #

xK_questiondown :: KeySym Source #

xK_Agrave :: KeySym Source #

xK_Aacute :: KeySym Source #

xK_Acircumflex :: KeySym Source #

xK_Atilde :: KeySym Source #

xK_Adiaeresis :: KeySym Source #

xK_Aring :: KeySym Source #

xK_AE :: KeySym Source #

xK_Ccedilla :: KeySym Source #

xK_Egrave :: KeySym Source #

xK_Eacute :: KeySym Source #

xK_Ecircumflex :: KeySym Source #

xK_Ediaeresis :: KeySym Source #

xK_Igrave :: KeySym Source #

xK_Iacute :: KeySym Source #

xK_Icircumflex :: KeySym Source #

xK_Idiaeresis :: KeySym Source #

xK_ETH :: KeySym Source #

xK_Eth :: KeySym Source #

xK_Ntilde :: KeySym Source #

xK_Ograve :: KeySym Source #

xK_Oacute :: KeySym Source #

xK_Ocircumflex :: KeySym Source #

xK_Otilde :: KeySym Source #

xK_Odiaeresis :: KeySym Source #

xK_multiply :: KeySym Source #

xK_Ooblique :: KeySym Source #

xK_Ugrave :: KeySym Source #

xK_Uacute :: KeySym Source #

xK_Ucircumflex :: KeySym Source #

xK_Udiaeresis :: KeySym Source #

xK_Yacute :: KeySym Source #

xK_THORN :: KeySym Source #

xK_Thorn :: KeySym Source #

xK_ssharp :: KeySym Source #

xK_agrave :: KeySym Source #

xK_aacute :: KeySym Source #

xK_acircumflex :: KeySym Source #

xK_atilde :: KeySym Source #

xK_adiaeresis :: KeySym Source #

xK_aring :: KeySym Source #

xK_ae :: KeySym Source #

xK_ccedilla :: KeySym Source #

xK_egrave :: KeySym Source #

xK_eacute :: KeySym Source #

xK_ecircumflex :: KeySym Source #

xK_ediaeresis :: KeySym Source #

xK_igrave :: KeySym Source #

xK_iacute :: KeySym Source #

xK_icircumflex :: KeySym Source #

xK_idiaeresis :: KeySym Source #

xK_eth :: KeySym Source #

xK_ntilde :: KeySym Source #

xK_ograve :: KeySym Source #

xK_oacute :: KeySym Source #

xK_ocircumflex :: KeySym Source #

xK_otilde :: KeySym Source #

xK_odiaeresis :: KeySym Source #

xK_division :: KeySym Source #

xK_oslash :: KeySym Source #

xK_ugrave :: KeySym Source #

xK_uacute :: KeySym Source #

xK_ucircumflex :: KeySym Source #

xK_udiaeresis :: KeySym Source #

xK_yacute :: KeySym Source #

xK_thorn :: KeySym Source #

xK_ydiaeresis :: KeySym Source #

noEventMask :: EventMask Source #

keyPressMask :: EventMask Source #

keyReleaseMask :: EventMask Source #

buttonPressMask :: EventMask Source #

buttonReleaseMask :: EventMask Source #

enterWindowMask :: EventMask Source #

leaveWindowMask :: EventMask Source #

pointerMotionMask :: EventMask Source #

pointerMotionHintMask :: EventMask Source #

button1MotionMask :: EventMask Source #

button2MotionMask :: EventMask Source #

button3MotionMask :: EventMask Source #

button4MotionMask :: EventMask Source #

button5MotionMask :: EventMask Source #

buttonMotionMask :: EventMask Source #

keymapStateMask :: EventMask Source #

exposureMask :: EventMask Source #

visibilityChangeMask :: EventMask Source #

structureNotifyMask :: EventMask Source #

resizeRedirectMask :: EventMask Source #

substructureNotifyMask :: EventMask Source #

substructureRedirectMask :: EventMask Source #

focusChangeMask :: EventMask Source #

propertyChangeMask :: EventMask Source #

colormapChangeMask :: EventMask Source #

ownerGrabButtonMask :: EventMask Source #

rrScreenChangeNotifyMask :: EventMask Source #

rrCrtcChangeNotifyMask :: EventMask Source #

rrOutputChangeNotifyMask :: EventMask Source #

rrOutputPropertyNotifyMask :: EventMask Source #

screenSaverCycleMask :: EventMask Source #

screenSaverNotifyMask :: EventMask Source #

keyPress :: EventType Source #

keyRelease :: EventType Source #

buttonPress :: EventType Source #

buttonRelease :: EventType Source #

motionNotify :: EventType Source #

enterNotify :: EventType Source #

leaveNotify :: EventType Source #

focusIn :: EventType Source #

focusOut :: EventType Source #

keymapNotify :: EventType Source #

expose :: EventType Source #

graphicsExpose :: EventType Source #

noExpose :: EventType Source #

visibilityNotify :: EventType Source #

createNotify :: EventType Source #

destroyNotify :: EventType Source #

unmapNotify :: EventType Source #

mapNotify :: EventType Source #

mapRequest :: EventType Source #

reparentNotify :: EventType Source #

configureNotify :: EventType Source #

configureRequest :: EventType Source #

gravityNotify :: EventType Source #

resizeRequest :: EventType Source #

circulateNotify :: EventType Source #

circulateRequest :: EventType Source #

propertyNotify :: EventType Source #

selectionClear :: EventType Source #

selectionRequest :: EventType Source #

selectionNotify :: EventType Source #

colormapNotify :: EventType Source #

clientMessage :: EventType Source #

mappingNotify :: EventType Source #

rrScreenChangeNotify :: EventType Source #

rrNotify :: EventType Source #

rrNotifyCrtcChange :: EventType Source #

rrNotifyOutputChange :: EventType Source #

rrNotifyOutputProperty :: EventType Source #

lASTEvent :: EventType Source #

screenSaverNotify :: EventType Source #

shiftMapIndex :: Modifier Source #

lockMapIndex :: Modifier Source #

controlMapIndex :: Modifier Source #

mod1MapIndex :: Modifier Source #

mod2MapIndex :: Modifier Source #

mod3MapIndex :: Modifier Source #

mod4MapIndex :: Modifier Source #

mod5MapIndex :: Modifier Source #

anyModifier :: Modifier Source #

noModMask :: KeyMask Source #

shiftMask :: KeyMask Source #

lockMask :: KeyMask Source #

controlMask :: KeyMask Source #

mod1Mask :: KeyMask Source #

mod2Mask :: KeyMask Source #

mod3Mask :: KeyMask Source #

mod4Mask :: KeyMask Source #

mod5Mask :: KeyMask Source #

button1Mask :: ButtonMask Source #

button2Mask :: ButtonMask Source #

button3Mask :: ButtonMask Source #

button4Mask :: ButtonMask Source #

button5Mask :: ButtonMask Source #

button1 :: Button Source #

button2 :: Button Source #

button3 :: Button Source #

button4 :: Button Source #

button5 :: Button Source #

notifyNormal :: NotifyMode Source #

notifyGrab :: NotifyMode Source #

notifyUngrab :: NotifyMode Source #

notifyWhileGrabbed :: NotifyMode Source #

notifyHint :: NotifyMode Source #

notifyAncestor :: NotifyDetail Source #

notifyVirtual :: NotifyDetail Source #

notifyInferior :: NotifyDetail Source #

notifyNonlinear :: NotifyDetail Source #

notifyNonlinearVirtual :: NotifyDetail Source #

notifyPointer :: NotifyDetail Source #

notifyPointerRoot :: NotifyDetail Source #

notifyDetailNone :: NotifyDetail Source #

visibilityUnobscured :: Visibility Source #

visibilityPartiallyObscured :: Visibility Source #

visibilityFullyObscured :: Visibility Source #

placeOnTop :: Place Source #

placeOnBottom :: Place Source #

familyInternet :: Protocol Source #

familyDECnet :: Protocol Source #

familyChaos :: Protocol Source #

propertyNewValue :: PropertyNotification Source #

propertyDelete :: PropertyNotification Source #

colormapUninstalled :: ColormapNotification Source #

colormapInstalled :: ColormapNotification Source #

grabModeSync :: GrabMode Source #

grabModeAsync :: GrabMode Source #

grabSuccess :: GrabStatus Source #

alreadyGrabbed :: GrabStatus Source #

grabInvalidTime :: GrabStatus Source #

grabNotViewable :: GrabStatus Source #

grabFrozen :: GrabStatus Source #

asyncPointer :: AllowEvents Source #

syncPointer :: AllowEvents Source #

replayPointer :: AllowEvents Source #

asyncKeyboard :: AllowEvents Source #

syncKeyboard :: AllowEvents Source #

replayKeyboard :: AllowEvents Source #

asyncBoth :: AllowEvents Source #

syncBoth :: AllowEvents Source #

revertToNone :: FocusMode Source #

revertToPointerRoot :: FocusMode Source #

revertToParent :: FocusMode Source #

success :: ErrorCode Source #

badRequest :: ErrorCode Source #

badValue :: ErrorCode Source #

badWindow :: ErrorCode Source #

badPixmap :: ErrorCode Source #

badAtom :: ErrorCode Source #

badCursor :: ErrorCode Source #

badFont :: ErrorCode Source #

badMatch :: ErrorCode Source #

badDrawable :: ErrorCode Source #

badAccess :: ErrorCode Source #

badAlloc :: ErrorCode Source #

badColor :: ErrorCode Source #

badGC :: ErrorCode Source #

Xlib functions with return values of type `Status` return zero on failure and nonzero on success.

badIDChoice :: ErrorCode Source #

badName :: ErrorCode Source #

badLength :: ErrorCode Source #

badImplementation :: ErrorCode Source #

firstExtensionError :: ErrorCode Source #

lastExtensionError :: ErrorCode Source #

throwIfZero :: String -> IO Status -> IO () Source #

copyFromParent :: WindowClass Source #

inputOutput :: WindowClass Source #

inputOnly :: WindowClass Source #

cWBackPixmap :: AttributeMask Source #

cWBackPixel :: AttributeMask Source #

cWBorderPixmap :: AttributeMask Source #

cWBorderPixel :: AttributeMask Source #

cWBitGravity :: AttributeMask Source #

cWWinGravity :: AttributeMask Source #

cWBackingStore :: AttributeMask Source #

cWBackingPlanes :: AttributeMask Source #

cWBackingPixel :: AttributeMask Source #

cWOverrideRedirect :: AttributeMask Source #

cWSaveUnder :: AttributeMask Source #

cWEventMask :: AttributeMask Source #

cWDontPropagate :: AttributeMask Source #

cWColormap :: AttributeMask Source #

cWCursor :: AttributeMask Source #

cWX :: AttributeMask Source #

cWY :: AttributeMask Source #

cWWidth :: AttributeMask Source #

cWHeight :: AttributeMask Source #

destroyAll :: CloseDownMode Source #

retainPermanent :: CloseDownMode Source #

retainTemporary :: CloseDownMode Source #

cursorShape :: QueryBestSizeClass Source #

tileShape :: QueryBestSizeClass Source #

stippleShape :: QueryBestSizeClass Source #

gXclear :: GXFunction Source #

gXand :: GXFunction Source #

gXandReverse :: GXFunction Source #

gXcopy :: GXFunction Source #

gXandInverted :: GXFunction Source #

gXnoop :: GXFunction Source #

gXxor :: GXFunction Source #

gXor :: GXFunction Source #

gXnor :: GXFunction Source #

gXequiv :: GXFunction Source #

gXinvert :: GXFunction Source #

gXorReverse :: GXFunction Source #

gXcopyInverted :: GXFunction Source #

gXorInverted :: GXFunction Source #

gXnand :: GXFunction Source #

gXset :: GXFunction Source #

lineSolid :: LineStyle Source #

lineOnOffDash :: LineStyle Source #

lineDoubleDash :: LineStyle Source #

capNotLast :: CapStyle Source #

capButt :: CapStyle Source #

capRound :: CapStyle Source #

capProjecting :: CapStyle Source #

joinMiter :: JoinStyle Source #

joinRound :: JoinStyle Source #

joinBevel :: JoinStyle Source #

fillSolid :: FillStyle Source #

fillTiled :: FillStyle Source #

fillStippled :: FillStyle Source #

fillOpaqueStippled :: FillStyle Source #

evenOddRule :: FillRule Source #

windingRule :: FillRule Source #

clipByChildren :: SubWindowMode Source #

includeInferiors :: SubWindowMode Source #

coordModeOrigin :: CoordinateMode Source #

coordModePrevious :: CoordinateMode Source #

complex :: PolygonShape Source #

nonconvex :: PolygonShape Source #

convex :: PolygonShape Source #

arcChord :: ArcMode Source #

arcPieSlice :: ArcMode Source #

gCFunction :: GCMask Source #

gCPlaneMask :: GCMask Source #

gCForeground :: GCMask Source #

gCBackground :: GCMask Source #

gCLineWidth :: GCMask Source #

gCLineStyle :: GCMask Source #

gCCapStyle :: GCMask Source #

gCJoinStyle :: GCMask Source #

gCFillStyle :: GCMask Source #

gCFillRule :: GCMask Source #

gCTile :: GCMask Source #

gCStipple :: GCMask Source #

gCTileStipXOrigin :: GCMask Source #

gCTileStipYOrigin :: GCMask Source #

gCFont :: GCMask Source #

gCSubwindowMode :: GCMask Source #

gCGraphicsExposures :: GCMask Source #

gCClipXOrigin :: GCMask Source #

gCClipYOrigin :: GCMask Source #

gCClipMask :: GCMask Source #

gCDashOffset :: GCMask Source #

gCDashList :: GCMask Source #

gCArcMode :: GCMask Source #

gCLastBit :: GCMask Source #

raiseLowest :: CirculationDirection Source #

lowerHighest :: CirculationDirection Source #

lSBFirst :: ByteOrder Source #

mSBFirst :: ByteOrder Source #

allocNone :: ColormapAlloc Source #

allocAll :: ColormapAlloc Source #

mappingModifier :: MappingRequest Source #

mappingKeyboard :: MappingRequest Source #

mappingPointer :: MappingRequest Source #

setModeInsert :: ChangeSaveSetMode Source #

setModeDelete :: ChangeSaveSetMode Source #

forgetGravity :: BitGravity Source #

northWestGravity :: BitGravity Source #

northGravity :: BitGravity Source #

northEastGravity :: BitGravity Source #

westGravity :: BitGravity Source #

centerGravity :: BitGravity Source #

eastGravity :: BitGravity Source #

southWestGravity :: BitGravity Source #

southGravity :: BitGravity Source #

southEastGravity :: BitGravity Source #

staticGravity :: BitGravity Source #

unmapGravity :: WindowGravity Source #

notUseful :: BackingStore Source #

whenMapped :: BackingStore Source #

always :: BackingStore Source #

doRed :: Word8 Source #

doGreen :: Word8 Source #

doBlue :: Word8 Source #

fontLeftToRight :: FontDirection Source #

fontRightToLeft :: FontDirection Source #

xyBitmap :: ImageFormat Source #

xyPixmap :: ImageFormat Source #

zPixmap :: ImageFormat Source #

xRR_Rotate_0 :: Rotation Source #

xRR_Rotate_90 :: Rotation Source #

xRR_Rotate_180 :: Rotation Source #

xRR_Rotate_270 :: Rotation Source #

xRR_Reflect_X :: Reflection Source #

xRR_Reflect_Y :: Reflection Source #

xRR_Connected :: Connection Source #

xRR_Disconnected :: Connection Source #

xRR_UnknownConnection :: Connection Source #

data Color Source #

counterpart of an X11 `XColor` structure

Constructors

Color |

Fields

- color_pixel :: Pixel
- color_red :: Word16
- color_green :: Word16
- color_blue :: Word16
- color_flags :: Word8

#### Instances

Instances details

Data Color |

Instance details

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 :: forall r r'. (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 #

Storable Color |

Instance details

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 #

peek :: Ptr Color -> IO Color Source #

poke :: Ptr Color -> Color -> IO () Source #

Show Color |
Instance details Defined in Graphics.X11.Xlib.Types Methods showsPrec :: Int -> Color -> ShowS Source # show :: Color -> String Source # showList :: [Color] -> ShowS Source #
Eq Color |
Instance details Defined in Graphics.X11.Xlib.Types Methods (==) :: Color -> Color -> Bool Source # (/=) :: Color -> Color -> Bool Source #

data Segment Source #

counterpart of an X11 `XSegment` structure

Constructors

Segment |

Fields

- seg_x1 :: Position
- seg_y1 :: Position
- seg_x2 :: Position
- seg_y2 :: Position

#### Instances

Instances details

Data Segment |

Instance details

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 :: forall r r'. (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 #

Storable Segment |

Instance details

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 #

peek :: Ptr Segment -> IO Segment Source #

poke :: Ptr Segment -> Segment -> IO () Source #

Show Segment |
Instance details Defined in Graphics.X11.Xlib.Types Methods showsPrec :: Int -> Segment -> ShowS Source # show :: Segment -> String Source # showList :: [Segment] -> ShowS Source #
Eq Segment |
Instance details Defined in Graphics.X11.Xlib.Types Methods (==) :: Segment -> Segment -> Bool Source # (/=) :: Segment -> Segment -> Bool Source #

data Arc Source #

counterpart of an X11 `XArc` structure

Constructors

Arc |

Fields

- arc_x :: Position
- arc_y :: Position
- arc_width :: Dimension
- arc_height :: Dimension
- arc_angle1 :: Angle
- arc_angle2 :: Angle

#### Instances

Instances details

Storable Arc |

Instance details

Defined in Graphics.X11.Xlib.Types

Methods

sizeOf :: Arc -> Int Source #

alignment :: Arc -> Int Source #

peekElemOff :: Ptr Arc -> Int -> IO Arc Source #

pokeElemOff :: Ptr Arc -> Int -> Arc -> IO () Source #

peekByteOff :: Ptr b -> Int -> IO Arc Source #

pokeByteOff :: Ptr b -> Int -> Arc -> IO () Source #

peek :: Ptr Arc -> IO Arc Source #

poke :: Ptr Arc -> Arc -> IO () Source #

Show Arc |
Instance details Defined in Graphics.X11.Xlib.Types Methods showsPrec :: Int -> Arc -> ShowS Source # show :: Arc -> String Source # showList :: [Arc] -> ShowS Source #
Eq Arc |
Instance details Defined in Graphics.X11.Xlib.Types Methods (==) :: Arc -> Arc -> Bool Source # (/=) :: Arc -> Arc -> Bool Source #

data Rectangle Source #

counterpart of an X11 `XRectangle` structure

Constructors

Rectangle |

Fields

- rect_x :: !Position
- rect_y :: !Position
- rect_width :: !Dimension
- rect_height :: !Dimension

#### Instances

Instances details

Data Rectangle |

Instance details

Defined in Graphics.X11.Xlib.Types

Methods

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

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

toConstr :: Rectangle -> Constr Source #

dataTypeOf :: Rectangle -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Storable Rectangle |

Instance details

Defined in Graphics.X11.Xlib.Types

Methods

sizeOf :: Rectangle -> Int Source #

alignment :: Rectangle -> Int Source #

peekElemOff :: Ptr Rectangle -> Int -> IO Rectangle Source #

pokeElemOff :: Ptr Rectangle -> Int -> Rectangle -> IO () Source #

peekByteOff :: Ptr b -> Int -> IO Rectangle Source #

pokeByteOff :: Ptr b -> Int -> Rectangle -> IO () Source #

peek :: Ptr Rectangle -> IO Rectangle Source #

poke :: Ptr Rectangle -> Rectangle -> IO () Source #

Read Rectangle |
Instance details Defined in Graphics.X11.Xlib.Types Methods readsPrec :: Int -> ReadS Rectangle Source # readList :: ReadS [Rectangle] Source # readPrec :: ReadPrec Rectangle Source # readListPrec :: ReadPrec [Rectangle] Source #
Show Rectangle |
Instance details Defined in Graphics.X11.Xlib.Types Methods showsPrec :: Int -> Rectangle -> ShowS Source # show :: Rectangle -> String Source # showList :: [Rectangle] -> ShowS Source #
Eq Rectangle |
Instance details Defined in Graphics.X11.Xlib.Types Methods (==) :: Rectangle -> Rectangle -> Bool Source # (/=) :: Rectangle -> Rectangle -> Bool Source #

data Point Source #

counterpart of an X11 `XPoint` structure

Constructors

Point |

Fields

- pt_x :: !Position
- pt_y :: !Position

#### Instances

Instances details

Data Point |

Instance details

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 :: forall r r'. (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 #

Storable Point |

Instance details

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 #

peek :: Ptr Point -> IO Point Source #

poke :: Ptr Point -> Point -> IO () Source #

Show Point |
Instance details Defined in Graphics.X11.Xlib.Types Methods showsPrec :: Int -> Point -> ShowS Source # show :: Point -> String Source # showList :: [Point] -> ShowS Source #
Eq Point |
Instance details Defined in Graphics.X11.Xlib.Types Methods (==) :: Point -> Point -> Bool Source # (/=) :: Point -> Point -> Bool Source #

type Buffer = CInt Source #

type ScreenNumber = Word32 Source #

type Angle = CInt Source #

type Dimension = Word32 Source #

type Position = Int32 Source #

type Pixel = Word64 Source #

data Image Source #

pointer to an X11 `XImage` structure

#### Instances

Instances details

Data Image |

Instance details

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 :: forall r r'. (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 #

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

data VisualInfo Source #

counterpart of an X11 `XVisualInfo` structure

Constructors

VisualInfo |

Fields

- visualInfo_visual :: Visual
- visualInfo_visualID :: VisualID
- visualInfo_screen :: ScreenNumber
- visualInfo_depth :: CInt
- visualInfo_class :: CInt
- visualInfo_redMask :: CULong
- visualInfo_greenMask :: CULong
- visualInfo_blueMask :: CULong
- visualInfo_colormapSize :: CInt
- visualInfo_bitsPerRGB :: CInt

#### Instances

Instances details

Default VisualInfo |
Instance details Defined in Graphics.X11.Xlib.Types Methods def :: VisualInfo #
Storable VisualInfo |

Instance details

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 #

Show VisualInfo |
Instance details Defined in Graphics.X11.Xlib.Types Methods showsPrec :: Int -> VisualInfo -> ShowS Source # show :: VisualInfo -> String Source # showList :: [VisualInfo] -> ShowS Source #
Eq VisualInfo |
Instance details Defined in Graphics.X11.Xlib.Types Methods (==) :: VisualInfo -> VisualInfo -> Bool Source # (/=) :: VisualInfo -> VisualInfo -> Bool Source #

data SetWindowAttributes Source #

pointer to an X11 `XSetWindowAttributes` structure

#### Instances

Instances details

Data SetWindowAttributes |

Instance details

Defined in Graphics.X11.Xlib.Types

Methods

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

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

toConstr :: SetWindowAttributes -> Constr Source #

dataTypeOf :: SetWindowAttributes -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Show SetWindowAttributes |
Instance details Defined in Graphics.X11.Xlib.Types Methods showsPrec :: Int -> SetWindowAttributes -> ShowS Source # show :: SetWindowAttributes -> String Source # showList :: [SetWindowAttributes] -> ShowS Source #
Eq SetWindowAttributes |
Instance details Defined in Graphics.X11.Xlib.Types Methods (==) :: SetWindowAttributes -> SetWindowAttributes -> Bool Source # (/=) :: SetWindowAttributes -> SetWindowAttributes -> Bool Source #
Ord SetWindowAttributes |

Instance details

Defined in Graphics.X11.Xlib.Types

Methods

compare :: SetWindowAttributes -> SetWindowAttributes -> Ordering Source #

(<) :: SetWindowAttributes -> SetWindowAttributes -> Bool Source #

(<=) :: SetWindowAttributes -> SetWindowAttributes -> Bool Source #

(>) :: SetWindowAttributes -> SetWindowAttributes -> Bool Source #

(>=) :: SetWindowAttributes -> SetWindowAttributes -> Bool Source #

max :: SetWindowAttributes -> SetWindowAttributes -> SetWindowAttributes Source #

min :: SetWindowAttributes -> SetWindowAttributes -> SetWindowAttributes Source #

data GC Source #

pointer to an X11 `GC` structure

#### Instances

Instances details

Data GC |

Instance details

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 :: forall r r'. (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 #

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

data Visual Source #

pointer to an X11 `Visual` structure

#### Instances

Instances details

Data Visual |

Instance details

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 :: forall r r'. (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 #

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

data Screen Source #

pointer to an X11 `Screen` structure

#### Instances

Instances details

Data Screen |

Instance details

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 :: forall r r'. (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 #

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

newtype Display Source #

pointer to an X11 `Display` structure

Constructors

Display (Ptr Display) |

#### Instances

Instances details

Data Display |

Instance details

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 :: forall r r'. (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 #

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

screenNumberOfScreen :: Screen -> ScreenNumber Source #

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

planesOfScreen :: Screen -> CInt Source #

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

heightMMOfScreen :: Screen -> Dimension Source #

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

heightOfScreen :: Screen -> Dimension Source #

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

widthMMOfScreen :: Screen -> Dimension Source #

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

widthOfScreen :: Screen -> Dimension Source #

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

rootWindowOfScreen :: Screen -> Window Source #

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

maxCmapsOfScreen :: Screen -> CInt Source #

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

minCmapsOfScreen :: Screen -> CInt Source #

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

eventMaskOfScreen :: Screen -> EventMask Source #

interface to the X11 library function `XEventMaskOfScreen()`. Event mask at connection setup time - not current event mask!

displayOfScreen :: Screen -> Display Source #

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

doesSaveUnders :: Screen -> Bool Source #

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

doesBackingStore :: Screen -> Bool Source #

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

defaultVisualOfScreen :: Screen -> Visual Source #

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

defaultGCOfScreen :: Screen -> GC Source #

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

defaultDepthOfScreen :: Screen -> CInt Source #

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

defaultColormapOfScreen :: Screen -> Colormap Source #

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

cellsOfScreen :: Screen -> CInt Source #

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

whitePixelOfScreen :: Screen -> Pixel Source #

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

blackPixelOfScreen :: Screen -> Pixel Source #

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

type RectInRegionResult = CInt Source #

data Region Source #

#### Instances

Instances details

Data Region |

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 |
Instance details Defined in Graphics.X11.Xlib.Region Methods showsPrec :: Int -> Region -> ShowS Source # show :: Region -> String Source # showList :: [Region] -> ShowS Source #
Eq Region |
Instance details Defined in Graphics.X11.Xlib.Region Methods (==) :: Region -> Region -> Bool Source # (/=) :: Region -> Region -> Bool Source #
Ord Region |
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 #

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

xGetPixel :: Image -> CInt -> CInt -> IO CULong Source #

destroyImage :: Image -> IO () Source #

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

putImage :: Display -> Drawable -> GC -> Image -> Position -> Position -> Position -> Position -> Dimension -> Dimension -> IO () Source #

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

createImage :: Display -> Visual -> CInt -> ImageFormat -> CInt -> Ptr CChar -> Dimension -> Dimension -> CInt -> CInt -> IO Image Source #

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

getImage :: Display -> Drawable -> CInt -> CInt -> CUInt -> CUInt -> CULong -> ImageFormat -> IO Image Source #

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

getPixel :: Image -> CInt -> CInt -> CULong Source #

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

type CharStruct = (CInt, CInt, CInt, CInt, CInt) Source #

data FontStruct Source #

pointer to an X11 `XFontStruct` structure

#### Instances

Instances details

Data FontStruct |

Instance details

Defined in Graphics.X11.Xlib.Font

Methods

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

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

toConstr :: FontStruct -> Constr Source #

dataTypeOf :: FontStruct -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Show FontStruct |
Instance details Defined in Graphics.X11.Xlib.Font Methods showsPrec :: Int -> FontStruct -> ShowS Source # show :: FontStruct -> String Source # showList :: [FontStruct] -> ShowS Source #
Eq FontStruct |
Instance details Defined in Graphics.X11.Xlib.Font Methods (==) :: FontStruct -> FontStruct -> Bool Source # (/=) :: FontStruct -> FontStruct -> Bool Source #
Ord FontStruct |

Instance details

Defined in Graphics.X11.Xlib.Font

Methods

compare :: FontStruct -> FontStruct -> Ordering Source #

(<) :: FontStruct -> FontStruct -> Bool Source #

(<=) :: FontStruct -> FontStruct -> Bool Source #

(>) :: FontStruct -> FontStruct -> Bool Source #

(>=) :: FontStruct -> FontStruct -> Bool Source #

max :: FontStruct -> FontStruct -> FontStruct Source #

min :: FontStruct -> FontStruct -> FontStruct Source #

type Glyph = Word16 Source #

freeFont :: Display -> FontStruct -> IO () Source #

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

queryFont :: Display -> Font -> IO FontStruct Source #

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

fontFromGC :: Display -> GC -> IO Font Source #

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

loadQueryFont :: Display -> String -> IO FontStruct Source #

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

fontFromFontStruct :: FontStruct -> Font Source #

ascentFromFontStruct :: FontStruct -> Int32 Source #

descentFromFontStruct :: FontStruct -> Int32 Source #

textExtents :: FontStruct -> String -> (FontDirection, Int32, Int32, CharStruct) Source #

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

textWidth :: FontStruct -> String -> Int32 Source #

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

xC_X_cursor :: Glyph Source #

xC_arrow :: Glyph Source #

xC_based_arrow_down :: Glyph Source #

xC_based_arrow_up :: Glyph Source #

xC_boat :: Glyph Source #

xC_bogosity :: Glyph Source #

xC_bottom_left_corner :: Glyph Source #

xC_bottom_right_corner :: Glyph Source #

xC_bottom_side :: Glyph Source #

xC_bottom_tee :: Glyph Source #

xC_box_spiral :: Glyph Source #

xC_center_ptr :: Glyph Source #

xC_circle :: Glyph Source #

xC_clock :: Glyph Source #

xC_coffee_mug :: Glyph Source #

xC_cross :: Glyph Source #

xC_cross_reverse :: Glyph Source #

xC_crosshair :: Glyph Source #

xC_diamond_cross :: Glyph Source #

xC_dot :: Glyph Source #

xC_dotbox :: Glyph Source #

xC_double_arrow :: Glyph Source #

xC_draft_large :: Glyph Source #

xC_draft_small :: Glyph Source #

xC_draped_box :: Glyph Source #

xC_exchange :: Glyph Source #

xC_fleur :: Glyph Source #

xC_gobbler :: Glyph Source #

xC_gumby :: Glyph Source #

xC_hand1 :: Glyph Source #

xC_hand2 :: Glyph Source #

xC_heart :: Glyph Source #

xC_icon :: Glyph Source #

xC_iron_cross :: Glyph Source #

xC_left_ptr :: Glyph Source #

xC_left_side :: Glyph Source #

xC_left_tee :: Glyph Source #

xC_leftbutton :: Glyph Source #

xC_ll_angle :: Glyph Source #

xC_lr_angle :: Glyph Source #

xC_man :: Glyph Source #

xC_mouse :: Glyph Source #

xC_pencil :: Glyph Source #

xC_pirate :: Glyph Source #

xC_plus :: Glyph Source #

xC_question_arrow :: Glyph Source #

xC_right_ptr :: Glyph Source #

xC_right_side :: Glyph Source #

xC_right_tee :: Glyph Source #

xC_rightbutton :: Glyph Source #

xC_rtl_logo :: Glyph Source #

xC_sailboat :: Glyph Source #

xC_sb_down_arrow :: Glyph Source #

xC_sb_h_double_arrow :: Glyph Source #

xC_sb_left_arrow :: Glyph Source #

xC_sb_right_arrow :: Glyph Source #

xC_sb_up_arrow :: Glyph Source #

xC_sb_v_double_arrow :: Glyph Source #

xC_shuttle :: Glyph Source #

xC_sizing :: Glyph Source #

xC_spider :: Glyph Source #

xC_spraycan :: Glyph Source #

xC_star :: Glyph Source #

xC_target :: Glyph Source #

xC_tcross :: Glyph Source #

xC_top_left_arrow :: Glyph Source #

xC_top_left_corner :: Glyph Source #

xC_top_right_corner :: Glyph Source #

xC_top_side :: Glyph Source #

xC_top_tee :: Glyph Source #

xC_trek :: Glyph Source #

xC_ul_angle :: Glyph Source #

xC_umbrella :: Glyph Source #

xC_ur_angle :: Glyph Source #

xC_watch :: Glyph Source #

xC_xterm :: Glyph Source #

closeDisplay :: Display -> IO () Source #

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

noOp :: Display -> IO () Source #

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

qLength :: Display -> IO CInt Source #

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

rootWindow :: Display -> ScreenNumber -> IO Window Source #

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

defaultRootWindow :: Display -> Window Source #

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

screenOfDisplay :: Display -> ScreenNumber -> Screen Source #

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

displayPlanes :: Display -> ScreenNumber -> CInt Source #

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

displayCells :: Display -> ScreenNumber -> CInt Source #

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

defaultVisual :: Display -> ScreenNumber -> Visual Source #

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

screenCount :: Display -> CInt Source #

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

protocolVersion :: Display -> CInt Source #

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

protocolRevision :: Display -> CInt Source #

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

imageByteOrder :: Display -> CInt Source #

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

displayMotionBufferSize :: Display -> CInt Source #

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

maxRequestSize :: Display -> CInt Source #

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

displayWidthMM :: Display -> ScreenNumber -> CInt Source #

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

displayWidth :: Display -> ScreenNumber -> CInt Source #

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

displayHeightMM :: Display -> ScreenNumber -> CInt Source #

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

displayHeight :: Display -> ScreenNumber -> CInt Source #

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

defaultScreenOfDisplay :: Display -> Screen Source #

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

defaultScreen :: Display -> ScreenNumber Source #

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

defaultDepth :: Display -> ScreenNumber -> CInt Source #

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

defaultGC :: Display -> ScreenNumber -> GC Source #

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

defaultColormap :: Display -> ScreenNumber -> Colormap Source #

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

connectionNumber :: Display -> CInt Source #

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

whitePixel :: Display -> ScreenNumber -> Pixel Source #

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

blackPixel :: Display -> ScreenNumber -> Pixel Source #

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

allPlanes_aux :: Pixel Source #

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

resourceManagerString :: Display -> String Source #

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

screenResourceString :: Screen -> String Source #

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

displayString :: Display -> String Source #

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

serverVendor :: Display -> String Source #

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

openDisplay :: String -> IO Display Source #

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

type XConfigureEvent = (Position, Position, Dimension, Dimension) Source #

type XMappingEvent = (MappingRequest, KeyCode, CInt) Source #

type XExposeEvent = (Position, Position, Dimension, Dimension, CInt) Source #

type XMotionEvent = (Window, Window, Time, CInt, CInt, CInt, CInt, Modifier, NotifyMode, Bool) Source #

type XButtonEvent = (Window, Window, Time, CInt, CInt, CInt, CInt, Modifier, Button, Bool) Source #

type XKeyEventPtr = Ptr XKeyEvent Source #

type XKeyEvent = (Window, Window, Time, CInt, CInt, CInt, CInt, Modifier, KeyCode, Bool) Source #

type XEventPtr = Ptr XEvent Source #

newtype XEvent Source #

Constructors

XEvent XEventPtr |

#### Instances

Instances details

Data XEvent |

Instance details

Defined in Graphics.X11.Xlib.Event

Methods

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

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

toConstr :: XEvent -> Constr Source #

dataTypeOf :: XEvent -> DataType Source #

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

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

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

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

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

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

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

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

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

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

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

type QueuedMode = CInt Source #

peekEvent :: Display -> XEventPtr -> IO () Source #

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

putBackEvent :: Display -> XEventPtr -> IO () Source #

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

checkTypedWindowEvent :: Display -> Window -> EventType -> XEventPtr -> IO Bool Source #

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

checkTypedEvent :: Display -> EventType -> XEventPtr -> IO Bool Source #

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

checkMaskEvent :: Display -> EventMask -> XEventPtr -> IO Bool Source #

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

maskEvent :: Display -> EventMask -> XEventPtr -> IO () Source #

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

checkWindowEvent :: Display -> Window -> EventMask -> XEventPtr -> IO Bool Source #

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

windowEvent :: Display -> Window -> EventMask -> XEventPtr -> IO () Source #

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

selectInput :: Display -> Window -> EventMask -> IO () Source #

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

allowEvents :: Display -> AllowEvents -> Time -> IO () Source #

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

nextEvent :: Display -> XEventPtr -> IO () Source #

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

eventsQueued :: Display -> QueuedMode -> IO CInt Source #

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

pending :: Display -> IO CInt Source #

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

sync :: Display -> Bool -> IO () Source #

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

flush :: Display -> IO () Source #

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

queuedAlready :: QueuedMode Source #

queuedAfterFlush :: QueuedMode Source #

queuedAfterReading :: QueuedMode Source #

allocaXEvent :: (XEventPtr -> IO a) -> IO a Source #

get_EventType :: XEventPtr -> IO EventType Source #

get_Window :: XEventPtr -> IO Window Source #

get_KeyEvent :: XEventPtr -> IO XKeyEvent Source #

asKeyEvent :: XEventPtr -> XKeyEventPtr Source #

get_ButtonEvent :: XEventPtr -> IO XButtonEvent Source #

get_MotionEvent :: XEventPtr -> IO XMotionEvent Source #

get_ExposeEvent :: XEventPtr -> IO XExposeEvent Source #

get_ConfigureEvent :: XEventPtr -> IO XConfigureEvent Source #

waitForEvent :: Display -> Word32 -> IO Bool Source #

Reads an event with a timeout (in microseconds). Returns True if timeout occurs.

gettimeofday_in_milliseconds :: IO Integer Source #

This function is somewhat compatible with Win32's `TimeGetTime()`

sendEvent :: Display -> Window -> Bool -> EventMask -> XEventPtr -> IO () Source #

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

copyGC :: Display -> GC -> Mask -> GC -> IO () Source #

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

flushGC :: Display -> GC -> IO () Source #

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

freeGC :: Display -> GC -> IO () Source #

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

gContextFromGC :: GC -> GContext Source #

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

setTile :: Display -> GC -> Pixmap -> IO () Source #

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

setTSOrigin :: Display -> GC -> Position -> Position -> IO () Source #

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

setSubwindowMode :: Display -> GC -> SubWindowMode -> IO () Source #

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

setStipple :: Display -> GC -> Pixmap -> IO () Source #

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

setState :: Display -> GC -> Pixel -> Pixel -> GXFunction -> Pixel -> IO () Source #

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

setPlaneMask :: Display -> GC -> Pixel -> IO () Source #

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

setLineAttributes :: Display -> GC -> CInt -> LineStyle -> CapStyle -> JoinStyle -> IO () Source #

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

setFont :: Display -> GC -> Font -> IO () Source #

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

setFillStyle :: Display -> GC -> FillStyle -> IO () Source #

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

setFillRule :: Display -> GC -> FillRule -> IO () Source #

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

setClipOrigin :: Display -> GC -> Position -> Position -> IO () Source #

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

setClipMask :: Display -> GC -> Pixmap -> IO () Source #

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

setGraphicsExposures :: Display -> GC -> Bool -> IO () Source #

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

setFunction :: Display -> GC -> GXFunction -> IO () Source #

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

setForeground :: Display -> GC -> Pixel -> IO () Source #

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

setBackground :: Display -> GC -> Pixel -> IO () Source #

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

setArcMode :: Display -> GC -> ArcMode -> IO () Source #

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

setDashes :: Display -> GC -> CInt -> String -> CInt -> IO () Source #

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

createGC :: Display -> Drawable -> IO GC Source #

partial interface to the X11 library function `XCreateGC()`.

freeColormap :: Display -> Colormap -> IO () Source #

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

createColormap :: Display -> Window -> Visual -> ColormapAlloc -> IO Colormap Source #

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

copyColormapAndFree :: Display -> Colormap -> IO Colormap Source #

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

uninstallColormap :: Display -> Colormap -> IO () Source #

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

installColormap :: Display -> Colormap -> IO () Source #

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

lookupColor :: Display -> Colormap -> String -> IO (Color, Color) Source #

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

allocNamedColor :: Display -> Colormap -> String -> IO (Color, Color) Source #

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

allocColor :: Display -> Colormap -> Color -> IO Color Source #

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

parseColor :: Display -> Colormap -> String -> IO Color Source #

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

freeColors :: Display -> Colormap -> [Pixel] -> Pixel -> IO () Source #

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

storeColor :: Display -> Colormap -> Color -> IO () Source #

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

queryColor :: Display -> Colormap -> Color -> IO Color Source #

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

queryColors :: Display -> Colormap -> [Color] -> IO [Color] Source #

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

internAtom :: Display -> String -> Bool -> IO Atom Source #

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

getAtomName :: Display -> Atom -> IO (Maybe String) Source #

getAtomNames :: Display -> [Atom] -> IO [String] Source #

pRIMARY :: Atom Source #

sECONDARY :: Atom Source #

aRC :: Atom Source #

aTOM :: Atom Source #

bITMAP :: Atom Source #

cARDINAL :: Atom Source #

cOLORMAP :: Atom Source #

cURSOR :: Atom Source #

cUT_BUFFER0 :: Atom Source #

cUT_BUFFER1 :: Atom Source #

cUT_BUFFER2 :: Atom Source #

cUT_BUFFER3 :: Atom Source #

cUT_BUFFER4 :: Atom Source #

cUT_BUFFER5 :: Atom Source #

cUT_BUFFER6 :: Atom Source #

cUT_BUFFER7 :: Atom Source #

dRAWABLE :: Atom Source #

fONT :: Atom Source #

iNTEGER :: Atom Source #

pIXMAP :: Atom Source #

pOINT :: Atom Source #

rECTANGLE :: Atom Source #

rESOURCE_MANAGER :: Atom Source #

rGB_COLOR_MAP :: Atom Source #

rGB_BEST_MAP :: Atom Source #

rGB_BLUE_MAP :: Atom Source #

rGB_DEFAULT_MAP :: Atom Source #

rGB_GRAY_MAP :: Atom Source #

rGB_GREEN_MAP :: Atom Source #

rGB_RED_MAP :: Atom Source #

sTRING :: Atom Source #

vISUALID :: Atom Source #

wINDOW :: Atom Source #

wM_COMMAND :: Atom Source #

wM_HINTS :: Atom Source #

wM_CLIENT_MACHINE :: Atom Source #

wM_ICON_NAME :: Atom Source #

wM_ICON_SIZE :: Atom Source #

wM_NAME :: Atom Source #

wM_NORMAL_HINTS :: Atom Source #

wM_SIZE_HINTS :: Atom Source #

wM_ZOOM_HINTS :: Atom Source #

mIN_SPACE :: Atom Source #

nORM_SPACE :: Atom Source #

mAX_SPACE :: Atom Source #

eND_SPACE :: Atom Source #

sUPERSCRIPT_X :: Atom Source #

sUPERSCRIPT_Y :: Atom Source #

sUBSCRIPT_X :: Atom Source #

sUBSCRIPT_Y :: Atom Source #

uNDERLINE_POSITION :: Atom Source #

uNDERLINE_THICKNESS :: Atom Source #

sTRIKEOUT_ASCENT :: Atom Source #

sTRIKEOUT_DESCENT :: Atom Source #

iTALIC_ANGLE :: Atom Source #

x_HEIGHT :: Atom Source #

qUAD_WIDTH :: Atom Source #

wEIGHT :: Atom Source #

pOINT_SIZE :: Atom Source #

rESOLUTION :: Atom Source #

cOPYRIGHT :: Atom Source #

nOTICE :: Atom Source #

fONT_NAME :: Atom Source #

fAMILY_NAME :: Atom Source #

fULL_NAME :: Atom Source #

cAP_HEIGHT :: Atom Source #

wM_CLASS :: Atom Source #

wM_TRANSIENT_FOR :: Atom Source #

lAST_PREDEFINED :: Atom Source #

type VisualInfoMask = CLong Source #

type ScreenSaverMode = CInt Source #

type PreferBlankingMode = CInt Source #

type AllowExposuresMode = CInt Source #

copyPlane :: Display -> Drawable -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> Position -> Position -> Pixel -> IO () Source #

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

copyArea :: Display -> Drawable -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> Position -> Position -> IO () Source #

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

fillArc :: Display -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> Angle -> Angle -> IO () Source #

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

fillRectangle :: Display -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> IO () Source #

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

drawArc :: Display -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> Angle -> Angle -> IO () Source #

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

drawRectangle :: Display -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> IO () Source #

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

drawLine :: Display -> Drawable -> GC -> Position -> Position -> Position -> Position -> IO () Source #

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

drawPoint :: Display -> Drawable -> GC -> Position -> Position -> IO () Source #

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

freeCursor :: Display -> Font -> IO () Source #

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

createFontCursor :: Display -> Glyph -> IO Cursor Source #

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

undefineCursor :: Display -> Window -> IO () Source #

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

defineCursor :: Display -> Window -> Cursor -> IO () Source #

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

keysymToKeycode :: Display -> KeySym -> IO KeyCode Source #

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

keycodeToKeysym :: Display -> KeyCode -> CInt -> IO KeySym Source #

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

lookupKeysym :: XKeyEventPtr -> CInt -> IO KeySym Source #

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

bitmapPad :: Display -> CInt Source #

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

bitmapUnit :: Display -> CInt Source #

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

bitmapBitOrder :: Display -> ByteOrder Source #

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

freePixmap :: Display -> Pixmap -> IO () Source #

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

createPixmap :: Display -> Drawable -> Dimension -> Dimension -> CInt -> IO Pixmap Source #

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

unlockDisplay :: Display -> IO () Source #

lockDisplay :: Display -> IO () Source #

initThreads :: IO Status Source #

visualIDFromVisual :: Visual -> IO VisualID Source #

see `XVisualIDFromVisual()`

warpPointer :: Display -> Window -> Window -> Position -> Position -> Dimension -> Dimension -> Position -> Position -> IO () Source #

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

forceScreenSaver :: Display -> ScreenSaverMode -> IO () Source #

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

resetScreenSaver :: Display -> IO () Source #

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

activateScreenSaver :: Display -> IO () Source #

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

setScreenSaver :: Display -> CInt -> CInt -> PreferBlankingMode -> AllowExposuresMode -> IO () Source #

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

supportsLocale :: IO Bool Source #

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

ungrabServer :: Display -> IO () Source #

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

grabServer :: Display -> IO () Source #

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

ungrabKeyboard :: Display -> Time -> IO () Source #

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

grabKeyboard :: Display -> Window -> Bool -> GrabMode -> GrabMode -> Time -> IO GrabStatus Source #

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

ungrabKey :: Display -> KeyCode -> KeyMask -> Window -> IO () Source #

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

grabKey :: Display -> KeyCode -> KeyMask -> Window -> Bool -> GrabMode -> GrabMode -> IO () Source #

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

ungrabPointer :: Display -> Time -> IO () Source #

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

grabPointer :: Display -> Window -> Bool -> EventMask -> GrabMode -> GrabMode -> Window -> Cursor -> Time -> IO GrabStatus Source #

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

ungrabButton :: Display -> Button -> ButtonMask -> Window -> IO () Source #

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

grabButton :: Display -> Button -> ButtonMask -> Window -> Bool -> EventMask -> GrabMode -> GrabMode -> Window -> Cursor -> IO () Source #

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

setInputFocus :: Display -> Window -> FocusMode -> Time -> IO () Source #

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

lastKnownRequestProcessed :: Display -> IO CInt Source #

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

setCloseDownMode :: Display -> CloseDownMode -> IO () Source #

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

bell :: Display -> CInt -> IO () Source #

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

autoRepeatOn :: Display -> IO () Source #

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

autoRepeatOff :: Display -> IO () Source #

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

rmInitialize :: IO () Source #

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

getInputFocus :: Display -> IO (Window, FocusMode) Source #

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

queryBestTile :: Display -> Drawable -> Dimension -> Dimension -> IO (Dimension, Dimension) Source #

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

queryBestStipple :: Display -> Drawable -> Dimension -> Dimension -> IO (Dimension, Dimension) Source #

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

queryBestCursor :: Display -> Drawable -> Dimension -> Dimension -> IO (Dimension, Dimension) Source #

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

queryBestSize :: Display -> QueryBestSizeClass -> Drawable -> Dimension -> Dimension -> IO (Dimension, Dimension) Source #

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

queryPointer :: Display -> Window -> IO (Bool, Window, Window, CInt, CInt, CInt, CInt, Modifier) Source #

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

displayName :: String -> String Source #

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

setDefaultErrorHandler :: IO () Source #

The Xlib library reports most errors by invoking a user-provided error handler. This function installs an error handler that prints a textual representation of the error.

geometry :: Display -> CInt -> String -> String -> Dimension -> Dimension -> Dimension -> CInt -> CInt -> IO (CInt, Position, Position, Dimension, Dimension) Source #

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

getGeometry :: Display -> Drawable -> IO (Window, Position, Position, Dimension, Dimension, Dimension, CInt) Source #

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

setLocaleModifiers :: String -> IO String Source #

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

dontAllowExposures :: AllowExposuresMode Source #

allowExposures :: AllowExposuresMode Source #

defaultExposures :: AllowExposuresMode Source #

dontPreferBlanking :: PreferBlankingMode Source #

preferBlanking :: PreferBlankingMode Source #

defaultBlanking :: PreferBlankingMode Source #

screenSaverActive :: ScreenSaverMode Source #

screenSaverReset :: ScreenSaverMode Source #

getScreenSaver :: Display -> IO (CInt, CInt, PreferBlankingMode, AllowExposuresMode) Source #

getPointerControl :: Display -> IO (CInt, CInt, CInt) Source #

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

visualNoMask :: VisualInfoMask Source #

visualIDMask :: VisualInfoMask Source #

visualScreenMask :: VisualInfoMask Source #

visualDepthMask :: VisualInfoMask Source #

visualClassMask :: VisualInfoMask Source #

visualRedMaskMask :: VisualInfoMask Source #

visualGreenMaskMask :: VisualInfoMask Source #

visualBlueMaskMask :: VisualInfoMask Source #

interface to the X11 library function `XGetVisualInfo()`

visualColormapSizeMask :: VisualInfoMask Source #

visualBitsPerRGBMask :: VisualInfoMask Source #

visualAllMask :: VisualInfoMask Source #

getVisualInfo :: Display -> VisualInfoMask -> VisualInfo -> IO [VisualInfo] Source #

matchVisualInfo :: Display -> ScreenNumber -> CInt -> CInt -> IO (Maybe VisualInfo) Source #

interface to the X11 library function `XMatchVisualInfo()`

readBitmapFile :: Display -> Drawable -> String -> IO (Either String (Dimension, Dimension, Pixmap, Maybe CInt, Maybe CInt)) Source #

interface to the X11 library function `XReadBitmapFile`.

displayKeycodes :: Display -> (CInt, CInt) Source #

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

keysymToString :: KeySym -> String Source #

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

stringToKeysym :: String -> KeySym Source #

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

noSymbol :: KeySym Source #

lookupString :: XKeyEventPtr -> IO (Maybe KeySym, String) Source #

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

getIconName :: Display -> Window -> IO String Source #

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

setIconName :: Display -> Window -> String -> IO () Source #

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

createPixmapCursor :: Display -> Pixmap -> Pixmap -> Color -> Color -> Dimension -> Dimension -> IO Cursor Source #

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

createGlyphCursor :: Display -> Font -> Font -> Glyph -> Glyph -> Color -> Color -> IO Cursor Source #

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

recolorCursor :: Display -> Cursor -> Color -> Color -> IO () Source #

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

setWMProtocols :: Display -> Window -> [Atom] -> IO () Source #

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

allocaSetWindowAttributes :: (Ptr SetWindowAttributes -> IO a) -> IO a Source #

set_background_pixmap :: Ptr SetWindowAttributes -> Pixmap -> IO () Source #

set_background_pixel :: Ptr SetWindowAttributes -> Pixel -> IO () Source #

set_border_pixmap :: Ptr SetWindowAttributes -> Pixmap -> IO () Source #

set_border_pixel :: Ptr SetWindowAttributes -> Pixel -> IO () Source #

set_bit_gravity :: Ptr SetWindowAttributes -> BitGravity -> IO () Source #

set_win_gravity :: Ptr SetWindowAttributes -> WindowGravity -> IO () Source #

set_backing_store :: Ptr SetWindowAttributes -> BackingStore -> IO () Source #

set_backing_planes :: Ptr SetWindowAttributes -> Pixel -> IO () Source #

set_backing_pixel :: Ptr SetWindowAttributes -> Pixel -> IO () Source #

set_save_under :: Ptr SetWindowAttributes -> Bool -> IO () Source #

set_event_mask :: Ptr SetWindowAttributes -> EventMask -> IO () Source #

set_do_not_propagate_mask :: Ptr SetWindowAttributes -> EventMask -> IO () Source #

set_override_redirect :: Ptr SetWindowAttributes -> Bool -> IO () Source #

set_colormap :: Ptr SetWindowAttributes -> Colormap -> IO () Source #

set_cursor :: Ptr SetWindowAttributes -> Cursor -> IO () Source #

drawPoints :: Display -> Drawable -> GC -> [Point] -> CoordinateMode -> IO () Source #

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

drawLines :: Display -> Drawable -> GC -> [Point] -> CoordinateMode -> IO () Source #

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

drawSegments :: Display -> Drawable -> GC -> [Segment] -> IO () Source #

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

drawRectangles :: Display -> Drawable -> GC -> [Rectangle] -> IO () Source #

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

drawArcs :: Display -> Drawable -> GC -> [Arc] -> IO () Source #

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

fillRectangles :: Display -> Drawable -> GC -> [Rectangle] -> IO () Source #

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

fillPolygon :: Display -> Drawable -> GC -> [Point] -> PolygonShape -> CoordinateMode -> IO () Source #

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

fillArcs :: Display -> Drawable -> GC -> [Arc] -> IO () Source #

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

drawString :: Display -> Drawable -> GC -> Position -> Position -> String -> IO () Source #

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

drawImageString :: Display -> Drawable -> GC -> Position -> Position -> String -> IO () Source #

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

storeBuffer :: Display -> String -> CInt -> IO () Source #

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

storeBytes :: Display -> String -> IO () Source #

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

fetchBuffer :: Display -> CInt -> IO String Source #

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

fetchBytes :: Display -> IO String Source #

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

rotateBuffers :: Display -> CInt -> IO () Source #

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

setTextProperty :: Display -> Window -> String -> Atom -> IO () Source #

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

clearArea :: Display -> Window -> Position -> Position -> Dimension -> Dimension -> Bool -> IO () Source #

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

clearWindow :: Display -> Window -> IO () Source #

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

changeSaveSet :: Display -> Window -> ChangeSaveSetMode -> IO () Source #

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

removeFromSaveSet :: Display -> Window -> IO () Source #

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

addToSaveSet :: Display -> Window -> IO () Source #

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

setWindowColormap :: Display -> Window -> Colormap -> IO () Source #

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

setWindowBackgroundPixmap :: Display -> Window -> Pixmap -> IO () Source #

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

setWindowBackground :: Display -> Window -> Pixel -> IO () Source #

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

setWindowBorderWidth :: Display -> Window -> Dimension -> IO () Source #

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

setWindowBorderPixmap :: Display -> Window -> Pixmap -> IO () Source #

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

setWindowBorder :: Display -> Window -> Pixel -> IO () Source #

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

destroySubwindows :: Display -> Window -> IO () Source #

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

destroyWindow :: Display -> Window -> IO () Source #

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

circulateSubwindows :: Display -> Window -> CirculationDirection -> IO () Source #

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

circulateSubwindowsUp :: Display -> Window -> IO () Source #

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

circulateSubwindowsDown :: Display -> Window -> IO () Source #

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

raiseWindow :: Display -> Window -> IO () Source #

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

lowerWindow :: Display -> Window -> IO () Source #

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

mapWindow :: Display -> Window -> IO () Source #

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

unmapSubwindows :: Display -> Window -> IO () Source #

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

mapSubwindows :: Display -> Window -> IO () Source #

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

reparentWindow :: Display -> Window -> Window -> Position -> Position -> IO () Source #

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

moveWindow :: Display -> Window -> Position -> Position -> IO () Source #

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

resizeWindow :: Display -> Window -> Dimension -> Dimension -> IO () Source #

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

moveResizeWindow :: Display -> Window -> Position -> Position -> Dimension -> Dimension -> IO () Source #

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

createWindow :: Display -> Window -> Position -> Position -> Dimension -> Dimension -> CInt -> CInt -> WindowClass -> Visual -> AttributeMask -> Ptr SetWindowAttributes -> IO Window Source #

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

createSimpleWindow :: Display -> Window -> Position -> Position -> Dimension -> Dimension -> CInt -> Pixel -> Pixel -> IO Window Source #

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

storeName :: Display -> Window -> String -> IO () Source #

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

translateCoordinates :: Display -> Window -> Window -> Position -> Position -> IO (Bool, Position, Position, Window) Source #

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

iconifyWindow :: Display -> Window -> ScreenNumber -> IO () Source #

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

withdrawWindow :: Display -> Window -> ScreenNumber -> IO () Source #

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

restackWindows :: Display -> [Window] -> IO () Source #

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

module Graphics.X11.Xlib.Extras

(.|.) :: Bits a => a -> a -> a infixl 5 Source #

Bitwise "or"

class Monad m => MonadState s (m :: Type -> Type) | m -> s where Source #

Minimal definition is either both of `get` and `put` or just `state`

Minimal complete definition

state | get, put

Methods

get :: m s Source #

Return the state from the internals of the monad.

put :: s -> m () Source #

Replace the state inside the monad.

state :: (s -> (a, s)) -> m a Source #

Embed a simple state action into the monad.

#### Instances

Instances details

MonadState XState X Source # |
Instance details Defined in XMonad.Core Methods get :: X XState Source # put :: XState -> X () Source # state :: (XState -> (a, XState)) -> X a Source #
MonadState s m => MonadState s (MaybeT m) |
Instance details Defined in Control.Monad.State.Class Methods get :: MaybeT m s Source # put :: s -> MaybeT m () Source # state :: (s -> (a, s)) -> MaybeT m a Source #
(Monoid w, MonadState s m) => MonadState s (AccumT w m) | Since: mtl-2.3
Instance details Defined in Control.Monad.State.Class Methods get :: AccumT w m s Source # put :: s -> AccumT w m () Source # state :: (s -> (a, s)) -> AccumT w m a Source #
MonadState s m => MonadState s (ExceptT e m) | Since: mtl-2.2
Instance details Defined in Control.Monad.State.Class Methods get :: ExceptT e m s Source # put :: s -> ExceptT e m () Source # state :: (s -> (a, s)) -> ExceptT e m a Source #
MonadState s m => MonadState s (IdentityT m) |
Instance details Defined in Control.Monad.State.Class Methods get :: IdentityT m s Source # put :: s -> IdentityT m () Source # state :: (s -> (a, s)) -> IdentityT m a Source #
MonadState s m => MonadState s (ReaderT r m) |
Instance details Defined in Control.Monad.State.Class Methods get :: ReaderT r m s Source # put :: s -> ReaderT r m () Source # state :: (s -> (a, s)) -> ReaderT r m a Source #
MonadState s m => MonadState s (SelectT r m) | Since: mtl-2.3
Instance details Defined in Control.Monad.State.Class Methods get :: SelectT r m s Source # put :: s -> SelectT r m () Source # state :: (s -> (a, s)) -> SelectT r m a Source #
Monad m => MonadState s (StateT s m) |
Instance details Defined in Control.Monad.State.Class Methods get :: StateT s m s Source # put :: s -> StateT s m () Source # state :: (s -> (a, s)) -> StateT s m a Source #
Monad m => MonadState s (StateT s m) |
Instance details Defined in Control.Monad.State.Class Methods get :: StateT s m s Source # put :: s -> StateT s m () Source # state :: (s -> (a, s)) -> StateT s m a Source #
(Monoid w, MonadState s m) => MonadState s (WriterT w m) | Since: mtl-2.3
Instance details Defined in Control.Monad.State.Class Methods get :: WriterT w m s Source # put :: s -> WriterT w m () Source # state :: (s -> (a, s)) -> WriterT w m a Source #
(Monoid w, MonadState s m) => MonadState s (WriterT w m) |
Instance details Defined in Control.Monad.State.Class Methods get :: WriterT w m s Source # put :: s -> WriterT w m () Source # state :: (s -> (a, s)) -> WriterT w m a Source #
(Monoid w, MonadState s m) => MonadState s (WriterT w m) |
Instance details Defined in Control.Monad.State.Class Methods get :: WriterT w m s Source # put :: s -> WriterT w m () Source # state :: (s -> (a, s)) -> WriterT w m a Source #
MonadState s m => MonadState s (ContT r m) |
Instance details Defined in Control.Monad.State.Class Methods get :: ContT r m s Source # put :: s -> ContT r m () Source # state :: (s -> (a, s)) -> ContT r m a Source #
(Monad m, Monoid w) => MonadState s (RWST r w s m) | Since: mtl-2.3
Instance details Defined in Control.Monad.State.Class Methods get :: RWST r w s m s Source # put :: s -> RWST r w s m () Source # state :: (s -> (a, s)) -> RWST r w s m a Source #
(Monad m, Monoid w) => MonadState s (RWST r w s m) |
Instance details Defined in Control.Monad.State.Class Methods get :: RWST r w s m s Source # put :: s -> RWST r w s m () Source # state :: (s -> (a, s)) -> RWST r w s m a Source #
(Monad m, Monoid w) => MonadState s (RWST r w s m) |
Instance details Defined in Control.Monad.State.Class Methods get :: RWST r w s m s Source # put :: s -> RWST r w s m () Source # state :: (s -> (a, s)) -> RWST r w s m a Source #

gets :: MonadState s m => (s -> a) -> m a Source #

Gets specific component of the state, using a projection function supplied.

modify :: MonadState s m => (s -> s) -> m () Source #

Monadic state transformer.

Maps an old state to a new state inside a state monad. The old state is thrown away.

         Main> :t modify ((+1) :: Int -> Int)
         modify (...) :: (MonadState Int a) => a ()

This says that `modify (+1)` acts over any Monad that is a member of the `MonadState` class, with an `Int` state.

class Monad m => MonadReader r (m :: Type -> Type) | m -> r where Source #

See examples in Control.Monad.Reader. Note, the partially applied function type `(->) r` is a simple reader monad. See the `instance` declaration below.

Minimal complete definition

(ask | reader), local

Methods

ask :: m r Source #

Retrieves the monad environment.

local Source #

Arguments

:: (r -> r) | The function to modify the environment.
-> m a | `Reader` to run in the modified environment.
-> m a |

Executes a computation in a modified environment.

reader Source #

Arguments

:: (r -> a) | The selector function to apply to the environment.
-> m a |

Retrieves a function of the current environment.

#### Instances

Instances details

MonadReader Window Query Source # |
Instance details Defined in XMonad.Core Methods ask :: Query Window Source # local :: (Window -> Window) -> Query a -> Query a Source # reader :: (Window -> a) -> Query a Source #
MonadReader XConf X Source # |
Instance details Defined in XMonad.Core Methods ask :: X XConf Source # local :: (XConf -> XConf) -> X a -> X a Source # reader :: (XConf -> a) -> X a Source #
MonadReader r m => MonadReader r (MaybeT m) |
Instance details Defined in Control.Monad.Reader.Class Methods ask :: MaybeT m r Source # local :: (r -> r) -> MaybeT m a -> MaybeT m a Source # reader :: (r -> a) -> MaybeT m a Source #
(Monoid w, MonadReader r m) => MonadReader r (AccumT w m) | Since: mtl-2.3
Instance details Defined in Control.Monad.Reader.Class Methods ask :: AccumT w m r Source # local :: (r -> r) -> AccumT w m a -> AccumT w m a Source # reader :: (r -> a) -> AccumT w m a Source #
MonadReader r m => MonadReader r (ExceptT e m) | Since: mtl-2.2
Instance details Defined in Control.Monad.Reader.Class Methods ask :: ExceptT e m r Source # local :: (r -> r) -> ExceptT e m a -> ExceptT e m a Source # reader :: (r -> a) -> ExceptT e m a Source #
MonadReader r m => MonadReader r (IdentityT m) |
Instance details Defined in Control.Monad.Reader.Class Methods ask :: IdentityT m r Source # local :: (r -> r) -> IdentityT m a -> IdentityT m a Source # reader :: (r -> a) -> IdentityT m a Source #
Monad m => MonadReader r (ReaderT r m) |
Instance details Defined in Control.Monad.Reader.Class Methods ask :: ReaderT r m r Source # local :: (r -> r) -> ReaderT r m a -> ReaderT r m a Source # reader :: (r -> a) -> ReaderT r m a Source #
MonadReader r m => MonadReader r (StateT s m) |
Instance details Defined in Control.Monad.Reader.Class Methods ask :: StateT s m r Source # local :: (r -> r) -> StateT s m a -> StateT s m a Source # reader :: (r -> a) -> StateT s m a Source #
MonadReader r m => MonadReader r (StateT s m) |
Instance details Defined in Control.Monad.Reader.Class Methods ask :: StateT s m r Source # local :: (r -> r) -> StateT s m a -> StateT s m a Source # reader :: (r -> a) -> StateT s m a Source #
(Monoid w, MonadReader r m) => MonadReader r (WriterT w m) | Since: mtl-2.3
Instance details Defined in Control.Monad.Reader.Class Methods ask :: WriterT w m r Source # local :: (r -> r) -> WriterT w m a -> WriterT w m a Source # reader :: (r -> a) -> WriterT w m a Source #
(Monoid w, MonadReader r m) => MonadReader r (WriterT w m) |
Instance details Defined in Control.Monad.Reader.Class Methods ask :: WriterT w m r Source # local :: (r -> r) -> WriterT w m a -> WriterT w m a Source # reader :: (r -> a) -> WriterT w m a Source #
(Monoid w, MonadReader r m) => MonadReader r (WriterT w m) |
Instance details Defined in Control.Monad.Reader.Class Methods ask :: WriterT w m r Source # local :: (r -> r) -> WriterT w m a -> WriterT w m a Source # reader :: (r -> a) -> WriterT w m a Source #
MonadReader r' m => MonadReader r' (SelectT r m) | Since: mtl-2.3
Instance details Defined in Control.Monad.Reader.Class Methods ask :: SelectT r m r' Source # local :: (r' -> r') -> SelectT r m a -> SelectT r m a Source # reader :: (r' -> a) -> SelectT r m a Source #
MonadReader r ((->) r) |
Instance details Defined in Control.Monad.Reader.Class Methods ask :: r -> r Source # local :: (r -> r) -> (r -> a) -> r -> a Source # reader :: (r -> a) -> r -> a Source #
MonadReader r' m => MonadReader r' (ContT r m) |
Instance details Defined in Control.Monad.Reader.Class Methods ask :: ContT r m r' Source # local :: (r' -> r') -> ContT r m a -> ContT r m a Source # reader :: (r' -> a) -> ContT r m a Source #
(Monad m, Monoid w) => MonadReader r (RWST r w s m) | Since: mtl-2.3
Instance details Defined in Control.Monad.Reader.Class Methods ask :: RWST r w s m r Source # local :: (r -> r) -> RWST r w s m a -> RWST r w s m a Source # reader :: (r -> a) -> RWST r w s m a Source #
(Monad m, Monoid w) => MonadReader r (RWST r w s m) |
Instance details Defined in Control.Monad.Reader.Class Methods ask :: RWST r w s m r Source # local :: (r -> r) -> RWST r w s m a -> RWST r w s m a Source # reader :: (r -> a) -> RWST r w s m a Source #
(Monad m, Monoid w) => MonadReader r (RWST r w s m) |
Instance details Defined in Control.Monad.Reader.Class Methods ask :: RWST r w s m r Source # local :: (r -> r) -> RWST r w s m a -> RWST r w s m a Source # reader :: (r -> a) -> RWST r w s m a Source #

asks Source #

Arguments

:: MonadReader r m |
=> (r -> a) | The selector function to apply to the environment.
-> m a |

Retrieves a function of the current environment.

class Monad m => MonadIO (m :: Type -> Type) where Source #

Monads in which `IO` computations may be embedded. Any monad built by applying a sequence of monad transformers to the `IO` monad will be an instance of this class.

Instances should satisfy the following laws, which state that `liftIO` is a transformer of monads:

-     liftIO . return = return

-     liftIO (m >>= f) = liftIO m >>= (liftIO . f)

Methods

liftIO :: IO a -> m a Source #

Lift a computation from the `IO` monad. This allows us to run IO computations in any monadic stack, so long as it supports these kinds of operations (i.e. `IO` is the base monad for the stack).

### Example

Expand

    import Control.Monad.Trans.State -- from the "transformers" library

    printState :: Show s => StateT s IO ()
    printState = do
      state <- get
      liftIO $ print state

Had we omitted ``liftIO``, we would have ended up with this error:

    • Couldn't match type ‘IO’ with ‘StateT s IO’
     Expected type: StateT s IO ()
       Actual type: IO ()

The important part here is the mismatch between `StateT s IO ()` and ``IO` ()`.

Luckily, we know of a function that takes an ``IO` a` and returns an `(m a)`: ``liftIO``, enabling us to run the program and see the expected results:

    > evalStateT printState "hello"
    "hello"

    > evalStateT printState 3
    3

#### Instances

Instances details

MonadIO IO | Since: base-4.9.0.0
Instance details Defined in Control.Monad.IO.Class Methods liftIO :: IO a -> IO a Source #
MonadIO Q |
Instance details Defined in Language.Haskell.TH.Syntax Methods liftIO :: IO a -> Q a Source #
MonadIO Query Source # |
Instance details Defined in XMonad.Core Methods liftIO :: IO a -> Query a Source #
MonadIO X Source # |
Instance details Defined in XMonad.Core Methods liftIO :: IO a -> X a Source #
MonadIO m => MonadIO (MaybeT m) |
Instance details Defined in Control.Monad.Trans.Maybe Methods liftIO :: IO a -> MaybeT m a Source #
(Monoid w, Functor m, MonadIO m) => MonadIO (AccumT w m) |
Instance details Defined in Control.Monad.Trans.Accum Methods liftIO :: IO a -> AccumT w m a Source #
MonadIO m => MonadIO (ExceptT e m) |
Instance details Defined in Control.Monad.Trans.Except Methods liftIO :: IO a -> ExceptT e m a Source #
MonadIO m => MonadIO (IdentityT m) |
Instance details Defined in Control.Monad.Trans.Identity Methods liftIO :: IO a -> IdentityT m a Source #
MonadIO m => MonadIO (ReaderT r m) |
Instance details Defined in Control.Monad.Trans.Reader Methods liftIO :: IO a -> ReaderT r m a Source #
MonadIO m => MonadIO (SelectT r m) |
Instance details Defined in Control.Monad.Trans.Select Methods liftIO :: IO a -> SelectT r m a Source #
MonadIO m => MonadIO (StateT s m) |
Instance details Defined in Control.Monad.Trans.State.Lazy Methods liftIO :: IO a -> StateT s m a Source #
MonadIO m => MonadIO (StateT s m) |
Instance details Defined in Control.Monad.Trans.State.Strict Methods liftIO :: IO a -> StateT s m a Source #
MonadIO m => MonadIO (WriterT w m) |
Instance details Defined in Control.Monad.Trans.Writer.CPS Methods liftIO :: IO a -> WriterT w m a Source #
(Monoid w, MonadIO m) => MonadIO (WriterT w m) |
Instance details Defined in Control.Monad.Trans.Writer.Lazy Methods liftIO :: IO a -> WriterT w m a Source #
(Monoid w, MonadIO m) => MonadIO (WriterT w m) |
Instance details Defined in Control.Monad.Trans.Writer.Strict Methods liftIO :: IO a -> WriterT w m a Source #
MonadIO m => MonadIO (ContT r m) |
Instance details Defined in Control.Monad.Trans.Cont Methods liftIO :: IO a -> ContT r m a Source #
MonadIO m => MonadIO (RWST r w s m) |
Instance details Defined in Control.Monad.Trans.RWS.CPS Methods liftIO :: IO a -> RWST r w s m a Source #
(Monoid w, MonadIO m) => MonadIO (RWST r w s m) |
Instance details Defined in Control.Monad.Trans.RWS.Lazy Methods liftIO :: IO a -> RWST r w s m a Source #
(Monoid w, MonadIO m) => MonadIO (RWST r w s m) |
Instance details Defined in Control.Monad.Trans.RWS.Strict Methods liftIO :: IO a -> RWST r w s m a Source #