Class CompletionWords

All Implemented Interfaces:
CompletionProvider, Proxy

@Generated("org.javagi.JavaGI") public class CompletionWords extends GObject implements CompletionProvider

A CompletionProvider for the completion of words.

The GtkSourceCompletionWords is an example of an implementation of the CompletionProvider interface. The proposals are words appearing in the registered TextBuffers.

  • Constructor Details

    • CompletionWords

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

      public CompletionWords(@Nullable String title)
    • CompletionWords

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

    • getType

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

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

      protected CompletionWords 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 GObject
      Returns:
      the instance as if it were its parent type
    • register

      public void register(TextBuffer buffer)
      Registers buffer in the this CompletionWords provider.
      Parameters:
      buffer - a GtkTextBuffer
    • unregister

      public void unregister(TextBuffer buffer)
      Unregisters buffer from the this CompletionWords provider.
      Parameters:
      buffer - a GtkTextBuffer
    • builder

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