Class CompletionSnippets

All Implemented Interfaces:
CompletionProvider, Proxy

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

A CompletionProvider for the completion of snippets.

The GtkSourceCompletionSnippets is an example of an implementation of the CompletionProvider interface. The proposals are snippets registered with the SnippetManager.

  • Constructor Details

    • CompletionSnippets

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

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

    • getType

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

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

      protected CompletionSnippets 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
    • builder

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