|
Public Types |
typedef unsigned int | size_type |
typedef int | difference_type |
typedef int | value_type |
typedef int& | reference |
typedef const int& | const_reference |
typedef int* | iterator |
typedef const int* | const_iterator |
typedef std::reverse_iterator<
iterator > | reverse_iterator |
typedef std::reverse_iterator<
const_iterator > | const_reverse_iterator |
Public Methods |
| TreePath () |
| TreePath (GtkTreePath* gobject, bool make_a_copy=true) |
| TreePath (const TreePath& other) |
TreePath& | operator= (const TreePath& other) |
| ~TreePath () |
void | swap (TreePath& other) |
GtkTreePath* | gobj () |
const GtkTreePath* | gobj () const |
GtkTreePath* | gobj_copy () const |
| TreePath (size_type n, value_type value=0) |
| TreePath (const Glib::ustring& path) |
| TreePath (const TreeModel::iterator& iter) |
template <class In> | TreePath (In pbegin, In pend) |
void | clear () |
TreePath& | operator= (const TreeModel::iterator& iter) |
template <class In> void | assign (In pbegin, In pend) |
template <class In> void | append (In pbegin, In pend) |
void | push_back (int index) |
| Appends a new index to a path.
|
void | push_front (int index) |
| Prepends a new index to a path.
|
size_type | size () const |
bool | empty () const |
reference | operator[] (size_type i) |
const_reference | operator[] (size_type i) const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
reference | front () |
const_reference | front () const |
reference | back () |
const_reference | back () const |
void | next () |
| Moves the path to point to the next node at the current depth.
|
bool | prev () |
| Moves the path to point to the previous node at the current depth, if it exists.
|
bool | up () |
| Moves the path to point to it's parent node, if it has a parent.
|
void | down () |
| Moves path to point to the first child of the current path.
|
bool | is_ancestor (const TreePath& descendant) const |
| Returns true if descendant is a descendant of path .
|
bool | is_descendant (const TreePath& ancestor) const |
| Returns true if path is a descendant of ancestor .
|
Glib::ustring | to_string () const |
| Generates a string representation of the path.
|
bool | set_in_selection_data (SelectionData& selection_data, const Glib::RefPtr<const TreeModel>& model) const |
| Sets selection data of target type "GTK_TREE_MODEL_ROW".
|
|
void | append_index (int index) |
| Appends a new index to a path.
|
void | prepend_index (int index) |
| Prepends a new index to a path.
|
int | get_depth () const |
| Returns the current depth of path .
|
Glib::ArrayHandle<int> | get_indices () const |
bool | is_ancestor (TreePath& descendant) const |
| Returns true if descendant is a descendant of path .
|
bool | is_descendant (TreePath& ancestor) const |
| Returns true if path is a descendant of ancestor .
|
Static Public Methods |
bool | get_from_selection_data (const SelectionData& selection_data, Glib::RefPtr<TreeModel>& model, TreePath& path) |
| Obtains a Gtk::TreeModel and Gtk::TreeModel::Path from selection data of target type "GTK_TREE_MODEL_ROW".
|
bool | get_from_selection_data (const SelectionData& selection_data, TreePath& path) |
| See description in the other overload.
|
Protected Attributes |
GtkTreePath* | gobject_ |
Related Functions |
(Note that these are not member functions.)
|
bool | operator== (const TreePath& lhs, const TreePath& rhs) |
bool | operator!= (const TreePath& lhs, const TreePath& rhs) |
bool | operator< (const TreePath& lhs, const TreePath& rhs) |
bool | operator> (const TreePath& lhs, const TreePath& rhs) |
bool | operator<= (const TreePath& lhs, const TreePath& rhs) |
bool | operator>= (const TreePath& lhs, const TreePath& rhs) |
void | swap (TreePath& lhs, TreePath& rhs) |
Gtk::TreePath | wrap (GtkTreePath* object, bool take_copy=false) |