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 |
No description available in the introspection data.
Synopsis
- newtype InputMethodContext = InputMethodContext (ManagedPtr InputMethodContext)
- class (GObject o, IsDescendantOf InputMethodContext o) => IsInputMethodContext o
- toInputMethodContext :: (MonadIO m, IsInputMethodContext o) => o -> m InputMethodContext
- inputMethodContextFilterKeyEvent :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> EventKey -> m Bool
- inputMethodContextGetInputHints :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> m [InputHints]
- inputMethodContextGetInputPurpose :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> m InputPurpose
- inputMethodContextGetPreedit :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> m (Maybe Text, [InputMethodUnderline], Word32)
- inputMethodContextNotifyCursorArea :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> Int32 -> Int32 -> Int32 -> Int32 -> m ()
- inputMethodContextNotifyFocusIn :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> m ()
- inputMethodContextNotifyFocusOut :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> m ()
- inputMethodContextNotifySurrounding :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> Text -> Int32 -> Word32 -> Word32 -> m ()
- inputMethodContextReset :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> m ()
- inputMethodContextSetEnablePreedit :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> Bool -> m ()
- inputMethodContextSetInputHints :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> [InputHints] -> m ()
- inputMethodContextSetInputPurpose :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> InputPurpose -> m ()
- constructInputMethodContextInputHints :: (IsInputMethodContext o, MonadIO m) => [InputHints] -> m (GValueConstruct o)
- getInputMethodContextInputHints :: (MonadIO m, IsInputMethodContext o) => o -> m [InputHints]
- setInputMethodContextInputHints :: (MonadIO m, IsInputMethodContext o) => o -> [InputHints] -> m ()
- constructInputMethodContextInputPurpose :: (IsInputMethodContext o, MonadIO m) => InputPurpose -> m (GValueConstruct o)
- getInputMethodContextInputPurpose :: (MonadIO m, IsInputMethodContext o) => o -> m InputPurpose
- setInputMethodContextInputPurpose :: (MonadIO m, IsInputMethodContext o) => o -> InputPurpose -> m ()
- type C_InputMethodContextCommittedCallback = Ptr () -> CString -> Ptr () -> IO ()
- type InputMethodContextCommittedCallback = Text -> IO ()
- afterInputMethodContextCommitted :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextCommittedCallback -> m SignalHandlerId
- genClosure_InputMethodContextCommitted :: MonadIO m => InputMethodContextCommittedCallback -> m (GClosure C_InputMethodContextCommittedCallback)
- mk_InputMethodContextCommittedCallback :: C_InputMethodContextCommittedCallback -> IO (FunPtr C_InputMethodContextCommittedCallback)
- noInputMethodContextCommittedCallback :: Maybe InputMethodContextCommittedCallback
- onInputMethodContextCommitted :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextCommittedCallback -> m SignalHandlerId
- wrap_InputMethodContextCommittedCallback :: InputMethodContextCommittedCallback -> C_InputMethodContextCommittedCallback
- type C_InputMethodContextDeleteSurroundingCallback = Ptr () -> Int32 -> Word32 -> Ptr () -> IO ()
- type InputMethodContextDeleteSurroundingCallback = Int32 -> Word32 -> IO ()
- afterInputMethodContextDeleteSurrounding :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextDeleteSurroundingCallback -> m SignalHandlerId
- genClosure_InputMethodContextDeleteSurrounding :: MonadIO m => InputMethodContextDeleteSurroundingCallback -> m (GClosure C_InputMethodContextDeleteSurroundingCallback)
- mk_InputMethodContextDeleteSurroundingCallback :: C_InputMethodContextDeleteSurroundingCallback -> IO (FunPtr C_InputMethodContextDeleteSurroundingCallback)
- noInputMethodContextDeleteSurroundingCallback :: Maybe InputMethodContextDeleteSurroundingCallback
- onInputMethodContextDeleteSurrounding :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextDeleteSurroundingCallback -> m SignalHandlerId
- wrap_InputMethodContextDeleteSurroundingCallback :: InputMethodContextDeleteSurroundingCallback -> C_InputMethodContextDeleteSurroundingCallback
- type C_InputMethodContextPreeditChangedCallback = Ptr () -> Ptr () -> IO ()
- type InputMethodContextPreeditChangedCallback = IO ()
- afterInputMethodContextPreeditChanged :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextPreeditChangedCallback -> m SignalHandlerId
- genClosure_InputMethodContextPreeditChanged :: MonadIO m => InputMethodContextPreeditChangedCallback -> m (GClosure C_InputMethodContextPreeditChangedCallback)
- mk_InputMethodContextPreeditChangedCallback :: C_InputMethodContextPreeditChangedCallback -> IO (FunPtr C_InputMethodContextPreeditChangedCallback)
- noInputMethodContextPreeditChangedCallback :: Maybe InputMethodContextPreeditChangedCallback
- onInputMethodContextPreeditChanged :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextPreeditChangedCallback -> m SignalHandlerId
- wrap_InputMethodContextPreeditChangedCallback :: InputMethodContextPreeditChangedCallback -> C_InputMethodContextPreeditChangedCallback
- type C_InputMethodContextPreeditFinishedCallback = Ptr () -> Ptr () -> IO ()
- type InputMethodContextPreeditFinishedCallback = IO ()
- afterInputMethodContextPreeditFinished :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextPreeditFinishedCallback -> m SignalHandlerId
- genClosure_InputMethodContextPreeditFinished :: MonadIO m => InputMethodContextPreeditFinishedCallback -> m (GClosure C_InputMethodContextPreeditFinishedCallback)
- mk_InputMethodContextPreeditFinishedCallback :: C_InputMethodContextPreeditFinishedCallback -> IO (FunPtr C_InputMethodContextPreeditFinishedCallback)
- noInputMethodContextPreeditFinishedCallback :: Maybe InputMethodContextPreeditFinishedCallback
- onInputMethodContextPreeditFinished :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextPreeditFinishedCallback -> m SignalHandlerId
- wrap_InputMethodContextPreeditFinishedCallback :: InputMethodContextPreeditFinishedCallback -> C_InputMethodContextPreeditFinishedCallback
- type C_InputMethodContextPreeditStartedCallback = Ptr () -> Ptr () -> IO ()
- type InputMethodContextPreeditStartedCallback = IO ()
- afterInputMethodContextPreeditStarted :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextPreeditStartedCallback -> m SignalHandlerId
- genClosure_InputMethodContextPreeditStarted :: MonadIO m => InputMethodContextPreeditStartedCallback -> m (GClosure C_InputMethodContextPreeditStartedCallback)
- mk_InputMethodContextPreeditStartedCallback :: C_InputMethodContextPreeditStartedCallback -> IO (FunPtr C_InputMethodContextPreeditStartedCallback)
- noInputMethodContextPreeditStartedCallback :: Maybe InputMethodContextPreeditStartedCallback
- onInputMethodContextPreeditStarted :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextPreeditStartedCallback -> m SignalHandlerId
- wrap_InputMethodContextPreeditStartedCallback :: InputMethodContextPreeditStartedCallback -> C_InputMethodContextPreeditStartedCallback
Exported types
newtype InputMethodContext Source #
Memory-managed wrapper type.
InputMethodContext (ManagedPtr InputMethodContext) |
Instances
class (GObject o, IsDescendantOf InputMethodContext o) => IsInputMethodContext o Source #
Type class for types which can be safely cast to InputMethodContext
, for instance with toInputMethodContext
.
Instances
(GObject o, IsDescendantOf InputMethodContext o) => IsInputMethodContext o Source # | |
Defined in GI.WebKit2.Objects.InputMethodContext |
toInputMethodContext :: (MonadIO m, IsInputMethodContext o) => o -> m InputMethodContext Source #
Cast to InputMethodContext
, 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, filterKeyEvent, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, notifyCursorArea, notifyFocusIn, notifyFocusOut, notifySurrounding, ref, refSink, reset, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getInputHints, getInputPurpose, getPreedit, getProperty, getQdata.
Setters
setData, setDataFull, setEnablePreedit, setInputHints, setInputPurpose, setProperty.
filterKeyEvent
inputMethodContextFilterKeyEvent Source #
:: (HasCallStack, MonadIO m, IsInputMethodContext a) | |
=> a |
|
-> EventKey |
|
-> m Bool | Returns: |
Allow keyEvent
to be handled by the input method. If True
is returned, then no further processing should be
done for the key event.
Since: 2.28
getInputHints
inputMethodContextGetInputHints Source #
:: (HasCallStack, MonadIO m, IsInputMethodContext a) | |
=> a |
|
-> m [InputHints] | Returns: the |
Get the value of the InputMethodContext
:input-hints
property.
Since: 2.28
getInputPurpose
inputMethodContextGetInputPurpose Source #
:: (HasCallStack, MonadIO m, IsInputMethodContext a) | |
=> a |
|
-> m InputPurpose | Returns: the |
Get the value of the InputMethodContext
:input-purpose
property.
Since: 2.28
getPreedit
inputMethodContextGetPreedit Source #
:: (HasCallStack, MonadIO m, IsInputMethodContext a) | |
=> a |
|
-> m (Maybe Text, [InputMethodUnderline], Word32) |
Get the current preedit string for the context
, and a list of WebKitInputMethodUnderline to apply to the string.
The string will be displayed inserted at cursorOffset
.
Since: 2.28
notifyCursorArea
inputMethodContextNotifyCursorArea Source #
:: (HasCallStack, MonadIO m, IsInputMethodContext a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Notify context
that cursor area changed in input associated.
Since: 2.28
notifyFocusIn
inputMethodContextNotifyFocusIn Source #
:: (HasCallStack, MonadIO m, IsInputMethodContext a) | |
=> a |
|
-> m () |
Notify context
that input associated has gained focus.
Since: 2.28
notifyFocusOut
inputMethodContextNotifyFocusOut Source #
:: (HasCallStack, MonadIO m, IsInputMethodContext a) | |
=> a |
|
-> m () |
Notify context
that input associated has lost focus.
Since: 2.28
notifySurrounding
inputMethodContextNotifySurrounding Source #
:: (HasCallStack, MonadIO m, IsInputMethodContext a) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> Word32 |
|
-> Word32 |
|
-> m () |
Notify context
that the context surrounding the cursor has changed.
If there's no selection selectionIndex
is the same as cursorIndex
.
Since: 2.28
reset
inputMethodContextReset Source #
:: (HasCallStack, MonadIO m, IsInputMethodContext a) | |
=> a |
|
-> m () |
Reset the context
. This will typically cause the input to clear the preedit state.
Since: 2.28
setEnablePreedit
inputMethodContextSetEnablePreedit Source #
:: (HasCallStack, MonadIO m, IsInputMethodContext a) | |
=> a |
|
-> Bool |
|
-> m () |
Set whether context
should enable preedit to display feedback.
Since: 2.28
setInputHints
inputMethodContextSetInputHints :: (HasCallStack, MonadIO m, IsInputMethodContext a) => a -> [InputHints] -> m () Source #
No description available in the introspection data.
setInputPurpose
inputMethodContextSetInputPurpose Source #
:: (HasCallStack, MonadIO m, IsInputMethodContext a) | |
=> a |
|
-> InputPurpose |
|
-> m () |
Set the value of the InputMethodContext
:input-purpose
property.
Since: 2.28
Properties
inputHints
No description available in the introspection data.
constructInputMethodContextInputHints :: (IsInputMethodContext o, MonadIO m) => [InputHints] -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “input-hints
” property. This is rarely needed directly, but it is used by new
.
getInputMethodContextInputHints :: (MonadIO m, IsInputMethodContext o) => o -> m [InputHints] Source #
Get the value of the “input-hints
” property.
When overloading is enabled, this is equivalent to
get
inputMethodContext #inputHints
setInputMethodContextInputHints :: (MonadIO m, IsInputMethodContext o) => o -> [InputHints] -> m () Source #
Set the value of the “input-hints
” property.
When overloading is enabled, this is equivalent to
set
inputMethodContext [ #inputHints:=
value ]
inputPurpose
No description available in the introspection data.
constructInputMethodContextInputPurpose :: (IsInputMethodContext o, MonadIO m) => InputPurpose -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “input-purpose
” property. This is rarely needed directly, but it is used by new
.
getInputMethodContextInputPurpose :: (MonadIO m, IsInputMethodContext o) => o -> m InputPurpose Source #
Get the value of the “input-purpose
” property.
When overloading is enabled, this is equivalent to
get
inputMethodContext #inputPurpose
setInputMethodContextInputPurpose :: (MonadIO m, IsInputMethodContext o) => o -> InputPurpose -> m () Source #
Set the value of the “input-purpose
” property.
When overloading is enabled, this is equivalent to
set
inputMethodContext [ #inputPurpose:=
value ]
Signals
committed
type C_InputMethodContextCommittedCallback = Ptr () -> CString -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputMethodContextCommittedCallback Source #
Emitted when a complete input sequence has been entered by the user. This can be a single character immediately after a key press or the final result of preediting.
Since: 2.28
afterInputMethodContextCommitted :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextCommittedCallback -> m SignalHandlerId Source #
Connect a signal handler for the committed signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputMethodContext #committed callback
genClosure_InputMethodContextCommitted :: MonadIO m => InputMethodContextCommittedCallback -> m (GClosure C_InputMethodContextCommittedCallback) Source #
Wrap the callback into a GClosure
.
mk_InputMethodContextCommittedCallback :: C_InputMethodContextCommittedCallback -> IO (FunPtr C_InputMethodContextCommittedCallback) Source #
Generate a function pointer callable from C code, from a C_InputMethodContextCommittedCallback
.
noInputMethodContextCommittedCallback :: Maybe InputMethodContextCommittedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputMethodContextCommittedCallback
onInputMethodContextCommitted :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextCommittedCallback -> m SignalHandlerId Source #
Connect a signal handler for the committed signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputMethodContext #committed callback
wrap_InputMethodContextCommittedCallback :: InputMethodContextCommittedCallback -> C_InputMethodContextCommittedCallback Source #
deleteSurrounding
type C_InputMethodContextDeleteSurroundingCallback = Ptr () -> Int32 -> Word32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputMethodContextDeleteSurroundingCallback Source #
= Int32 |
|
-> Word32 |
|
-> IO () |
Emitted when the input method wants to delete the context surrounding the cursor.
If offset
is a negative value, it means a position before the cursor.
Since: 2.28
afterInputMethodContextDeleteSurrounding :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextDeleteSurroundingCallback -> m SignalHandlerId Source #
Connect a signal handler for the deleteSurrounding signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputMethodContext #deleteSurrounding callback
genClosure_InputMethodContextDeleteSurrounding :: MonadIO m => InputMethodContextDeleteSurroundingCallback -> m (GClosure C_InputMethodContextDeleteSurroundingCallback) Source #
Wrap the callback into a GClosure
.
mk_InputMethodContextDeleteSurroundingCallback :: C_InputMethodContextDeleteSurroundingCallback -> IO (FunPtr C_InputMethodContextDeleteSurroundingCallback) Source #
Generate a function pointer callable from C code, from a C_InputMethodContextDeleteSurroundingCallback
.
noInputMethodContextDeleteSurroundingCallback :: Maybe InputMethodContextDeleteSurroundingCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputMethodContextDeleteSurroundingCallback
onInputMethodContextDeleteSurrounding :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextDeleteSurroundingCallback -> m SignalHandlerId Source #
Connect a signal handler for the deleteSurrounding signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputMethodContext #deleteSurrounding callback
wrap_InputMethodContextDeleteSurroundingCallback :: InputMethodContextDeleteSurroundingCallback -> C_InputMethodContextDeleteSurroundingCallback Source #
preeditChanged
type C_InputMethodContextPreeditChangedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputMethodContextPreeditChangedCallback = IO () Source #
Emitted whenever the preedit sequence currently being entered has changed.
It is also emitted at the end of a preedit sequence, in which case
inputMethodContextGetPreedit
returns the empty string.
Since: 2.28
afterInputMethodContextPreeditChanged :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextPreeditChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the preeditChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputMethodContext #preeditChanged callback
genClosure_InputMethodContextPreeditChanged :: MonadIO m => InputMethodContextPreeditChangedCallback -> m (GClosure C_InputMethodContextPreeditChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_InputMethodContextPreeditChangedCallback :: C_InputMethodContextPreeditChangedCallback -> IO (FunPtr C_InputMethodContextPreeditChangedCallback) Source #
Generate a function pointer callable from C code, from a C_InputMethodContextPreeditChangedCallback
.
noInputMethodContextPreeditChangedCallback :: Maybe InputMethodContextPreeditChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputMethodContextPreeditChangedCallback
onInputMethodContextPreeditChanged :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextPreeditChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the preeditChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputMethodContext #preeditChanged callback
wrap_InputMethodContextPreeditChangedCallback :: InputMethodContextPreeditChangedCallback -> C_InputMethodContextPreeditChangedCallback Source #
preeditFinished
type C_InputMethodContextPreeditFinishedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputMethodContextPreeditFinishedCallback = IO () Source #
Emitted when a preediting sequence has been completed or canceled.
Since: 2.28
afterInputMethodContextPreeditFinished :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextPreeditFinishedCallback -> m SignalHandlerId Source #
Connect a signal handler for the preeditFinished signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputMethodContext #preeditFinished callback
genClosure_InputMethodContextPreeditFinished :: MonadIO m => InputMethodContextPreeditFinishedCallback -> m (GClosure C_InputMethodContextPreeditFinishedCallback) Source #
Wrap the callback into a GClosure
.
mk_InputMethodContextPreeditFinishedCallback :: C_InputMethodContextPreeditFinishedCallback -> IO (FunPtr C_InputMethodContextPreeditFinishedCallback) Source #
Generate a function pointer callable from C code, from a C_InputMethodContextPreeditFinishedCallback
.
noInputMethodContextPreeditFinishedCallback :: Maybe InputMethodContextPreeditFinishedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputMethodContextPreeditFinishedCallback
onInputMethodContextPreeditFinished :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextPreeditFinishedCallback -> m SignalHandlerId Source #
Connect a signal handler for the preeditFinished signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputMethodContext #preeditFinished callback
wrap_InputMethodContextPreeditFinishedCallback :: InputMethodContextPreeditFinishedCallback -> C_InputMethodContextPreeditFinishedCallback Source #
preeditStarted
type C_InputMethodContextPreeditStartedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type InputMethodContextPreeditStartedCallback = IO () Source #
Emitted when a new preediting sequence starts.
Since: 2.28
afterInputMethodContextPreeditStarted :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextPreeditStartedCallback -> m SignalHandlerId Source #
Connect a signal handler for the preeditStarted signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
inputMethodContext #preeditStarted callback
genClosure_InputMethodContextPreeditStarted :: MonadIO m => InputMethodContextPreeditStartedCallback -> m (GClosure C_InputMethodContextPreeditStartedCallback) Source #
Wrap the callback into a GClosure
.
mk_InputMethodContextPreeditStartedCallback :: C_InputMethodContextPreeditStartedCallback -> IO (FunPtr C_InputMethodContextPreeditStartedCallback) Source #
Generate a function pointer callable from C code, from a C_InputMethodContextPreeditStartedCallback
.
noInputMethodContextPreeditStartedCallback :: Maybe InputMethodContextPreeditStartedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
InputMethodContextPreeditStartedCallback
onInputMethodContextPreeditStarted :: (IsInputMethodContext a, MonadIO m) => a -> InputMethodContextPreeditStartedCallback -> m SignalHandlerId Source #
Connect a signal handler for the preeditStarted signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
inputMethodContext #preeditStarted callback