Creates a new gtk.list_view.ListView that uses the given factory for mapping items to widgets.
Connect to Activate signal.
Returns whether rows can be selected by dragging with the mouse.
Gets the factory that's currently used to populate list items.
Gets the factory that's currently used to populate section headers.
Gets the model that's currently used to read the items displayed.
Returns whether the list box should show separators between rows.
Returns whether rows will be activated on single click and selected on hover.
Gets the behavior set for the <kbd>Tab</kbd> key.
Scrolls to the item at the given position and performs the actions specified in flags.
Sets whether selections can be changed by dragging with the mouse.
Sets the gtk.list_item_factory.ListItemFactory to use for populating list items.
Sets the gtk.list_item_factory.ListItemFactory to use for populating the gtk.list_header.ListHeader objects used in section headers.
Sets the model to use.
Sets whether the list box should show separators between rows.
Sets whether rows should be activated on single click and selected on hover.
Sets the behavior of the <kbd>Tab</kbd> and <kbd>Shift</kbd>+<kbd>Tab</kbd> keys.
gtk.list_view.ListView presents a large dynamic list of items.
gtk.list_view.ListView uses its factory to generate one row widget for each visible item and shows them in a linear display, either vertically or horizontally.
The property@Gtk.ListView:show-separators property offers a simple way to display separators between the rows.
gtk.list_view.ListView allows the user to select items according to the selection characteristics of the model. For models that allow multiple selected items, it is possible to turn on _rubberband selection_, using property@Gtk.ListView:enable-rubberband.
If you need multiple columns with headers, see gtk.column_view.ColumnView.
To learn more about the list widget framework, see the overview.
An example of using gtk.list_view.ListView:
CSS nodes
gtk.list_view.ListView uses a single CSS node named listview. It may carry the .separators style class, when property@Gtk.ListView:show-separators property is set. Each child widget uses a single CSS node named row. If the gtk.list_item.ListItem.gboolean property is set, the corresponding row will have the .activatable style class. For rubberband selection, a node with name rubberband is used.
The main listview node may also carry style classes to select the style of list presentation: .rich-list, .navigation-sidebar or .data-table.
Accessibility
gtk.list_view.ListView uses the gtk.types.AccessibleRole.List role, and the list items use the gtk.types.AccessibleRole.ListItem role.