gi-gdkx11-3.0.1: GdkX11 bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GdkX11.Objects.X11Keymap

Contents

Description

No description available in the introspection data.

Synopsis

Exported types

Methods

getGroupForState

x11KeymapGetGroupForState Source #

Arguments

:: (HasCallStack, MonadIO m, IsX11Keymap a) 
=> a

keymap: a X11Keymap

-> Word32

state: raw state returned from X

-> m Int32

Returns: the index of the active keyboard group for the event

Extracts the group from the state field sent in an X Key event. This is only needed for code processing raw X events, since EventKey directly includes an is_modifier field.

Since: 3.6

keyIsModifier

x11KeymapKeyIsModifier Source #

Arguments

:: (HasCallStack, MonadIO m, IsX11Keymap a) 
=> a

keymap: a X11Keymap

-> Word32

keycode: the hardware keycode from a key event

-> m Bool

Returns: True if the hardware keycode is a modifier key

Determines whether a particular key code represents a key that is a modifier. That is, it’s a key that normally just affects the keyboard state and the behavior of other keys rather than producing a direct effect itself. This is only needed for code processing raw X events, since EventKey directly includes an is_modifier field.

Since: 3.6