TreeSelectionFunc

typealias TreeSelectionFunc = (selection: TreeSelection, model: TreeModel, path: TreePath, pathCurrentlySelected: Boolean) -> Boolean

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.

  • param selection A GtkTreeSelection

  • param model A GtkTreeModel being viewed

  • param path The GtkTreePath of the row in question

  • param pathCurrentlySelected true, if the path is currently selected

  • return true, if the selection state of the row can be toggled