Package ch.bailu.gtk.gtk
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.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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 viewedpath
- The `GtkTreePath` of the row in questionpath_currently_selected
- %TRUE, if the path is currently selecteddata
- user data- Returns:
- %TRUE, if the selection state of the row can be toggled
-