![]() |
![]() |
Public Member Functions | |
iterator | append (const TreeNodeChildren& node) |
Creates a new row at the end of the row's children. | |
iterator | append () |
Creates a new row at the end of the top-level. | |
void | clear () |
Removes all rows from tree_store. | |
iterator | erase (const iterator& iter) |
Removes the given row from the list store. | |
const GtkTreeStore* | gobj () const |
Provides access to the underlying C GObject. | |
GtkTreeStore* | gobj () |
Provides access to the underlying C GObject. | |
GtkTreeStore* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
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. | |
bool | is_ancestor (const iterator& iter, const iterator& descendant) const |
Returns true if iter is an ancestor of descendant . | |
int | iter_depth (const iterator& iter) const |
Returns the depth of iter . | |
bool | iter_is_valid (const iterator& iter) const |
WARNING: This function is slow. | |
void | iter_swap (const iterator& a, const iterator& b) |
Swaps a and b in the same level of tree_store . | |
void | move (const iterator& source, const iterator& destination) |
Moves source to the position at destination. | |
iterator | prepend (const TreeNodeChildren& node) |
Creates a new row at the start of the row's children. | |
iterator | prepend () |
Creates a new row at the start of the top-level. | |
void | reorder (const TreeNodeChildren& node, const Glib::ArrayHandle<int>& new_order) |
Reorders the children of node to follow the order indicated by new_order. | |
void | set_column_types (const TreeModelColumnRecord& columns) |
virtual | ~TreeStore () |
Static Public Member Functions | |
static Glib::RefPtr<TreeStore> | create (const TreeModelColumnRecord& columns) |
Instantiate a new TreeStore. | |
Protected Member Functions | |
virtual void | set_value_impl (const iterator& row, int column, const Glib::ValueBase& value) |
TreeStore (const TreeModelColumnRecord& columns) | |
TreeStore () | |
When using this constructor, you must use set_column_types() immediately afterwards. | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gtk::TreeStore> | wrap (GtkTreeStore* 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 of the row's children. 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().
|
|
Creates a new row at the end of the top-level. 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 tree_store.
|
|
Instantiate a new TreeStore.
|
|
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 prepend() and append().
|
|
Returns That is, iter is the parent (or grandparent or great-grandparent) of descendant .
|
|
Returns the depth of iter . This will be 0 for anything on the root level, 1 for anything down a level, etc.
|
|
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::TreeStore.
|
|
Swaps a and b in the same level of tree_store . Note that this function only works with unsorted stores.
|
|
Moves source to the position at destination. source and destination should be at the same level. Note that this function only works with unsorted stores.
|
|
Creates a new row at the start of the row's children. 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().
|
|
Creates a new row at the start of the top-level. 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 children of node to follow the order indicated by new_order. Note that this function only works with unsorted stores. |
|
|
|
|
|
|