file: entrycompletion.aus

class: GtkEntryCompletionInsertprefixCallback

[746:7] extends: object

Generated low-level callback wrapper for GIR callback insert-prefix.

Members

Methods

class: GtkEntryCompletionCursoronmatchCallback

[674:7] extends: object

Generated low-level callback wrapper for GIR callback cursor-on-match.

Members

Methods

class: GtkEntryCompletionNomatchesCallback

[888:7] extends: object

Generated low-level callback wrapper for GIR callback no-matches.

Members

Methods

class: GtkEntryCompletionMeta

[958:14] static extends: object

Generated metadata helpers for EntryCompletion class surfaces.

Methods

class: GtkEntryCompletion

[41:7] extends: object

GtkEntryCompletion is an auxiliary object to provide completion functionality for GtkEntry. It implements the [iface@Gtk.CellLayout] interface, to allow the user to add extra cells to the GtkTreeView with completion matches. “Completion functionality” means that when the user modifies the text in the entry, GtkEntryCompletion checks which rows in the model match the current content of the entry, and displays a list of matches. By default, the matching is done by comparing the entry text case-insensitively against the text column of the model (see [method@Gtk.EntryCompletion.set_text_column]), but this can be overridden with a custom match function (see [method@Gtk.EntryCompletion.set_match_func]). When the user selects a completion, the content of the entry is updated. By default, the content of the entry is replaced by the text column of the model, but this can be overridden by connecting to the [signal@Gtk.EntryCompletion::match-selected] signal and updating the entry in the signal handler. Note that you should return %TRUE from the signal handler to suppress the default behaviour. To add completion functionality to an entry, use [method@Gtk.Entry.set_completion]. GtkEntryCompletion uses a [class@Gtk.TreeModelFilter] model to represent the subset of the entire model that is currently matching. While the GtkEntryCompletion signals [signal@Gtk.EntryCompletion::match-selected] and [signal@Gtk.EntryCompletion::cursor-on-match] take the original model and an iter pointing to that model as arguments, other callbacks and signals (such as GtkCellLayoutDataFunc or [signal@Gtk.CellArea::apply-attributes)] will generally take the filter model as argument. As long as you are only calling [method@Gtk.TreeModel.get], this will make no difference to you. If for some reason, you need the original model, use [method@Gtk.TreeModelFilter.get_model]. Don’t forget to use [method@Gtk.TreeModelFilter.convert_iter_to_child_iter] to obtain a matching iter.

Members

Methods

class: GtkEntryCompletionMatchselectedCallback

[816:7] extends: object

Generated low-level callback wrapper for GIR callback match-selected.

Members

Methods