ListItem


Object Hierarchy:

Gtk.ListItem Gtk.ListItem Gtk.ListItem GLib.Object GLib.Object GLib.Object->Gtk.ListItem

Description:

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

`GtkListItem` is used by list widgets to represent items in a `GListModel`.

The `GtkListItem`s are managed by the list widget (with its factory) and cannot be created by applications, but they need to be populated by application code. This is done by calling [[email protected]_child].

`GtkListItem`s 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 [[email protected]:item ] property is set to null.
  2. The bound stage where the listitem references an item from the list. The [[email protected]:item] property is not null.

Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object



2022 vala-language.org