Interface EntryCompletion.OnCursorOnMatch

Enclosing class:
EntryCompletion
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface EntryCompletion.OnCursorOnMatch
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Emitted when a match from the cursor is on a match of the list.
  • Method Details

    • onCursorOnMatch

      boolean onCursorOnMatch(@Nonnull TreeModel model, @Nonnull TreeIter iter)
      Emitted when a match from the cursor is on a match of the list.

      The default behaviour is to replace the contents
      of the entry with the contents of the text column in the row
      pointed to by @iter.

      Note that @model is the model that was passed to
      [method@Gtk.EntryCompletion.set_model].
      Parameters:
      model - the `GtkTreeModel` containing the matches
      iter - a `GtkTreeIter` positioned at the selected match
      Returns:
      %TRUE if the signal has been handled