Ardour  9.0-pre0-582-g084a23a80d
treerowreference.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_TREEROWREFERENCE_H
4 #define _GTKMM_TREEROWREFERENCE_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: treerowreference.hg,v 1.7 2006/04/12 11:11:25 murrayc Exp $ */
11 
12 /* Copyright (C) 2002 The gtkmm Development Team
13  *
14  * This library is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU Lesser General Public
16  * License as published by the Free Software Foundation; either
17  * version 2.1 of the License, or (at your option) any later version.
18  *
19  * This library is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  * Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU Lesser General Public
25  * License along with this library; if not, write to the Free
26  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27  */
28 
29 
30 #include <gtkmm/treepath.h>
31 #include <gtkmm/treemodel.h>
32 
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 extern "C" { typedef struct _GtkTreeRowReference GtkTreeRowReference; }
35 #endif
36 
37 namespace Gtk
38 {
39 
47 {
48  public:
49 #ifndef DOXYGEN_SHOULD_SKIP_THIS
50  typedef TreeRowReference CppObjectType;
51  typedef GtkTreeRowReference BaseObjectType;
52 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
53 
56  static GType get_type() G_GNUC_CONST;
57 
59 
60  explicit TreeRowReference(GtkTreeRowReference* gobject, bool make_a_copy = true);
61 
63  TreeRowReference& operator=(const TreeRowReference& other);
64 
66 
67  void swap(TreeRowReference& other);
68 
71 
73  const GtkTreeRowReference* gobj() const { return gobject_; }
74 
77 
78 protected:
80 
81 private:
82 
83 
84 public:
85  TreeRowReference(const Glib::RefPtr<TreeModel>& model, const TreeModel::Path& path);
86 
88  operator bool() const;
89 
90 
97 
98 
103  Glib::RefPtr<TreeModel> get_model();
104 
109  Glib::RefPtr<const TreeModel> get_model() const;
110 
111 
117  bool is_valid() const;
118 
119 
120 };
121 
122 } // namespace Gtk
123 
124 
125 namespace Gtk
126 {
127 
132 inline void swap(TreeRowReference& lhs, TreeRowReference& rhs)
133  { lhs.swap(rhs); }
134 
135 } // namespace Gtk
136 
137 namespace Glib
138 {
139 
148 Gtk::TreeRowReference wrap(GtkTreeRowReference* object, bool take_copy = false);
149 
150 #ifndef DOXYGEN_SHOULD_SKIP_THIS
151 template <>
152 class Value<Gtk::TreeRowReference> : public Glib::Value_Boxed<Gtk::TreeRowReference>
153 {};
154 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
155 
156 } // namespace Glib
157 
158 
159 #endif /* _GTKMM_TREEROWREFERENCE_H */
160 
bool is_valid() const
TreeRowReference(const Glib::RefPtr< TreeModel > &model, const TreeModel::Path &path)
GtkTreeRowReference * gobject_
GtkTreeRowReference * gobj_copy() const
Provides access to the underlying C instance. The caller is responsible for freeing it....
Glib::RefPtr< const TreeModel > get_model() const
GtkTreeRowReference * gobj()
Provides access to the underlying C instance.
void swap(TreeRowReference &lhs, TreeRowReference &rhs)
const GtkTreeRowReference * gobj() const
Provides access to the underlying C instance.
Gtk::TreeRowReference wrap(GtkTreeRowReference *object, bool take_copy=false)
void swap(TreeRowReference &other)
TreeModel::Path get_path() const
Glib::RefPtr< TreeModel > get_model()
static GType get_type() G_GNUC_CONST
struct _GtkTreeRowReference GtkTreeRowReference
Definition: gtktreemodel.h:45
Definition: ardour_ui.h:188
Definition: lobject.h:100