1 // Generated by gtkmmproc -- DO NOT MODIFY!
4 #include <gtkmm/cellrenderer.h>
5 #include <gtkmm/private/cellrenderer_p.h>
7 #include <gtk/gtktypebuiltins.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.
28 #include <gtk/gtkcellrenderer.h>
33 void CellRenderer::get_size(Widget& widget, int& x_offset, int& y_offset, int& width, int& height) const
35 gtk_cell_renderer_get_size(const_cast<GtkCellRenderer*>(gobj()), widget.gobj(), 0, &x_offset, &y_offset, &width, &height);
38 #ifdef GLIBMM_PROPERTIES_ENABLED
39 Glib::PropertyProxy_Base CellRenderer::_property_renderable()
41 g_assert_not_reached();
42 return Glib::PropertyProxy<int>(0, 0); // shut up warnings
45 Glib::ustring CellRenderer::_property_renderable()
47 g_assert_not_reached();
48 return Glib::ustring();
50 #endif //GLIBMM_PROPERTIES_ENABLED
59 static const Glib::SignalProxyInfo CellRenderer_signal_editing_canceled_info =
62 (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
63 (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
67 static void CellRenderer_signal_editing_started_callback(GtkCellRenderer* self, GtkCellEditable* p0,const gchar* p1,void* data)
70 typedef sigc::slot< void,CellEditable*,const Glib::ustring& > SlotType;
72 // Do not try to call a signal on a disassociated wrapper.
73 if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
75 #ifdef GLIBMM_EXCEPTIONS_ENABLED
78 #endif //GLIBMM_EXCEPTIONS_ENABLED
79 if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
80 (*static_cast<SlotType*>(slot))(dynamic_cast<CellEditable*>(Glib::wrap_auto((GObject*)(p0), false))
81 , Glib::convert_const_gchar_ptr_to_ustring(p1)
83 #ifdef GLIBMM_EXCEPTIONS_ENABLED
87 Glib::exception_handlers_invoke();
89 #endif //GLIBMM_EXCEPTIONS_ENABLED
93 static const Glib::SignalProxyInfo CellRenderer_signal_editing_started_info =
96 (GCallback) &CellRenderer_signal_editing_started_callback,
97 (GCallback) &CellRenderer_signal_editing_started_callback
101 } // anonymous namespace
104 GType Glib::Value<Gtk::CellRendererState>::value_type()
106 return gtk_cell_renderer_state_get_type();
110 GType Glib::Value<Gtk::CellRendererMode>::value_type()
112 return gtk_cell_renderer_mode_get_type();
119 Gtk::CellRenderer* wrap(GtkCellRenderer* object, bool take_copy)
121 return dynamic_cast<Gtk::CellRenderer *> (Glib::wrap_auto ((GObject*)(object), take_copy));
124 } /* namespace Glib */
130 /* The *_Class implementation: */
132 const Glib::Class& CellRenderer_Class::init()
134 if(!gtype_) // create the GType if necessary
136 // Glib::Class has to know the class init function to clone custom types.
137 class_init_func_ = &CellRenderer_Class::class_init_function;
139 // This is actually just optimized away, apparently with no harm.
140 // Make sure that the parent type has been created.
141 //CppClassParent::CppObjectType::get_type();
143 // Create the wrapper type, with the same class/instance size as the base type.
144 register_derived_type(gtk_cell_renderer_get_type());
146 // Add derived versions of interfaces, if the C type implements any interfaces:
152 void CellRenderer_Class::class_init_function(void* g_class, void* class_data)
154 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
155 CppClassParent::class_init_function(klass, class_data);
157 #ifdef GLIBMM_VFUNCS_ENABLED
158 klass->get_size = &get_size_vfunc_callback;
159 klass->render = &render_vfunc_callback;
160 klass->activate = &activate_vfunc_callback;
161 klass->start_editing = &start_editing_vfunc_callback;
162 #endif //GLIBMM_VFUNCS_ENABLED
164 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
165 klass->editing_canceled = &editing_canceled_callback;
166 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
169 #ifdef GLIBMM_VFUNCS_ENABLED
170 void CellRenderer_Class::get_size_vfunc_callback(GtkCellRenderer* self, GtkWidget* widget, GdkRectangle* cell_area, gint* x_offset, gint* y_offset, gint* width, gint* height)
172 Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
173 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
175 // Non-gtkmmproc-generated custom classes implicitly call the default
176 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
177 // generated classes can use this optimisation, which avoids the unnecessary
178 // parameter conversions if there is no possibility of the virtual function
180 if(obj_base && obj_base->is_derived_())
182 CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
183 if(obj) // This can be NULL during destruction.
185 #ifdef GLIBMM_EXCEPTIONS_ENABLED
186 try // Trap C++ exceptions which would normally be lost because this is a C callback.
188 #endif //GLIBMM_EXCEPTIONS_ENABLED
189 // Call the virtual member method, which derived classes might override.
190 obj->get_size_vfunc(*Glib::wrap(widget)
191 , &Glib::wrap(cell_area)
198 #ifdef GLIBMM_EXCEPTIONS_ENABLED
202 Glib::exception_handlers_invoke();
204 #endif //GLIBMM_EXCEPTIONS_ENABLED
208 BaseClassType *const base = static_cast<BaseClassType*>(
209 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
212 // Call the original underlying C function:
213 if(base && base->get_size)
214 (*base->get_size)(self, widget, cell_area, x_offset, y_offset, width, height);
217 void CellRenderer_Class::render_vfunc_callback(GtkCellRenderer* self, GdkDrawable* window, GtkWidget* widget, GdkRectangle* background_area, GdkRectangle* cell_area, GdkRectangle* expose_area, GtkCellRendererState flags)
219 Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
220 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
222 // Non-gtkmmproc-generated custom classes implicitly call the default
223 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
224 // generated classes can use this optimisation, which avoids the unnecessary
225 // parameter conversions if there is no possibility of the virtual function
227 if(obj_base && obj_base->is_derived_())
229 CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
230 if(obj) // This can be NULL during destruction.
232 #ifdef GLIBMM_EXCEPTIONS_ENABLED
233 try // Trap C++ exceptions which would normally be lost because this is a C callback.
235 #endif //GLIBMM_EXCEPTIONS_ENABLED
236 // Call the virtual member method, which derived classes might override.
237 obj->render_vfunc(Glib::wrap(window, true)
238 , *Glib::wrap(widget)
239 , Glib::wrap(background_area)
240 , Glib::wrap(cell_area)
241 , Glib::wrap(expose_area)
242 , ((CellRendererState)(flags))
245 #ifdef GLIBMM_EXCEPTIONS_ENABLED
249 Glib::exception_handlers_invoke();
251 #endif //GLIBMM_EXCEPTIONS_ENABLED
255 BaseClassType *const base = static_cast<BaseClassType*>(
256 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
259 // Call the original underlying C function:
260 if(base && base->render)
261 (*base->render)(self, window, widget, background_area, cell_area, expose_area, flags);
264 gboolean CellRenderer_Class::activate_vfunc_callback(GtkCellRenderer* self, GdkEvent* event, GtkWidget* widget, const gchar* path, GdkRectangle* background_area, GdkRectangle* cell_area, GtkCellRendererState flags)
266 Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
267 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
269 // Non-gtkmmproc-generated custom classes implicitly call the default
270 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
271 // generated classes can use this optimisation, which avoids the unnecessary
272 // parameter conversions if there is no possibility of the virtual function
274 if(obj_base && obj_base->is_derived_())
276 CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
277 if(obj) // This can be NULL during destruction.
279 #ifdef GLIBMM_EXCEPTIONS_ENABLED
280 try // Trap C++ exceptions which would normally be lost because this is a C callback.
282 #endif //GLIBMM_EXCEPTIONS_ENABLED
283 // Call the virtual member method, which derived classes might override.
284 return static_cast<int>(obj->activate_vfunc(event, *Glib::wrap(widget)
285 , Glib::convert_const_gchar_ptr_to_ustring(path)
286 , Glib::wrap(background_area)
287 , Glib::wrap(cell_area)
288 , ((CellRendererState)(flags))
290 #ifdef GLIBMM_EXCEPTIONS_ENABLED
294 Glib::exception_handlers_invoke();
296 #endif //GLIBMM_EXCEPTIONS_ENABLED
300 BaseClassType *const base = static_cast<BaseClassType*>(
301 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
304 // Call the original underlying C function:
305 if(base && base->activate)
306 return (*base->activate)(self, event, widget, path, background_area, cell_area, flags);
309 typedef gboolean RType;
312 GtkCellEditable* CellRenderer_Class::start_editing_vfunc_callback(GtkCellRenderer* self, GdkEvent* event, GtkWidget* widget, const gchar* path, GdkRectangle* background_area, GdkRectangle* cell_area, GtkCellRendererState flags)
314 Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
315 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
317 // Non-gtkmmproc-generated custom classes implicitly call the default
318 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
319 // generated classes can use this optimisation, which avoids the unnecessary
320 // parameter conversions if there is no possibility of the virtual function
322 if(obj_base && obj_base->is_derived_())
324 CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
325 if(obj) // This can be NULL during destruction.
327 #ifdef GLIBMM_EXCEPTIONS_ENABLED
328 try // Trap C++ exceptions which would normally be lost because this is a C callback.
330 #endif //GLIBMM_EXCEPTIONS_ENABLED
331 // Call the virtual member method, which derived classes might override.
332 return Glib::unwrap(obj->start_editing_vfunc(event, *Glib::wrap(widget)
333 , Glib::convert_const_gchar_ptr_to_ustring(path)
334 , Glib::wrap(background_area)
335 , Glib::wrap(cell_area)
336 , ((CellRendererState)(flags))
338 #ifdef GLIBMM_EXCEPTIONS_ENABLED
342 Glib::exception_handlers_invoke();
344 #endif //GLIBMM_EXCEPTIONS_ENABLED
348 BaseClassType *const base = static_cast<BaseClassType*>(
349 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
352 // Call the original underlying C function:
353 if(base && base->start_editing)
354 return (*base->start_editing)(self, event, widget, path, background_area, cell_area, flags);
357 typedef GtkCellEditable* RType;
360 #endif //GLIBMM_VFUNCS_ENABLED
362 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
363 void CellRenderer_Class::editing_canceled_callback(GtkCellRenderer* self)
365 Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
366 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
368 // Non-gtkmmproc-generated custom classes implicitly call the default
369 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
370 // generated classes can use this optimisation, which avoids the unnecessary
371 // parameter conversions if there is no possibility of the virtual function
373 if(obj_base && obj_base->is_derived_())
375 CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
376 if(obj) // This can be NULL during destruction.
378 #ifdef GLIBMM_EXCEPTIONS_ENABLED
379 try // Trap C++ exceptions which would normally be lost because this is a C callback.
381 #endif //GLIBMM_EXCEPTIONS_ENABLED
382 // Call the virtual member method, which derived classes might override.
383 obj->on_editing_canceled();
385 #ifdef GLIBMM_EXCEPTIONS_ENABLED
389 Glib::exception_handlers_invoke();
391 #endif //GLIBMM_EXCEPTIONS_ENABLED
395 BaseClassType *const base = static_cast<BaseClassType*>(
396 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
399 // Call the original underlying C function:
400 if(base && base->editing_canceled)
401 (*base->editing_canceled)(self);
403 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
406 Glib::ObjectBase* CellRenderer_Class::wrap_new(GObject* o)
408 return manage(new CellRenderer((GtkCellRenderer*)(o)));
413 /* The implementation: */
415 CellRenderer::CellRenderer(const Glib::ConstructParams& construct_params)
417 Gtk::Object(construct_params)
421 CellRenderer::CellRenderer(GtkCellRenderer* castitem)
423 Gtk::Object((GtkObject*)(castitem))
427 CellRenderer::~CellRenderer()
432 CellRenderer::CppClassType CellRenderer::cellrenderer_class_; // initialize static member
434 GType CellRenderer::get_type()
436 return cellrenderer_class_.init().get_type();
439 GType CellRenderer::get_base_type()
441 return gtk_cell_renderer_get_type();
445 void CellRenderer::get_size(Widget& widget, const Gdk::Rectangle& cell_area, int& x_offset, int& y_offset, int& width, int& height) const
447 gtk_cell_renderer_get_size(const_cast<GtkCellRenderer*>(gobj()), (widget).gobj(), const_cast<GdkRectangle*>(cell_area.gobj()), &x_offset, &y_offset, &width, &height);
450 void CellRenderer::render(const Glib::RefPtr<Gdk::Window>& window, Widget& widget, const Gdk::Rectangle& background_area, const Gdk::Rectangle& cell_area, const Gdk::Rectangle& expose_area, CellRendererState flags)
452 gtk_cell_renderer_render(gobj(), Glib::unwrap(window), (widget).gobj(), const_cast<GdkRectangle*>(background_area.gobj()), const_cast<GdkRectangle*>(cell_area.gobj()), const_cast<GdkRectangle*>(expose_area.gobj()), ((GtkCellRendererState)(flags)));
455 bool CellRenderer::activate(GdkEvent* event, Widget& widget, const Glib::ustring& path, const Gdk::Rectangle& background_area, const Gdk::Rectangle& cell_area, CellRendererState flags)
457 return gtk_cell_renderer_activate(gobj(), event, (widget).gobj(), path.c_str(), const_cast<GdkRectangle*>(background_area.gobj()), const_cast<GdkRectangle*>(cell_area.gobj()), ((GtkCellRendererState)(flags)));
460 CellEditable* CellRenderer::start_editing(GdkEvent* event, Widget& widget, const Glib::ustring& path, const Gdk::Rectangle& background_area, const Gdk::Rectangle& cell_area, CellRendererState flags)
462 return dynamic_cast<CellEditable*>(Glib::wrap_auto((GObject*)(gtk_cell_renderer_start_editing(gobj(), event, (widget).gobj(), path.c_str(), const_cast<GdkRectangle*>(background_area.gobj()), const_cast<GdkRectangle*>(cell_area.gobj()), ((GtkCellRendererState)(flags)))), false));
465 void CellRenderer::set_fixed_size(int width, int height)
467 gtk_cell_renderer_set_fixed_size(gobj(), width, height);
470 void CellRenderer::get_fixed_size(int& width, int& height) const
472 gtk_cell_renderer_get_fixed_size(const_cast<GtkCellRenderer*>(gobj()), &width, &height);
475 #ifndef GTKMM_DISABLE_DEPRECATED
477 void CellRenderer::editing_canceled()
479 gtk_cell_renderer_editing_canceled(gobj());
482 #endif // GTKMM_DISABLE_DEPRECATED
484 void CellRenderer::stop_editing(bool canceled)
486 gtk_cell_renderer_stop_editing(gobj(), static_cast<int>(canceled));
489 CellRenderer::CellRenderer()
491 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
493 Gtk::Object(Glib::ConstructParams(cellrenderer_class_.init()))
498 Glib::SignalProxy0< void > CellRenderer::signal_editing_canceled()
500 return Glib::SignalProxy0< void >(this, &CellRenderer_signal_editing_canceled_info);
504 Glib::SignalProxy2< void,CellEditable*,const Glib::ustring& > CellRenderer::signal_editing_started()
506 return Glib::SignalProxy2< void,CellEditable*,const Glib::ustring& >(this, &CellRenderer_signal_editing_started_info);
510 #ifdef GLIBMM_PROPERTIES_ENABLED
511 Glib::PropertyProxy<CellRendererMode> CellRenderer::property_mode()
513 return Glib::PropertyProxy<CellRendererMode>(this, "mode");
515 #endif //GLIBMM_PROPERTIES_ENABLED
517 #ifdef GLIBMM_PROPERTIES_ENABLED
518 Glib::PropertyProxy_ReadOnly<CellRendererMode> CellRenderer::property_mode() const
520 return Glib::PropertyProxy_ReadOnly<CellRendererMode>(this, "mode");
522 #endif //GLIBMM_PROPERTIES_ENABLED
524 #ifdef GLIBMM_PROPERTIES_ENABLED
525 Glib::PropertyProxy<bool> CellRenderer::property_visible()
527 return Glib::PropertyProxy<bool>(this, "visible");
529 #endif //GLIBMM_PROPERTIES_ENABLED
531 #ifdef GLIBMM_PROPERTIES_ENABLED
532 Glib::PropertyProxy_ReadOnly<bool> CellRenderer::property_visible() const
534 return Glib::PropertyProxy_ReadOnly<bool>(this, "visible");
536 #endif //GLIBMM_PROPERTIES_ENABLED
538 #ifdef GLIBMM_PROPERTIES_ENABLED
539 Glib::PropertyProxy<bool> CellRenderer::property_sensitive()
541 return Glib::PropertyProxy<bool>(this, "sensitive");
543 #endif //GLIBMM_PROPERTIES_ENABLED
545 #ifdef GLIBMM_PROPERTIES_ENABLED
546 Glib::PropertyProxy_ReadOnly<bool> CellRenderer::property_sensitive() const
548 return Glib::PropertyProxy_ReadOnly<bool>(this, "sensitive");
550 #endif //GLIBMM_PROPERTIES_ENABLED
552 #ifdef GLIBMM_PROPERTIES_ENABLED
553 Glib::PropertyProxy<float> CellRenderer::property_xalign()
555 return Glib::PropertyProxy<float>(this, "xalign");
557 #endif //GLIBMM_PROPERTIES_ENABLED
559 #ifdef GLIBMM_PROPERTIES_ENABLED
560 Glib::PropertyProxy_ReadOnly<float> CellRenderer::property_xalign() const
562 return Glib::PropertyProxy_ReadOnly<float>(this, "xalign");
564 #endif //GLIBMM_PROPERTIES_ENABLED
566 #ifdef GLIBMM_PROPERTIES_ENABLED
567 Glib::PropertyProxy<float> CellRenderer::property_yalign()
569 return Glib::PropertyProxy<float>(this, "yalign");
571 #endif //GLIBMM_PROPERTIES_ENABLED
573 #ifdef GLIBMM_PROPERTIES_ENABLED
574 Glib::PropertyProxy_ReadOnly<float> CellRenderer::property_yalign() const
576 return Glib::PropertyProxy_ReadOnly<float>(this, "yalign");
578 #endif //GLIBMM_PROPERTIES_ENABLED
580 #ifdef GLIBMM_PROPERTIES_ENABLED
581 Glib::PropertyProxy<unsigned int> CellRenderer::property_xpad()
583 return Glib::PropertyProxy<unsigned int>(this, "xpad");
585 #endif //GLIBMM_PROPERTIES_ENABLED
587 #ifdef GLIBMM_PROPERTIES_ENABLED
588 Glib::PropertyProxy_ReadOnly<unsigned int> CellRenderer::property_xpad() const
590 return Glib::PropertyProxy_ReadOnly<unsigned int>(this, "xpad");
592 #endif //GLIBMM_PROPERTIES_ENABLED
594 #ifdef GLIBMM_PROPERTIES_ENABLED
595 Glib::PropertyProxy<unsigned int> CellRenderer::property_ypad()
597 return Glib::PropertyProxy<unsigned int>(this, "ypad");
599 #endif //GLIBMM_PROPERTIES_ENABLED
601 #ifdef GLIBMM_PROPERTIES_ENABLED
602 Glib::PropertyProxy_ReadOnly<unsigned int> CellRenderer::property_ypad() const
604 return Glib::PropertyProxy_ReadOnly<unsigned int>(this, "ypad");
606 #endif //GLIBMM_PROPERTIES_ENABLED
608 #ifdef GLIBMM_PROPERTIES_ENABLED
609 Glib::PropertyProxy<int> CellRenderer::property_width()
611 return Glib::PropertyProxy<int>(this, "width");
613 #endif //GLIBMM_PROPERTIES_ENABLED
615 #ifdef GLIBMM_PROPERTIES_ENABLED
616 Glib::PropertyProxy_ReadOnly<int> CellRenderer::property_width() const
618 return Glib::PropertyProxy_ReadOnly<int>(this, "width");
620 #endif //GLIBMM_PROPERTIES_ENABLED
622 #ifdef GLIBMM_PROPERTIES_ENABLED
623 Glib::PropertyProxy<int> CellRenderer::property_height()
625 return Glib::PropertyProxy<int>(this, "height");
627 #endif //GLIBMM_PROPERTIES_ENABLED
629 #ifdef GLIBMM_PROPERTIES_ENABLED
630 Glib::PropertyProxy_ReadOnly<int> CellRenderer::property_height() const
632 return Glib::PropertyProxy_ReadOnly<int>(this, "height");
634 #endif //GLIBMM_PROPERTIES_ENABLED
636 #ifdef GLIBMM_PROPERTIES_ENABLED
637 Glib::PropertyProxy<bool> CellRenderer::property_is_expander()
639 return Glib::PropertyProxy<bool>(this, "is-expander");
641 #endif //GLIBMM_PROPERTIES_ENABLED
643 #ifdef GLIBMM_PROPERTIES_ENABLED
644 Glib::PropertyProxy_ReadOnly<bool> CellRenderer::property_is_expander() const
646 return Glib::PropertyProxy_ReadOnly<bool>(this, "is-expander");
648 #endif //GLIBMM_PROPERTIES_ENABLED
650 #ifdef GLIBMM_PROPERTIES_ENABLED
651 Glib::PropertyProxy<bool> CellRenderer::property_is_expanded()
653 return Glib::PropertyProxy<bool>(this, "is-expanded");
655 #endif //GLIBMM_PROPERTIES_ENABLED
657 #ifdef GLIBMM_PROPERTIES_ENABLED
658 Glib::PropertyProxy_ReadOnly<bool> CellRenderer::property_is_expanded() const
660 return Glib::PropertyProxy_ReadOnly<bool>(this, "is-expanded");
662 #endif //GLIBMM_PROPERTIES_ENABLED
664 #ifdef GLIBMM_PROPERTIES_ENABLED
665 Glib::PropertyProxy_WriteOnly<Glib::ustring> CellRenderer::property_cell_background()
667 return Glib::PropertyProxy_WriteOnly<Glib::ustring>(this, "cell-background");
669 #endif //GLIBMM_PROPERTIES_ENABLED
671 #ifdef GLIBMM_PROPERTIES_ENABLED
672 Glib::PropertyProxy<Gdk::Color> CellRenderer::property_cell_background_gdk()
674 return Glib::PropertyProxy<Gdk::Color>(this, "cell-background-gdk");
676 #endif //GLIBMM_PROPERTIES_ENABLED
678 #ifdef GLIBMM_PROPERTIES_ENABLED
679 Glib::PropertyProxy_ReadOnly<Gdk::Color> CellRenderer::property_cell_background_gdk() const
681 return Glib::PropertyProxy_ReadOnly<Gdk::Color>(this, "cell-background-gdk");
683 #endif //GLIBMM_PROPERTIES_ENABLED
685 #ifdef GLIBMM_PROPERTIES_ENABLED
686 Glib::PropertyProxy<bool> CellRenderer::property_cell_background_set()
688 return Glib::PropertyProxy<bool>(this, "cell-background-set");
690 #endif //GLIBMM_PROPERTIES_ENABLED
692 #ifdef GLIBMM_PROPERTIES_ENABLED
693 Glib::PropertyProxy_ReadOnly<bool> CellRenderer::property_cell_background_set() const
695 return Glib::PropertyProxy_ReadOnly<bool>(this, "cell-background-set");
697 #endif //GLIBMM_PROPERTIES_ENABLED
700 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
701 void Gtk::CellRenderer::on_editing_canceled()
703 BaseClassType *const base = static_cast<BaseClassType*>(
704 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
707 if(base && base->editing_canceled)
708 (*base->editing_canceled)(gobj());
710 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
712 #ifdef GLIBMM_VFUNCS_ENABLED
713 void Gtk::CellRenderer::get_size_vfunc(Widget& widget, const Gdk::Rectangle* cell_area, int* x_offset, int* y_offset, int* width, int* height) const
715 BaseClassType *const base = static_cast<BaseClassType*>(
716 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
719 if(base && base->get_size)
720 (*base->get_size)(const_cast<GtkCellRenderer*>(gobj()),(widget).gobj(),Glib::unwrap(const_cast<Gdk::Rectangle*>(cell_area)),x_offset,y_offset,width,height);
722 void Gtk::CellRenderer::render_vfunc(const Glib::RefPtr<Gdk::Drawable>& window, Widget& widget, const Gdk::Rectangle& background_area, const Gdk::Rectangle& cell_area, const Gdk::Rectangle& expose_area, CellRendererState flags)
724 BaseClassType *const base = static_cast<BaseClassType*>(
725 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
728 if(base && base->render)
729 (*base->render)(gobj(),Glib::unwrap(window),(widget).gobj(),const_cast<GdkRectangle*>(background_area.gobj()),const_cast<GdkRectangle*>(cell_area.gobj()),const_cast<GdkRectangle*>(expose_area.gobj()),((GtkCellRendererState)(flags)));
731 bool Gtk::CellRenderer::activate_vfunc(GdkEvent* event, Widget& widget, const Glib::ustring& path, const Gdk::Rectangle& background_area, const Gdk::Rectangle& cell_area, CellRendererState flags)
733 BaseClassType *const base = static_cast<BaseClassType*>(
734 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
737 if(base && base->activate)
738 return (*base->activate)(gobj(),event,(widget).gobj(),path.c_str(),const_cast<GdkRectangle*>(background_area.gobj()),const_cast<GdkRectangle*>(cell_area.gobj()),((GtkCellRendererState)(flags)));
743 CellEditable* Gtk::CellRenderer::start_editing_vfunc(GdkEvent* event, Widget& widget, const Glib::ustring& path, const Gdk::Rectangle& background_area, const Gdk::Rectangle& cell_area, CellRendererState flags)
745 BaseClassType *const base = static_cast<BaseClassType*>(
746 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
749 if(base && base->start_editing)
750 return dynamic_cast<CellEditable*>(Glib::wrap_auto((GObject*)((*base->start_editing)(gobj(),event,(widget).gobj(),path.c_str(),const_cast<GdkRectangle*>(background_area.gobj()),const_cast<GdkRectangle*>(cell_area.gobj()),((GtkCellRendererState)(flags)))), false));
752 typedef CellEditable* RType;
755 #endif //GLIBMM_VFUNCS_ENABLED