Ardour  9.0-pre0-582-g084a23a80d
cellview.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_CELLVIEW_H
4 #define _GTKMM_CELLVIEW_H
5 
6 #include <gtkmmconfig.h>
7 
8 
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
11 
12 /*
13  * Copyright (C) 2004 The gtkmm Development Team
14  *
15  * This library is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU Lesser General Public
17  * License as published by the Free Software Foundation; either
18  * version 2.1 of the License, or (at your option) any later version.
19  *
20  * This library is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23  * Lesser General Public License for more details.
24  *
25  * You should have received a copy of the GNU Lesser General Public
26  * License along with this library; if not, write to the Free
27  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28  */
29 
30 
31 #include <gtkmm/widget.h>
32 #include <gtkmm/celllayout.h>
33 #include <gtkmm/treemodel.h>
34 #include <gtkmm/treepath.h>
35 #include <gtkmm/cellrenderer.h>
36 #include <gdkmm/pixbuf.h>
37 
38 
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 typedef struct _GtkCellView GtkCellView;
41 typedef struct _GtkCellViewClass GtkCellViewClass;
42 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
43 
44 
45 namespace Gtk
46 { class CellView_Class; } // namespace Gtk
47 namespace Gtk
48 {
49 
57 class CellView :
58  public Widget,
59  public CellLayout
60 {
61  public:
62 #ifndef DOXYGEN_SHOULD_SKIP_THIS
63  typedef CellView CppObjectType;
64  typedef CellView_Class CppClassType;
65  typedef GtkCellView BaseObjectType;
66  typedef GtkCellViewClass BaseClassType;
67 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
68 
69  virtual ~CellView();
70 
71 #ifndef DOXYGEN_SHOULD_SKIP_THIS
72 
73 private:
74  friend class CellView_Class;
75  static CppClassType cellview_class_;
76 
77  // noncopyable
78  CellView(const CellView&);
79  CellView& operator=(const CellView&);
80 
81 protected:
82  explicit CellView(const Glib::ConstructParams& construct_params);
83  explicit CellView(GtkCellView* castitem);
84 
85 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
86 
87 public:
88 #ifndef DOXYGEN_SHOULD_SKIP_THIS
89  static GType get_type() G_GNUC_CONST;
90 
91 
92  static GType get_base_type() G_GNUC_CONST;
93 #endif
94 
96  GtkCellView* gobj() { return reinterpret_cast<GtkCellView*>(gobject_); }
97 
99  const GtkCellView* gobj() const { return reinterpret_cast<GtkCellView*>(gobject_); }
100 
101 
102 public:
103  //C++ methods used to invoke GTK+ virtual functions:
104 
105 protected:
106  //GTK+ Virtual Functions (override these to change behaviour):
107 
108  //Default Signal Handlers::
109 
110 
111 private:
112 
113 
114 public:
116 
123  explicit CellView(const Glib::ustring& text, bool use_markup = false);
124 
125 
130  explicit CellView(const Glib::RefPtr<Gdk::Pixbuf>& pixbuf);
131 
132 
133  //_WRAP_METHOD(void set_value(CellRenderer& renderer, const Glib::ustring& property, const Glib::ValueBase& value), gtk_cell_view_set_value)
134  //gtkmmproc error: gtk_cell_view_set_values : ignored method defs lookup failed
135 
136 
143  void set_model(const Glib::RefPtr<TreeModel>& model);
144 
149  void unset_model();
150 
151 
157  Glib::RefPtr<TreeModel> get_model();
158 
164  Glib::RefPtr<const TreeModel> get_model() const;
165 
166 
177 
185 
193  bool get_size_of_row(const TreeModel::Path& path, Requisition& requisition) const;
194 
195 
201 
202 
203 #ifndef GTKMM_DISABLE_DEPRECATED
204 
213  Glib::ListHandle<CellRenderer*> get_cell_renderers();
214 #endif // GTKMM_DISABLE_DEPRECATED
215 
216 
217 #ifndef GTKMM_DISABLE_DEPRECATED
218 
227  Glib::ListHandle<const CellRenderer*> get_cell_renderers() const;
228 #endif // GTKMM_DISABLE_DEPRECATED
229 
230 
236  Glib::PropertyProxy_WriteOnly< Glib::ustring > property_background() ;
237 
238 
244  Glib::PropertyProxy< Gdk::Color > property_background_gdk() ;
245 
251  Glib::PropertyProxy_ReadOnly< Gdk::Color > property_background_gdk() const;
252 
258  Glib::PropertyProxy< bool > property_background_set() ;
259 
265  Glib::PropertyProxy_ReadOnly< bool > property_background_set() const;
266 
272  Glib::PropertyProxy< Glib::RefPtr<TreeModel> > property_model() ;
273 
279  Glib::PropertyProxy_ReadOnly< Glib::RefPtr<TreeModel> > property_model() const;
280 
281 
282 };
283 
284 } // namespace Gtk
285 
286 
287 namespace Glib
288 {
297  Gtk::CellView* wrap(GtkCellView* object, bool take_copy = false);
298 } //namespace Glib
299 
300 
301 #endif /* _GTKMM_CELLVIEW_H */
302 
static GType get_type() G_GNUC_CONST
void set_model(const Glib::RefPtr< TreeModel > &model)
Glib::PropertyProxy< bool > property_background_set()
TreeModel::Path get_displayed_row() const
Gtk::CellView * wrap(GtkCellView *object, bool take_copy=false)
const GtkCellView * gobj() const
Provides access to the underlying C GtkObject.
Definition: cellview.h:99
bool get_size_of_row(const TreeModel::Path &path, Requisition &requisition) const
Glib::PropertyProxy_WriteOnly< Glib::ustring > property_background()
Glib::PropertyProxy< Gdk::Color > property_background_gdk()
CellView(const Glib::ustring &text, bool use_markup=false)
Glib::PropertyProxy< Glib::RefPtr< TreeModel > > property_model()
Glib::RefPtr< TreeModel > get_model()
void set_displayed_row(const TreeModel::Path &path)
Glib::PropertyProxy_ReadOnly< bool > property_background_set() const
void unset_model()
void set_background_color(const Gdk::Color &color)
Glib::ListHandle< const CellRenderer * > get_cell_renderers() const
CellView(const Glib::RefPtr< Gdk::Pixbuf > &pixbuf)
GtkCellView * gobj()
Provides access to the underlying C GtkObject.
Definition: cellview.h:96
Glib::ListHandle< CellRenderer * > get_cell_renderers()
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< TreeModel > > property_model() const
Glib::RefPtr< const TreeModel > get_model() const
Glib::PropertyProxy_ReadOnly< Gdk::Color > property_background_gdk() const
virtual ~CellView()
void path(Glib::ustring &path, Glib::ustring &path_reversed)
Compute a widget's path of the form "GtkWindow.MyLabel".
GtkImagePixbufData pixbuf
Definition: gtkimage.h:2
PBD::PropertyDescriptor< uint32_t > color
Definition: ardour_ui.h:188