ListModelT.getItem

Get the item at position and cast to the template type. NOTE: If type is an interface and no known D object is found that the object conforms to, the interface IfaceProxy object will be used. If position is greater than the number of items in list, %NULL is returned. %NULL may be returned if index is smaller than the length of the list, but the object does not conform to the template type. This function is meant to be used by language bindings in place of Gio.ListModel.getItem. See also: Gio.ListModel.getNItems

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

Parameters

T

type to cast the resulting object to (can be an interface type)

position uint

the position of the item to fetch

Return Value

Type: T

the object at position.