Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- Overloaded methods
- commitText
- deleteSurroundingText
- forwardKeyEvent
- getContentType
- getName
- getSurroundingText
- hideAuxiliaryText
- hideLookupTable
- hidePreeditText
- new
- newWithType
- registerProperties
- showAuxiliaryText
- showLookupTable
- showPreeditText
- updateAuxiliaryText
- updateLookupTable
- updateLookupTableFast
- updatePreeditText
- updatePreeditTextWithMode
- updateProperty
- Properties
- Signals
An IBusEngine provides infrastructure for input method engine. Developers can "extend" this class for input method engine development.
see_also: Component
, EngineDesc
Synopsis
- newtype Engine = Engine (ManagedPtr Engine)
- class (GObject o, IsDescendantOf Engine o) => IsEngine o
- toEngine :: (MonadIO m, IsEngine o) => o -> m Engine
- engineCommitText :: (HasCallStack, MonadIO m, IsEngine a, IsText b) => a -> b -> m ()
- engineDeleteSurroundingText :: (HasCallStack, MonadIO m, IsEngine a) => a -> Int32 -> Word32 -> m ()
- engineForwardKeyEvent :: (HasCallStack, MonadIO m, IsEngine a) => a -> Word32 -> Word32 -> Word32 -> m ()
- engineGetContentType :: (HasCallStack, MonadIO m, IsEngine a) => a -> m (Word32, Word32)
- engineGetName :: (HasCallStack, MonadIO m, IsEngine a) => a -> m Text
- engineGetSurroundingText :: (HasCallStack, MonadIO m, IsEngine a) => a -> m (Text, Word32, Word32)
- engineHideAuxiliaryText :: (HasCallStack, MonadIO m, IsEngine a) => a -> m ()
- engineHideLookupTable :: (HasCallStack, MonadIO m, IsEngine a) => a -> m ()
- engineHidePreeditText :: (HasCallStack, MonadIO m, IsEngine a) => a -> m ()
- engineNew :: (HasCallStack, MonadIO m, IsDBusConnection a) => Text -> Text -> a -> m Engine
- engineNewWithType :: (HasCallStack, MonadIO m, IsDBusConnection a) => GType -> Text -> Text -> a -> m Engine
- engineRegisterProperties :: (HasCallStack, MonadIO m, IsEngine a, IsPropList b) => a -> b -> m ()
- engineShowAuxiliaryText :: (HasCallStack, MonadIO m, IsEngine a) => a -> m ()
- engineShowLookupTable :: (HasCallStack, MonadIO m, IsEngine a) => a -> m ()
- engineShowPreeditText :: (HasCallStack, MonadIO m, IsEngine a) => a -> m ()
- engineUpdateAuxiliaryText :: (HasCallStack, MonadIO m, IsEngine a, IsText b) => a -> b -> Bool -> m ()
- engineUpdateLookupTable :: (HasCallStack, MonadIO m, IsEngine a, IsLookupTable b) => a -> b -> Bool -> m ()
- engineUpdateLookupTableFast :: (HasCallStack, MonadIO m, IsEngine a, IsLookupTable b) => a -> b -> Bool -> m ()
- engineUpdatePreeditText :: (HasCallStack, MonadIO m, IsEngine a, IsText b) => a -> b -> Word32 -> Bool -> m ()
- engineUpdatePreeditTextWithMode :: (HasCallStack, MonadIO m, IsEngine a, IsText b) => a -> b -> Word32 -> Bool -> PreeditFocusMode -> m ()
- engineUpdateProperty :: (HasCallStack, MonadIO m, IsEngine a, IsProperty b) => a -> b -> m ()
- constructEngineEngineName :: (IsEngine o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineEngineName :: (MonadIO m, IsEngine o) => o -> m (Maybe Text)
- type C_EngineCancelHandWritingCallback = Ptr () -> Word32 -> Ptr () -> IO ()
- type EngineCancelHandWritingCallback = Word32 -> IO ()
- afterEngineCancelHandWriting :: (IsEngine a, MonadIO m) => a -> EngineCancelHandWritingCallback -> m SignalHandlerId
- genClosure_EngineCancelHandWriting :: MonadIO m => EngineCancelHandWritingCallback -> m (GClosure C_EngineCancelHandWritingCallback)
- mk_EngineCancelHandWritingCallback :: C_EngineCancelHandWritingCallback -> IO (FunPtr C_EngineCancelHandWritingCallback)
- noEngineCancelHandWritingCallback :: Maybe EngineCancelHandWritingCallback
- onEngineCancelHandWriting :: (IsEngine a, MonadIO m) => a -> EngineCancelHandWritingCallback -> m SignalHandlerId
- wrap_EngineCancelHandWritingCallback :: EngineCancelHandWritingCallback -> C_EngineCancelHandWritingCallback
- type C_EngineCandidateClickedCallback = Ptr () -> Word32 -> Word32 -> Word32 -> Ptr () -> IO ()
- type EngineCandidateClickedCallback = Word32 -> Word32 -> Word32 -> IO ()
- afterEngineCandidateClicked :: (IsEngine a, MonadIO m) => a -> EngineCandidateClickedCallback -> m SignalHandlerId
- genClosure_EngineCandidateClicked :: MonadIO m => EngineCandidateClickedCallback -> m (GClosure C_EngineCandidateClickedCallback)
- mk_EngineCandidateClickedCallback :: C_EngineCandidateClickedCallback -> IO (FunPtr C_EngineCandidateClickedCallback)
- noEngineCandidateClickedCallback :: Maybe EngineCandidateClickedCallback
- onEngineCandidateClicked :: (IsEngine a, MonadIO m) => a -> EngineCandidateClickedCallback -> m SignalHandlerId
- wrap_EngineCandidateClickedCallback :: EngineCandidateClickedCallback -> C_EngineCandidateClickedCallback
- type C_EngineCursorDownCallback = Ptr () -> Ptr () -> IO ()
- type EngineCursorDownCallback = IO ()
- afterEngineCursorDown :: (IsEngine a, MonadIO m) => a -> EngineCursorDownCallback -> m SignalHandlerId
- genClosure_EngineCursorDown :: MonadIO m => EngineCursorDownCallback -> m (GClosure C_EngineCursorDownCallback)
- mk_EngineCursorDownCallback :: C_EngineCursorDownCallback -> IO (FunPtr C_EngineCursorDownCallback)
- noEngineCursorDownCallback :: Maybe EngineCursorDownCallback
- onEngineCursorDown :: (IsEngine a, MonadIO m) => a -> EngineCursorDownCallback -> m SignalHandlerId
- wrap_EngineCursorDownCallback :: EngineCursorDownCallback -> C_EngineCursorDownCallback
- type C_EngineCursorUpCallback = Ptr () -> Ptr () -> IO ()
- type EngineCursorUpCallback = IO ()
- afterEngineCursorUp :: (IsEngine a, MonadIO m) => a -> EngineCursorUpCallback -> m SignalHandlerId
- genClosure_EngineCursorUp :: MonadIO m => EngineCursorUpCallback -> m (GClosure C_EngineCursorUpCallback)
- mk_EngineCursorUpCallback :: C_EngineCursorUpCallback -> IO (FunPtr C_EngineCursorUpCallback)
- noEngineCursorUpCallback :: Maybe EngineCursorUpCallback
- onEngineCursorUp :: (IsEngine a, MonadIO m) => a -> EngineCursorUpCallback -> m SignalHandlerId
- wrap_EngineCursorUpCallback :: EngineCursorUpCallback -> C_EngineCursorUpCallback
- type C_EngineDisableCallback = Ptr () -> Ptr () -> IO ()
- type EngineDisableCallback = IO ()
- afterEngineDisable :: (IsEngine a, MonadIO m) => a -> EngineDisableCallback -> m SignalHandlerId
- genClosure_EngineDisable :: MonadIO m => EngineDisableCallback -> m (GClosure C_EngineDisableCallback)
- mk_EngineDisableCallback :: C_EngineDisableCallback -> IO (FunPtr C_EngineDisableCallback)
- noEngineDisableCallback :: Maybe EngineDisableCallback
- onEngineDisable :: (IsEngine a, MonadIO m) => a -> EngineDisableCallback -> m SignalHandlerId
- wrap_EngineDisableCallback :: EngineDisableCallback -> C_EngineDisableCallback
- type C_EngineEnableCallback = Ptr () -> Ptr () -> IO ()
- type EngineEnableCallback = IO ()
- afterEngineEnable :: (IsEngine a, MonadIO m) => a -> EngineEnableCallback -> m SignalHandlerId
- genClosure_EngineEnable :: MonadIO m => EngineEnableCallback -> m (GClosure C_EngineEnableCallback)
- mk_EngineEnableCallback :: C_EngineEnableCallback -> IO (FunPtr C_EngineEnableCallback)
- noEngineEnableCallback :: Maybe EngineEnableCallback
- onEngineEnable :: (IsEngine a, MonadIO m) => a -> EngineEnableCallback -> m SignalHandlerId
- wrap_EngineEnableCallback :: EngineEnableCallback -> C_EngineEnableCallback
- type C_EngineFocusInCallback = Ptr () -> Ptr () -> IO ()
- type EngineFocusInCallback = IO ()
- afterEngineFocusIn :: (IsEngine a, MonadIO m) => a -> EngineFocusInCallback -> m SignalHandlerId
- genClosure_EngineFocusIn :: MonadIO m => EngineFocusInCallback -> m (GClosure C_EngineFocusInCallback)
- mk_EngineFocusInCallback :: C_EngineFocusInCallback -> IO (FunPtr C_EngineFocusInCallback)
- noEngineFocusInCallback :: Maybe EngineFocusInCallback
- onEngineFocusIn :: (IsEngine a, MonadIO m) => a -> EngineFocusInCallback -> m SignalHandlerId
- wrap_EngineFocusInCallback :: EngineFocusInCallback -> C_EngineFocusInCallback
- type C_EngineFocusOutCallback = Ptr () -> Ptr () -> IO ()
- type EngineFocusOutCallback = IO ()
- afterEngineFocusOut :: (IsEngine a, MonadIO m) => a -> EngineFocusOutCallback -> m SignalHandlerId
- genClosure_EngineFocusOut :: MonadIO m => EngineFocusOutCallback -> m (GClosure C_EngineFocusOutCallback)
- mk_EngineFocusOutCallback :: C_EngineFocusOutCallback -> IO (FunPtr C_EngineFocusOutCallback)
- noEngineFocusOutCallback :: Maybe EngineFocusOutCallback
- onEngineFocusOut :: (IsEngine a, MonadIO m) => a -> EngineFocusOutCallback -> m SignalHandlerId
- wrap_EngineFocusOutCallback :: EngineFocusOutCallback -> C_EngineFocusOutCallback
- type C_EnginePageDownCallback = Ptr () -> Ptr () -> IO ()
- type EnginePageDownCallback = IO ()
- afterEnginePageDown :: (IsEngine a, MonadIO m) => a -> EnginePageDownCallback -> m SignalHandlerId
- genClosure_EnginePageDown :: MonadIO m => EnginePageDownCallback -> m (GClosure C_EnginePageDownCallback)
- mk_EnginePageDownCallback :: C_EnginePageDownCallback -> IO (FunPtr C_EnginePageDownCallback)
- noEnginePageDownCallback :: Maybe EnginePageDownCallback
- onEnginePageDown :: (IsEngine a, MonadIO m) => a -> EnginePageDownCallback -> m SignalHandlerId
- wrap_EnginePageDownCallback :: EnginePageDownCallback -> C_EnginePageDownCallback
- type C_EnginePageUpCallback = Ptr () -> Ptr () -> IO ()
- type EnginePageUpCallback = IO ()
- afterEnginePageUp :: (IsEngine a, MonadIO m) => a -> EnginePageUpCallback -> m SignalHandlerId
- genClosure_EnginePageUp :: MonadIO m => EnginePageUpCallback -> m (GClosure C_EnginePageUpCallback)
- mk_EnginePageUpCallback :: C_EnginePageUpCallback -> IO (FunPtr C_EnginePageUpCallback)
- noEnginePageUpCallback :: Maybe EnginePageUpCallback
- onEnginePageUp :: (IsEngine a, MonadIO m) => a -> EnginePageUpCallback -> m SignalHandlerId
- wrap_EnginePageUpCallback :: EnginePageUpCallback -> C_EnginePageUpCallback
- type C_EngineProcessHandWritingEventCallback = Ptr () -> Ptr () -> Word32 -> Ptr () -> IO ()
- type EngineProcessHandWritingEventCallback = Ptr () -> Word32 -> IO ()
- afterEngineProcessHandWritingEvent :: (IsEngine a, MonadIO m) => a -> EngineProcessHandWritingEventCallback -> m SignalHandlerId
- genClosure_EngineProcessHandWritingEvent :: MonadIO m => EngineProcessHandWritingEventCallback -> m (GClosure C_EngineProcessHandWritingEventCallback)
- mk_EngineProcessHandWritingEventCallback :: C_EngineProcessHandWritingEventCallback -> IO (FunPtr C_EngineProcessHandWritingEventCallback)
- noEngineProcessHandWritingEventCallback :: Maybe EngineProcessHandWritingEventCallback
- onEngineProcessHandWritingEvent :: (IsEngine a, MonadIO m) => a -> EngineProcessHandWritingEventCallback -> m SignalHandlerId
- wrap_EngineProcessHandWritingEventCallback :: EngineProcessHandWritingEventCallback -> C_EngineProcessHandWritingEventCallback
- type C_EngineProcessKeyEventCallback = Ptr () -> Word32 -> Word32 -> Word32 -> Ptr () -> IO CInt
- type EngineProcessKeyEventCallback = Word32 -> Word32 -> Word32 -> IO Bool
- afterEngineProcessKeyEvent :: (IsEngine a, MonadIO m) => a -> EngineProcessKeyEventCallback -> m SignalHandlerId
- genClosure_EngineProcessKeyEvent :: MonadIO m => EngineProcessKeyEventCallback -> m (GClosure C_EngineProcessKeyEventCallback)
- mk_EngineProcessKeyEventCallback :: C_EngineProcessKeyEventCallback -> IO (FunPtr C_EngineProcessKeyEventCallback)
- noEngineProcessKeyEventCallback :: Maybe EngineProcessKeyEventCallback
- onEngineProcessKeyEvent :: (IsEngine a, MonadIO m) => a -> EngineProcessKeyEventCallback -> m SignalHandlerId
- wrap_EngineProcessKeyEventCallback :: EngineProcessKeyEventCallback -> C_EngineProcessKeyEventCallback
- type C_EnginePropertyActivateCallback = Ptr () -> CString -> Word32 -> Ptr () -> IO ()
- type EnginePropertyActivateCallback = Text -> Word32 -> IO ()
- afterEnginePropertyActivate :: (IsEngine a, MonadIO m) => a -> EnginePropertyActivateCallback -> m SignalHandlerId
- genClosure_EnginePropertyActivate :: MonadIO m => EnginePropertyActivateCallback -> m (GClosure C_EnginePropertyActivateCallback)
- mk_EnginePropertyActivateCallback :: C_EnginePropertyActivateCallback -> IO (FunPtr C_EnginePropertyActivateCallback)
- noEnginePropertyActivateCallback :: Maybe EnginePropertyActivateCallback
- onEnginePropertyActivate :: (IsEngine a, MonadIO m) => a -> EnginePropertyActivateCallback -> m SignalHandlerId
- wrap_EnginePropertyActivateCallback :: EnginePropertyActivateCallback -> C_EnginePropertyActivateCallback
- type C_EnginePropertyHideCallback = Ptr () -> CString -> Ptr () -> IO ()
- type EnginePropertyHideCallback = Text -> IO ()
- afterEnginePropertyHide :: (IsEngine a, MonadIO m) => a -> EnginePropertyHideCallback -> m SignalHandlerId
- genClosure_EnginePropertyHide :: MonadIO m => EnginePropertyHideCallback -> m (GClosure C_EnginePropertyHideCallback)
- mk_EnginePropertyHideCallback :: C_EnginePropertyHideCallback -> IO (FunPtr C_EnginePropertyHideCallback)
- noEnginePropertyHideCallback :: Maybe EnginePropertyHideCallback
- onEnginePropertyHide :: (IsEngine a, MonadIO m) => a -> EnginePropertyHideCallback -> m SignalHandlerId
- wrap_EnginePropertyHideCallback :: EnginePropertyHideCallback -> C_EnginePropertyHideCallback
- type C_EnginePropertyShowCallback = Ptr () -> CString -> Ptr () -> IO ()
- type EnginePropertyShowCallback = Text -> IO ()
- afterEnginePropertyShow :: (IsEngine a, MonadIO m) => a -> EnginePropertyShowCallback -> m SignalHandlerId
- genClosure_EnginePropertyShow :: MonadIO m => EnginePropertyShowCallback -> m (GClosure C_EnginePropertyShowCallback)
- mk_EnginePropertyShowCallback :: C_EnginePropertyShowCallback -> IO (FunPtr C_EnginePropertyShowCallback)
- noEnginePropertyShowCallback :: Maybe EnginePropertyShowCallback
- onEnginePropertyShow :: (IsEngine a, MonadIO m) => a -> EnginePropertyShowCallback -> m SignalHandlerId
- wrap_EnginePropertyShowCallback :: EnginePropertyShowCallback -> C_EnginePropertyShowCallback
- type C_EngineResetCallback = Ptr () -> Ptr () -> IO ()
- type EngineResetCallback = IO ()
- afterEngineReset :: (IsEngine a, MonadIO m) => a -> EngineResetCallback -> m SignalHandlerId
- genClosure_EngineReset :: MonadIO m => EngineResetCallback -> m (GClosure C_EngineResetCallback)
- mk_EngineResetCallback :: C_EngineResetCallback -> IO (FunPtr C_EngineResetCallback)
- noEngineResetCallback :: Maybe EngineResetCallback
- onEngineReset :: (IsEngine a, MonadIO m) => a -> EngineResetCallback -> m SignalHandlerId
- wrap_EngineResetCallback :: EngineResetCallback -> C_EngineResetCallback
- type C_EngineSetCapabilitiesCallback = Ptr () -> Word32 -> Ptr () -> IO ()
- type EngineSetCapabilitiesCallback = Word32 -> IO ()
- afterEngineSetCapabilities :: (IsEngine a, MonadIO m) => a -> EngineSetCapabilitiesCallback -> m SignalHandlerId
- genClosure_EngineSetCapabilities :: MonadIO m => EngineSetCapabilitiesCallback -> m (GClosure C_EngineSetCapabilitiesCallback)
- mk_EngineSetCapabilitiesCallback :: C_EngineSetCapabilitiesCallback -> IO (FunPtr C_EngineSetCapabilitiesCallback)
- noEngineSetCapabilitiesCallback :: Maybe EngineSetCapabilitiesCallback
- onEngineSetCapabilities :: (IsEngine a, MonadIO m) => a -> EngineSetCapabilitiesCallback -> m SignalHandlerId
- wrap_EngineSetCapabilitiesCallback :: EngineSetCapabilitiesCallback -> C_EngineSetCapabilitiesCallback
- type C_EngineSetContentTypeCallback = Ptr () -> Word32 -> Word32 -> Ptr () -> IO ()
- type EngineSetContentTypeCallback = Word32 -> Word32 -> IO ()
- afterEngineSetContentType :: (IsEngine a, MonadIO m) => a -> EngineSetContentTypeCallback -> m SignalHandlerId
- genClosure_EngineSetContentType :: MonadIO m => EngineSetContentTypeCallback -> m (GClosure C_EngineSetContentTypeCallback)
- mk_EngineSetContentTypeCallback :: C_EngineSetContentTypeCallback -> IO (FunPtr C_EngineSetContentTypeCallback)
- noEngineSetContentTypeCallback :: Maybe EngineSetContentTypeCallback
- onEngineSetContentType :: (IsEngine a, MonadIO m) => a -> EngineSetContentTypeCallback -> m SignalHandlerId
- wrap_EngineSetContentTypeCallback :: EngineSetContentTypeCallback -> C_EngineSetContentTypeCallback
- type C_EngineSetCursorLocationCallback = Ptr () -> Int32 -> Int32 -> Int32 -> Int32 -> Ptr () -> IO ()
- type EngineSetCursorLocationCallback = Int32 -> Int32 -> Int32 -> Int32 -> IO ()
- afterEngineSetCursorLocation :: (IsEngine a, MonadIO m) => a -> EngineSetCursorLocationCallback -> m SignalHandlerId
- genClosure_EngineSetCursorLocation :: MonadIO m => EngineSetCursorLocationCallback -> m (GClosure C_EngineSetCursorLocationCallback)
- mk_EngineSetCursorLocationCallback :: C_EngineSetCursorLocationCallback -> IO (FunPtr C_EngineSetCursorLocationCallback)
- noEngineSetCursorLocationCallback :: Maybe EngineSetCursorLocationCallback
- onEngineSetCursorLocation :: (IsEngine a, MonadIO m) => a -> EngineSetCursorLocationCallback -> m SignalHandlerId
- wrap_EngineSetCursorLocationCallback :: EngineSetCursorLocationCallback -> C_EngineSetCursorLocationCallback
- type C_EngineSetSurroundingTextCallback = Ptr () -> Ptr Object -> Word32 -> Word32 -> Ptr () -> IO ()
- type EngineSetSurroundingTextCallback = Object -> Word32 -> Word32 -> IO ()
- afterEngineSetSurroundingText :: (IsEngine a, MonadIO m) => a -> EngineSetSurroundingTextCallback -> m SignalHandlerId
- genClosure_EngineSetSurroundingText :: MonadIO m => EngineSetSurroundingTextCallback -> m (GClosure C_EngineSetSurroundingTextCallback)
- mk_EngineSetSurroundingTextCallback :: C_EngineSetSurroundingTextCallback -> IO (FunPtr C_EngineSetSurroundingTextCallback)
- noEngineSetSurroundingTextCallback :: Maybe EngineSetSurroundingTextCallback
- onEngineSetSurroundingText :: (IsEngine a, MonadIO m) => a -> EngineSetSurroundingTextCallback -> m SignalHandlerId
- wrap_EngineSetSurroundingTextCallback :: EngineSetSurroundingTextCallback -> C_EngineSetSurroundingTextCallback
Exported types
Memory-managed wrapper type.
Instances
Eq Engine Source # | |
GObject Engine Source # | |
Defined in GI.IBus.Objects.Engine | |
ManagedPtrNewtype Engine Source # | |
Defined in GI.IBus.Objects.Engine toManagedPtr :: Engine -> ManagedPtr Engine | |
TypedObject Engine Source # | |
Defined in GI.IBus.Objects.Engine glibType :: IO GType | |
IsGValue Engine Source # | Convert |
Defined in GI.IBus.Objects.Engine toGValue :: Engine -> IO GValue fromGValue :: GValue -> IO Engine | |
HasParentTypes Engine Source # | |
Defined in GI.IBus.Objects.Engine | |
type ParentTypes Engine Source # | |
Defined in GI.IBus.Objects.Engine |
class (GObject o, IsDescendantOf Engine o) => IsEngine o Source #
Instances
(GObject o, IsDescendantOf Engine o) => IsEngine o Source # | |
Defined in GI.IBus.Objects.Engine |
Methods
Overloaded methods
commitText
:: (HasCallStack, MonadIO m, IsEngine a, IsText b) | |
=> a |
|
-> b |
|
-> m () |
Commit output of input method to IBus client.
(Note: The text object will be released, if it is floating. If caller want to keep the object, caller should make the object sink by g_object_ref_sink.)
deleteSurroundingText
engineDeleteSurroundingText Source #
:: (HasCallStack, MonadIO m, IsEngine a) | |
=> a |
|
-> Int32 |
|
-> Word32 |
|
-> m () |
Delete surrounding text.
forwardKeyEvent
engineForwardKeyEvent Source #
:: (HasCallStack, MonadIO m, IsEngine a) | |
=> a |
|
-> Word32 |
|
-> Word32 |
|
-> Word32 |
|
-> m () |
Forward the key event.
getContentType
Get content-type (primary purpose and hints) of the current input context.
See also: setContentType
getName
:: (HasCallStack, MonadIO m, IsEngine a) | |
=> a |
|
-> m Text | Returns: Name of |
Return the name of Engine
.
getSurroundingText
engineGetSurroundingText Source #
Get surrounding text.
It is also used to tell the input-context that the engine will
utilize surrounding-text. In that case, it must be called in
enable handler, with both text
and cursor
set to
Nothing
.
See also: setSurroundingText
hideAuxiliaryText
engineHideAuxiliaryText Source #
Hide the auxiliary bar.
hideLookupTable
engineHideLookupTable Source #
Hide the lookup table.
hidePreeditText
engineHidePreeditText Source #
Hide the pre-edit buffer.
new
:: (HasCallStack, MonadIO m, IsDBusConnection a) | |
=> Text |
|
-> Text |
|
-> a |
|
-> m Engine | Returns: A newly allocated IBusEngine. |
Create a new Engine
.
newWithType
:: (HasCallStack, MonadIO m, IsDBusConnection a) | |
=> GType |
|
-> Text |
|
-> Text |
|
-> a |
|
-> m Engine | Returns: A newly allocated IBusEngine. |
Create a new Engine
.
registerProperties
engineRegisterProperties Source #
:: (HasCallStack, MonadIO m, IsEngine a, IsPropList b) | |
=> a |
|
-> b |
|
-> m () |
Register and show properties in language bar.
(Note: The prop_list object will be released, if it is floating. If caller want to keep the object, caller should make the object sink by g_object_ref_sink.)
showAuxiliaryText
engineShowAuxiliaryText Source #
Show the auxiliary bar.
showLookupTable
engineShowLookupTable Source #
Show the lookup table.
showPreeditText
engineShowPreeditText Source #
Show the pre-edit buffer.
updateAuxiliaryText
engineUpdateAuxiliaryText Source #
:: (HasCallStack, MonadIO m, IsEngine a, IsText b) | |
=> a |
|
-> b |
|
-> Bool |
|
-> m () |
Update the auxiliary bar.
(Note: The text object will be released, if it is floating. If caller want to keep the object, caller should make the object sink by g_object_ref_sink.)
updateLookupTable
engineUpdateLookupTable Source #
:: (HasCallStack, MonadIO m, IsEngine a, IsLookupTable b) | |
=> a |
|
-> b |
|
-> Bool |
|
-> m () |
Update the lookup table.
(Note: The table object will be released, if it is floating. If caller want to keep the object, caller should make the object sink by g_object_ref_sink.)
updateLookupTableFast
engineUpdateLookupTableFast Source #
:: (HasCallStack, MonadIO m, IsEngine a, IsLookupTable b) | |
=> a |
|
-> b |
|
-> Bool |
|
-> m () |
Fast update for big lookup table.
If size of lookup table is not over table page size *4,
then it calls engineUpdateLookupTable
.
(Note: The table object will be released, if it is floating. If caller want to keep the object, caller should make the object sink by g_object_ref_sink.)
updatePreeditText
engineUpdatePreeditText Source #
:: (HasCallStack, MonadIO m, IsEngine a, IsText b) | |
=> a |
|
-> b |
|
-> Word32 |
|
-> Bool |
|
-> m () |
Update the pre-edit buffer.
(Note: The text object will be released, if it is floating. If caller want to keep the object, caller should make the object sink by g_object_ref_sink.)
updatePreeditTextWithMode
engineUpdatePreeditTextWithMode Source #
:: (HasCallStack, MonadIO m, IsEngine a, IsText b) | |
=> a |
|
-> b |
|
-> Word32 |
|
-> Bool |
|
-> PreeditFocusMode |
|
-> m () |
Update the pre-edit buffer with commit mode. Similar to
engineUpdatePreeditText
, this function allows users to specify
the behavior on focus out when the pre-edit buffer is visible.
If mode
is IBUS_ENGINE_PREEDIT_COMMIT, contents of the pre-edit buffer
will be committed and cleared.
If mode
is IBUS_ENGINE_PREEDIT_CLEAR, contents of the pre-edit buffer
will be cleared only.
(Note: The text object will be released, if it is floating. If caller want to keep the object, caller should make the object sink by g_object_ref_sink.)
updateProperty
:: (HasCallStack, MonadIO m, IsEngine a, IsProperty b) | |
=> a |
|
-> b |
|
-> m () |
Update the state displayed in language bar.
(Note: The prop object will be released, if it is floating. If caller want to keep the object, caller should make the object sink by g_object_ref_sink.)
Properties
engineName
No description available in the introspection data.
constructEngineEngineName :: (IsEngine o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “engine-name
” property. This is rarely needed directly, but it is used by new
.
getEngineEngineName :: (MonadIO m, IsEngine o) => o -> m (Maybe Text) Source #
Get the value of the “engine-name
” property.
When overloading is enabled, this is equivalent to
get
engine #engineName
Signals
cancelHandWriting
type C_EngineCancelHandWritingCallback = Ptr () -> Word32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EngineCancelHandWritingCallback Source #
= Word32 |
|
-> IO () |
Emitted when a hand writing operation is cancelled. Implement the member function IBusEngineClass[cancel_hand_writing](#g:signal:cancel_hand_writing) in extended class to receive this signal.
<note><para>Argument userData
is ignored in this function.</para></note>
afterEngineCancelHandWriting :: (IsEngine a, MonadIO m) => a -> EngineCancelHandWritingCallback -> m SignalHandlerId Source #
Connect a signal handler for the cancelHandWriting signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #cancelHandWriting callback
genClosure_EngineCancelHandWriting :: MonadIO m => EngineCancelHandWritingCallback -> m (GClosure C_EngineCancelHandWritingCallback) Source #
Wrap the callback into a GClosure
.
mk_EngineCancelHandWritingCallback :: C_EngineCancelHandWritingCallback -> IO (FunPtr C_EngineCancelHandWritingCallback) Source #
Generate a function pointer callable from C code, from a C_EngineCancelHandWritingCallback
.
noEngineCancelHandWritingCallback :: Maybe EngineCancelHandWritingCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EngineCancelHandWritingCallback
onEngineCancelHandWriting :: (IsEngine a, MonadIO m) => a -> EngineCancelHandWritingCallback -> m SignalHandlerId Source #
Connect a signal handler for the cancelHandWriting signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #cancelHandWriting callback
wrap_EngineCancelHandWritingCallback :: EngineCancelHandWritingCallback -> C_EngineCancelHandWritingCallback Source #
Wrap a EngineCancelHandWritingCallback
into a C_EngineCancelHandWritingCallback
.
candidateClicked
type C_EngineCandidateClickedCallback = Ptr () -> Word32 -> Word32 -> Word32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EngineCandidateClickedCallback Source #
= Word32 |
|
-> Word32 |
|
-> Word32 |
|
-> IO () |
Emitted when candidate on lookup table is clicked. Implement the member function IBusEngineClass[candidate_clicked](#g:signal:candidate_clicked) in extended class to receive this signal.
<note><para>Argument userData
is ignored in this function.</para></note>
afterEngineCandidateClicked :: (IsEngine a, MonadIO m) => a -> EngineCandidateClickedCallback -> m SignalHandlerId Source #
Connect a signal handler for the candidateClicked signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #candidateClicked callback
genClosure_EngineCandidateClicked :: MonadIO m => EngineCandidateClickedCallback -> m (GClosure C_EngineCandidateClickedCallback) Source #
Wrap the callback into a GClosure
.
mk_EngineCandidateClickedCallback :: C_EngineCandidateClickedCallback -> IO (FunPtr C_EngineCandidateClickedCallback) Source #
Generate a function pointer callable from C code, from a C_EngineCandidateClickedCallback
.
noEngineCandidateClickedCallback :: Maybe EngineCandidateClickedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EngineCandidateClickedCallback
onEngineCandidateClicked :: (IsEngine a, MonadIO m) => a -> EngineCandidateClickedCallback -> m SignalHandlerId Source #
Connect a signal handler for the candidateClicked signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #candidateClicked callback
wrap_EngineCandidateClickedCallback :: EngineCandidateClickedCallback -> C_EngineCandidateClickedCallback Source #
Wrap a EngineCandidateClickedCallback
into a C_EngineCandidateClickedCallback
.
cursorDown
type C_EngineCursorDownCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EngineCursorDownCallback = IO () Source #
Emitted when the down cursor button is pressed. Implement the member function IBusEngineClass[cursor_down](#g:signal:cursor_down) in extended class to receive this signal.
<note><para>Argument userData
is ignored in this function.</para></note>
afterEngineCursorDown :: (IsEngine a, MonadIO m) => a -> EngineCursorDownCallback -> m SignalHandlerId Source #
Connect a signal handler for the cursorDown signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #cursorDown callback
genClosure_EngineCursorDown :: MonadIO m => EngineCursorDownCallback -> m (GClosure C_EngineCursorDownCallback) Source #
Wrap the callback into a GClosure
.
mk_EngineCursorDownCallback :: C_EngineCursorDownCallback -> IO (FunPtr C_EngineCursorDownCallback) Source #
Generate a function pointer callable from C code, from a C_EngineCursorDownCallback
.
noEngineCursorDownCallback :: Maybe EngineCursorDownCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EngineCursorDownCallback
onEngineCursorDown :: (IsEngine a, MonadIO m) => a -> EngineCursorDownCallback -> m SignalHandlerId Source #
Connect a signal handler for the cursorDown signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #cursorDown callback
wrap_EngineCursorDownCallback :: EngineCursorDownCallback -> C_EngineCursorDownCallback Source #
Wrap a EngineCursorDownCallback
into a C_EngineCursorDownCallback
.
cursorUp
type C_EngineCursorUpCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EngineCursorUpCallback = IO () Source #
Emitted when the up cursor button is pressed. Implement the member function IBusEngineClass[cursor_up](#g:signal:cursor_up) in extended class to receive this signal.
<note><para>Argument userData
is ignored in this function.</para></note>
afterEngineCursorUp :: (IsEngine a, MonadIO m) => a -> EngineCursorUpCallback -> m SignalHandlerId Source #
Connect a signal handler for the cursorUp signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #cursorUp callback
genClosure_EngineCursorUp :: MonadIO m => EngineCursorUpCallback -> m (GClosure C_EngineCursorUpCallback) Source #
Wrap the callback into a GClosure
.
mk_EngineCursorUpCallback :: C_EngineCursorUpCallback -> IO (FunPtr C_EngineCursorUpCallback) Source #
Generate a function pointer callable from C code, from a C_EngineCursorUpCallback
.
noEngineCursorUpCallback :: Maybe EngineCursorUpCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EngineCursorUpCallback
onEngineCursorUp :: (IsEngine a, MonadIO m) => a -> EngineCursorUpCallback -> m SignalHandlerId Source #
Connect a signal handler for the cursorUp signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #cursorUp callback
wrap_EngineCursorUpCallback :: EngineCursorUpCallback -> C_EngineCursorUpCallback Source #
Wrap a EngineCursorUpCallback
into a C_EngineCursorUpCallback
.
disable
type C_EngineDisableCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EngineDisableCallback = IO () Source #
Emitted when the IME is disabled. Implement the member function IBusEngineClass[disable](#g:signal:disable) in extended class to receive this signal.
See also: busSetGlobalEngine
.
<note><para>Argument userData
is ignored in this function.</para></note>
afterEngineDisable :: (IsEngine a, MonadIO m) => a -> EngineDisableCallback -> m SignalHandlerId Source #
Connect a signal handler for the disable signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #disable callback
genClosure_EngineDisable :: MonadIO m => EngineDisableCallback -> m (GClosure C_EngineDisableCallback) Source #
Wrap the callback into a GClosure
.
mk_EngineDisableCallback :: C_EngineDisableCallback -> IO (FunPtr C_EngineDisableCallback) Source #
Generate a function pointer callable from C code, from a C_EngineDisableCallback
.
noEngineDisableCallback :: Maybe EngineDisableCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EngineDisableCallback
onEngineDisable :: (IsEngine a, MonadIO m) => a -> EngineDisableCallback -> m SignalHandlerId Source #
Connect a signal handler for the disable signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #disable callback
wrap_EngineDisableCallback :: EngineDisableCallback -> C_EngineDisableCallback Source #
Wrap a EngineDisableCallback
into a C_EngineDisableCallback
.
enable
type C_EngineEnableCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EngineEnableCallback = IO () Source #
Emitted when the IME is enabled. Implement the member function IBusEngineClass[enable](#g:signal:enable) in extended class to receive this signal.
See also: busSetGlobalEngine
.
<note><para>Argument userData
is ignored in this function.</para></note>
afterEngineEnable :: (IsEngine a, MonadIO m) => a -> EngineEnableCallback -> m SignalHandlerId Source #
Connect a signal handler for the enable signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #enable callback
genClosure_EngineEnable :: MonadIO m => EngineEnableCallback -> m (GClosure C_EngineEnableCallback) Source #
Wrap the callback into a GClosure
.
mk_EngineEnableCallback :: C_EngineEnableCallback -> IO (FunPtr C_EngineEnableCallback) Source #
Generate a function pointer callable from C code, from a C_EngineEnableCallback
.
noEngineEnableCallback :: Maybe EngineEnableCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EngineEnableCallback
onEngineEnable :: (IsEngine a, MonadIO m) => a -> EngineEnableCallback -> m SignalHandlerId Source #
Connect a signal handler for the enable signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #enable callback
wrap_EngineEnableCallback :: EngineEnableCallback -> C_EngineEnableCallback Source #
Wrap a EngineEnableCallback
into a C_EngineEnableCallback
.
focusIn
type C_EngineFocusInCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EngineFocusInCallback = IO () Source #
Emitted when the client application get the focus. Implement the member function IBusEngineClass[focus_in](#g:signal:focus_in) in extended class to receive this signal.
See also: inputContextFocusIn
<note><para>Argument userData
is ignored in this function.</para></note>
afterEngineFocusIn :: (IsEngine a, MonadIO m) => a -> EngineFocusInCallback -> m SignalHandlerId Source #
Connect a signal handler for the focusIn signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #focusIn callback
genClosure_EngineFocusIn :: MonadIO m => EngineFocusInCallback -> m (GClosure C_EngineFocusInCallback) Source #
Wrap the callback into a GClosure
.
mk_EngineFocusInCallback :: C_EngineFocusInCallback -> IO (FunPtr C_EngineFocusInCallback) Source #
Generate a function pointer callable from C code, from a C_EngineFocusInCallback
.
noEngineFocusInCallback :: Maybe EngineFocusInCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EngineFocusInCallback
onEngineFocusIn :: (IsEngine a, MonadIO m) => a -> EngineFocusInCallback -> m SignalHandlerId Source #
Connect a signal handler for the focusIn signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #focusIn callback
wrap_EngineFocusInCallback :: EngineFocusInCallback -> C_EngineFocusInCallback Source #
Wrap a EngineFocusInCallback
into a C_EngineFocusInCallback
.
focusOut
type C_EngineFocusOutCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EngineFocusOutCallback = IO () Source #
Emitted when the client application lost the focus. Implement the member function IBusEngineClass[focus_out](#g:signal:focus_out) in extended class to receive this signal.
See also: inputContextFocusOut
<note><para>Argument userData
is ignored in this function.</para></note>
afterEngineFocusOut :: (IsEngine a, MonadIO m) => a -> EngineFocusOutCallback -> m SignalHandlerId Source #
Connect a signal handler for the focusOut signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #focusOut callback
genClosure_EngineFocusOut :: MonadIO m => EngineFocusOutCallback -> m (GClosure C_EngineFocusOutCallback) Source #
Wrap the callback into a GClosure
.
mk_EngineFocusOutCallback :: C_EngineFocusOutCallback -> IO (FunPtr C_EngineFocusOutCallback) Source #
Generate a function pointer callable from C code, from a C_EngineFocusOutCallback
.
noEngineFocusOutCallback :: Maybe EngineFocusOutCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EngineFocusOutCallback
onEngineFocusOut :: (IsEngine a, MonadIO m) => a -> EngineFocusOutCallback -> m SignalHandlerId Source #
Connect a signal handler for the focusOut signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #focusOut callback
wrap_EngineFocusOutCallback :: EngineFocusOutCallback -> C_EngineFocusOutCallback Source #
Wrap a EngineFocusOutCallback
into a C_EngineFocusOutCallback
.
pageDown
type C_EnginePageDownCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EnginePageDownCallback = IO () Source #
Emitted when the page-down button is pressed. Implement the member function IBusEngineClass[page_down](#g:signal:page_down) in extended class to receive this signal.
<note><para>Argument userData
is ignored in this function.</para></note>
afterEnginePageDown :: (IsEngine a, MonadIO m) => a -> EnginePageDownCallback -> m SignalHandlerId Source #
Connect a signal handler for the pageDown signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #pageDown callback
genClosure_EnginePageDown :: MonadIO m => EnginePageDownCallback -> m (GClosure C_EnginePageDownCallback) Source #
Wrap the callback into a GClosure
.
mk_EnginePageDownCallback :: C_EnginePageDownCallback -> IO (FunPtr C_EnginePageDownCallback) Source #
Generate a function pointer callable from C code, from a C_EnginePageDownCallback
.
noEnginePageDownCallback :: Maybe EnginePageDownCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EnginePageDownCallback
onEnginePageDown :: (IsEngine a, MonadIO m) => a -> EnginePageDownCallback -> m SignalHandlerId Source #
Connect a signal handler for the pageDown signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #pageDown callback
wrap_EnginePageDownCallback :: EnginePageDownCallback -> C_EnginePageDownCallback Source #
Wrap a EnginePageDownCallback
into a C_EnginePageDownCallback
.
pageUp
type C_EnginePageUpCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EnginePageUpCallback = IO () Source #
Emitted when the page-up button is pressed. Implement the member function IBusEngineClass[page_up](#g:signal:page_up) in extended class to receive this signal.
<note><para>Argument userData
is ignored in this function.</para></note>
afterEnginePageUp :: (IsEngine a, MonadIO m) => a -> EnginePageUpCallback -> m SignalHandlerId Source #
Connect a signal handler for the pageUp signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #pageUp callback
genClosure_EnginePageUp :: MonadIO m => EnginePageUpCallback -> m (GClosure C_EnginePageUpCallback) Source #
Wrap the callback into a GClosure
.
mk_EnginePageUpCallback :: C_EnginePageUpCallback -> IO (FunPtr C_EnginePageUpCallback) Source #
Generate a function pointer callable from C code, from a C_EnginePageUpCallback
.
noEnginePageUpCallback :: Maybe EnginePageUpCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EnginePageUpCallback
onEnginePageUp :: (IsEngine a, MonadIO m) => a -> EnginePageUpCallback -> m SignalHandlerId Source #
Connect a signal handler for the pageUp signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #pageUp callback
wrap_EnginePageUpCallback :: EnginePageUpCallback -> C_EnginePageUpCallback Source #
Wrap a EnginePageUpCallback
into a C_EnginePageUpCallback
.
processHandWritingEvent
type C_EngineProcessHandWritingEventCallback = Ptr () -> Ptr () -> Word32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EngineProcessHandWritingEventCallback Source #
= Ptr () |
|
-> Word32 |
|
-> IO () |
Emitted when a hand writing operation is cancelled. Implement the member function IBusEngineClass[cancel_hand_writing](#g:signal:cancel_hand_writing) in extended class to receive this signal.
<note><para>Argument userData
is ignored in this function.</para></note>
afterEngineProcessHandWritingEvent :: (IsEngine a, MonadIO m) => a -> EngineProcessHandWritingEventCallback -> m SignalHandlerId Source #
Connect a signal handler for the processHandWritingEvent signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #processHandWritingEvent callback
genClosure_EngineProcessHandWritingEvent :: MonadIO m => EngineProcessHandWritingEventCallback -> m (GClosure C_EngineProcessHandWritingEventCallback) Source #
Wrap the callback into a GClosure
.
mk_EngineProcessHandWritingEventCallback :: C_EngineProcessHandWritingEventCallback -> IO (FunPtr C_EngineProcessHandWritingEventCallback) Source #
Generate a function pointer callable from C code, from a C_EngineProcessHandWritingEventCallback
.
noEngineProcessHandWritingEventCallback :: Maybe EngineProcessHandWritingEventCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EngineProcessHandWritingEventCallback
onEngineProcessHandWritingEvent :: (IsEngine a, MonadIO m) => a -> EngineProcessHandWritingEventCallback -> m SignalHandlerId Source #
Connect a signal handler for the processHandWritingEvent signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #processHandWritingEvent callback
wrap_EngineProcessHandWritingEventCallback :: EngineProcessHandWritingEventCallback -> C_EngineProcessHandWritingEventCallback Source #
processKeyEvent
type C_EngineProcessKeyEventCallback = Ptr () -> Word32 -> Word32 -> Word32 -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type EngineProcessKeyEventCallback Source #
= Word32 |
|
-> Word32 |
|
-> Word32 |
|
-> IO Bool | Returns: <note><para>Argument |
Emitted when a key event is received.
Implement the member function IBusEngineClass[process_key_event](#g:signal:process_key_event)
in extended class to receive this signal.
Both the key symbol and keycode are passed to the member function.
See inputContextProcessKeyEvent
for further explanation of
key symbol, keycode and which to use.
afterEngineProcessKeyEvent :: (IsEngine a, MonadIO m) => a -> EngineProcessKeyEventCallback -> m SignalHandlerId Source #
Connect a signal handler for the processKeyEvent signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #processKeyEvent callback
genClosure_EngineProcessKeyEvent :: MonadIO m => EngineProcessKeyEventCallback -> m (GClosure C_EngineProcessKeyEventCallback) Source #
Wrap the callback into a GClosure
.
mk_EngineProcessKeyEventCallback :: C_EngineProcessKeyEventCallback -> IO (FunPtr C_EngineProcessKeyEventCallback) Source #
Generate a function pointer callable from C code, from a C_EngineProcessKeyEventCallback
.
noEngineProcessKeyEventCallback :: Maybe EngineProcessKeyEventCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EngineProcessKeyEventCallback
onEngineProcessKeyEvent :: (IsEngine a, MonadIO m) => a -> EngineProcessKeyEventCallback -> m SignalHandlerId Source #
Connect a signal handler for the processKeyEvent signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #processKeyEvent callback
wrap_EngineProcessKeyEventCallback :: EngineProcessKeyEventCallback -> C_EngineProcessKeyEventCallback Source #
Wrap a EngineProcessKeyEventCallback
into a C_EngineProcessKeyEventCallback
.
propertyActivate
type C_EnginePropertyActivateCallback = Ptr () -> CString -> Word32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EnginePropertyActivateCallback Source #
= Text |
|
-> Word32 |
|
-> IO () |
Emitted when a property is activated or change changed. Implement the member function IBusEngineClass[property_activate](#g:signal:property_activate) in extended class to receive this signal.
<note><para>Argument userData
is ignored in this function.</para></note>
afterEnginePropertyActivate :: (IsEngine a, MonadIO m) => a -> EnginePropertyActivateCallback -> m SignalHandlerId Source #
Connect a signal handler for the propertyActivate signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #propertyActivate callback
genClosure_EnginePropertyActivate :: MonadIO m => EnginePropertyActivateCallback -> m (GClosure C_EnginePropertyActivateCallback) Source #
Wrap the callback into a GClosure
.
mk_EnginePropertyActivateCallback :: C_EnginePropertyActivateCallback -> IO (FunPtr C_EnginePropertyActivateCallback) Source #
Generate a function pointer callable from C code, from a C_EnginePropertyActivateCallback
.
noEnginePropertyActivateCallback :: Maybe EnginePropertyActivateCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EnginePropertyActivateCallback
onEnginePropertyActivate :: (IsEngine a, MonadIO m) => a -> EnginePropertyActivateCallback -> m SignalHandlerId Source #
Connect a signal handler for the propertyActivate signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #propertyActivate callback
wrap_EnginePropertyActivateCallback :: EnginePropertyActivateCallback -> C_EnginePropertyActivateCallback Source #
Wrap a EnginePropertyActivateCallback
into a C_EnginePropertyActivateCallback
.
propertyHide
type C_EnginePropertyHideCallback = Ptr () -> CString -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EnginePropertyHideCallback Source #
= Text |
|
-> IO () |
Emitted when a property is hidden. Implement the member function IBusEngineClass[property_hide](#g:signal:property_hide) in extended class to receive this signal.
<note><para>Argument userData
is ignored in this function.</para></note>
afterEnginePropertyHide :: (IsEngine a, MonadIO m) => a -> EnginePropertyHideCallback -> m SignalHandlerId Source #
Connect a signal handler for the propertyHide signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #propertyHide callback
genClosure_EnginePropertyHide :: MonadIO m => EnginePropertyHideCallback -> m (GClosure C_EnginePropertyHideCallback) Source #
Wrap the callback into a GClosure
.
mk_EnginePropertyHideCallback :: C_EnginePropertyHideCallback -> IO (FunPtr C_EnginePropertyHideCallback) Source #
Generate a function pointer callable from C code, from a C_EnginePropertyHideCallback
.
noEnginePropertyHideCallback :: Maybe EnginePropertyHideCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EnginePropertyHideCallback
onEnginePropertyHide :: (IsEngine a, MonadIO m) => a -> EnginePropertyHideCallback -> m SignalHandlerId Source #
Connect a signal handler for the propertyHide signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #propertyHide callback
wrap_EnginePropertyHideCallback :: EnginePropertyHideCallback -> C_EnginePropertyHideCallback Source #
Wrap a EnginePropertyHideCallback
into a C_EnginePropertyHideCallback
.
propertyShow
type C_EnginePropertyShowCallback = Ptr () -> CString -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EnginePropertyShowCallback Source #
= Text |
|
-> IO () |
Emitted when a property is shown. Implement the member function IBusEngineClass[property_side](#g:signal:property_side) in extended class to receive this signal.
<note><para>Argument userData
is ignored in this function.</para></note>
afterEnginePropertyShow :: (IsEngine a, MonadIO m) => a -> EnginePropertyShowCallback -> m SignalHandlerId Source #
Connect a signal handler for the propertyShow signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #propertyShow callback
genClosure_EnginePropertyShow :: MonadIO m => EnginePropertyShowCallback -> m (GClosure C_EnginePropertyShowCallback) Source #
Wrap the callback into a GClosure
.
mk_EnginePropertyShowCallback :: C_EnginePropertyShowCallback -> IO (FunPtr C_EnginePropertyShowCallback) Source #
Generate a function pointer callable from C code, from a C_EnginePropertyShowCallback
.
noEnginePropertyShowCallback :: Maybe EnginePropertyShowCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EnginePropertyShowCallback
onEnginePropertyShow :: (IsEngine a, MonadIO m) => a -> EnginePropertyShowCallback -> m SignalHandlerId Source #
Connect a signal handler for the propertyShow signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #propertyShow callback
wrap_EnginePropertyShowCallback :: EnginePropertyShowCallback -> C_EnginePropertyShowCallback Source #
Wrap a EnginePropertyShowCallback
into a C_EnginePropertyShowCallback
.
reset
type C_EngineResetCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EngineResetCallback = IO () Source #
Emitted when the IME is reset. Implement the member function IBusEngineClass[reset](#g:signal:reset) in extended class to receive this signal.
See also: inputContextReset
.
<note><para>Argument userData
is ignored in this function.</para></note>
afterEngineReset :: (IsEngine a, MonadIO m) => a -> EngineResetCallback -> m SignalHandlerId Source #
Connect a signal handler for the reset signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #reset callback
genClosure_EngineReset :: MonadIO m => EngineResetCallback -> m (GClosure C_EngineResetCallback) Source #
Wrap the callback into a GClosure
.
mk_EngineResetCallback :: C_EngineResetCallback -> IO (FunPtr C_EngineResetCallback) Source #
Generate a function pointer callable from C code, from a C_EngineResetCallback
.
noEngineResetCallback :: Maybe EngineResetCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EngineResetCallback
onEngineReset :: (IsEngine a, MonadIO m) => a -> EngineResetCallback -> m SignalHandlerId Source #
Connect a signal handler for the reset signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #reset callback
wrap_EngineResetCallback :: EngineResetCallback -> C_EngineResetCallback Source #
Wrap a EngineResetCallback
into a C_EngineResetCallback
.
setCapabilities
type C_EngineSetCapabilitiesCallback = Ptr () -> Word32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EngineSetCapabilitiesCallback Source #
= Word32 |
|
-> IO () |
Emitted when the client application capabilities is set. Implement the member function IBusEngineClass[set_capabilities](#g:signal:set_capabilities) in extended class to receive this signal.
See also: inputContextSetCapabilities
.
<note><para>Argument userData
is ignored in this function.</para></note>
afterEngineSetCapabilities :: (IsEngine a, MonadIO m) => a -> EngineSetCapabilitiesCallback -> m SignalHandlerId Source #
Connect a signal handler for the setCapabilities signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #setCapabilities callback
genClosure_EngineSetCapabilities :: MonadIO m => EngineSetCapabilitiesCallback -> m (GClosure C_EngineSetCapabilitiesCallback) Source #
Wrap the callback into a GClosure
.
mk_EngineSetCapabilitiesCallback :: C_EngineSetCapabilitiesCallback -> IO (FunPtr C_EngineSetCapabilitiesCallback) Source #
Generate a function pointer callable from C code, from a C_EngineSetCapabilitiesCallback
.
noEngineSetCapabilitiesCallback :: Maybe EngineSetCapabilitiesCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EngineSetCapabilitiesCallback
onEngineSetCapabilities :: (IsEngine a, MonadIO m) => a -> EngineSetCapabilitiesCallback -> m SignalHandlerId Source #
Connect a signal handler for the setCapabilities signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #setCapabilities callback
wrap_EngineSetCapabilitiesCallback :: EngineSetCapabilitiesCallback -> C_EngineSetCapabilitiesCallback Source #
Wrap a EngineSetCapabilitiesCallback
into a C_EngineSetCapabilitiesCallback
.
setContentType
type C_EngineSetContentTypeCallback = Ptr () -> Word32 -> Word32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EngineSetContentTypeCallback Source #
= Word32 |
|
-> Word32 |
|
-> IO () |
Emitted when the client application content-type (primary purpose and hints) is set. The engine could change the behavior according to the content-type. Implement the member function IBusEngineClass[set_content_type](#g:signal:set_content_type) in extended class to receive this signal.
For example, if the client application wants to restrict input
to numbers, this signal will be emitted with purpose
set to
IBUS_INPUT_PURPOSE_NUMBER
, so the engine can switch the input
mode to latin.
<note><para>Argument userData
is ignored in this
function.</para></note>
afterEngineSetContentType :: (IsEngine a, MonadIO m) => a -> EngineSetContentTypeCallback -> m SignalHandlerId Source #
Connect a signal handler for the setContentType signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #setContentType callback
genClosure_EngineSetContentType :: MonadIO m => EngineSetContentTypeCallback -> m (GClosure C_EngineSetContentTypeCallback) Source #
Wrap the callback into a GClosure
.
mk_EngineSetContentTypeCallback :: C_EngineSetContentTypeCallback -> IO (FunPtr C_EngineSetContentTypeCallback) Source #
Generate a function pointer callable from C code, from a C_EngineSetContentTypeCallback
.
noEngineSetContentTypeCallback :: Maybe EngineSetContentTypeCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EngineSetContentTypeCallback
onEngineSetContentType :: (IsEngine a, MonadIO m) => a -> EngineSetContentTypeCallback -> m SignalHandlerId Source #
Connect a signal handler for the setContentType signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #setContentType callback
wrap_EngineSetContentTypeCallback :: EngineSetContentTypeCallback -> C_EngineSetContentTypeCallback Source #
Wrap a EngineSetContentTypeCallback
into a C_EngineSetContentTypeCallback
.
setCursorLocation
type C_EngineSetCursorLocationCallback = Ptr () -> Int32 -> Int32 -> Int32 -> Int32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EngineSetCursorLocationCallback Source #
= Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> IO () |
Emitted when the location of IME is set. Implement the member function IBusEngineClass[set_cursor_location](#g:signal:set_cursor_location) in extended class to receive this signal.
See also: inputContextSetCursorLocation
.
<note><para>Argument userData
is ignored in this function.</para></note>
afterEngineSetCursorLocation :: (IsEngine a, MonadIO m) => a -> EngineSetCursorLocationCallback -> m SignalHandlerId Source #
Connect a signal handler for the setCursorLocation signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #setCursorLocation callback
genClosure_EngineSetCursorLocation :: MonadIO m => EngineSetCursorLocationCallback -> m (GClosure C_EngineSetCursorLocationCallback) Source #
Wrap the callback into a GClosure
.
mk_EngineSetCursorLocationCallback :: C_EngineSetCursorLocationCallback -> IO (FunPtr C_EngineSetCursorLocationCallback) Source #
Generate a function pointer callable from C code, from a C_EngineSetCursorLocationCallback
.
noEngineSetCursorLocationCallback :: Maybe EngineSetCursorLocationCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EngineSetCursorLocationCallback
onEngineSetCursorLocation :: (IsEngine a, MonadIO m) => a -> EngineSetCursorLocationCallback -> m SignalHandlerId Source #
Connect a signal handler for the setCursorLocation signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #setCursorLocation callback
wrap_EngineSetCursorLocationCallback :: EngineSetCursorLocationCallback -> C_EngineSetCursorLocationCallback Source #
Wrap a EngineSetCursorLocationCallback
into a C_EngineSetCursorLocationCallback
.
setSurroundingText
type C_EngineSetSurroundingTextCallback = Ptr () -> Ptr Object -> Word32 -> Word32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EngineSetSurroundingTextCallback Source #
= Object |
|
-> Word32 |
|
-> Word32 |
|
-> IO () |
Emitted when a surrounding text is set. Implement the member function IBusEngineClass[set_surrounding_text](#g:signal:set_surrounding_text) in extended class to receive this signal. If anchor_pos equals to cursor_pos, it means "there are no selection" or "does not support selection retrival".
<note><para>Argument userData
is ignored in this function.</para></note>
afterEngineSetSurroundingText :: (IsEngine a, MonadIO m) => a -> EngineSetSurroundingTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the setSurroundingText signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
engine #setSurroundingText callback
genClosure_EngineSetSurroundingText :: MonadIO m => EngineSetSurroundingTextCallback -> m (GClosure C_EngineSetSurroundingTextCallback) Source #
Wrap the callback into a GClosure
.
mk_EngineSetSurroundingTextCallback :: C_EngineSetSurroundingTextCallback -> IO (FunPtr C_EngineSetSurroundingTextCallback) Source #
Generate a function pointer callable from C code, from a C_EngineSetSurroundingTextCallback
.
noEngineSetSurroundingTextCallback :: Maybe EngineSetSurroundingTextCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EngineSetSurroundingTextCallback
onEngineSetSurroundingText :: (IsEngine a, MonadIO m) => a -> EngineSetSurroundingTextCallback -> m SignalHandlerId Source #
Connect a signal handler for the setSurroundingText signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
engine #setSurroundingText callback