Class
GtkListItem
Description [src]
final class Gtk.ListItem : GObject.Object
{
/* No available fields */
}
GtkListItem is used by list widgets to represent items in a GListModel.
The GtkListItems 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 gtk_list_item_set_child().
GtkListItems exist in 2 stages:
-
The unbound stage where the listitem is not currently connected to an item in the list. In that case, the
GtkListItem:itemproperty is set toNULL. -
The bound stage where the listitem references an item from the list. The
GtkListItem:itemproperty is notNULL.
Instance methods
gtk_list_item_get_accessible_description
Gets the accessible description of self.
unstable since: 4.12
gtk_list_item_get_activatable
Checks if a list item has been set to be activatable via gtk_list_item_set_activatable().
gtk_list_item_get_child
Gets the child previously set via gtk_list_item_set_child() or
NULL if none was set.
gtk_list_item_get_focusable
Checks if a list item has been set to be focusable via gtk_list_item_set_focusable().
unstable since: 4.12
gtk_list_item_get_selectable
Checks if a list item has been set to be selectable via gtk_list_item_set_selectable().
gtk_list_item_set_accessible_description
Sets the accessible description for the list item, which may be used by e.g. screen readers.
unstable since: 4.12
gtk_list_item_set_accessible_label
Sets the accessible label for the list item, which may be used by e.g. screen readers.
unstable since: 4.12
Properties
Gtk.ListItem:accessible-description
The accessible description to set on the list item.
unstable since: 4.12
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.