gi-gtk-4.0.6: Gtk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Objects.IMMulticontext

Description

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

Exported types

newtype IMMulticontext Source #

Memory-managed wrapper type.

Constructors

IMMulticontext (ManagedPtr IMMulticontext) 

Instances

Instances details
Eq IMMulticontext Source # 
Instance details

Defined in GI.Gtk.Objects.IMMulticontext

GObject IMMulticontext Source # 
Instance details

Defined in GI.Gtk.Objects.IMMulticontext

ManagedPtrNewtype IMMulticontext Source # 
Instance details

Defined in GI.Gtk.Objects.IMMulticontext

TypedObject IMMulticontext Source # 
Instance details

Defined in GI.Gtk.Objects.IMMulticontext

Methods

glibType :: IO GType

HasParentTypes IMMulticontext Source # 
Instance details

Defined in GI.Gtk.Objects.IMMulticontext

IsGValue (Maybe IMMulticontext) Source #

Convert IMMulticontext to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.IMMulticontext

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe IMMulticontext -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe IMMulticontext)

type ParentTypes IMMulticontext Source # 
Instance details

Defined in GI.Gtk.Objects.IMMulticontext

type ParentTypes IMMulticontext = '[IMContext, Object]

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

Instances details
(GObject o, IsDescendantOf IMMulticontext o) => IsIMMulticontext o Source # 
Instance details

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

getContextId

iMMulticontextGetContextId Source #

Arguments

:: (HasCallStack, MonadIO m, IsIMMulticontext a) 
=> a

context: a GtkIMMulticontext

-> m Text

Returns: the id of the currently active delegate

Gets the id of the currently active delegate of the context.

new

iMMulticontextNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m IMMulticontext

Returns: a new GtkIMMulticontext.

Creates a new GtkIMMulticontext.

setContextId

iMMulticontextSetContextId Source #

Arguments

:: (HasCallStack, MonadIO m, IsIMMulticontext a) 
=> a

context: a GtkIMMulticontext

-> Maybe Text

contextId: the id to use

-> 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.