ListItem
GtkListItem
is used by list widgets to represent items in a iface@Gio.ListModel.
GtkListItem
objects 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 method@Gtk.ListItem.set_child.
GtkListItem
objects exist in 2 stages:
The unbound stage where the listitem is not currently connected to an item in the list. In that case, the property@Gtk.ListItem:item property is set to null.
The bound stage where the listitem references an item from the list. The property@Gtk.ListItem:item property is not null.
Inheritors
Constructors
Properties
The accessible description to set on the list item.
The accessible label to set on the list item.
If the item can be activated by the user.
If the item can be selected by the user.
Functions
Gets the accessible description of @self.
Gets the accessible label of @self.
Checks if a list item has been set to be activatable via gtk_list_item_set_activatable().
Checks if a list item has been set to be focusable via gtk_list_item_set_focusable().
Gets the position in the model that @self currently displays.
Checks if a list item has been set to be selectable via gtk_list_item_set_selectable().
Checks if the item is displayed as selected.
Sets the accessible description for the list item, which may be used by e.g. screen readers.
Sets the accessible label for the list item, which may be used by e.g. screen readers.
Sets @self to be activatable.
Sets @self to be focusable.
Sets @self to be selectable.