Interface TreeListModel.OnTreeListModelCreateModelFunc

Enclosing class:
TreeListModel
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 TreeListModel.OnTreeListModelCreateModelFunc
  • Method Details

    • onTreeListModelCreateModelFunc

      ListModel onTreeListModelCreateModelFunc(CallbackHandler __self, @Nonnull Pointer item, @Nullable Pointer user_data)
      Prototype of the function called to create new child models when
      gtk_tree_list_row_set_expanded() is called.

      This function can return %NULL to indicate that @item is guaranteed to be
      a leaf node and will never have children. If it does not have children but
      may get children later, it should return an empty model that is filled once
      children arrive.
      Parameters:
      item - The item that is being expanded
      user_data - User data passed when registering the function
      Returns:
      The model tracking the children of @item or %NULL if @item can never have children