RB.ListModel¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
None
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Fields¶
- Inherited:
 
Class Details¶
- class RB.ListModel(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Stores a list of items and emits notification signals on changes.
- classmethod new(item_type, destroy_item)¶
 - Parameters:
 item_type (
GObject.GType) – aGObject.GTypefor items in the listdestroy_item (
GLib.DestroyNotify) – callback for destroying list items
- Returns:
 the model
- Return type:
 
Creates a new empty list model.
- find(item)¶
 - 
Returns the lowest index at which item appears in the list, or -1 if the item is not in the list.
 
- get(index)¶
 - Parameters:
 index (
int) – item to retrieve- Returns:
 item at the specified index
- Return type:
 
Returns an item from the list.
- get_item_type()¶
 - Returns:
 list entry type
- Return type:
 
Returns the list entry type.
- insert(index, item)¶
 - 
Inserts at item into the list. If index is less than zero or greater than the length of the list, the item is appended to the list.