Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
An IBusKeymap defines the mapping between keyboard scancodes and keyboard symbols such as numbers, alphabets, and punctuation marks.
Some input methods assume certain keyboard layout
(such as Chewing and Wubi requires an US-QWERTY layout),
and expect key symbols to be arranged in that order.
These input methods should new an IBusKeymap
instance and define the keyboard layout.
Then keymapLookupKeysym
can
convert scancodes back to the key symbols.
see_also: Component
, EngineDesc
Synopsis
- newtype Keymap = Keymap (ManagedPtr Keymap)
- class (GObject o, IsDescendantOf Keymap o) => IsKeymap o
- toKeymap :: (MonadIO m, IsKeymap o) => o -> m Keymap
- keymapGet :: (HasCallStack, MonadIO m) => Text -> m Keymap
- keymapLookupKeysym :: (HasCallStack, MonadIO m, IsKeymap a) => a -> Word16 -> Word32 -> m Word32
- keymapNew :: (HasCallStack, MonadIO m) => Text -> m Keymap
Exported types
Memory-managed wrapper type.
Instances
Eq Keymap Source # | |
GObject Keymap Source # | |
Defined in GI.IBus.Objects.Keymap | |
ManagedPtrNewtype Keymap Source # | |
Defined in GI.IBus.Objects.Keymap toManagedPtr :: Keymap -> ManagedPtr Keymap | |
TypedObject Keymap Source # | |
Defined in GI.IBus.Objects.Keymap | |
HasParentTypes Keymap Source # | |
Defined in GI.IBus.Objects.Keymap | |
IsGValue (Maybe Keymap) Source # | Convert |
Defined in GI.IBus.Objects.Keymap gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Keymap -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Keymap) | |
type ParentTypes Keymap Source # | |
Defined in GI.IBus.Objects.Keymap |
class (GObject o, IsDescendantOf Keymap o) => IsKeymap o Source #
Instances
(GObject o, IsDescendantOf Keymap o) => IsKeymap o Source # | |
Defined in GI.IBus.Objects.Keymap |
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, destroy, forceFloating, freezeNotify, getv, isFloating, lookupKeysym, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
get
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m Keymap | Returns: An |
Get an IBusKeymap associated with the giving name.
This function loads the keymap file specified in name
in the IBUS_DATA_DIR/keymaps directory.
lookupKeysym
:: (HasCallStack, MonadIO m, IsKeymap a) | |
=> a |
|
-> Word16 |
|
-> Word32 |
|
-> m Word32 | Returns: Corresponding keysym. |
Converts the scancode to keysym, given the keymap.