Interface EntryCompletion.OnMatchSelected

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.OnMatchSelected
  • Method Summary

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

    • onMatchSelected

      boolean onMatchSelected(@Nonnull TreeModel model, @Nonnull TreeIter iter)
      Emitted when a match from the list is selected.

      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