|  |  | 

It implements the Gtk::TreeModel interface, and also implements the Gtk::TreeSortable interface so you can sort the list using the view. Finally, it also implements the tree drag and drop interfaces.
| Public Member Functions | |
| virtual | ~ListStore () | 
| GtkListStore* | gobj () | 
| Provides access to the underlying C GObject. | |
| const GtkListStore* | gobj () const | 
| Provides access to the underlying C GObject. | |
| GtkListStore* | gobj_copy () | 
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
| void | set_column_types (const TreeModelColumnRecord& columns) | 
| iterator | erase (const iterator& iter) | 
| Removes the given row from the list store. | |
| iterator | insert (const iterator& iter) | 
| Creates a new row before the position. | |
| iterator | insert_after (const iterator& iter) | 
| Creates a new row after the position. | |
| iterator | prepend () | 
| Creates a new row at the start. | |
| iterator | append () | 
| Creates a new row at the end. | |
| void | iter_swap (const iterator& a, const iterator& b) | 
| Swaps a and b in store . | |
| void | move (const iterator& source, const iterator& destination) | 
| Moves source to the position at destination. | |
| void | reorder (const Glib::ArrayHandle<int>& new_order) | 
| Reorders the list store to follow the order indicated by new_order. | |
| void | clear () | 
| Removes all rows from the list store. | |
| bool | iter_is_valid (const iterator& iter) const | 
| WARNING: This function is slow. | |
| Static Public Member Functions | |
| Glib::RefPtr<ListStore> | create (const TreeModelColumnRecord& columns) | 
| Instantiate a new ListStore. | |
| Protected Member Functions | |
| ListStore () | |
| When using this constructor, you must use set_column_types() immediately afterwards. | |
| ListStore (const TreeModelColumnRecord& columns) | |
| virtual void | set_value_impl (const iterator& row, int column, const Glib::ValueBase& value) | 
| Override and implement this in a derived TreeModel class, so that Row::operator() and Row::set_value() work. | |
| Related Functions | |
| (Note that these are not member functions.) | |
| Glib::RefPtr<Gtk::ListStore> | wrap (GtkListStore* object, bool take_copy=false) | 
| 
 | 
| 
 | 
| 
 | 
| When using this constructor, you must use set_column_types() immediately afterwards. This can be useful when deriving from this class, with a fixed TreeModelColumnRecord that is a member of the class. There is no create() method that corresponds to this constructor, because this constructor should only be used by derived classes. | 
| 
 | 
| 
 | 
| 
 | 
| Creates a new row at the end. The row will be empty - to fill in values, you need to dereference the returned iterator and use Row::operator[] or Row::set_value(). See also insert() and prepend(). 
 
 | 
| 
 | 
| Removes all rows from the list store. 
 | 
| 
 | 
| Instantiate a new ListStore. 
 
 
 | 
| 
 | 
| Removes the given row from the list store. 
 
 
 | 
| 
 | 
| Provides access to the underlying C GObject. 
 Reimplemented from Gtk::TreeDragDest. 
 | 
| 
 | 
| Provides access to the underlying C GObject. 
 Reimplemented from Gtk::TreeDragDest. 
 | 
| 
 | 
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. 
 | 
| 
 | 
| Creates a new row before the position. If iter is end() then a new row will be appended to the list. The row will be empty - to fill in values, you need to dereference the returned iterator and use Row::operator[] or Row::set_value(). See also prepend() and append(). 
 
 
 | 
| 
 | 
| Creates a new row after the position. If iter is end() then a new row will be prepended to the list. The row will be empty - to fill in values, you need to dereference the returned iterator and use Row::operator[] or Row::set_value(). See also insert(), prepend() and append(). 
 
 
 | 
| 
 | 
| WARNING: This function is slow. Only use it for debugging and/or testing purposes. Checks if the given iter is a valid iter for this Gtk::ListStore. 
 
 Reimplemented from Gtk::TreeModel. 
 | 
| 
 | ||||||||||||
| Swaps a and b in store . Note that this function only works with unsorted stores. Since: 2.2 
 | 
| 
 | ||||||||||||
| Moves source to the position at destination. Note that this function only works with unsorted stores. 
 | 
| 
 | 
| Creates a new row at the start. The row will be empty - to fill in values, you need to dereference the returned iterator and use Row::operator[] or Row::set_value(). See also insert() and append(). 
 
 | 
| 
 | 
| Reorders the list store to follow the order indicated by new_order. Note that this function only works with unsorted stores. | 
| 
 | 
| 
 | 
| 
 | ||||||||||||||||
| Override and implement this in a derived TreeModel class, so that Row::operator() and Row::set_value() work. You can probably just implement this by calling set_value_vfunc(). Your implementation of set_value_impl() should also call set_row_changed() after changing the value. Reimplemented from Gtk::TreeModel. 
 | 
| 
 | ||||||||||||
| 
 
 
 |