2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GTKMM_CELLRENDERERPIXBUF_H
4 #define _GTKMM_CELLRENDERERPIXBUF_H
13 * Copyright (C) 1998-2002 The gtkmm Development Team
15 * This library is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU Library General Public
17 * License as published by the Free Software Foundation; either
18 * version 2 of the License, or (at your option) any later version.
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 * Library General Public License for more details.
25 * You should have received a copy of the GNU Library 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.
30 #include <gtkmm/cellrenderer.h>
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 typedef struct _GtkCellRendererPixbuf GtkCellRendererPixbuf;
35 typedef struct _GtkCellRendererPixbufClass GtkCellRendererPixbufClass;
36 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
40 { class CellRendererPixbuf_Class; } // namespace Gtk
44 /** Renders a pixbuf in a cell.
45 * A CellRendererPixbuf can be used to render an image in a cell. It allows you to render either a
46 * given Pixbuf (set via the pixbuf property) or a stock icon (set via the stock_id property).
48 * To support the tree view, CellRendererPixbuf also supports rendering two alternative pixbufs, when
49 * the is_expanded property is true. If the is_expanded property is true and the pixbuf_expander_open
50 * property is set to a pixbuf, it renders that pixbuf. If the is_expanded property is false and the *
51 * pixbuf_expander_closed property is set to a pixbuf, it renders that one.
56 class CellRendererPixbuf : public CellRenderer
59 #ifndef DOXYGEN_SHOULD_SKIP_THIS
60 typedef CellRendererPixbuf CppObjectType;
61 typedef CellRendererPixbuf_Class CppClassType;
62 typedef GtkCellRendererPixbuf BaseObjectType;
63 typedef GtkCellRendererPixbufClass BaseClassType;
64 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
66 virtual ~CellRendererPixbuf();
68 #ifndef DOXYGEN_SHOULD_SKIP_THIS
71 friend class CellRendererPixbuf_Class;
72 static CppClassType cellrendererpixbuf_class_;
75 CellRendererPixbuf(const CellRendererPixbuf&);
76 CellRendererPixbuf& operator=(const CellRendererPixbuf&);
79 explicit CellRendererPixbuf(const Glib::ConstructParams& construct_params);
80 explicit CellRendererPixbuf(GtkCellRendererPixbuf* castitem);
82 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
85 #ifndef DOXYGEN_SHOULD_SKIP_THIS
86 static GType get_type() G_GNUC_CONST;
87 static GType get_base_type() G_GNUC_CONST;
90 ///Provides access to the underlying C GtkObject.
91 GtkCellRendererPixbuf* gobj() { return reinterpret_cast<GtkCellRendererPixbuf*>(gobject_); }
93 ///Provides access to the underlying C GtkObject.
94 const GtkCellRendererPixbuf* gobj() const { return reinterpret_cast<GtkCellRendererPixbuf*>(gobject_); }
98 //C++ methods used to invoke GTK+ virtual functions:
99 #ifdef GLIBMM_VFUNCS_ENABLED
100 #endif //GLIBMM_VFUNCS_ENABLED
103 //GTK+ Virtual Functions (override these to change behaviour):
104 #ifdef GLIBMM_VFUNCS_ENABLED
105 #endif //GLIBMM_VFUNCS_ENABLED
107 //Default Signal Handlers::
108 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
109 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
116 CellRendererPixbuf();
118 #ifdef GLIBMM_PROPERTIES_ENABLED
119 /** The pixbuf to render.
121 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
122 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
123 * the value of the property changes.
125 Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf() ;
126 #endif //#GLIBMM_PROPERTIES_ENABLED
128 #ifdef GLIBMM_PROPERTIES_ENABLED
129 /** The pixbuf to render.
131 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
132 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
133 * the value of the property changes.
135 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf() const;
136 #endif //#GLIBMM_PROPERTIES_ENABLED
138 #ifdef GLIBMM_PROPERTIES_ENABLED
139 /** Pixbuf for open expander.
141 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
142 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
143 * the value of the property changes.
145 Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf_expander_open() ;
146 #endif //#GLIBMM_PROPERTIES_ENABLED
148 #ifdef GLIBMM_PROPERTIES_ENABLED
149 /** Pixbuf for open expander.
151 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
152 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
153 * the value of the property changes.
155 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf_expander_open() const;
156 #endif //#GLIBMM_PROPERTIES_ENABLED
158 #ifdef GLIBMM_PROPERTIES_ENABLED
159 /** Pixbuf for closed expander.
161 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
162 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
163 * the value of the property changes.
165 Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf_expander_closed() ;
166 #endif //#GLIBMM_PROPERTIES_ENABLED
168 #ifdef GLIBMM_PROPERTIES_ENABLED
169 /** Pixbuf for closed expander.
171 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
172 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
173 * the value of the property changes.
175 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf_expander_closed() const;
176 #endif //#GLIBMM_PROPERTIES_ENABLED
178 #ifdef GLIBMM_PROPERTIES_ENABLED
179 /** The stock ID of the stock icon to render.
181 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
182 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
183 * the value of the property changes.
185 Glib::PropertyProxy<Glib::ustring> property_stock_id() ;
186 #endif //#GLIBMM_PROPERTIES_ENABLED
188 #ifdef GLIBMM_PROPERTIES_ENABLED
189 /** The stock ID of the stock icon to render.
191 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
192 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
193 * the value of the property changes.
195 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_stock_id() const;
196 #endif //#GLIBMM_PROPERTIES_ENABLED
198 #ifdef GLIBMM_PROPERTIES_ENABLED
199 /** The GtkIconSize value that specifies the size of the rendered icon.
201 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
202 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
203 * the value of the property changes.
205 Glib::PropertyProxy<guint> property_stock_size() ;
206 #endif //#GLIBMM_PROPERTIES_ENABLED
208 #ifdef GLIBMM_PROPERTIES_ENABLED
209 /** The GtkIconSize value that specifies the size of the rendered icon.
211 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
212 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
213 * the value of the property changes.
215 Glib::PropertyProxy_ReadOnly<guint> property_stock_size() const;
216 #endif //#GLIBMM_PROPERTIES_ENABLED
218 #ifdef GLIBMM_PROPERTIES_ENABLED
219 /** Render detail to pass to the theme engine.
221 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
222 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
223 * the value of the property changes.
225 Glib::PropertyProxy<Glib::ustring> property_stock_detail() ;
226 #endif //#GLIBMM_PROPERTIES_ENABLED
228 #ifdef GLIBMM_PROPERTIES_ENABLED
229 /** Render detail to pass to the theme engine.
231 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
232 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
233 * the value of the property changes.
235 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_stock_detail() const;
236 #endif //#GLIBMM_PROPERTIES_ENABLED
239 #ifdef GLIBMM_PROPERTIES_ENABLED
240 virtual Glib::PropertyProxy_Base _property_renderable();
242 virtual Glib::ustring _property_renderable();
248 } /* namespace Gtk */
253 /** A Glib::wrap() method for this object.
255 * @param object The C instance.
256 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
257 * @result A C++ instance that wraps this C instance.
259 * @relates Gtk::CellRendererPixbuf
261 Gtk::CellRendererPixbuf* wrap(GtkCellRendererPixbuf* object, bool take_copy = false);
265 #endif /* _GTKMM_CELLRENDERERPIXBUF_H */