1 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #include <gtkmm/cellrendererpixbuf.h>
4 #include <gtkmm/private/cellrendererpixbuf_p.h>
11 * Copyright 1998-2002 The gtkmm Development Team
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Library General Public
15 * License as published by the Free Software Foundation; either
16 * version 2 of the License, or (at your option) any later version.
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Library General Public License for more details.
23 * You should have received a copy of the GNU Library General Public
24 * License along with this library; if not, write to the Free
25 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 #include <gtk/gtkcellrendererpixbuf.h>
32 Glib::PropertyProxy_Base CellRendererPixbuf::_property_renderable()
34 return property_pixbuf();
42 } // anonymous namespace
48 Gtk::CellRendererPixbuf* wrap(GtkCellRendererPixbuf* object, bool take_copy)
50 return dynamic_cast<Gtk::CellRendererPixbuf *> (Glib::wrap_auto ((GObject*)(object), take_copy));
53 } /* namespace Glib */
59 /* The *_Class implementation: */
61 const Glib::Class& CellRendererPixbuf_Class::init()
63 if(!gtype_) // create the GType if necessary
65 // Glib::Class has to know the class init function to clone custom types.
66 class_init_func_ = &CellRendererPixbuf_Class::class_init_function;
68 // This is actually just optimized away, apparently with no harm.
69 // Make sure that the parent type has been created.
70 //CppClassParent::CppObjectType::get_type();
72 // Create the wrapper type, with the same class/instance size as the base type.
73 register_derived_type(gtk_cell_renderer_pixbuf_get_type());
75 // Add derived versions of interfaces, if the C type implements any interfaces:
81 void CellRendererPixbuf_Class::class_init_function(void* g_class, void* class_data)
83 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
84 CppClassParent::class_init_function(klass, class_data);
89 Glib::ObjectBase* CellRendererPixbuf_Class::wrap_new(GObject* o)
91 return manage(new CellRendererPixbuf((GtkCellRendererPixbuf*)(o)));
96 /* The implementation: */
98 CellRendererPixbuf::CellRendererPixbuf(const Glib::ConstructParams& construct_params)
100 Gtk::CellRenderer(construct_params)
104 CellRendererPixbuf::CellRendererPixbuf(GtkCellRendererPixbuf* castitem)
106 Gtk::CellRenderer((GtkCellRenderer*)(castitem))
110 CellRendererPixbuf::~CellRendererPixbuf()
115 CellRendererPixbuf::CppClassType CellRendererPixbuf::cellrendererpixbuf_class_; // initialize static member
117 GType CellRendererPixbuf::get_type()
119 return cellrendererpixbuf_class_.init().get_type();
122 GType CellRendererPixbuf::get_base_type()
124 return gtk_cell_renderer_pixbuf_get_type();
128 CellRendererPixbuf::CellRendererPixbuf()
130 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
131 Gtk::CellRenderer(Glib::ConstructParams(cellrendererpixbuf_class_.init()))
136 Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > CellRendererPixbuf::property_pixbuf()
138 return Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> >(this, "pixbuf");
141 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> > CellRendererPixbuf::property_pixbuf() const
143 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> >(this, "pixbuf");
146 Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > CellRendererPixbuf::property_pixbuf_expander_open()
148 return Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> >(this, "pixbuf-expander-open");
151 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> > CellRendererPixbuf::property_pixbuf_expander_open() const
153 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> >(this, "pixbuf-expander-open");
156 Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > CellRendererPixbuf::property_pixbuf_expander_closed()
158 return Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> >(this, "pixbuf-expander-closed");
161 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> > CellRendererPixbuf::property_pixbuf_expander_closed() const
163 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> >(this, "pixbuf-expander-closed");
166 Glib::PropertyProxy<Glib::ustring> CellRendererPixbuf::property_stock_id()
168 return Glib::PropertyProxy<Glib::ustring>(this, "stock-id");
171 Glib::PropertyProxy_ReadOnly<Glib::ustring> CellRendererPixbuf::property_stock_id() const
173 return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "stock-id");
176 Glib::PropertyProxy<guint> CellRendererPixbuf::property_stock_size()
178 return Glib::PropertyProxy<guint>(this, "stock-size");
181 Glib::PropertyProxy_ReadOnly<guint> CellRendererPixbuf::property_stock_size() const
183 return Glib::PropertyProxy_ReadOnly<guint>(this, "stock-size");
186 Glib::PropertyProxy<Glib::ustring> CellRendererPixbuf::property_stock_detail()
188 return Glib::PropertyProxy<Glib::ustring>(this, "stock-detail");
191 Glib::PropertyProxy_ReadOnly<Glib::ustring> CellRendererPixbuf::property_stock_detail() const
193 return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "stock-detail");