Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GtkIMMulticontext
is an input method context supporting multiple,
switchable input methods.
Text widgets such as GtkText
or GtkTextView
use a GtkIMMultiContext
to implement their im-module
property for switching between different
input methods.
Synopsis
- newtype IMMulticontext = IMMulticontext (ManagedPtr IMMulticontext)
- class (GObject o, IsDescendantOf IMMulticontext o) => IsIMMulticontext o
- toIMMulticontext :: (MonadIO m, IsIMMulticontext o) => o -> m IMMulticontext
- iMMulticontextGetContextId :: (HasCallStack, MonadIO m, IsIMMulticontext a) => a -> m Text
- iMMulticontextNew :: (HasCallStack, MonadIO m) => m IMMulticontext
- iMMulticontextSetContextId :: (HasCallStack, MonadIO m, IsIMMulticontext a) => a -> Maybe Text -> m ()
Exported types
newtype IMMulticontext Source #
Memory-managed wrapper type.
Instances
Eq IMMulticontext Source # | |
Defined in GI.Gtk.Objects.IMMulticontext (==) :: IMMulticontext -> IMMulticontext -> Bool # (/=) :: IMMulticontext -> IMMulticontext -> Bool # | |
GObject IMMulticontext Source # | |
Defined in GI.Gtk.Objects.IMMulticontext | |
ManagedPtrNewtype IMMulticontext Source # | |
Defined in GI.Gtk.Objects.IMMulticontext | |
TypedObject IMMulticontext Source # | |
Defined in GI.Gtk.Objects.IMMulticontext | |
HasParentTypes IMMulticontext Source # | |
Defined in GI.Gtk.Objects.IMMulticontext | |
IsGValue (Maybe IMMulticontext) Source # | Convert |
Defined in GI.Gtk.Objects.IMMulticontext gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe IMMulticontext -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe IMMulticontext) # | |
type ParentTypes IMMulticontext Source # | |
Defined in GI.Gtk.Objects.IMMulticontext |
class (GObject o, IsDescendantOf IMMulticontext o) => IsIMMulticontext o Source #
Type class for types which can be safely cast to IMMulticontext
, for instance with toIMMulticontext
.
Instances
(GObject o, IsDescendantOf IMMulticontext o) => IsIMMulticontext o Source # | |
Defined in GI.Gtk.Objects.IMMulticontext |
toIMMulticontext :: (MonadIO m, IsIMMulticontext o) => o -> m IMMulticontext Source #
Cast to IMMulticontext
, 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
activateOsk, bindProperty, bindPropertyFull, deleteSurrounding, filterKey, filterKeypress, focusIn, focusOut, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, reset, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getContextId, getData, getPreeditString, getProperty, getQdata, getSurrounding, getSurroundingWithSelection.
Setters
setClientWidget, setContextId, setCursorLocation, setData, setDataFull, setProperty, setSurrounding, setSurroundingWithSelection, setUsePreedit.
getContextId
iMMulticontextGetContextId Source #
:: (HasCallStack, MonadIO m, IsIMMulticontext a) | |
=> a |
|
-> m Text | Returns: the id of the currently active delegate |
Gets the id of the currently active delegate of the context
.
new
:: (HasCallStack, MonadIO m) | |
=> m IMMulticontext | Returns: a new |
Creates a new GtkIMMulticontext
.
setContextId
iMMulticontextSetContextId Source #
:: (HasCallStack, MonadIO m, IsIMMulticontext a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the context id for context
.
This causes the currently active delegate of context
to be
replaced by the delegate corresponding to the new context id.
Setting this to a non-Nothing
value overrides the system-wide
IM module setting. See the Settings:gtkImModule
property.