gtk-0.11.0: Binding to the Gtk+ graphical user interface library.ContentsIndex
Graphics.UI.Gtk.Gdk.Keys
Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net
Description
A KeyVal is a numeric value identifying a keyboard key. The defined values can be found at http://gitweb.freedesktop.org/?p=xorg/proto/x11proto.git;a=blob_plain;f=keysymdef.h. The names of the keys are the names of the macros without the prefix.
Synopsis
type KeyVal = Word32
keyName :: KeyVal -> String
keyFromName :: String -> KeyVal
keyToChar :: KeyVal -> Maybe Char
keyvalName :: KeyVal -> IO String
keyvalFromName :: String -> IO KeyVal
keyvalToChar :: KeyVal -> IO (Maybe Char)
Documentation
type KeyVal = Word32
Key values are the codes which are sent whenever a key is pressed or released.
keyName :: KeyVal -> String
Converts a key value into a symbolic name.
keyFromName :: String -> KeyVal
Converts a key name to a key value.
keyToChar
:: KeyValkeyval - a Gdk key symbol
-> Maybe Charreturns the corresponding unicode character, or Nothing if there is no corresponding character.
Convert from a Gdk key symbol to the corresponding Unicode character.
keyvalName :: KeyVal -> IO String
keyvalFromName :: String -> IO KeyVal
keyvalToChar :: KeyVal -> IO (Maybe Char)
Produced by Haddock version 2.4.2