Interface TreeSelection.OnTreeSelectionFunc

Enclosing class:
TreeSelection
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 TreeSelection.OnTreeSelectionFunc
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onTreeSelectionFunc(CallbackHandler __self, TreeSelection selection, TreeModel model, TreePath path, boolean path_currently_selected, Pointer data)
    A function used by gtk_tree_selection_set_select_function() to filter
    whether or not a row may be selected.
  • Method Details

    • onTreeSelectionFunc

      boolean onTreeSelectionFunc(CallbackHandler __self, @Nonnull TreeSelection selection, @Nonnull TreeModel model, @Nonnull TreePath path, boolean path_currently_selected, @Nullable Pointer data)
      A function used by gtk_tree_selection_set_select_function() to filter
      whether or not a row may be selected. It is called whenever a row's
      state might change.

      A return value of %TRUE indicates to @selection that it is okay to
      change the selection.
      Parameters:
      selection - A `GtkTreeSelection`
      model - A `GtkTreeModel` being viewed
      path - The `GtkTreePath` of the row in question
      path_currently_selected - %TRUE, if the path is currently selected
      data - user data
      Returns:
      %TRUE, if the selection state of the row can be toggled