Install ardour as a binary, a script and a set of shared
[ardour.git] / libs / gtkmm2 / gtk / gtkmm / cellrendererprogress.cc
1 // Generated by gtkmmproc -- DO NOT MODIFY!
2
3 #include <gtkmm/cellrendererprogress.h>
4 #include <gtkmm/private/cellrendererprogress_p.h>
5
6 // -*- c++ -*-
7 /* $Id$ */
8
9 /* 
10  *
11  * Copyright 2004 The gtkmm Development Team
12  *
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.
17  *
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.
22  *
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.
26  */
27  
28 #include <gtk/gtkcellrendererprogress.h>
29
30 namespace Gtk
31 {
32
33 Glib::PropertyProxy_Base CellRendererProgress::_property_renderable()
34 {
35   return _property_renderable();
36 }
37
38
39 } // namespace Gtk
40
41
42 namespace
43 {
44 } // anonymous namespace
45
46
47 namespace Glib
48 {
49
50 Gtk::CellRendererProgress* wrap(GtkCellRendererProgress* object, bool take_copy)
51 {
52   return dynamic_cast<Gtk::CellRendererProgress *> (Glib::wrap_auto ((GObject*)(object), take_copy));
53 }
54
55 } /* namespace Glib */
56
57 namespace Gtk
58 {
59
60
61 /* The *_Class implementation: */
62
63 const Glib::Class& CellRendererProgress_Class::init()
64 {
65   if(!gtype_) // create the GType if necessary
66   {
67     // Glib::Class has to know the class init function to clone custom types.
68     class_init_func_ = &CellRendererProgress_Class::class_init_function;
69
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();
73
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());
76
77     // Add derived versions of interfaces, if the C type implements any interfaces:
78   }
79
80   return *this;
81 }
82
83 void CellRendererProgress_Class::class_init_function(void* g_class, void* class_data)
84 {
85   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
86   CppClassParent::class_init_function(klass, class_data);
87
88 }
89
90
91 Glib::ObjectBase* CellRendererProgress_Class::wrap_new(GObject* o)
92 {
93   return manage(new CellRendererProgress((GtkCellRendererProgress*)(o)));
94
95 }
96
97
98 /* The implementation: */
99
100 CellRendererProgress::CellRendererProgress(const Glib::ConstructParams& construct_params)
101 :
102   Gtk::CellRenderer(construct_params)
103 {
104   }
105
106 CellRendererProgress::CellRendererProgress(GtkCellRendererProgress* castitem)
107 :
108   Gtk::CellRenderer((GtkCellRenderer*)(castitem))
109 {
110   }
111
112 CellRendererProgress::~CellRendererProgress()
113 {
114   destroy_();
115 }
116
117 CellRendererProgress::CppClassType CellRendererProgress::cellrendererprogress_class_; // initialize static member
118
119 GType CellRendererProgress::get_type()
120 {
121   return cellrendererprogress_class_.init().get_type();
122 }
123
124 GType CellRendererProgress::get_base_type()
125 {
126   return gtk_cell_renderer_progress_get_type();
127 }
128
129
130 CellRendererProgress::CellRendererProgress()
131 :
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()))
134 {
135   }
136
137
138 Glib::PropertyProxy<int> CellRendererProgress::property_value() 
139 {
140   return Glib::PropertyProxy<int>(this, "value");
141 }
142
143 Glib::PropertyProxy_ReadOnly<int> CellRendererProgress::property_value() const
144 {
145   return Glib::PropertyProxy_ReadOnly<int>(this, "value");
146 }
147
148 Glib::PropertyProxy<Glib::ustring> CellRendererProgress::property_text() 
149 {
150   return Glib::PropertyProxy<Glib::ustring>(this, "text");
151 }
152
153 Glib::PropertyProxy_ReadOnly<Glib::ustring> CellRendererProgress::property_text() const
154 {
155   return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "text");
156 }
157
158
159 } // namespace Gtk
160
161