1 // Generated by gtkmmproc -- DO NOT MODIFY!
4 #include <gtkmm/cellrenderertext.h>
5 #include <gtkmm/private/cellrenderertext_p.h>
12 * Copyright 1998-2002 The gtkmm Development Team
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Library General Public
16 * License as published by the Free Software Foundation; either
17 * version 2 of the License, or (at your option) any later version.
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Library General Public License for more details.
24 * You should have received a copy of the GNU Library General Public
25 * License along with this library; if not, write to the Free
26 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 #include <gtk/gtkcellrenderertext.h>
33 #ifdef GLIBMM_PROPERTIES_ENABLED
34 Glib::PropertyProxy_Base CellRendererText::_property_renderable()
36 return property_text();
39 Glib::ustring CellRendererText::_property_renderable()
43 #endif //#GLIBMM_PROPERTIES_ENABLED
45 void CellRendererText::edited(const Glib::ustring& path, const Glib::ustring& new_text)
47 g_signal_emit_by_name(gobj(), "edited", path.c_str(), new_text.c_str());
57 static void CellRendererText_signal_edited_callback(GtkCellRendererText* self, const gchar* p0,const gchar* p1,void* data)
60 typedef sigc::slot< void,const Glib::ustring&,const Glib::ustring& > SlotType;
62 // Do not try to call a signal on a disassociated wrapper.
63 if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
65 #ifdef GLIBMM_EXCEPTIONS_ENABLED
68 #endif //GLIBMM_EXCEPTIONS_ENABLED
69 if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
70 (*static_cast<SlotType*>(slot))(Glib::convert_const_gchar_ptr_to_ustring(p0)
71 , Glib::convert_const_gchar_ptr_to_ustring(p1)
73 #ifdef GLIBMM_EXCEPTIONS_ENABLED
77 Glib::exception_handlers_invoke();
79 #endif //GLIBMM_EXCEPTIONS_ENABLED
83 static const Glib::SignalProxyInfo CellRendererText_signal_edited_info =
86 (GCallback) &CellRendererText_signal_edited_callback,
87 (GCallback) &CellRendererText_signal_edited_callback
91 } // anonymous namespace
97 Gtk::CellRendererText* wrap(GtkCellRendererText* object, bool take_copy)
99 return dynamic_cast<Gtk::CellRendererText *> (Glib::wrap_auto ((GObject*)(object), take_copy));
102 } /* namespace Glib */
108 /* The *_Class implementation: */
110 const Glib::Class& CellRendererText_Class::init()
112 if(!gtype_) // create the GType if necessary
114 // Glib::Class has to know the class init function to clone custom types.
115 class_init_func_ = &CellRendererText_Class::class_init_function;
117 // This is actually just optimized away, apparently with no harm.
118 // Make sure that the parent type has been created.
119 //CppClassParent::CppObjectType::get_type();
121 // Create the wrapper type, with the same class/instance size as the base type.
122 register_derived_type(gtk_cell_renderer_text_get_type());
124 // Add derived versions of interfaces, if the C type implements any interfaces:
130 void CellRendererText_Class::class_init_function(void* g_class, void* class_data)
132 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
133 CppClassParent::class_init_function(klass, class_data);
135 #ifdef GLIBMM_VFUNCS_ENABLED
136 #endif //GLIBMM_VFUNCS_ENABLED
138 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
139 klass->edited = &edited_callback;
140 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
143 #ifdef GLIBMM_VFUNCS_ENABLED
144 #endif //GLIBMM_VFUNCS_ENABLED
146 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
147 void CellRendererText_Class::edited_callback(GtkCellRendererText* self, const gchar* p0, const gchar* p1)
149 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
150 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
152 // Non-gtkmmproc-generated custom classes implicitly call the default
153 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
154 // generated classes can use this optimisation, which avoids the unnecessary
155 // parameter conversions if there is no possibility of the virtual function
157 if(obj && obj->is_derived_())
159 #ifdef GLIBMM_EXCEPTIONS_ENABLED
160 try // Trap C++ exceptions which would normally be lost because this is a C callback.
162 #endif //GLIBMM_EXCEPTIONS_ENABLED
163 // Call the virtual member method, which derived classes might override.
164 obj->on_edited(Glib::convert_const_gchar_ptr_to_ustring(p0)
165 , Glib::convert_const_gchar_ptr_to_ustring(p1)
167 #ifdef GLIBMM_EXCEPTIONS_ENABLED
171 Glib::exception_handlers_invoke();
173 #endif //GLIBMM_EXCEPTIONS_ENABLED
177 BaseClassType *const base = static_cast<BaseClassType*>(
178 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
181 // Call the original underlying C function:
182 if(base && base->edited)
183 (*base->edited)(self, p0, p1);
186 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
189 Glib::ObjectBase* CellRendererText_Class::wrap_new(GObject* o)
191 return manage(new CellRendererText((GtkCellRendererText*)(o)));
196 /* The implementation: */
198 CellRendererText::CellRendererText(const Glib::ConstructParams& construct_params)
200 Gtk::CellRenderer(construct_params)
204 CellRendererText::CellRendererText(GtkCellRendererText* castitem)
206 Gtk::CellRenderer((GtkCellRenderer*)(castitem))
210 CellRendererText::~CellRendererText()
215 CellRendererText::CppClassType CellRendererText::cellrenderertext_class_; // initialize static member
217 GType CellRendererText::get_type()
219 return cellrenderertext_class_.init().get_type();
222 GType CellRendererText::get_base_type()
224 return gtk_cell_renderer_text_get_type();
228 CellRendererText::CellRendererText()
230 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
231 Gtk::CellRenderer(Glib::ConstructParams(cellrenderertext_class_.init()))
235 void CellRendererText::set_fixed_height_from_font(int number_of_rows)
237 gtk_cell_renderer_text_set_fixed_height_from_font(gobj(), number_of_rows);
241 Glib::SignalProxy2< void,const Glib::ustring&,const Glib::ustring& > CellRendererText::signal_edited()
243 return Glib::SignalProxy2< void,const Glib::ustring&,const Glib::ustring& >(this, &CellRendererText_signal_edited_info);
247 #ifdef GLIBMM_PROPERTIES_ENABLED
248 Glib::PropertyProxy<Glib::ustring> CellRendererText::property_text()
250 return Glib::PropertyProxy<Glib::ustring>(this, "text");
252 #endif //GLIBMM_PROPERTIES_ENABLED
254 #ifdef GLIBMM_PROPERTIES_ENABLED
255 Glib::PropertyProxy_ReadOnly<Glib::ustring> CellRendererText::property_text() const
257 return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "text");
259 #endif //GLIBMM_PROPERTIES_ENABLED
261 #ifdef GLIBMM_PROPERTIES_ENABLED
262 Glib::PropertyProxy_WriteOnly<Glib::ustring> CellRendererText::property_markup()
264 return Glib::PropertyProxy_WriteOnly<Glib::ustring>(this, "markup");
266 #endif //GLIBMM_PROPERTIES_ENABLED
268 #ifdef GLIBMM_PROPERTIES_ENABLED
269 Glib::PropertyProxy<Pango::AttrList> CellRendererText::property_attributes()
271 return Glib::PropertyProxy<Pango::AttrList>(this, "attributes");
273 #endif //GLIBMM_PROPERTIES_ENABLED
275 #ifdef GLIBMM_PROPERTIES_ENABLED
276 Glib::PropertyProxy_ReadOnly<Pango::AttrList> CellRendererText::property_attributes() const
278 return Glib::PropertyProxy_ReadOnly<Pango::AttrList>(this, "attributes");
280 #endif //GLIBMM_PROPERTIES_ENABLED
282 #ifdef GLIBMM_PROPERTIES_ENABLED
283 Glib::PropertyProxy_WriteOnly<Glib::ustring> CellRendererText::property_background()
285 return Glib::PropertyProxy_WriteOnly<Glib::ustring>(this, "background");
287 #endif //GLIBMM_PROPERTIES_ENABLED
289 #ifdef GLIBMM_PROPERTIES_ENABLED
290 Glib::PropertyProxy_WriteOnly<Glib::ustring> CellRendererText::property_foreground()
292 return Glib::PropertyProxy_WriteOnly<Glib::ustring>(this, "foreground");
294 #endif //GLIBMM_PROPERTIES_ENABLED
296 #ifdef GLIBMM_PROPERTIES_ENABLED
297 Glib::PropertyProxy<Gdk::Color> CellRendererText::property_background_gdk()
299 return Glib::PropertyProxy<Gdk::Color>(this, "background-gdk");
301 #endif //GLIBMM_PROPERTIES_ENABLED
303 #ifdef GLIBMM_PROPERTIES_ENABLED
304 Glib::PropertyProxy_ReadOnly<Gdk::Color> CellRendererText::property_background_gdk() const
306 return Glib::PropertyProxy_ReadOnly<Gdk::Color>(this, "background-gdk");
308 #endif //GLIBMM_PROPERTIES_ENABLED
310 #ifdef GLIBMM_PROPERTIES_ENABLED
311 Glib::PropertyProxy<Gdk::Color> CellRendererText::property_foreground_gdk()
313 return Glib::PropertyProxy<Gdk::Color>(this, "foreground-gdk");
315 #endif //GLIBMM_PROPERTIES_ENABLED
317 #ifdef GLIBMM_PROPERTIES_ENABLED
318 Glib::PropertyProxy_ReadOnly<Gdk::Color> CellRendererText::property_foreground_gdk() const
320 return Glib::PropertyProxy_ReadOnly<Gdk::Color>(this, "foreground-gdk");
322 #endif //GLIBMM_PROPERTIES_ENABLED
324 #ifdef GLIBMM_PROPERTIES_ENABLED
325 Glib::PropertyProxy<Glib::ustring> CellRendererText::property_font()
327 return Glib::PropertyProxy<Glib::ustring>(this, "font");
329 #endif //GLIBMM_PROPERTIES_ENABLED
331 #ifdef GLIBMM_PROPERTIES_ENABLED
332 Glib::PropertyProxy_ReadOnly<Glib::ustring> CellRendererText::property_font() const
334 return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "font");
336 #endif //GLIBMM_PROPERTIES_ENABLED
338 #ifdef GLIBMM_PROPERTIES_ENABLED
339 Glib::PropertyProxy<Pango::FontDescription> CellRendererText::property_font_desc()
341 return Glib::PropertyProxy<Pango::FontDescription>(this, "font-desc");
343 #endif //GLIBMM_PROPERTIES_ENABLED
345 #ifdef GLIBMM_PROPERTIES_ENABLED
346 Glib::PropertyProxy_ReadOnly<Pango::FontDescription> CellRendererText::property_font_desc() const
348 return Glib::PropertyProxy_ReadOnly<Pango::FontDescription>(this, "font-desc");
350 #endif //GLIBMM_PROPERTIES_ENABLED
352 #ifdef GLIBMM_PROPERTIES_ENABLED
353 Glib::PropertyProxy<Glib::ustring> CellRendererText::property_family()
355 return Glib::PropertyProxy<Glib::ustring>(this, "family");
357 #endif //GLIBMM_PROPERTIES_ENABLED
359 #ifdef GLIBMM_PROPERTIES_ENABLED
360 Glib::PropertyProxy_ReadOnly<Glib::ustring> CellRendererText::property_family() const
362 return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "family");
364 #endif //GLIBMM_PROPERTIES_ENABLED
366 #ifdef GLIBMM_PROPERTIES_ENABLED
367 Glib::PropertyProxy<Pango::Style> CellRendererText::property_style()
369 return Glib::PropertyProxy<Pango::Style>(this, "style");
371 #endif //GLIBMM_PROPERTIES_ENABLED
373 #ifdef GLIBMM_PROPERTIES_ENABLED
374 Glib::PropertyProxy_ReadOnly<Pango::Style> CellRendererText::property_style() const
376 return Glib::PropertyProxy_ReadOnly<Pango::Style>(this, "style");
378 #endif //GLIBMM_PROPERTIES_ENABLED
380 #ifdef GLIBMM_PROPERTIES_ENABLED
381 Glib::PropertyProxy<Pango::Variant> CellRendererText::property_variant()
383 return Glib::PropertyProxy<Pango::Variant>(this, "variant");
385 #endif //GLIBMM_PROPERTIES_ENABLED
387 #ifdef GLIBMM_PROPERTIES_ENABLED
388 Glib::PropertyProxy_ReadOnly<Pango::Variant> CellRendererText::property_variant() const
390 return Glib::PropertyProxy_ReadOnly<Pango::Variant>(this, "variant");
392 #endif //GLIBMM_PROPERTIES_ENABLED
394 #ifdef GLIBMM_PROPERTIES_ENABLED
395 Glib::PropertyProxy<int> CellRendererText::property_weight()
397 return Glib::PropertyProxy<int>(this, "weight");
399 #endif //GLIBMM_PROPERTIES_ENABLED
401 #ifdef GLIBMM_PROPERTIES_ENABLED
402 Glib::PropertyProxy_ReadOnly<int> CellRendererText::property_weight() const
404 return Glib::PropertyProxy_ReadOnly<int>(this, "weight");
406 #endif //GLIBMM_PROPERTIES_ENABLED
408 #ifdef GLIBMM_PROPERTIES_ENABLED
409 Glib::PropertyProxy<Pango::Stretch> CellRendererText::property_stretch()
411 return Glib::PropertyProxy<Pango::Stretch>(this, "stretch");
413 #endif //GLIBMM_PROPERTIES_ENABLED
415 #ifdef GLIBMM_PROPERTIES_ENABLED
416 Glib::PropertyProxy_ReadOnly<Pango::Stretch> CellRendererText::property_stretch() const
418 return Glib::PropertyProxy_ReadOnly<Pango::Stretch>(this, "stretch");
420 #endif //GLIBMM_PROPERTIES_ENABLED
422 #ifdef GLIBMM_PROPERTIES_ENABLED
423 Glib::PropertyProxy<int> CellRendererText::property_size()
425 return Glib::PropertyProxy<int>(this, "size");
427 #endif //GLIBMM_PROPERTIES_ENABLED
429 #ifdef GLIBMM_PROPERTIES_ENABLED
430 Glib::PropertyProxy_ReadOnly<int> CellRendererText::property_size() const
432 return Glib::PropertyProxy_ReadOnly<int>(this, "size");
434 #endif //GLIBMM_PROPERTIES_ENABLED
436 #ifdef GLIBMM_PROPERTIES_ENABLED
437 Glib::PropertyProxy<double> CellRendererText::property_size_points()
439 return Glib::PropertyProxy<double>(this, "size-points");
441 #endif //GLIBMM_PROPERTIES_ENABLED
443 #ifdef GLIBMM_PROPERTIES_ENABLED
444 Glib::PropertyProxy_ReadOnly<double> CellRendererText::property_size_points() const
446 return Glib::PropertyProxy_ReadOnly<double>(this, "size-points");
448 #endif //GLIBMM_PROPERTIES_ENABLED
450 #ifdef GLIBMM_PROPERTIES_ENABLED
451 Glib::PropertyProxy<double> CellRendererText::property_scale()
453 return Glib::PropertyProxy<double>(this, "scale");
455 #endif //GLIBMM_PROPERTIES_ENABLED
457 #ifdef GLIBMM_PROPERTIES_ENABLED
458 Glib::PropertyProxy_ReadOnly<double> CellRendererText::property_scale() const
460 return Glib::PropertyProxy_ReadOnly<double>(this, "scale");
462 #endif //GLIBMM_PROPERTIES_ENABLED
464 #ifdef GLIBMM_PROPERTIES_ENABLED
465 Glib::PropertyProxy<bool> CellRendererText::property_editable()
467 return Glib::PropertyProxy<bool>(this, "editable");
469 #endif //GLIBMM_PROPERTIES_ENABLED
471 #ifdef GLIBMM_PROPERTIES_ENABLED
472 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_editable() const
474 return Glib::PropertyProxy_ReadOnly<bool>(this, "editable");
476 #endif //GLIBMM_PROPERTIES_ENABLED
478 #ifdef GLIBMM_PROPERTIES_ENABLED
479 Glib::PropertyProxy<bool> CellRendererText::property_strikethrough()
481 return Glib::PropertyProxy<bool>(this, "strikethrough");
483 #endif //GLIBMM_PROPERTIES_ENABLED
485 #ifdef GLIBMM_PROPERTIES_ENABLED
486 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_strikethrough() const
488 return Glib::PropertyProxy_ReadOnly<bool>(this, "strikethrough");
490 #endif //GLIBMM_PROPERTIES_ENABLED
492 #ifdef GLIBMM_PROPERTIES_ENABLED
493 Glib::PropertyProxy<Pango::Underline> CellRendererText::property_underline()
495 return Glib::PropertyProxy<Pango::Underline>(this, "underline");
497 #endif //GLIBMM_PROPERTIES_ENABLED
499 #ifdef GLIBMM_PROPERTIES_ENABLED
500 Glib::PropertyProxy_ReadOnly<Pango::Underline> CellRendererText::property_underline() const
502 return Glib::PropertyProxy_ReadOnly<Pango::Underline>(this, "underline");
504 #endif //GLIBMM_PROPERTIES_ENABLED
506 #ifdef GLIBMM_PROPERTIES_ENABLED
507 Glib::PropertyProxy<int> CellRendererText::property_rise()
509 return Glib::PropertyProxy<int>(this, "rise");
511 #endif //GLIBMM_PROPERTIES_ENABLED
513 #ifdef GLIBMM_PROPERTIES_ENABLED
514 Glib::PropertyProxy_ReadOnly<int> CellRendererText::property_rise() const
516 return Glib::PropertyProxy_ReadOnly<int>(this, "rise");
518 #endif //GLIBMM_PROPERTIES_ENABLED
520 #ifdef GLIBMM_PROPERTIES_ENABLED
521 Glib::PropertyProxy<Glib::ustring> CellRendererText::property_language()
523 return Glib::PropertyProxy<Glib::ustring>(this, "language");
525 #endif //GLIBMM_PROPERTIES_ENABLED
527 #ifdef GLIBMM_PROPERTIES_ENABLED
528 Glib::PropertyProxy_ReadOnly<Glib::ustring> CellRendererText::property_language() const
530 return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "language");
532 #endif //GLIBMM_PROPERTIES_ENABLED
534 #ifdef GLIBMM_PROPERTIES_ENABLED
535 Glib::PropertyProxy<Pango::EllipsizeMode> CellRendererText::property_ellipsize()
537 return Glib::PropertyProxy<Pango::EllipsizeMode>(this, "ellipsize");
539 #endif //GLIBMM_PROPERTIES_ENABLED
541 #ifdef GLIBMM_PROPERTIES_ENABLED
542 Glib::PropertyProxy_ReadOnly<Pango::EllipsizeMode> CellRendererText::property_ellipsize() const
544 return Glib::PropertyProxy_ReadOnly<Pango::EllipsizeMode>(this, "ellipsize");
546 #endif //GLIBMM_PROPERTIES_ENABLED
548 #ifdef GLIBMM_PROPERTIES_ENABLED
549 Glib::PropertyProxy<int> CellRendererText::property_width_chars()
551 return Glib::PropertyProxy<int>(this, "width-chars");
553 #endif //GLIBMM_PROPERTIES_ENABLED
555 #ifdef GLIBMM_PROPERTIES_ENABLED
556 Glib::PropertyProxy_ReadOnly<int> CellRendererText::property_width_chars() const
558 return Glib::PropertyProxy_ReadOnly<int>(this, "width-chars");
560 #endif //GLIBMM_PROPERTIES_ENABLED
562 #ifdef GLIBMM_PROPERTIES_ENABLED
563 Glib::PropertyProxy<Pango::WrapMode> CellRendererText::property_wrap_mode()
565 return Glib::PropertyProxy<Pango::WrapMode>(this, "wrap-mode");
567 #endif //GLIBMM_PROPERTIES_ENABLED
569 #ifdef GLIBMM_PROPERTIES_ENABLED
570 Glib::PropertyProxy_ReadOnly<Pango::WrapMode> CellRendererText::property_wrap_mode() const
572 return Glib::PropertyProxy_ReadOnly<Pango::WrapMode>(this, "wrap-mode");
574 #endif //GLIBMM_PROPERTIES_ENABLED
576 #ifdef GLIBMM_PROPERTIES_ENABLED
577 Glib::PropertyProxy<int> CellRendererText::property_wrap_width()
579 return Glib::PropertyProxy<int>(this, "wrap-width");
581 #endif //GLIBMM_PROPERTIES_ENABLED
583 #ifdef GLIBMM_PROPERTIES_ENABLED
584 Glib::PropertyProxy_ReadOnly<int> CellRendererText::property_wrap_width() const
586 return Glib::PropertyProxy_ReadOnly<int>(this, "wrap-width");
588 #endif //GLIBMM_PROPERTIES_ENABLED
590 #ifdef GLIBMM_PROPERTIES_ENABLED
591 Glib::PropertyProxy<Pango::Alignment> CellRendererText::property_alignment()
593 return Glib::PropertyProxy<Pango::Alignment>(this, "alignment");
595 #endif //GLIBMM_PROPERTIES_ENABLED
597 #ifdef GLIBMM_PROPERTIES_ENABLED
598 Glib::PropertyProxy_ReadOnly<Pango::Alignment> CellRendererText::property_alignment() const
600 return Glib::PropertyProxy_ReadOnly<Pango::Alignment>(this, "alignment");
602 #endif //GLIBMM_PROPERTIES_ENABLED
604 #ifdef GLIBMM_PROPERTIES_ENABLED
605 Glib::PropertyProxy<bool> CellRendererText::property_background_set()
607 return Glib::PropertyProxy<bool>(this, "background-set");
609 #endif //GLIBMM_PROPERTIES_ENABLED
611 #ifdef GLIBMM_PROPERTIES_ENABLED
612 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_background_set() const
614 return Glib::PropertyProxy_ReadOnly<bool>(this, "background-set");
616 #endif //GLIBMM_PROPERTIES_ENABLED
618 #ifdef GLIBMM_PROPERTIES_ENABLED
619 Glib::PropertyProxy<bool> CellRendererText::property_foreground_set()
621 return Glib::PropertyProxy<bool>(this, "foreground-set");
623 #endif //GLIBMM_PROPERTIES_ENABLED
625 #ifdef GLIBMM_PROPERTIES_ENABLED
626 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_foreground_set() const
628 return Glib::PropertyProxy_ReadOnly<bool>(this, "foreground-set");
630 #endif //GLIBMM_PROPERTIES_ENABLED
632 #ifdef GLIBMM_PROPERTIES_ENABLED
633 Glib::PropertyProxy<bool> CellRendererText::property_family_set()
635 return Glib::PropertyProxy<bool>(this, "family-set");
637 #endif //GLIBMM_PROPERTIES_ENABLED
639 #ifdef GLIBMM_PROPERTIES_ENABLED
640 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_family_set() const
642 return Glib::PropertyProxy_ReadOnly<bool>(this, "family-set");
644 #endif //GLIBMM_PROPERTIES_ENABLED
646 #ifdef GLIBMM_PROPERTIES_ENABLED
647 Glib::PropertyProxy<bool> CellRendererText::property_style_set()
649 return Glib::PropertyProxy<bool>(this, "style-set");
651 #endif //GLIBMM_PROPERTIES_ENABLED
653 #ifdef GLIBMM_PROPERTIES_ENABLED
654 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_style_set() const
656 return Glib::PropertyProxy_ReadOnly<bool>(this, "style-set");
658 #endif //GLIBMM_PROPERTIES_ENABLED
660 #ifdef GLIBMM_PROPERTIES_ENABLED
661 Glib::PropertyProxy<bool> CellRendererText::property_variant_set()
663 return Glib::PropertyProxy<bool>(this, "variant-set");
665 #endif //GLIBMM_PROPERTIES_ENABLED
667 #ifdef GLIBMM_PROPERTIES_ENABLED
668 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_variant_set() const
670 return Glib::PropertyProxy_ReadOnly<bool>(this, "variant-set");
672 #endif //GLIBMM_PROPERTIES_ENABLED
674 #ifdef GLIBMM_PROPERTIES_ENABLED
675 Glib::PropertyProxy<bool> CellRendererText::property_weight_set()
677 return Glib::PropertyProxy<bool>(this, "weight-set");
679 #endif //GLIBMM_PROPERTIES_ENABLED
681 #ifdef GLIBMM_PROPERTIES_ENABLED
682 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_weight_set() const
684 return Glib::PropertyProxy_ReadOnly<bool>(this, "weight-set");
686 #endif //GLIBMM_PROPERTIES_ENABLED
688 #ifdef GLIBMM_PROPERTIES_ENABLED
689 Glib::PropertyProxy<bool> CellRendererText::property_stretch_set()
691 return Glib::PropertyProxy<bool>(this, "stretch-set");
693 #endif //GLIBMM_PROPERTIES_ENABLED
695 #ifdef GLIBMM_PROPERTIES_ENABLED
696 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_stretch_set() const
698 return Glib::PropertyProxy_ReadOnly<bool>(this, "stretch-set");
700 #endif //GLIBMM_PROPERTIES_ENABLED
702 #ifdef GLIBMM_PROPERTIES_ENABLED
703 Glib::PropertyProxy<bool> CellRendererText::property_size_set()
705 return Glib::PropertyProxy<bool>(this, "size-set");
707 #endif //GLIBMM_PROPERTIES_ENABLED
709 #ifdef GLIBMM_PROPERTIES_ENABLED
710 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_size_set() const
712 return Glib::PropertyProxy_ReadOnly<bool>(this, "size-set");
714 #endif //GLIBMM_PROPERTIES_ENABLED
716 #ifdef GLIBMM_PROPERTIES_ENABLED
717 Glib::PropertyProxy<bool> CellRendererText::property_scale_set()
719 return Glib::PropertyProxy<bool>(this, "scale-set");
721 #endif //GLIBMM_PROPERTIES_ENABLED
723 #ifdef GLIBMM_PROPERTIES_ENABLED
724 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_scale_set() const
726 return Glib::PropertyProxy_ReadOnly<bool>(this, "scale-set");
728 #endif //GLIBMM_PROPERTIES_ENABLED
730 #ifdef GLIBMM_PROPERTIES_ENABLED
731 Glib::PropertyProxy<bool> CellRendererText::property_editable_set()
733 return Glib::PropertyProxy<bool>(this, "editable-set");
735 #endif //GLIBMM_PROPERTIES_ENABLED
737 #ifdef GLIBMM_PROPERTIES_ENABLED
738 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_editable_set() const
740 return Glib::PropertyProxy_ReadOnly<bool>(this, "editable-set");
742 #endif //GLIBMM_PROPERTIES_ENABLED
744 #ifdef GLIBMM_PROPERTIES_ENABLED
745 Glib::PropertyProxy<bool> CellRendererText::property_strikethrough_set()
747 return Glib::PropertyProxy<bool>(this, "strikethrough-set");
749 #endif //GLIBMM_PROPERTIES_ENABLED
751 #ifdef GLIBMM_PROPERTIES_ENABLED
752 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_strikethrough_set() const
754 return Glib::PropertyProxy_ReadOnly<bool>(this, "strikethrough-set");
756 #endif //GLIBMM_PROPERTIES_ENABLED
758 #ifdef GLIBMM_PROPERTIES_ENABLED
759 Glib::PropertyProxy<bool> CellRendererText::property_underline_set()
761 return Glib::PropertyProxy<bool>(this, "underline-set");
763 #endif //GLIBMM_PROPERTIES_ENABLED
765 #ifdef GLIBMM_PROPERTIES_ENABLED
766 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_underline_set() const
768 return Glib::PropertyProxy_ReadOnly<bool>(this, "underline-set");
770 #endif //GLIBMM_PROPERTIES_ENABLED
772 #ifdef GLIBMM_PROPERTIES_ENABLED
773 Glib::PropertyProxy<bool> CellRendererText::property_rise_set()
775 return Glib::PropertyProxy<bool>(this, "rise-set");
777 #endif //GLIBMM_PROPERTIES_ENABLED
779 #ifdef GLIBMM_PROPERTIES_ENABLED
780 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_rise_set() const
782 return Glib::PropertyProxy_ReadOnly<bool>(this, "rise-set");
784 #endif //GLIBMM_PROPERTIES_ENABLED
786 #ifdef GLIBMM_PROPERTIES_ENABLED
787 Glib::PropertyProxy<bool> CellRendererText::property_language_set()
789 return Glib::PropertyProxy<bool>(this, "language-set");
791 #endif //GLIBMM_PROPERTIES_ENABLED
793 #ifdef GLIBMM_PROPERTIES_ENABLED
794 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_language_set() const
796 return Glib::PropertyProxy_ReadOnly<bool>(this, "language-set");
798 #endif //GLIBMM_PROPERTIES_ENABLED
800 #ifdef GLIBMM_PROPERTIES_ENABLED
801 Glib::PropertyProxy<bool> CellRendererText::property_ellipsize_set()
803 return Glib::PropertyProxy<bool>(this, "ellipsize-set");
805 #endif //GLIBMM_PROPERTIES_ENABLED
807 #ifdef GLIBMM_PROPERTIES_ENABLED
808 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_ellipsize_set() const
810 return Glib::PropertyProxy_ReadOnly<bool>(this, "ellipsize-set");
812 #endif //GLIBMM_PROPERTIES_ENABLED
814 #ifdef GLIBMM_PROPERTIES_ENABLED
815 Glib::PropertyProxy<bool> CellRendererText::property_single_paragraph_mode()
817 return Glib::PropertyProxy<bool>(this, "single-paragraph-mode");
819 #endif //GLIBMM_PROPERTIES_ENABLED
821 #ifdef GLIBMM_PROPERTIES_ENABLED
822 Glib::PropertyProxy_ReadOnly<bool> CellRendererText::property_single_paragraph_mode() const
824 return Glib::PropertyProxy_ReadOnly<bool>(this, "single-paragraph-mode");
826 #endif //GLIBMM_PROPERTIES_ENABLED
829 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
830 void Gtk::CellRendererText::on_edited(const Glib::ustring& path, const Glib::ustring& new_text)
832 BaseClassType *const base = static_cast<BaseClassType*>(
833 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
836 if(base && base->edited)
837 (*base->edited)(gobj(),path.c_str(),new_text.c_str());
839 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
841 #ifdef GLIBMM_VFUNCS_ENABLED
842 #endif //GLIBMM_VFUNCS_ENABLED