ListView


Description:

[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
public ListView (owned SelectionModel? model, owned ListItemFactory? factory)

Creates a new `GtkListView` that uses the given factory for mapping items to widgets.

The function takes ownership of the arguments, so you can write code like ```c list_view = gtk_list_view_new (create_model (), gtk_builder_list_item_factory_new_from_resource ("/resource.ui")); ```

Parameters:

model

the model to use

factory

The factory to populate items with

Returns:

a new `GtkListView` using the given model and factory