Class Completion

java.lang.Object
All Implemented Interfaces:
Proxy

@Generated("io.github.jwharm.JavaGI") @Deprecated public class Completion extends ProxyInstance
Deprecated.
GCompletion provides support for automatic completion of a string using any group of target strings. It is typically used for file name completion as is common in many UNIX shells.

A GCompletion is created using new_(org.gnome.glib.CompletionFunc). Target items are added and removed with addItems(org.gnome.glib.List<java.lang.foreign.MemorySegment>), removeItems(org.gnome.glib.List<java.lang.foreign.MemorySegment>) and clearItems(). A completion attempt is requested with complete(java.lang.String, java.lang.String[]) or completeUtf8(java.lang.String, java.lang.String[]). When no longer needed, the GCompletion is freed with free().

Items in the completion can be simple strings (e.g. filenames), or pointers to arbitrary data structures. If data structures are used you must provide a GLib.CompletionFunc in new_(org.gnome.glib.CompletionFunc), which retrieves the item’s string from the data structure. You can change the way in which strings are compared by setting a different GLib.CompletionStrncmpFunc in setCompare(org.gnome.glib.CompletionStrncmpFunc).

GCompletion has been marked as deprecated, since this API is rarely used and not very actively maintained.