Initial revision
[ardour.git] / libs / gtkmm2 / gtk / gtkmm / cellrendererpixbuf.cc
1 // Generated by gtkmmproc -- DO NOT MODIFY!
2
3 #include <gtkmm/cellrendererpixbuf.h>
4 #include <gtkmm/private/cellrendererpixbuf_p.h>
5
6 // -*- c++ -*-
7 /* $Id$ */
8
9 /* 
10  *
11  * Copyright 1998-2002 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 #include <gtk/gtkcellrendererpixbuf.h>
28
29 namespace Gtk
30 {
31
32 Glib::PropertyProxy_Base CellRendererPixbuf::_property_renderable()
33 {
34   return property_pixbuf();
35 }
36
37 } //namespace Gtk
38
39
40 namespace
41 {
42 } // anonymous namespace
43
44
45 namespace Glib
46 {
47
48 Gtk::CellRendererPixbuf* wrap(GtkCellRendererPixbuf* object, bool take_copy)
49 {
50   return dynamic_cast<Gtk::CellRendererPixbuf *> (Glib::wrap_auto ((GObject*)(object), take_copy));
51 }
52
53 } /* namespace Glib */
54
55 namespace Gtk
56 {
57
58
59 /* The *_Class implementation: */
60
61 const Glib::Class& CellRendererPixbuf_Class::init()
62 {
63   if(!gtype_) // create the GType if necessary
64   {
65     // Glib::Class has to know the class init function to clone custom types.
66     class_init_func_ = &CellRendererPixbuf_Class::class_init_function;
67
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();
71
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());
74
75     // Add derived versions of interfaces, if the C type implements any interfaces:
76   }
77
78   return *this;
79 }
80
81 void CellRendererPixbuf_Class::class_init_function(void* g_class, void* class_data)
82 {
83   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
84   CppClassParent::class_init_function(klass, class_data);
85
86 }
87
88
89 Glib::ObjectBase* CellRendererPixbuf_Class::wrap_new(GObject* o)
90 {
91   return manage(new CellRendererPixbuf((GtkCellRendererPixbuf*)(o)));
92
93 }
94
95
96 /* The implementation: */
97
98 CellRendererPixbuf::CellRendererPixbuf(const Glib::ConstructParams& construct_params)
99 :
100   Gtk::CellRenderer(construct_params)
101 {
102   }
103
104 CellRendererPixbuf::CellRendererPixbuf(GtkCellRendererPixbuf* castitem)
105 :
106   Gtk::CellRenderer((GtkCellRenderer*)(castitem))
107 {
108   }
109
110 CellRendererPixbuf::~CellRendererPixbuf()
111 {
112   destroy_();
113 }
114
115 CellRendererPixbuf::CppClassType CellRendererPixbuf::cellrendererpixbuf_class_; // initialize static member
116
117 GType CellRendererPixbuf::get_type()
118 {
119   return cellrendererpixbuf_class_.init().get_type();
120 }
121
122 GType CellRendererPixbuf::get_base_type()
123 {
124   return gtk_cell_renderer_pixbuf_get_type();
125 }
126
127
128 CellRendererPixbuf::CellRendererPixbuf()
129 :
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()))
132 {
133   }
134
135
136 Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > CellRendererPixbuf::property_pixbuf() 
137 {
138   return Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> >(this, "pixbuf");
139 }
140
141 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> > CellRendererPixbuf::property_pixbuf() const
142 {
143   return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> >(this, "pixbuf");
144 }
145
146 Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > CellRendererPixbuf::property_pixbuf_expander_open() 
147 {
148   return Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> >(this, "pixbuf-expander-open");
149 }
150
151 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> > CellRendererPixbuf::property_pixbuf_expander_open() const
152 {
153   return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> >(this, "pixbuf-expander-open");
154 }
155
156 Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > CellRendererPixbuf::property_pixbuf_expander_closed() 
157 {
158   return Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> >(this, "pixbuf-expander-closed");
159 }
160
161 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> > CellRendererPixbuf::property_pixbuf_expander_closed() const
162 {
163   return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> >(this, "pixbuf-expander-closed");
164 }
165
166 Glib::PropertyProxy<Glib::ustring> CellRendererPixbuf::property_stock_id() 
167 {
168   return Glib::PropertyProxy<Glib::ustring>(this, "stock-id");
169 }
170
171 Glib::PropertyProxy_ReadOnly<Glib::ustring> CellRendererPixbuf::property_stock_id() const
172 {
173   return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "stock-id");
174 }
175
176 Glib::PropertyProxy<guint> CellRendererPixbuf::property_stock_size() 
177 {
178   return Glib::PropertyProxy<guint>(this, "stock-size");
179 }
180
181 Glib::PropertyProxy_ReadOnly<guint> CellRendererPixbuf::property_stock_size() const
182 {
183   return Glib::PropertyProxy_ReadOnly<guint>(this, "stock-size");
184 }
185
186 Glib::PropertyProxy<Glib::ustring> CellRendererPixbuf::property_stock_detail() 
187 {
188   return Glib::PropertyProxy<Glib::ustring>(this, "stock-detail");
189 }
190
191 Glib::PropertyProxy_ReadOnly<Glib::ustring> CellRendererPixbuf::property_stock_detail() const
192 {
193   return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "stock-detail");
194 }
195
196
197 } // namespace Gtk
198
199