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

Gtk::TreeRow Class Reference
[TreeView Classes]

#include <treeiter.h>

Inheritance diagram for Gtk::TreeRow:

Gtk::TreeIter

List of all members.


Detailed Description

Typedefed as TreeModel::Row.

Dereference a TreeModel::iterator to get the Row. Use operator[] or set_value() and get_value() to access the values in the columns of this row.

If the model contains a hierarchy of rows (such as Gtk::TreeStore), then you can access the child rows with children().

You can use a const TreeModel::Row& for any parameter that takes a const TreeModel::iterator&.

Definition at line 255 of file treeiter.h.


Public Types

typedef GtkTreeIter BaseObjectType
typedef TreeIterBase CppObjectType
typedef int difference_type
typedef
std::bidirectional_iterator_tag 
iterator_category
typedef const Gtk::TreeRowpointer
typedef const Gtk::TreeRowreference
typedef Gtk::TreeRow value_type

Public Member Functions

const TreeNodeChildrenchildren () const
bool equal (const TreeIter &other) const
const GtkTreeIter * get_gobject_if_not_end () const
GtkTreeModel * get_model_gobject () const
const GtkTreeIter * get_parent_gobject_if_end () const
int get_stamp () const
template<class ColumnType>
void get_value (int column, ColumnType &data) const
template<class ColumnType>
ColumnType get_value (const TreeModelColumn< ColumnType > &column) const
const GtkTreeIter * gobj () const
 Provides access to the underlying C GObject.
GtkTreeIter * gobj ()
 Provides access to the underlying C GObject.
 operator bool () const
reference operator* () const
const TreeIter operator++ (int)
TreeIteroperator++ ()
const TreeIter operator-- (int)
TreeIteroperator-- ()
pointer operator-> () const
template<class ColumnType>
TreeValueProxy< ColumnType > operator[] (const TreeModelColumn< ColumnType > &column) const
TreeIter parent () const
void set_model_gobject (GtkTreeModel *model)
void set_model_refptr (const Glib::RefPtr< TreeModel > &model)
void set_stamp (int stamp)
template<class ColumnType>
void set_value (int column, const ColumnType &data) const
template<class ColumnType>
void set_value (const TreeModelColumn< ColumnType > &column, const ColumnType &data) const
void setup_end_iterator (const TreeIter &last_valid)

Static Public Member Functions

static GType get_type () G_GNUC_CONST

Protected Attributes

GtkTreeIter gobject_
bool is_end_
TreeModelmodel_

Private Member Functions

void get_value_impl (int column, Glib::ValueBase &value) const
void set_value_impl (int column, const Glib::ValueBase &value) const

Friends

class Gtk::TreeModel
class Gtk::TreeNodeChildren
class Gtk::TreeRow

Related Functions

(Note that these are not member functions.)

bool operator!= (const TreeIter &lhs, const TreeIter &rhs)
bool operator== (const TreeIter &lhs, const TreeIter &rhs)

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

Generated by  Doxygen 1.6.0   Back to index