ListItem

open class ListItem(pointer: <Error class: unknown class><<Error class: unknown class>>)

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:

  1. 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.

  2. The bound stage where the listitem references an item from the list. The property@Gtk.ListItem:item property is not null.

Inheritors

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The accessible description to set on the list item.

Link copied to clipboard

The accessible label to set on the list item.

Link copied to clipboard

If the item can be activated by the user.

Link copied to clipboard
open var child: Widget?

Widget used for display.

Link copied to clipboard
open var focusable: Boolean

If the item can be focused with the keyboard.

Link copied to clipboard
val gtkListItemPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val item: <Error class: unknown class>?

Displayed item.

Link copied to clipboard
open val position: <Error class: unknown class>

Position of the item.

Link copied to clipboard

If the item can be selected by the user.

Link copied to clipboard
open val selected: Boolean

If the item is currently selected.