Class IMMulticontext

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class IMMulticontext extends IMContext

Supports switching between multiple input methods.

Text widgets such as GtkText or GtkTextView use a GtkIMMultiContext to implement their im-module property for switching between different input methods.

  • Constructor Details

    • IMMulticontext

      public IMMulticontext(MemorySegment address)
      Create a IMMulticontext instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • IMMulticontext

      public IMMulticontext()
      Create a new IMMulticontext.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the IMMulticontext class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected IMMulticontext asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class IMContext
      Returns:
      the instance as if it were its parent type
    • getContextId

      public String 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 String contextId)

      Sets the context id for context.

      This causes the currently active delegate of this IMMulticontext 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 Gtk.Settings:gtk-im-module property.

      Parameters:
      contextId - the id to use
    • builder

      public static IMMulticontext.Builder<? extends IMMulticontext.Builder> builder()
      A IMMulticontext.Builder object constructs a IMMulticontext with the specified properties. Use the various set...() methods to set properties, and finish construction with IMMulticontext.Builder.build().
      Returns:
      the builder object