wild-bind-x11-0.1.0.7: X11-specific implementation for WildBind

MaintainerToshio Ito <debug.ito@gmail.com>
Safe HaskellNone
LanguageHaskell2010

WildBind.X11.Internal.Key

Contents

Description

This is an internal module. Package users should not rely on this.

Synopsis

Conversion between key types

class KeySymLike k where #

Convertible to/from Xlib's KeySym

fromKeySym . toKeySym == Just

Minimal complete definition

fromKeySym, toKeySym

Methods

fromKeySym :: KeySym -> Maybe k #

toKeySym :: k -> KeySym #

xEventToKeySymLike :: KeySymLike k => XEventPtr -> MaybeT IO k #

Extract the KeySymLike associated with the XEvent.

Key grabs

class ModifierLike k #

Convertible into a set of Modifiers.

Minimal complete definition

toModifiers

Instances

xGrabKey :: (KeySymLike k, ModifierLike k) => Display -> Window -> k -> IO () #

Grab the specified key on the specified window. The key is captured from now on, so the window won't get that.

xUngrabKey :: (KeySymLike k, ModifierLike k) => Display -> Window -> k -> IO () #

Release the grab on the specified key.