3 #ifndef _GTKMM_TREEMODEL_H
4 #define _GTKMM_TREEMODEL_H
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
29 #include <glibmm/interface.h>
30 #include <glibmm/arrayhandle.h>
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 typedef struct _GtkTreeModelClass GtkTreeModelClass;
40 #ifndef DOXYGEN_SHOULD_SKIP_THIS
42 {
class TreeModel_Class; }
50 class TreeRowReference;
75 {
return static_cast<TreeModelFlags>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
79 {
return static_cast<TreeModelFlags>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
83 {
return static_cast<TreeModelFlags>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
87 {
return static_cast<TreeModelFlags>(~static_cast<unsigned>(flags)); }
91 {
return (lhs =
static_cast<TreeModelFlags>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
95 {
return (lhs =
static_cast<TreeModelFlags>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
99 {
return (lhs =
static_cast<TreeModelFlags>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
104 #ifndef DOXYGEN_SHOULD_SKIP_THIS
112 static GType value_type() G_GNUC_CONST;
170 #ifndef DOXYGEN_SHOULD_SKIP_THIS
180 static CppClassType treemodel_class_;
193 #ifndef DOXYGEN_SHOULD_SKIP_THIS
200 explicit TreeModel(
const Glib::Interface_Class& interface_class);
220 #ifndef DOXYGEN_SHOULD_SKIP_THIS
221 static GType get_base_type() G_GNUC_CONST;
int get_n_columns() const
Glib::ustring get_string(const iterator &iter) const
virtual bool iter_parent_vfunc(const iterator &child, iterator &iter) const
Children children() const
This returns an STL-like container API, for iterating over the rows.
GtkTreeModel * gobj()
Provides access to the underlying C GObject.
GType get_column_type(int index) const
virtual void on_row_inserted(const TreeModel::Path &path, const TreeModel::iterator &iter)
This is a default handler for the signal signal_row_inserted().
virtual void on_row_changed(const TreeModel::Path &path, const TreeModel::iterator &iter)
This is a default handler for the signal signal_row_changed().
sigc::slot< bool, const TreeModel::Path & > SlotForeachPath
virtual void set_value_impl(const iterator &row, int column, const Glib::ValueBase &value)
virtual bool iter_next_vfunc(const iterator &iter, iterator &iter_next) const
static GType get_type() G_GNUC_CONST
TreeModelFlags get_flags() const
Children::reverse_iterator reverse_iterator
void row_inserted(const Path &path, const iterator &iter)
virtual bool iter_nth_root_child_vfunc(int n, iterator &iter) const
virtual GType get_column_type_vfunc(int index) const
virtual TreeModel::Path get_path_vfunc(const iterator &iter) const
virtual void on_row_deleted(const TreeModel::Path &path)
This is a default handler for the signal signal_row_deleted().
virtual int iter_n_children_vfunc(const iterator &iter) const
Glib::RefPtr< Gtk::TreeModel > wrap(GtkTreeModel *object, bool take_copy=false)
Children::const_reverse_iterator const_reverse_iterator
TreeRowReference RowReference
TreeModelColumnRecord ColumnRecord
virtual TreeModelFlags get_flags_vfunc() const
Children children()
This returns an STL-like container API, for iterating over the rows.
virtual void get_value_impl(const iterator &row, int column, Glib::ValueBase &value) const
Glib::SignalProxy2< void, const TreeModel::Path &, const TreeModel::iterator & > signal_row_changed()
Children::iterator iterator
virtual int get_n_columns_vfunc() const
virtual int iter_n_root_children_vfunc() const
iterator get_iter(const Glib::ustring &path_string)
void rows_reordered(const Path &path, const iterator &iter, const Glib::ArrayHandle< int > &new_order)
sigc::slot< bool, const TreeModel::Path &, const TreeModel::iterator & > SlotForeachPathAndIter
void row_has_child_toggled(const Path &path, const iterator &iter)
virtual bool get_iter_vfunc(const Path &path, iterator &iter) const
virtual bool iter_is_valid(const iterator &iter) const
void row_changed(const Path &path, const iterator &iter)
void rows_reordered(const Path &path, const iterator &iter, int *new_order)
Glib::SignalProxy2< void, const TreeModel::Path &, const TreeModel::iterator & > signal_row_has_child_toggled()
virtual void unref_node_vfunc(const iterator &iter) const
sigc::slot< bool, const TreeModel::iterator & > SlotForeachIter
Glib::SignalProxy1< void, const TreeModel::Path & > signal_row_deleted()
Glib::SignalProxy2< void, const TreeModel::Path &, const TreeModel::iterator & > signal_row_inserted()
const GtkTreeModel * gobj() const
Provides access to the underlying C GObject.
virtual bool iter_nth_child_vfunc(const iterator &parent, int n, iterator &iter) const
virtual void get_value_vfunc(const iterator &iter, int column, Glib::ValueBase &value) const
Glib::SignalProxy3< void, const TreeModel::Path &, const TreeModel::iterator &, int * > signal_rows_reordered()
Children::const_iterator const_iterator
void foreach_path(const SlotForeachPath &slot)
void foreach_iter(const SlotForeachIter &slot)
void rows_reordered(const Path &path, const Glib::ArrayHandle< int > &new_order)
virtual bool iter_has_child_vfunc(const iterator &iter) const
virtual void ref_node_vfunc(const iterator &iter) const
virtual void on_row_has_child_toggled(const TreeModel::Path &path, const TreeModel::iterator &iter)
This is a default handler for the signal signal_row_has_child_toggled().
virtual void on_rows_reordered(const TreeModel::Path &path, const TreeModel::iterator &iter, int *new_order)
This is a default handler for the signal signal_rows_reordered().
TreeNodeChildren Children
virtual bool iter_children_vfunc(const iterator &parent, iterator &iter) const
void row_deleted(const Path &path)
iterator get_iter(const Path &path)
static void add_interface(GType gtype_implementer)
TreeModel::Path get_path(const iterator &iter) const
std::reverse_iterator< iterator > reverse_iterator
std::reverse_iterator< const_iterator > const_reverse_iterator
struct _GtkTreeModel GtkTreeModel