Method

GioListModelget_item

Declaration

gpointer
g_list_model_get_item (
  GListModel* list,
  guint position
)

Description

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. See g_list_model_get_n_items().

Available since:2.44

Parameters

position guint
 

The position of the item to fetch.

Return value

Returns: gpointer
 

The item at position.