![]() |
![]() |
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 () |
iterator | erase (const iterator& iter) |
iterator | insert (const iterator& iter) |
iterator | prepend () |
iterator | append () |
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) |
Protected Member Functions | |
ListStore (const TreeModelColumnRecord& columns) | |
virtual void | set_value_impl (const iterator& row, int column, const Glib::ValueBase& value) |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gtk::ListStore> | wrap (GtkListStore* object, bool take_copy=false) |
|
|
|
|
|
|
|
Removes all rows 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. |
|
|
|
|
|
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.
|
|
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.
|
|
|
|
Reorders the list store to follow the order indicated by new_order. Note that this function only works with unsorted stores. |
|
Reimplemented from Gtk::TreeModel. |
|
|