Logo Search packages:      
Sourcecode: ardour version File versions  Download package

Gtk::TreePath Class Reference
[TreeView Classes]

#include <treepath.h>

List of all members.


Detailed Description

A path is essentially a potential node. It is a location on a model that may or may not actually correspond to a node on a specific model.

A Path can be converted into either an array of unsigned integers or a string. The string form is a list of numbers separated by a colon. Each number refers to the offset at that level. Thus, the path "0" refers to the root node and the path "2:4" refers to the fifth child of the third node.

Typedefed as Gtk::TreeModel::Path.

Definition at line 54 of file treepath.h.


Public Types

typedef GtkTreePath BaseObjectType
typedef const int * const_iterator
typedef const int & const_reference
typedef std::reverse_iterator
< const_iterator > 
const_reverse_iterator
typedef TreePath CppObjectType
typedef int difference_type
typedef int * iterator
typedef int & reference
typedef std::reverse_iterator
< iterator
reverse_iterator
typedef unsigned int size_type
typedef int value_type

Public Member Functions

template<class In>
void append (In pbegin, In pend)
void append_index (int index)
template<class In>
void assign (In pbegin, In pend)
const_reference back () const
reference back ()
const_iterator begin () const
iterator begin ()
void clear ()
void down ()
bool empty () const
const_iterator end () const
iterator end ()
const_reference front () const
reference front ()
int get_depth () const
Glib::ArrayHandle< int > get_indices () const
const GtkTreePath * gobj () const
 Provides access to the underlying C instance.
GtkTreePath * gobj ()
 Provides access to the underlying C instance.
GtkTreePath * gobj_copy () const
 Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
bool is_ancestor (const TreePath &descendant) const
bool is_descendant (const TreePath &ancestor) const
void next ()
TreePathoperator= (const TreeModel::iterator &iter)
TreePathoperator= (const TreePath &other)
const_reference operator[] (size_type i) const
reference operator[] (size_type i)
void prepend_index (int index)
bool prev ()
void push_back (int index)
void push_front (int index)
const_reverse_iterator rbegin () const
reverse_iterator rbegin ()
const_reverse_iterator rend () const
reverse_iterator rend ()
bool set_in_selection_data (SelectionData &selection_data, const Glib::RefPtr< const TreeModel > &model) const
size_type size () const
void swap (TreePath &other)
Glib::ustring to_string () const
template<class In>
 TreePath (In pbegin, In pend)
 TreePath (const TreeModel::iterator &iter)
 TreePath (const Glib::ustring &path)
 TreePath (size_type n, value_type value=0)
 TreePath (const TreePath &other)
 TreePath (GtkTreePath *gobject, bool make_a_copy=true)
bool up ()

Static Public Member Functions

static bool get_from_selection_data (const SelectionData &selection_data, TreePath &path)
 See description in the other overload.
static bool get_from_selection_data (const SelectionData &selection_data, Glib::RefPtr< TreeModel > &model, TreePath &path)
static GType get_type () G_GNUC_CONST

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)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index