Object Hierarchy:

Object hierarchy for ListItem


[ CCode ( type_id = "gtk_list_item_get_type ()" ) ]
public class ListItem : Object

ListItem is the object that list-handling containers such as ListView use to represent items in a ListModel.

They are managed by the container and cannot be created by application code.

ListItems need to be populated by application code. This is done by calling set_child.

ListItems exist in 2 stages:

  1. The unbound stage where the listitem is not currently connected to an item in the list. In that case, the item property is set to null.
  2. The bound stage where the listitem references an item from the list. The item property is not null.

Namespace: Gtk
Package: gtk4



Creation methods:


Inherited Members: