1 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #include <gtkmm/cellrendererprogress.h>
4 #include <gtkmm/private/cellrendererprogress_p.h>
11 * Copyright 2004 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.
28 #include <gtk/gtkcellrendererprogress.h>
33 Glib::PropertyProxy_Base CellRendererProgress::_property_renderable()
35 return _property_renderable();
44 } // anonymous namespace
50 Gtk::CellRendererProgress* wrap(GtkCellRendererProgress* object, bool take_copy)
52 return dynamic_cast<Gtk::CellRendererProgress *> (Glib::wrap_auto ((GObject*)(object), take_copy));
55 } /* namespace Glib */
61 /* The *_Class implementation: */
63 const Glib::Class& CellRendererProgress_Class::init()
65 if(!gtype_) // create the GType if necessary
67 // Glib::Class has to know the class init function to clone custom types.
68 class_init_func_ = &CellRendererProgress_Class::class_init_function;
70 // This is actually just optimized away, apparently with no harm.
71 // Make sure that the parent type has been created.
72 //CppClassParent::CppObjectType::get_type();
74 // Create the wrapper type, with the same class/instance size as the base type.
75 register_derived_type(gtk_cell_renderer_progress_get_type());
77 // Add derived versions of interfaces, if the C type implements any interfaces:
83 void CellRendererProgress_Class::class_init_function(void* g_class, void* class_data)
85 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
86 CppClassParent::class_init_function(klass, class_data);
91 Glib::ObjectBase* CellRendererProgress_Class::wrap_new(GObject* o)
93 return manage(new CellRendererProgress((GtkCellRendererProgress*)(o)));
98 /* The implementation: */
100 CellRendererProgress::CellRendererProgress(const Glib::ConstructParams& construct_params)
102 Gtk::CellRenderer(construct_params)
106 CellRendererProgress::CellRendererProgress(GtkCellRendererProgress* castitem)
108 Gtk::CellRenderer((GtkCellRenderer*)(castitem))
112 CellRendererProgress::~CellRendererProgress()
117 CellRendererProgress::CppClassType CellRendererProgress::cellrendererprogress_class_; // initialize static member
119 GType CellRendererProgress::get_type()
121 return cellrendererprogress_class_.init().get_type();
124 GType CellRendererProgress::get_base_type()
126 return gtk_cell_renderer_progress_get_type();
130 CellRendererProgress::CellRendererProgress()
132 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
133 Gtk::CellRenderer(Glib::ConstructParams(cellrendererprogress_class_.init()))
138 Glib::PropertyProxy<int> CellRendererProgress::property_value()
140 return Glib::PropertyProxy<int>(this, "value");
143 Glib::PropertyProxy_ReadOnly<int> CellRendererProgress::property_value() const
145 return Glib::PropertyProxy_ReadOnly<int>(this, "value");
148 Glib::PropertyProxy<Glib::ustring> CellRendererProgress::property_text()
150 return Glib::PropertyProxy<Glib::ustring>(this, "text");
153 Glib::PropertyProxy_ReadOnly<Glib::ustring> CellRendererProgress::property_text() const
155 return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "text");