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 |
- Exported types
- Methods
- cancelHandWriting
- focusIn
- focusOut
- getEngine
- getEngineAsync
- getEngineAsyncFinish
- getInputContext
- getInputContextAsync
- getInputContextAsyncFinish
- needsSurroundingText
- new
- newAsync
- newAsyncFinish
- processHandWritingEvent
- processKeyEvent
- processKeyEventAsync
- processKeyEventAsyncFinish
- propertyActivate
- reset
- setCapabilities
- setClientCommitPreedit
- setContentType
- setCursorLocation
- setCursorLocationRelative
- setEngine
- setSurroundingText
- Signals
- commitText
- cursorDownLookupTable
- cursorUpLookupTable
- deleteSurroundingText
- disabled
- enabled
- forwardKeyEvent
- hideAuxiliaryText
- hideLookupTable
- hidePreeditText
- pageDownLookupTable
- pageUpLookupTable
- registerProperties
- showAuxiliaryText
- showLookupTable
- showPreeditText
- updateAuxiliaryText
- updateLookupTable
- updatePreeditText
- updatePreeditTextWithMode
- updateProperty
An IBusInputContext is a proxy object of BusInputContext, which manages the context for input methods that supports text input in various natural languages.
Clients call the IBusInputContext to invoke BusInputContext, through which invokes IBusEngine.
Synopsis
- newtype InputContext = InputContext (ManagedPtr InputContext)
- class (GObject o, IsDescendantOf InputContext o) => IsInputContext o
- toInputContext :: (MonadIO m, IsInputContext o) => o -> m InputContext
- inputContextCancelHandWriting :: (HasCallStack, MonadIO m, IsInputContext a) => a -> Word32 -> m ()
- inputContextFocusIn :: (HasCallStack, MonadIO m, IsInputContext a) => a -> m ()
- inputContextFocusOut :: (HasCallStack, MonadIO m, IsInputContext a) => a -> m ()
- inputContextGetEngine :: (HasCallStack, MonadIO m, IsInputContext a) => a -> m EngineDesc
- inputContextGetEngineAsync :: (HasCallStack, MonadIO m, IsInputContext a, IsCancellable b) => a -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- inputContextGetEngineAsyncFinish :: (HasCallStack, MonadIO m, IsInputContext a, IsAsyncResult b) => a -> b -> m EngineDesc
- inputContextGetInputContext :: (HasCallStack, MonadIO m, IsDBusConnection a) => Text -> a -> m InputContext
- inputContextGetInputContextAsync :: (HasCallStack, MonadIO m, IsDBusConnection a, IsCancellable b) => Text -> a -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- inputContextGetInputContextAsyncFinish :: (HasCallStack, MonadIO m, IsAsyncResult a) => a -> m InputContext
- inputContextNeedsSurroundingText :: (HasCallStack, MonadIO m, IsInputContext a) => a -> m Bool
- inputContextNew :: (HasCallStack, MonadIO m, IsDBusConnection a, IsCancellable b) => Text -> a -> Maybe b -> m InputContext
- inputContextNewAsync :: (HasCallStack, MonadIO m, IsDBusConnection a, IsCancellable b) => Text -> a -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- inputContextNewAsyncFinish :: (HasCallStack, MonadIO m, IsAsyncResult a) => a -> m InputContext
- inputContextProcessHandWritingEvent :: (HasCallStack, MonadIO m, IsInputContext a) => a -> Double -> Word32 -> m ()
- inputContextProcessKeyEvent :: (HasCallStack, MonadIO m, IsInputContext a) => a -> Word32 -> Word32 -> Word32 -> m Bool
- inputContextProcessKeyEventAsync :: (HasCallStack, MonadIO m, IsInputContext a, IsCancellable b) => a -> Word32 -> Word32 -> Word32 -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- inputContextProcessKeyEventAsyncFinish :: (HasCallStack, MonadIO m, IsInputContext a, IsAsyncResult b) => a -> b -> m ()
- inputContextPropertyActivate :: (HasCallStack, MonadIO m, IsInputContext a) => a -> Text -> Word32 -> m ()
- inputContextReset :: (HasCallStack, MonadIO m, IsInputContext a) => a -> m ()
- inputContextSetCapabilities :: (HasCallStack, MonadIO m, IsInputContext a) => a -> Word32 -> m ()
- inputContextSetClientCommitPreedit :: (HasCallStack, MonadIO m, IsInputContext a) => a -> Bool -> m ()
- inputContextSetContentType :: (HasCallStack, MonadIO m, IsInputContext a) => a -> Word32 -> Word32 -> m ()
- inputContextSetCursorLocation :: (HasCallStack, MonadIO m, IsInputContext a) => a -> Int32 -> Int32 -> Int32 -> Int32 -> m ()
- inputContextSetCursorLocationRelative :: (HasCallStack, MonadIO m, IsInputContext a) => a -> Int32 -> Int32 -> Int32 -> Int32 -> m ()
- inputContextSetEngine :: (HasCallStack, MonadIO m, IsInputContext a) => a -> Text -> m ()
- inputContextSetSurroundingText :: (HasCallStack, MonadIO m, IsInputContext a, IsText b) => a -> b -> Word32 -> Word32 -> m ()
- type C_InputContextCommitTextCallback = Ptr () -> Ptr Text -> Ptr () -> IO ()
- type InputContextCommitTextCallback = Text -> IO ()
- afterInputContextCommitText :: (IsInputContext a, MonadIO m) => a -> InputContextCommitTextCallback -> m SignalHandlerId
- genClosure_InputContextCommitText :: MonadIO m => InputContextCommitTextCallback -> m (GClosure C_InputContextCommitTextCallback)
- mk_InputContextCommitTextCallback :: C_InputContextCommitTextCallback -> IO (FunPtr C_InputContextCommitTextCallback)
- noInputContextCommitTextCallback :: Maybe InputContextCommitTextCallback
- onInputContextCommitText :: (IsInputContext a, MonadIO m) => a -> InputContextCommitTextCallback -> m SignalHandlerId
- wrap_InputContextCommitTextCallback :: InputContextCommitTextCallback -> C_InputContextCommitTextCallback
- type C_InputContextCursorDownLookupTableCallback = Ptr () -> Ptr () -> IO ()
- type InputContextCursorDownLookupTableCallback = IO ()
- afterInputContextCursorDownLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextCursorDownLookupTableCallback -> m SignalHandlerId
- genClosure_InputContextCursorDownLookupTable :: MonadIO m => InputContextCursorDownLookupTableCallback -> m (GClosure C_InputContextCursorDownLookupTableCallback)
- mk_InputContextCursorDownLookupTableCallback :: C_InputContextCursorDownLookupTableCallback -> IO (FunPtr C_InputContextCursorDownLookupTableCallback)
- noInputContextCursorDownLookupTableCallback :: Maybe InputContextCursorDownLookupTableCallback
- onInputContextCursorDownLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextCursorDownLookupTableCallback -> m SignalHandlerId
- wrap_InputContextCursorDownLookupTableCallback :: InputContextCursorDownLookupTableCallback -> C_InputContextCursorDownLookupTableCallback
- type C_InputContextCursorUpLookupTableCallback = Ptr () -> Ptr () -> IO ()
- type InputContextCursorUpLookupTableCallback = IO ()
- afterInputContextCursorUpLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextCursorUpLookupTableCallback -> m SignalHandlerId
- genClosure_InputContextCursorUpLookupTable :: MonadIO m => InputContextCursorUpLookupTableCallback -> m (GClosure C_InputContextCursorUpLookupTableCallback)
- mk_InputContextCursorUpLookupTableCallback :: C_InputContextCursorUpLookupTableCallback -> IO (FunPtr C_InputContextCursorUpLookupTableCallback)
- noInputContextCursorUpLookupTableCallback :: Maybe InputContextCursorUpLookupTableCallback
- onInputContextCursorUpLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextCursorUpLookupTableCallback -> m SignalHandlerId
- wrap_InputContextCursorUpLookupTableCallback :: InputContextCursorUpLookupTableCallback -> C_InputContextCursorUpLookupTableCallback
- type C_InputContextDeleteSurroundingTextCallback = Ptr () -> Int32 -> Word32 -> Ptr () -> IO ()
- type InputContextDeleteSurroundingTextCallback = Int32 -> Word32 -> IO ()
- afterInputContextDeleteSurroundingText :: (IsInputContext a, MonadIO m) => a -> InputContextDeleteSurroundingTextCallback -> m SignalHandlerId
- genClosure_InputContextDeleteSurroundingText :: MonadIO m => InputContextDeleteSurroundingTextCallback -> m (GClosure C_InputContextDeleteSurroundingTextCallback)
- mk_InputContextDeleteSurroundingTextCallback :: C_InputContextDeleteSurroundingTextCallback -> IO (FunPtr C_InputContextDeleteSurroundingTextCallback)
- noInputContextDeleteSurroundingTextCallback :: Maybe InputContextDeleteSurroundingTextCallback
- onInputContextDeleteSurroundingText :: (IsInputContext a, MonadIO m) => a -> InputContextDeleteSurroundingTextCallback -> m SignalHandlerId
- wrap_InputContextDeleteSurroundingTextCallback :: InputContextDeleteSurroundingTextCallback -> C_InputContextDeleteSurroundingTextCallback
- type C_InputContextDisabledCallback = Ptr () -> Ptr () -> IO ()
- type InputContextDisabledCallback = IO ()
- afterInputContextDisabled :: (IsInputContext a, MonadIO m) => a -> InputContextDisabledCallback -> m SignalHandlerId
- genClosure_InputContextDisabled :: MonadIO m => InputContextDisabledCallback -> m (GClosure C_InputContextDisabledCallback)
- mk_InputContextDisabledCallback :: C_InputContextDisabledCallback -> IO (FunPtr C_InputContextDisabledCallback)
- noInputContextDisabledCallback :: Maybe InputContextDisabledCallback
- onInputContextDisabled :: (IsInputContext a, MonadIO m) => a -> InputContextDisabledCallback -> m SignalHandlerId
- wrap_InputContextDisabledCallback :: InputContextDisabledCallback -> C_InputContextDisabledCallback
- type C_InputContextEnabledCallback = Ptr () -> Ptr () -> IO ()
- type InputContextEnabledCallback = IO ()
- afterInputContextEnabled :: (IsInputContext a, MonadIO m) => a -> InputContextEnabledCallback -> m SignalHandlerId
- genClosure_InputContextEnabled :: MonadIO m => InputContextEnabledCallback -> m (GClosure C_InputContextEnabledCallback)
- mk_InputContextEnabledCallback :: C_InputContextEnabledCallback -> IO (FunPtr C_InputContextEnabledCallback)
- noInputContextEnabledCallback :: Maybe InputContextEnabledCallback
- onInputContextEnabled :: (IsInputContext a, MonadIO m) => a -> InputContextEnabledCallback -> m SignalHandlerId
- wrap_InputContextEnabledCallback :: InputContextEnabledCallback -> C_InputContextEnabledCallback
- type C_InputContextForwardKeyEventCallback = Ptr () -> Word32 -> Word32 -> Word32 -> Ptr () -> IO ()
- type InputContextForwardKeyEventCallback = Word32 -> Word32 -> Word32 -> IO ()
- afterInputContextForwardKeyEvent :: (IsInputContext a, MonadIO m) => a -> InputContextForwardKeyEventCallback -> m SignalHandlerId
- genClosure_InputContextForwardKeyEvent :: MonadIO m => InputContextForwardKeyEventCallback -> m (GClosure C_InputContextForwardKeyEventCallback)
- mk_InputContextForwardKeyEventCallback :: C_InputContextForwardKeyEventCallback -> IO (FunPtr C_InputContextForwardKeyEventCallback)
- noInputContextForwardKeyEventCallback :: Maybe InputContextForwardKeyEventCallback
- onInputContextForwardKeyEvent :: (IsInputContext a, MonadIO m) => a -> InputContextForwardKeyEventCallback -> m SignalHandlerId
- wrap_InputContextForwardKeyEventCallback :: InputContextForwardKeyEventCallback -> C_InputContextForwardKeyEventCallback
- type C_InputContextHideAuxiliaryTextCallback = Ptr () -> Ptr () -> IO ()
- type InputContextHideAuxiliaryTextCallback = IO ()
- afterInputContextHideAuxiliaryText :: (IsInputContext a, MonadIO m) => a -> InputContextHideAuxiliaryTextCallback -> m SignalHandlerId
- genClosure_InputContextHideAuxiliaryText :: MonadIO m => InputContextHideAuxiliaryTextCallback -> m (GClosure C_InputContextHideAuxiliaryTextCallback)
- mk_InputContextHideAuxiliaryTextCallback :: C_InputContextHideAuxiliaryTextCallback -> IO (FunPtr C_InputContextHideAuxiliaryTextCallback)
- noInputContextHideAuxiliaryTextCallback :: Maybe InputContextHideAuxiliaryTextCallback
- onInputContextHideAuxiliaryText :: (IsInputContext a, MonadIO m) => a -> InputContextHideAuxiliaryTextCallback -> m SignalHandlerId
- wrap_InputContextHideAuxiliaryTextCallback :: InputContextHideAuxiliaryTextCallback -> C_InputContextHideAuxiliaryTextCallback
- type C_InputContextHideLookupTableCallback = Ptr () -> Ptr () -> IO ()
- type InputContextHideLookupTableCallback = IO ()
- afterInputContextHideLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextHideLookupTableCallback -> m SignalHandlerId
- genClosure_InputContextHideLookupTable :: MonadIO m => InputContextHideLookupTableCallback -> m (GClosure C_InputContextHideLookupTableCallback)
- mk_InputContextHideLookupTableCallback :: C_InputContextHideLookupTableCallback -> IO (FunPtr C_InputContextHideLookupTableCallback)
- noInputContextHideLookupTableCallback :: Maybe InputContextHideLookupTableCallback
- onInputContextHideLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextHideLookupTableCallback -> m SignalHandlerId
- wrap_InputContextHideLookupTableCallback :: InputContextHideLookupTableCallback -> C_InputContextHideLookupTableCallback
- type C_InputContextHidePreeditTextCallback = Ptr () -> Ptr () -> IO ()
- type InputContextHidePreeditTextCallback = IO ()
- afterInputContextHidePreeditText :: (IsInputContext a, MonadIO m) => a -> InputContextHidePreeditTextCallback -> m SignalHandlerId
- genClosure_InputContextHidePreeditText :: MonadIO m => InputContextHidePreeditTextCallback -> m (GClosure C_InputContextHidePreeditTextCallback)
- mk_InputContextHidePreeditTextCallback :: C_InputContextHidePreeditTextCallback -> IO (FunPtr C_InputContextHidePreeditTextCallback)
- noInputContextHidePreeditTextCallback :: Maybe InputContextHidePreeditTextCallback
- onInputContextHidePreeditText :: (IsInputContext a, MonadIO m) => a -> InputContextHidePreeditTextCallback -> m SignalHandlerId
- wrap_InputContextHidePreeditTextCallback :: InputContextHidePreeditTextCallback -> C_InputContextHidePreeditTextCallback
- type C_InputContextPageDownLookupTableCallback = Ptr () -> Ptr () -> IO ()
- type InputContextPageDownLookupTableCallback = IO ()
- afterInputContextPageDownLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextPageDownLookupTableCallback -> m SignalHandlerId
- genClosure_InputContextPageDownLookupTable :: MonadIO m => InputContextPageDownLookupTableCallback -> m (GClosure C_InputContextPageDownLookupTableCallback)
- mk_InputContextPageDownLookupTableCallback :: C_InputContextPageDownLookupTableCallback -> IO (FunPtr C_InputContextPageDownLookupTableCallback)
- noInputContextPageDownLookupTableCallback :: Maybe InputContextPageDownLookupTableCallback
- onInputContextPageDownLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextPageDownLookupTableCallback -> m SignalHandlerId
- wrap_InputContextPageDownLookupTableCallback :: InputContextPageDownLookupTableCallback -> C_InputContextPageDownLookupTableCallback
- type C_InputContextPageUpLookupTableCallback = Ptr () -> Ptr () -> IO ()
- type InputContextPageUpLookupTableCallback = IO ()
- afterInputContextPageUpLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextPageUpLookupTableCallback -> m SignalHandlerId
- genClosure_InputContextPageUpLookupTable :: MonadIO m => InputContextPageUpLookupTableCallback -> m (GClosure C_InputContextPageUpLookupTableCallback)
- mk_InputContextPageUpLookupTableCallback :: C_InputContextPageUpLookupTableCallback -> IO (FunPtr C_InputContextPageUpLookupTableCallback)
- noInputContextPageUpLookupTableCallback :: Maybe InputContextPageUpLookupTableCallback
- onInputContextPageUpLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextPageUpLookupTableCallback -> m SignalHandlerId
- wrap_InputContextPageUpLookupTableCallback :: InputContextPageUpLookupTableCallback -> C_InputContextPageUpLookupTableCallback
- type C_InputContextRegisterPropertiesCallback = Ptr () -> Ptr PropList -> Ptr () -> IO ()
- type InputContextRegisterPropertiesCallback = PropList -> IO ()
- afterInputContextRegisterProperties :: (IsInputContext a, MonadIO m) => a -> InputContextRegisterPropertiesCallback -> m SignalHandlerId
- genClosure_InputContextRegisterProperties :: MonadIO m => InputContextRegisterPropertiesCallback -> m (GClosure C_InputContextRegisterPropertiesCallback)
- mk_InputContextRegisterPropertiesCallback :: C_InputContextRegisterPropertiesCallback -> IO (FunPtr C_InputContextRegisterPropertiesCallback)
- noInputContextRegisterPropertiesCallback :: Maybe InputContextRegisterPropertiesCallback
- onInputContextRegisterProperties :: (IsInputContext a, MonadIO m) => a -> InputContextRegisterPropertiesCallback -> m SignalHandlerId
- wrap_InputContextRegisterPropertiesCallback :: InputContextRegisterPropertiesCallback -> C_InputContextRegisterPropertiesCallback
- type C_InputContextShowAuxiliaryTextCallback = Ptr () -> Ptr () -> IO ()
- type InputContextShowAuxiliaryTextCallback = IO ()
- afterInputContextShowAuxiliaryText :: (IsInputContext a, MonadIO m) => a -> InputContextShowAuxiliaryTextCallback -> m SignalHandlerId
- genClosure_InputContextShowAuxiliaryText :: MonadIO m => InputContextShowAuxiliaryTextCallback -> m (GClosure C_InputContextShowAuxiliaryTextCallback)
- mk_InputContextShowAuxiliaryTextCallback :: C_InputContextShowAuxiliaryTextCallback -> IO (FunPtr C_InputContextShowAuxiliaryTextCallback)
- noInputContextShowAuxiliaryTextCallback :: Maybe InputContextShowAuxiliaryTextCallback
- onInputContextShowAuxiliaryText :: (IsInputContext a, MonadIO m) => a -> InputContextShowAuxiliaryTextCallback -> m SignalHandlerId
- wrap_InputContextShowAuxiliaryTextCallback :: InputContextShowAuxiliaryTextCallback -> C_InputContextShowAuxiliaryTextCallback
- type C_InputContextShowLookupTableCallback = Ptr () -> Ptr () -> IO ()
- type InputContextShowLookupTableCallback = IO ()
- afterInputContextShowLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextShowLookupTableCallback -> m SignalHandlerId
- genClosure_InputContextShowLookupTable :: MonadIO m => InputContextShowLookupTableCallback -> m (GClosure C_InputContextShowLookupTableCallback)
- mk_InputContextShowLookupTableCallback :: C_InputContextShowLookupTableCallback -> IO (FunPtr C_InputContextShowLookupTableCallback)
- noInputContextShowLookupTableCallback :: Maybe InputContextShowLookupTableCallback
- onInputContextShowLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextShowLookupTableCallback -> m SignalHandlerId
- wrap_InputContextShowLookupTableCallback :: InputContextShowLookupTableCallback -> C_InputContextShowLookupTableCallback
- type C_InputContextShowPreeditTextCallback = Ptr () -> Ptr () -> IO ()
- type InputContextShowPreeditTextCallback = IO ()
- afterInputContextShowPreeditText :: (IsInputContext a, MonadIO m) => a -> InputContextShowPreeditTextCallback -> m SignalHandlerId
- genClosure_InputContextShowPreeditText :: MonadIO m => InputContextShowPreeditTextCallback -> m (GClosure C_InputContextShowPreeditTextCallback)
- mk_InputContextShowPreeditTextCallback :: C_InputContextShowPreeditTextCallback -> IO (FunPtr C_InputContextShowPreeditTextCallback)
- noInputContextShowPreeditTextCallback :: Maybe InputContextShowPreeditTextCallback
- onInputContextShowPreeditText :: (IsInputContext a, MonadIO m) => a -> InputContextShowPreeditTextCallback -> m SignalHandlerId
- wrap_InputContextShowPreeditTextCallback :: InputContextShowPreeditTextCallback -> C_InputContextShowPreeditTextCallback
- type C_InputContextUpdateAuxiliaryTextCallback = Ptr () -> Ptr Text -> CInt -> Ptr () -> IO ()
- type InputContextUpdateAuxiliaryTextCallback = Text -> Bool -> IO ()
- afterInputContextUpdateAuxiliaryText :: (IsInputContext a, MonadIO m) => a -> InputContextUpdateAuxiliaryTextCallback -> m SignalHandlerId
- genClosure_InputContextUpdateAuxiliaryText :: MonadIO m => InputContextUpdateAuxiliaryTextCallback -> m (GClosure C_InputContextUpdateAuxiliaryTextCallback)
- mk_InputContextUpdateAuxiliaryTextCallback :: C_InputContextUpdateAuxiliaryTextCallback -> IO (FunPtr C_InputContextUpdateAuxiliaryTextCallback)
- noInputContextUpdateAuxiliaryTextCallback :: Maybe InputContextUpdateAuxiliaryTextCallback
- onInputContextUpdateAuxiliaryText :: (IsInputContext a, MonadIO m) => a -> InputContextUpdateAuxiliaryTextCallback -> m SignalHandlerId
- wrap_InputContextUpdateAuxiliaryTextCallback :: InputContextUpdateAuxiliaryTextCallback -> C_InputContextUpdateAuxiliaryTextCallback
- type C_InputContextUpdateLookupTableCallback = Ptr () -> Ptr LookupTable -> CInt -> Ptr () -> IO ()
- type InputContextUpdateLookupTableCallback = LookupTable -> Bool -> IO ()
- afterInputContextUpdateLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextUpdateLookupTableCallback -> m SignalHandlerId
- genClosure_InputContextUpdateLookupTable :: MonadIO m => InputContextUpdateLookupTableCallback -> m (GClosure C_InputContextUpdateLookupTableCallback)
- mk_InputContextUpdateLookupTableCallback :: C_InputContextUpdateLookupTableCallback -> IO (FunPtr C_InputContextUpdateLookupTableCallback)
- noInputContextUpdateLookupTableCallback :: Maybe InputContextUpdateLookupTableCallback
- onInputContextUpdateLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextUpdateLookupTableCallback -> m SignalHandlerId
- wrap_InputContextUpdateLookupTableCallback :: InputContextUpdateLookupTableCallback -> C_InputContextUpdateLookupTableCallback
- type C_InputContextUpdatePreeditTextCallback = Ptr () -> Ptr Text -> Word32 -> CInt -> Ptr () -> IO ()
- type InputContextUpdatePreeditTextCallback = Text -> Word32 -> Bool -> IO ()
- afterInputContextUpdatePreeditText :: (IsInputContext a, MonadIO m) => a -> InputContextUpdatePreeditTextCallback -> m SignalHandlerId
- genClosure_InputContextUpdatePreeditText :: MonadIO m => InputContextUpdatePreeditTextCallback -> m (GClosure C_InputContextUpdatePreeditTextCallback)
- mk_InputContextUpdatePreeditTextCallback :: C_InputContextUpdatePreeditTextCallback -> IO (FunPtr C_InputContextUpdatePreeditTextCallback)
- noInputContextUpdatePreeditTextCallback :: Maybe InputContextUpdatePreeditTextCallback
- onInputContextUpdatePreeditText :: (IsInputContext a, MonadIO m) => a -> InputContextUpdatePreeditTextCallback -> m SignalHandlerId
- wrap_InputContextUpdatePreeditTextCallback :: InputContextUpdatePreeditTextCallback -> C_InputContextUpdatePreeditTextCallback
- type C_InputContextUpdatePreeditTextWithModeCallback = Ptr () -> Ptr Text -> Word32 -> CInt -> Word32 -> Ptr () -> IO ()
- type InputContextUpdatePreeditTextWithModeCallback = Text -> Word32 -> Bool -> Word32 -> IO ()
- afterInputContextUpdatePreeditTextWithMode :: (IsInputContext a, MonadIO m) => a -> InputContextUpdatePreeditTextWithModeCallback -> m SignalHandlerId
- genClosure_InputContextUpdatePreeditTextWithMode :: MonadIO m => InputContextUpdatePreeditTextWithModeCallback -> m (GClosure C_InputContextUpdatePreeditTextWithModeCallback)
- mk_InputContextUpdatePreeditTextWithModeCallback :: C_InputContextUpdatePreeditTextWithModeCallback -> IO (FunPtr C_InputContextUpdatePreeditTextWithModeCallback)
- noInputContextUpdatePreeditTextWithModeCallback :: Maybe InputContextUpdatePreeditTextWithModeCallback
- onInputContextUpdatePreeditTextWithMode :: (IsInputContext a, MonadIO m) => a -> InputContextUpdatePreeditTextWithModeCallback -> m SignalHandlerId
- wrap_InputContextUpdatePreeditTextWithModeCallback :: InputContextUpdatePreeditTextWithModeCallback -> C_InputContextUpdatePreeditTextWithModeCallback
- type C_InputContextUpdatePropertyCallback = Ptr () -> Ptr Property -> Ptr () -> IO ()
- type InputContextUpdatePropertyCallback = Property -> IO ()
- afterInputContextUpdateProperty :: (IsInputContext a, MonadIO m) => a -> InputContextUpdatePropertyCallback -> m SignalHandlerId
- genClosure_InputContextUpdateProperty :: MonadIO m => InputContextUpdatePropertyCallback -> m (GClosure C_InputContextUpdatePropertyCallback)
- mk_InputContextUpdatePropertyCallback :: C_InputContextUpdatePropertyCallback -> IO (FunPtr C_InputContextUpdatePropertyCallback)
- noInputContextUpdatePropertyCallback :: Maybe InputContextUpdatePropertyCallback
- onInputContextUpdateProperty :: (IsInputContext a, MonadIO m) => a -> InputContextUpdatePropertyCallback -> m SignalHandlerId
- wrap_InputContextUpdatePropertyCallback :: InputContextUpdatePropertyCallback -> C_InputContextUpdatePropertyCallback
Exported types
newtype InputContext Source #
Memory-managed wrapper type.
InputContext (ManagedPtr InputContext) |
Instances
Eq InputContext Source # | |
Defined in GI.IBus.Objects.InputContext (==) :: InputContext -> InputContext -> Bool # (/=) :: InputContext -> InputContext -> Bool # | |
GObject InputContext Source # | |
Defined in GI.IBus.Objects.InputContext | |
ManagedPtrNewtype InputContext Source # | |
Defined in GI.IBus.Objects.InputContext toManagedPtr :: InputContext -> ManagedPtr InputContext | |
TypedObject InputContext Source # | |
Defined in GI.IBus.Objects.InputContext | |
HasParentTypes InputContext Source # | |
Defined in GI.IBus.Objects.InputContext | |
IsGValue (Maybe InputContext) Source # | Convert |
Defined in GI.IBus.Objects.InputContext gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe InputContext -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe InputContext) | |
type ParentTypes InputContext Source # | |
Defined in GI.IBus.Objects.InputContext |
class (GObject o, IsDescendantOf InputContext o) => IsInputContext o Source #
Type class for types which can be safely cast to InputContext
, for instance with toInputContext
.
Instances
(GObject o, IsDescendantOf InputContext o) => IsInputContext o Source # | |
Defined in GI.IBus.Objects.InputContext |
toInputContext :: (MonadIO m, IsInputContext o) => o -> m InputContext Source #
Cast to InputContext
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, call, callFinish, callSync, callWithUnixFdList, callWithUnixFdListFinish, callWithUnixFdListSync, cancelHandWriting, destroy, focusIn, focusOut, forceFloating, freezeNotify, getv, init, initAsync, initFinish, isFloating, needsSurroundingText, notify, notifyByPspec, processHandWritingEvent, processKeyEvent, processKeyEventAsync, processKeyEventAsyncFinish, propertyActivate, ref, refSink, reset, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getCachedProperty, getCachedPropertyNames, getConnection, getData, getDefaultTimeout, getEngine, getEngineAsync, getEngineAsyncFinish, getFlags, getInfo, getInterfaceInfo, getInterfaceName, getName, getNameOwner, getObject, getObjectPath, getProperty, getQdata.
Setters
setCachedProperty, setCapabilities, setClientCommitPreedit, setContentType, setCursorLocation, setCursorLocationRelative, setData, setDataFull, setDefaultTimeout, setEngine, setInterfaceInfo, setObject, setProperty, setSurroundingText.
cancelHandWriting
inputContextCancelHandWriting Source #
:: (HasCallStack, MonadIO m, IsInputContext a) | |
=> a |
|
-> Word32 |
|
-> m () |
Clear handwriting stroke(s) in the current input method engine.
see_also: cancelHandWriting
focusIn
:: (HasCallStack, MonadIO m, IsInputContext a) | |
=> a |
|
-> m () |
Invoked when the client application get focus. An asynchronous IPC will be performed.
see_also: Engine
::focus_in
.
focusOut
:: (HasCallStack, MonadIO m, IsInputContext a) | |
=> a |
|
-> m () |
Invoked when the client application get focus. An asynchronous IPC will be performed.
see_also: Engine
::focus_out
.
getEngine
inputContextGetEngine Source #
:: (HasCallStack, MonadIO m, IsInputContext a) | |
=> a |
|
-> m EngineDesc | Returns: An IME engine description for the context, or NULL. |
Gets an IME engine description for the context. A synchronous IPC will be performed.
getEngineAsync
inputContextGetEngineAsync Source #
:: (HasCallStack, MonadIO m, IsInputContext a, IsCancellable b) | |
=> a |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
An asynchronous IPC will be performed.
getEngineAsyncFinish
inputContextGetEngineAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsInputContext a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m EngineDesc | Returns: An IME engine description for the context, or
|
Finishes an operation started with inputContextGetEngineAsync
.
getInputContext
inputContextGetInputContext Source #
:: (HasCallStack, MonadIO m, IsDBusConnection a) | |
=> Text |
|
-> a |
|
-> m InputContext | Returns: An existing |
Gets an existing IBusInputContext.
getInputContextAsync
inputContextGetInputContextAsync Source #
:: (HasCallStack, MonadIO m, IsDBusConnection a, IsCancellable b) | |
=> Text |
|
-> a |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Gets an existing InputContext
asynchronously.
getInputContextAsyncFinish
inputContextGetInputContextAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsAsyncResult a) | |
=> a |
|
-> m InputContext | Returns: An existing |
Finishes an operation started with
inputContextGetInputContextAsync
.
needsSurroundingText
inputContextNeedsSurroundingText Source #
:: (HasCallStack, MonadIO m, IsInputContext a) | |
=> a |
|
-> m Bool | Returns: |
Check whether the current engine requires surrounding-text.
new
:: (HasCallStack, MonadIO m, IsDBusConnection a, IsCancellable b) | |
=> Text |
|
-> a |
|
-> Maybe b |
|
-> m InputContext | Returns: A newly allocated |
Creates a new InputContext
.
newAsync
:: (HasCallStack, MonadIO m, IsDBusConnection a, IsCancellable b) | |
=> Text |
|
-> a |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Creates a new InputContext
asynchronously.
newAsyncFinish
inputContextNewAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsAsyncResult a) | |
=> a |
|
-> m InputContext | Returns: A newly allocated |
Finishes an operation started with inputContextNewAsync
.
processHandWritingEvent
inputContextProcessHandWritingEvent Source #
:: (HasCallStack, MonadIO m, IsInputContext a) | |
=> a |
|
-> Double |
|
-> Word32 |
|
-> m () |
Pass a handwriting stroke to an input method engine.
In this API, a coordinate (0.0, 0.0) represents the top-left corner of an area for handwriting, and (1.0, 1.0) does the bottom-right. Therefore, for example, if a user writes a character 'L', the array would be something like [0.0, 0.0, 0.0, 1.0, 1.0, 1.0] and coordinates_len would be 6.
The function is usually called when a user releases the mouse button in a hand writing area.
see_also: processHandWritingEvent
processKeyEvent
inputContextProcessKeyEvent Source #
:: (HasCallStack, MonadIO m, IsInputContext a) | |
=> a |
|
-> Word32 |
|
-> Word32 |
|
-> Word32 |
|
-> m Bool | Returns: See also: |
Pass the key event to input method engine and wait for the reply from ibus (i.e. synchronous IPC).
processKeyEventAsync
inputContextProcessKeyEventAsync Source #
:: (HasCallStack, MonadIO m, IsInputContext a, IsCancellable b) | |
=> a |
|
-> Word32 |
|
-> Word32 |
|
-> Word32 |
|
-> Int32 |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Pass the key event to input method engine.
Key symbols are characters/symbols produced by key press, for example, pressing "s" generates key symbol "s"; pressing shift-"s" generates key symbol "S". Same key on keyboard may produce different key symbols on different keyboard layout. e.g., "s" key on QWERTY keyboard produces "o" in DVORAK layout.
Unlike key symbol, keycode is only determined by the location of the key, and irrelevant of the keyboard layout.
Briefly speaking, input methods that expect certain keyboard layout should use keycode; otherwise keyval is sufficient. For example, Chewing, Cangjie, Wubi expect an en-US QWERTY keyboard, these should use keycode; while pinyin can rely on keyval only, as it is less sensitive to the keyboard layout change, DVORAK users can still use DVORAK layout to input pinyin.
Use keymapLookupKeysym
to convert keycode to keysym in given keyboard layout.
see_also: processKeyEvent
processKeyEventAsyncFinish
inputContextProcessKeyEventAsyncFinish Source #
:: (HasCallStack, MonadIO m, IsInputContext a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes an operation started with
inputContextProcessKeyEventAsync
.
propertyActivate
inputContextPropertyActivate Source #
:: (HasCallStack, MonadIO m, IsInputContext a) | |
=> a |
|
-> Text |
|
-> Word32 |
|
-> m () |
Activate the property asynchronously.
See also: Engine
::property_activate
reset
:: (HasCallStack, MonadIO m, IsInputContext a) | |
=> a |
|
-> m () |
Invoked when the IME is reset. An asynchronous IPC will be performed.
see_also: reset
setCapabilities
inputContextSetCapabilities Source #
:: (HasCallStack, MonadIO m, IsInputContext a) | |
=> a |
|
-> Word32 |
|
-> m () |
Set the capabilities flags of client application asynchronously. When IBUS_CAP_FOCUS is not set, IBUS_CAP_PREEDIT_TEXT, IBUS_CAP_AUXILIARY_TEXT, IBUS_CAP_LOOKUP_TABLE, and IBUS_CAP_PROPERTY have to be all set. The panel component does nothing for an application that doesn't support focus.
see_also: setCapabilities
setClientCommitPreedit
inputContextSetClientCommitPreedit Source #
:: (HasCallStack, MonadIO m, IsInputContext a) | |
=> a |
|
-> Bool |
|
-> m () |
Set whether InputContext
commits pre-edit texts or not.
If True
, 'update-preedit-text-with-mode' signal is emitted
instead of 'update-preedit-text' signal.
If your client receives the 'update-preedit-text-with-mode' signal,
the client needs to implement commit_text()
of pre-edit text when
GtkIMContextClass.focus_out()
is called in case an IME desires that
behavior but it depends on each IME.
See also engineUpdatePreeditTextWithMode
.
setContentType
inputContextSetContentType Source #
:: (HasCallStack, MonadIO m, IsInputContext a) | |
=> a |
|
-> Word32 |
|
-> Word32 |
|
-> m () |
Set content-type (primary purpose and hints) of the context. This
information is particularly useful to implement intelligent
behavior in engines, such as automatic input-mode switch and text
prediction. For example, to restrict input to numbers, the client
can call this function with purpose
set to
IBUS_INPUT_PURPOSE_NUMBER
.
See also: setContentType
setCursorLocation
inputContextSetCursorLocation Source #
:: (HasCallStack, MonadIO m, IsInputContext a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Set the cursor location of IBus input context asynchronously.
see_also: setCursorLocation
setCursorLocationRelative
inputContextSetCursorLocationRelative Source #
:: (HasCallStack, MonadIO m, IsInputContext a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Set the relative cursor location of IBus input context asynchronously.
setEngine
inputContextSetEngine Source #
:: (HasCallStack, MonadIO m, IsInputContext a) | |
=> a |
|
-> Text |
|
-> m () |
Invoked when the IME engine is changed. An asynchronous IPC will be performed.
setSurroundingText
inputContextSetSurroundingText Source #
:: (HasCallStack, MonadIO m, IsInputContext a, IsText b) | |
=> a |
|
-> b |
|
-> Word32 |
|
-> Word32 |
|
-> m () |
No description available in the introspection data.
Signals
commitText
type C_InputContextCommitTextCallback = Ptr () -> Ptr Text -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextCommitTextCallback Source #
Emitted when the text is going to be committed.
(Note: The text object is floating, and it will be released after the
signal. If signal handler wants to keep the object, the handler should
use objectRefSink
to get the ownership of the object.)
afterInputContextCommitText :: (IsInputContext a, MonadIO m) => a -> InputContextCommitTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the commitText signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #commitText callback
genClosure_InputContextCommitText :: MonadIO m => InputContextCommitTextCallback -> m (GClosure C_InputContextCommitTextCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextCommitTextCallback :: C_InputContextCommitTextCallback -> IO (FunPtr C_InputContextCommitTextCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextCommitTextCallback
.
noInputContextCommitTextCallback :: Maybe InputContextCommitTextCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextCommitTextCallback
onInputContextCommitText :: (IsInputContext a, MonadIO m) => a -> InputContextCommitTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the commitText signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #commitText callback
wrap_InputContextCommitTextCallback :: InputContextCommitTextCallback -> C_InputContextCommitTextCallback Source #
Wrap a InputContextCommitTextCallback
into a C_InputContextCommitTextCallback
.
cursorDownLookupTable
type C_InputContextCursorDownLookupTableCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextCursorDownLookupTableCallback = IO () Source #
Emitted to select next candidate of lookup table.
afterInputContextCursorDownLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextCursorDownLookupTableCallback -> m SignalHandlerId Source #
Connect a signal handler for the cursorDownLookupTable signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #cursorDownLookupTable callback
genClosure_InputContextCursorDownLookupTable :: MonadIO m => InputContextCursorDownLookupTableCallback -> m (GClosure C_InputContextCursorDownLookupTableCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextCursorDownLookupTableCallback :: C_InputContextCursorDownLookupTableCallback -> IO (FunPtr C_InputContextCursorDownLookupTableCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextCursorDownLookupTableCallback
.
noInputContextCursorDownLookupTableCallback :: Maybe InputContextCursorDownLookupTableCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextCursorDownLookupTableCallback
onInputContextCursorDownLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextCursorDownLookupTableCallback -> m SignalHandlerId Source #
Connect a signal handler for the cursorDownLookupTable signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #cursorDownLookupTable callback
wrap_InputContextCursorDownLookupTableCallback :: InputContextCursorDownLookupTableCallback -> C_InputContextCursorDownLookupTableCallback Source #
cursorUpLookupTable
type C_InputContextCursorUpLookupTableCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextCursorUpLookupTableCallback = IO () Source #
Emitted to select previous candidate of lookup table.
afterInputContextCursorUpLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextCursorUpLookupTableCallback -> m SignalHandlerId Source #
Connect a signal handler for the cursorUpLookupTable signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #cursorUpLookupTable callback
genClosure_InputContextCursorUpLookupTable :: MonadIO m => InputContextCursorUpLookupTableCallback -> m (GClosure C_InputContextCursorUpLookupTableCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextCursorUpLookupTableCallback :: C_InputContextCursorUpLookupTableCallback -> IO (FunPtr C_InputContextCursorUpLookupTableCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextCursorUpLookupTableCallback
.
noInputContextCursorUpLookupTableCallback :: Maybe InputContextCursorUpLookupTableCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextCursorUpLookupTableCallback
onInputContextCursorUpLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextCursorUpLookupTableCallback -> m SignalHandlerId Source #
Connect a signal handler for the cursorUpLookupTable signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #cursorUpLookupTable callback
wrap_InputContextCursorUpLookupTableCallback :: InputContextCursorUpLookupTableCallback -> C_InputContextCursorUpLookupTableCallback Source #
deleteSurroundingText
type C_InputContextDeleteSurroundingTextCallback = Ptr () -> Int32 -> Word32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextDeleteSurroundingTextCallback Source #
= Int32 |
|
-> Word32 |
|
-> IO () |
Emitted to delete surrounding text event from IME to client of IME.
afterInputContextDeleteSurroundingText :: (IsInputContext a, MonadIO m) => a -> InputContextDeleteSurroundingTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the deleteSurroundingText signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #deleteSurroundingText callback
genClosure_InputContextDeleteSurroundingText :: MonadIO m => InputContextDeleteSurroundingTextCallback -> m (GClosure C_InputContextDeleteSurroundingTextCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextDeleteSurroundingTextCallback :: C_InputContextDeleteSurroundingTextCallback -> IO (FunPtr C_InputContextDeleteSurroundingTextCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextDeleteSurroundingTextCallback
.
noInputContextDeleteSurroundingTextCallback :: Maybe InputContextDeleteSurroundingTextCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextDeleteSurroundingTextCallback
onInputContextDeleteSurroundingText :: (IsInputContext a, MonadIO m) => a -> InputContextDeleteSurroundingTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the deleteSurroundingText signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #deleteSurroundingText callback
wrap_InputContextDeleteSurroundingTextCallback :: InputContextDeleteSurroundingTextCallback -> C_InputContextDeleteSurroundingTextCallback Source #
disabled
type C_InputContextDisabledCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextDisabledCallback = IO () Source #
Emitted when an IME is disabled.
afterInputContextDisabled :: (IsInputContext a, MonadIO m) => a -> InputContextDisabledCallback -> m SignalHandlerId Source #
Connect a signal handler for the disabled signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #disabled callback
genClosure_InputContextDisabled :: MonadIO m => InputContextDisabledCallback -> m (GClosure C_InputContextDisabledCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextDisabledCallback :: C_InputContextDisabledCallback -> IO (FunPtr C_InputContextDisabledCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextDisabledCallback
.
noInputContextDisabledCallback :: Maybe InputContextDisabledCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextDisabledCallback
onInputContextDisabled :: (IsInputContext a, MonadIO m) => a -> InputContextDisabledCallback -> m SignalHandlerId Source #
Connect a signal handler for the disabled signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #disabled callback
wrap_InputContextDisabledCallback :: InputContextDisabledCallback -> C_InputContextDisabledCallback Source #
Wrap a InputContextDisabledCallback
into a C_InputContextDisabledCallback
.
enabled
type C_InputContextEnabledCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextEnabledCallback = IO () Source #
Emitted when an IME is enabled.
afterInputContextEnabled :: (IsInputContext a, MonadIO m) => a -> InputContextEnabledCallback -> m SignalHandlerId Source #
Connect a signal handler for the enabled signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #enabled callback
genClosure_InputContextEnabled :: MonadIO m => InputContextEnabledCallback -> m (GClosure C_InputContextEnabledCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextEnabledCallback :: C_InputContextEnabledCallback -> IO (FunPtr C_InputContextEnabledCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextEnabledCallback
.
noInputContextEnabledCallback :: Maybe InputContextEnabledCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextEnabledCallback
onInputContextEnabled :: (IsInputContext a, MonadIO m) => a -> InputContextEnabledCallback -> m SignalHandlerId Source #
Connect a signal handler for the enabled signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #enabled callback
wrap_InputContextEnabledCallback :: InputContextEnabledCallback -> C_InputContextEnabledCallback Source #
Wrap a InputContextEnabledCallback
into a C_InputContextEnabledCallback
.
forwardKeyEvent
type C_InputContextForwardKeyEventCallback = Ptr () -> Word32 -> Word32 -> Word32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextForwardKeyEventCallback Source #
= Word32 |
|
-> Word32 |
|
-> Word32 |
|
-> IO () |
Emitted to forward key event from IME to client of IME.
afterInputContextForwardKeyEvent :: (IsInputContext a, MonadIO m) => a -> InputContextForwardKeyEventCallback -> m SignalHandlerId Source #
Connect a signal handler for the forwardKeyEvent signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #forwardKeyEvent callback
genClosure_InputContextForwardKeyEvent :: MonadIO m => InputContextForwardKeyEventCallback -> m (GClosure C_InputContextForwardKeyEventCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextForwardKeyEventCallback :: C_InputContextForwardKeyEventCallback -> IO (FunPtr C_InputContextForwardKeyEventCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextForwardKeyEventCallback
.
noInputContextForwardKeyEventCallback :: Maybe InputContextForwardKeyEventCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextForwardKeyEventCallback
onInputContextForwardKeyEvent :: (IsInputContext a, MonadIO m) => a -> InputContextForwardKeyEventCallback -> m SignalHandlerId Source #
Connect a signal handler for the forwardKeyEvent signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #forwardKeyEvent callback
wrap_InputContextForwardKeyEventCallback :: InputContextForwardKeyEventCallback -> C_InputContextForwardKeyEventCallback Source #
hideAuxiliaryText
type C_InputContextHideAuxiliaryTextCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextHideAuxiliaryTextCallback = IO () Source #
Emitted to hide auxiliary text.
afterInputContextHideAuxiliaryText :: (IsInputContext a, MonadIO m) => a -> InputContextHideAuxiliaryTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the hideAuxiliaryText signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #hideAuxiliaryText callback
genClosure_InputContextHideAuxiliaryText :: MonadIO m => InputContextHideAuxiliaryTextCallback -> m (GClosure C_InputContextHideAuxiliaryTextCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextHideAuxiliaryTextCallback :: C_InputContextHideAuxiliaryTextCallback -> IO (FunPtr C_InputContextHideAuxiliaryTextCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextHideAuxiliaryTextCallback
.
noInputContextHideAuxiliaryTextCallback :: Maybe InputContextHideAuxiliaryTextCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextHideAuxiliaryTextCallback
onInputContextHideAuxiliaryText :: (IsInputContext a, MonadIO m) => a -> InputContextHideAuxiliaryTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the hideAuxiliaryText signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #hideAuxiliaryText callback
wrap_InputContextHideAuxiliaryTextCallback :: InputContextHideAuxiliaryTextCallback -> C_InputContextHideAuxiliaryTextCallback Source #
hideLookupTable
type C_InputContextHideLookupTableCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextHideLookupTableCallback = IO () Source #
Emitted to hide lookup table.
afterInputContextHideLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextHideLookupTableCallback -> m SignalHandlerId Source #
Connect a signal handler for the hideLookupTable signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #hideLookupTable callback
genClosure_InputContextHideLookupTable :: MonadIO m => InputContextHideLookupTableCallback -> m (GClosure C_InputContextHideLookupTableCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextHideLookupTableCallback :: C_InputContextHideLookupTableCallback -> IO (FunPtr C_InputContextHideLookupTableCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextHideLookupTableCallback
.
noInputContextHideLookupTableCallback :: Maybe InputContextHideLookupTableCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextHideLookupTableCallback
onInputContextHideLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextHideLookupTableCallback -> m SignalHandlerId Source #
Connect a signal handler for the hideLookupTable signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #hideLookupTable callback
wrap_InputContextHideLookupTableCallback :: InputContextHideLookupTableCallback -> C_InputContextHideLookupTableCallback Source #
hidePreeditText
type C_InputContextHidePreeditTextCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextHidePreeditTextCallback = IO () Source #
Emitted to hide preedit text.
afterInputContextHidePreeditText :: (IsInputContext a, MonadIO m) => a -> InputContextHidePreeditTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the hidePreeditText signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #hidePreeditText callback
genClosure_InputContextHidePreeditText :: MonadIO m => InputContextHidePreeditTextCallback -> m (GClosure C_InputContextHidePreeditTextCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextHidePreeditTextCallback :: C_InputContextHidePreeditTextCallback -> IO (FunPtr C_InputContextHidePreeditTextCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextHidePreeditTextCallback
.
noInputContextHidePreeditTextCallback :: Maybe InputContextHidePreeditTextCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextHidePreeditTextCallback
onInputContextHidePreeditText :: (IsInputContext a, MonadIO m) => a -> InputContextHidePreeditTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the hidePreeditText signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #hidePreeditText callback
wrap_InputContextHidePreeditTextCallback :: InputContextHidePreeditTextCallback -> C_InputContextHidePreeditTextCallback Source #
pageDownLookupTable
type C_InputContextPageDownLookupTableCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextPageDownLookupTableCallback = IO () Source #
Emitted to view the next page of lookup table.
afterInputContextPageDownLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextPageDownLookupTableCallback -> m SignalHandlerId Source #
Connect a signal handler for the pageDownLookupTable signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #pageDownLookupTable callback
genClosure_InputContextPageDownLookupTable :: MonadIO m => InputContextPageDownLookupTableCallback -> m (GClosure C_InputContextPageDownLookupTableCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextPageDownLookupTableCallback :: C_InputContextPageDownLookupTableCallback -> IO (FunPtr C_InputContextPageDownLookupTableCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextPageDownLookupTableCallback
.
noInputContextPageDownLookupTableCallback :: Maybe InputContextPageDownLookupTableCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextPageDownLookupTableCallback
onInputContextPageDownLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextPageDownLookupTableCallback -> m SignalHandlerId Source #
Connect a signal handler for the pageDownLookupTable signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #pageDownLookupTable callback
wrap_InputContextPageDownLookupTableCallback :: InputContextPageDownLookupTableCallback -> C_InputContextPageDownLookupTableCallback Source #
pageUpLookupTable
type C_InputContextPageUpLookupTableCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextPageUpLookupTableCallback = IO () Source #
Emitted to view the previous page of lookup table.
afterInputContextPageUpLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextPageUpLookupTableCallback -> m SignalHandlerId Source #
Connect a signal handler for the pageUpLookupTable signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #pageUpLookupTable callback
genClosure_InputContextPageUpLookupTable :: MonadIO m => InputContextPageUpLookupTableCallback -> m (GClosure C_InputContextPageUpLookupTableCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextPageUpLookupTableCallback :: C_InputContextPageUpLookupTableCallback -> IO (FunPtr C_InputContextPageUpLookupTableCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextPageUpLookupTableCallback
.
noInputContextPageUpLookupTableCallback :: Maybe InputContextPageUpLookupTableCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextPageUpLookupTableCallback
onInputContextPageUpLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextPageUpLookupTableCallback -> m SignalHandlerId Source #
Connect a signal handler for the pageUpLookupTable signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #pageUpLookupTable callback
wrap_InputContextPageUpLookupTableCallback :: InputContextPageUpLookupTableCallback -> C_InputContextPageUpLookupTableCallback Source #
registerProperties
type C_InputContextRegisterPropertiesCallback = Ptr () -> Ptr PropList -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextRegisterPropertiesCallback Source #
Emitted to register the properties in props
.
(Note: The props object is floating, and it will be released after the
signal. If signal handler wants to keep the object, the handler should
use objectRefSink
to get the ownership of the object.)
afterInputContextRegisterProperties :: (IsInputContext a, MonadIO m) => a -> InputContextRegisterPropertiesCallback -> m SignalHandlerId Source #
Connect a signal handler for the registerProperties signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #registerProperties callback
genClosure_InputContextRegisterProperties :: MonadIO m => InputContextRegisterPropertiesCallback -> m (GClosure C_InputContextRegisterPropertiesCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextRegisterPropertiesCallback :: C_InputContextRegisterPropertiesCallback -> IO (FunPtr C_InputContextRegisterPropertiesCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextRegisterPropertiesCallback
.
noInputContextRegisterPropertiesCallback :: Maybe InputContextRegisterPropertiesCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextRegisterPropertiesCallback
onInputContextRegisterProperties :: (IsInputContext a, MonadIO m) => a -> InputContextRegisterPropertiesCallback -> m SignalHandlerId Source #
Connect a signal handler for the registerProperties signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #registerProperties callback
wrap_InputContextRegisterPropertiesCallback :: InputContextRegisterPropertiesCallback -> C_InputContextRegisterPropertiesCallback Source #
showAuxiliaryText
type C_InputContextShowAuxiliaryTextCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextShowAuxiliaryTextCallback = IO () Source #
Emitted to show auxiliary text.
afterInputContextShowAuxiliaryText :: (IsInputContext a, MonadIO m) => a -> InputContextShowAuxiliaryTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the showAuxiliaryText signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #showAuxiliaryText callback
genClosure_InputContextShowAuxiliaryText :: MonadIO m => InputContextShowAuxiliaryTextCallback -> m (GClosure C_InputContextShowAuxiliaryTextCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextShowAuxiliaryTextCallback :: C_InputContextShowAuxiliaryTextCallback -> IO (FunPtr C_InputContextShowAuxiliaryTextCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextShowAuxiliaryTextCallback
.
noInputContextShowAuxiliaryTextCallback :: Maybe InputContextShowAuxiliaryTextCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextShowAuxiliaryTextCallback
onInputContextShowAuxiliaryText :: (IsInputContext a, MonadIO m) => a -> InputContextShowAuxiliaryTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the showAuxiliaryText signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #showAuxiliaryText callback
wrap_InputContextShowAuxiliaryTextCallback :: InputContextShowAuxiliaryTextCallback -> C_InputContextShowAuxiliaryTextCallback Source #
showLookupTable
type C_InputContextShowLookupTableCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextShowLookupTableCallback = IO () Source #
Emitted to show lookup table.
afterInputContextShowLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextShowLookupTableCallback -> m SignalHandlerId Source #
Connect a signal handler for the showLookupTable signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #showLookupTable callback
genClosure_InputContextShowLookupTable :: MonadIO m => InputContextShowLookupTableCallback -> m (GClosure C_InputContextShowLookupTableCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextShowLookupTableCallback :: C_InputContextShowLookupTableCallback -> IO (FunPtr C_InputContextShowLookupTableCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextShowLookupTableCallback
.
noInputContextShowLookupTableCallback :: Maybe InputContextShowLookupTableCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextShowLookupTableCallback
onInputContextShowLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextShowLookupTableCallback -> m SignalHandlerId Source #
Connect a signal handler for the showLookupTable signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #showLookupTable callback
wrap_InputContextShowLookupTableCallback :: InputContextShowLookupTableCallback -> C_InputContextShowLookupTableCallback Source #
showPreeditText
type C_InputContextShowPreeditTextCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextShowPreeditTextCallback = IO () Source #
Emitted to show preedit text.
afterInputContextShowPreeditText :: (IsInputContext a, MonadIO m) => a -> InputContextShowPreeditTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the showPreeditText signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #showPreeditText callback
genClosure_InputContextShowPreeditText :: MonadIO m => InputContextShowPreeditTextCallback -> m (GClosure C_InputContextShowPreeditTextCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextShowPreeditTextCallback :: C_InputContextShowPreeditTextCallback -> IO (FunPtr C_InputContextShowPreeditTextCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextShowPreeditTextCallback
.
noInputContextShowPreeditTextCallback :: Maybe InputContextShowPreeditTextCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextShowPreeditTextCallback
onInputContextShowPreeditText :: (IsInputContext a, MonadIO m) => a -> InputContextShowPreeditTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the showPreeditText signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #showPreeditText callback
wrap_InputContextShowPreeditTextCallback :: InputContextShowPreeditTextCallback -> C_InputContextShowPreeditTextCallback Source #
updateAuxiliaryText
type C_InputContextUpdateAuxiliaryTextCallback = Ptr () -> Ptr Text -> CInt -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextUpdateAuxiliaryTextCallback Source #
Emitted to hide auxilary text.
(Note: The text object is floating, and it will be released after the
signal. If signal handler wants to keep the object, the handler should
use objectRefSink
to get the ownership of the object.)
afterInputContextUpdateAuxiliaryText :: (IsInputContext a, MonadIO m) => a -> InputContextUpdateAuxiliaryTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the updateAuxiliaryText signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #updateAuxiliaryText callback
genClosure_InputContextUpdateAuxiliaryText :: MonadIO m => InputContextUpdateAuxiliaryTextCallback -> m (GClosure C_InputContextUpdateAuxiliaryTextCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextUpdateAuxiliaryTextCallback :: C_InputContextUpdateAuxiliaryTextCallback -> IO (FunPtr C_InputContextUpdateAuxiliaryTextCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextUpdateAuxiliaryTextCallback
.
noInputContextUpdateAuxiliaryTextCallback :: Maybe InputContextUpdateAuxiliaryTextCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextUpdateAuxiliaryTextCallback
onInputContextUpdateAuxiliaryText :: (IsInputContext a, MonadIO m) => a -> InputContextUpdateAuxiliaryTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the updateAuxiliaryText signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #updateAuxiliaryText callback
wrap_InputContextUpdateAuxiliaryTextCallback :: InputContextUpdateAuxiliaryTextCallback -> C_InputContextUpdateAuxiliaryTextCallback Source #
updateLookupTable
type C_InputContextUpdateLookupTableCallback = Ptr () -> Ptr LookupTable -> CInt -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextUpdateLookupTableCallback Source #
= LookupTable |
|
-> Bool |
|
-> IO () |
Emitted to update lookup table.
(Note: The table object is floating, and it will be released after the
signal. If signal handler wants to keep the object, the handler should
use objectRefSink
to get the ownership of the object.)
afterInputContextUpdateLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextUpdateLookupTableCallback -> m SignalHandlerId Source #
Connect a signal handler for the updateLookupTable signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #updateLookupTable callback
genClosure_InputContextUpdateLookupTable :: MonadIO m => InputContextUpdateLookupTableCallback -> m (GClosure C_InputContextUpdateLookupTableCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextUpdateLookupTableCallback :: C_InputContextUpdateLookupTableCallback -> IO (FunPtr C_InputContextUpdateLookupTableCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextUpdateLookupTableCallback
.
noInputContextUpdateLookupTableCallback :: Maybe InputContextUpdateLookupTableCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextUpdateLookupTableCallback
onInputContextUpdateLookupTable :: (IsInputContext a, MonadIO m) => a -> InputContextUpdateLookupTableCallback -> m SignalHandlerId Source #
Connect a signal handler for the updateLookupTable signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #updateLookupTable callback
wrap_InputContextUpdateLookupTableCallback :: InputContextUpdateLookupTableCallback -> C_InputContextUpdateLookupTableCallback Source #
updatePreeditText
type C_InputContextUpdatePreeditTextCallback = Ptr () -> Ptr Text -> Word32 -> CInt -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextUpdatePreeditTextCallback Source #
= Text |
|
-> Word32 |
|
-> Bool |
|
-> IO () |
Emitted to update preedit text.
(Note: The text object is floating, and it will be released after the
signal. If signal handler wants to keep the object, the handler should
use objectRefSink
to get the ownership of the object.)
afterInputContextUpdatePreeditText :: (IsInputContext a, MonadIO m) => a -> InputContextUpdatePreeditTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the updatePreeditText signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #updatePreeditText callback
genClosure_InputContextUpdatePreeditText :: MonadIO m => InputContextUpdatePreeditTextCallback -> m (GClosure C_InputContextUpdatePreeditTextCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextUpdatePreeditTextCallback :: C_InputContextUpdatePreeditTextCallback -> IO (FunPtr C_InputContextUpdatePreeditTextCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextUpdatePreeditTextCallback
.
noInputContextUpdatePreeditTextCallback :: Maybe InputContextUpdatePreeditTextCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextUpdatePreeditTextCallback
onInputContextUpdatePreeditText :: (IsInputContext a, MonadIO m) => a -> InputContextUpdatePreeditTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the updatePreeditText signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #updatePreeditText callback
wrap_InputContextUpdatePreeditTextCallback :: InputContextUpdatePreeditTextCallback -> C_InputContextUpdatePreeditTextCallback Source #
updatePreeditTextWithMode
type C_InputContextUpdatePreeditTextWithModeCallback = Ptr () -> Ptr Text -> Word32 -> CInt -> Word32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextUpdatePreeditTextWithModeCallback Source #
= Text |
|
-> Word32 |
|
-> Bool |
|
-> Word32 |
|
-> IO () |
Emitted to update preedit text with the mode.
(Note: The text object is floating, and it will be released after the
signal. If signal handler wants to keep the object, the handler should
use objectRefSink
to get the ownership of the object.)
afterInputContextUpdatePreeditTextWithMode :: (IsInputContext a, MonadIO m) => a -> InputContextUpdatePreeditTextWithModeCallback -> m SignalHandlerId Source #
Connect a signal handler for the updatePreeditTextWithMode signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #updatePreeditTextWithMode callback
genClosure_InputContextUpdatePreeditTextWithMode :: MonadIO m => InputContextUpdatePreeditTextWithModeCallback -> m (GClosure C_InputContextUpdatePreeditTextWithModeCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextUpdatePreeditTextWithModeCallback :: C_InputContextUpdatePreeditTextWithModeCallback -> IO (FunPtr C_InputContextUpdatePreeditTextWithModeCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextUpdatePreeditTextWithModeCallback
.
noInputContextUpdatePreeditTextWithModeCallback :: Maybe InputContextUpdatePreeditTextWithModeCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextUpdatePreeditTextWithModeCallback
onInputContextUpdatePreeditTextWithMode :: (IsInputContext a, MonadIO m) => a -> InputContextUpdatePreeditTextWithModeCallback -> m SignalHandlerId Source #
Connect a signal handler for the updatePreeditTextWithMode signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #updatePreeditTextWithMode callback
wrap_InputContextUpdatePreeditTextWithModeCallback :: InputContextUpdatePreeditTextWithModeCallback -> C_InputContextUpdatePreeditTextWithModeCallback Source #
updateProperty
type C_InputContextUpdatePropertyCallback = Ptr () -> Ptr Property -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputContextUpdatePropertyCallback Source #
Emitted to update the property prop
.
(Note: The prop object is floating, and it will be released after the
signal. If signal handler wants to keep the object, the handler should
use objectRefSink
to get the ownership of the object.)
afterInputContextUpdateProperty :: (IsInputContext a, MonadIO m) => a -> InputContextUpdatePropertyCallback -> m SignalHandlerId Source #
Connect a signal handler for the updateProperty signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputContext #updateProperty callback
genClosure_InputContextUpdateProperty :: MonadIO m => InputContextUpdatePropertyCallback -> m (GClosure C_InputContextUpdatePropertyCallback) Source #
Wrap the callback into a GClosure
.
mk_InputContextUpdatePropertyCallback :: C_InputContextUpdatePropertyCallback -> IO (FunPtr C_InputContextUpdatePropertyCallback) Source #
Generate a function pointer callable from C code, from a C_InputContextUpdatePropertyCallback
.
noInputContextUpdatePropertyCallback :: Maybe InputContextUpdatePropertyCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputContextUpdatePropertyCallback
onInputContextUpdateProperty :: (IsInputContext a, MonadIO m) => a -> InputContextUpdatePropertyCallback -> m SignalHandlerId Source #
Connect a signal handler for the updateProperty signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputContext #updateProperty callback