Class IMMulticontext

All Implemented Interfaces:
PointerInterface

public class IMMulticontext extends IMContext
`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.

https://docs.gtk.org/gtk4/class.IMMulticontext.html

  • Constructor Details

    • IMMulticontext

      public IMMulticontext(PointerContainer pointer)
    • IMMulticontext

      public IMMulticontext()
      Creates a new `GtkIMMulticontext`.
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getContextId

      public Str getContextId()
      Gets the id of the currently active delegate of the @context.
      Returns:
      the id of the currently active delegate
    • setContextId

      public void setContextId(@Nullable Str context_id)
      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-%NULL value overrides the system-wide
      IM module setting. See the [property@Gtk.Settings:gtk-im-module]
      property.
      Parameters:
      context_id - the id to use
    • setContextId

      public void setContextId(String context_id)
      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-%NULL value overrides the system-wide
      IM module setting. See the [property@Gtk.Settings:gtk-im-module]
      property.
      Parameters:
      context_id - the id to use
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()