ListModelT.getItem

Get the item at position.

If position is greater than the number of items in list, null is returned.

null is never returned for an index that is smaller than the length of the list.

This function is meant to be used by language bindings in place of gio.list_model.ListModel.getItem.

See also: gio.list_model.ListModel.getNItems

  1. T getItem(uint position)
  2. gobject.object.ObjectG getItem(uint position)
    template ListModelT()
    override
    getItem
    ()

Parameters

position uint

the position of the item to fetch

Return Value

Type: gobject.object.ObjectG

the object at position.