// Generated by gtkmmproc -- DO NOT MODIFY! #include #include /* $Id$ */ /* text.cc * * Copyright (C) 1998 EMC Capital Management Inc. * Developed by Havoc Pennington * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ namespace Gnome { namespace Canvas { Text::Text(Group& parentx, double x, double y, const Glib::ustring& text) : Item(GNOME_CANVAS_ITEM(g_object_new(get_type(), 0))) { item_construct(parentx); set("x", x, "y", y, "text", text.c_str(), 0); } Text::Text(Group& parentx) : Item(GNOME_CANVAS_ITEM(g_object_new(get_type(), 0))) { item_construct(parentx); } } /* namespace Canvas */ } /* namespace Gnome */ namespace { } // anonymous namespace namespace Glib { Gnome::Canvas::Text* wrap(GnomeCanvasText* object, bool take_copy) { return dynamic_cast (Glib::wrap_auto ((GObject*)(object), take_copy)); } } /* namespace Glib */ namespace Gnome { namespace Canvas { /* The *_Class implementation: */ const Glib::Class& Text_Class::init() { if(!gtype_) // create the GType if necessary { // Glib::Class has to know the class init function to clone custom types. class_init_func_ = &Text_Class::class_init_function; // This is actually just optimized away, apparently with no harm. // Make sure that the parent type has been created. //CppClassParent::CppObjectType::get_type(); // Create the wrapper type, with the same class/instance size as the base type. register_derived_type(gnome_canvas_text_get_type()); // Add derived versions of interfaces, if the C type implements any interfaces: } return *this; } void Text_Class::class_init_function(void* g_class, void* class_data) { BaseClassType *const klass = static_cast(g_class); CppClassParent::class_init_function(klass, class_data); } Glib::ObjectBase* Text_Class::wrap_new(GObject* o) { return manage(new Text((GnomeCanvasText*)(o))); } /* The implementation: */ Text::Text(const Glib::ConstructParams& construct_params) : Item(construct_params) { } Text::Text(GnomeCanvasText* castitem) : Item((GnomeCanvasItem*)(castitem)) { } Text::~Text() { destroy_(); } Text::CppClassType Text::text_class_; // initialize static member GType Text::get_type() { return text_class_.init().get_type(); } GType Text::get_base_type() { return gnome_canvas_text_get_type(); } Glib::PropertyProxy Text::property_text() { return Glib::PropertyProxy(this, "text"); } Glib::PropertyProxy_ReadOnly Text::property_text() const { return Glib::PropertyProxy_ReadOnly(this, "text"); } Glib::PropertyProxy_WriteOnly Text::property_markup() { return Glib::PropertyProxy_WriteOnly(this, "markup"); } Glib::PropertyProxy_ReadOnly Text::property_markup() const { return Glib::PropertyProxy_ReadOnly(this, "markup"); } Glib::PropertyProxy Text::property_x() { return Glib::PropertyProxy(this, "x"); } Glib::PropertyProxy_ReadOnly Text::property_x() const { return Glib::PropertyProxy_ReadOnly(this, "x"); } Glib::PropertyProxy Text::property_y() { return Glib::PropertyProxy(this, "y"); } Glib::PropertyProxy_ReadOnly Text::property_y() const { return Glib::PropertyProxy_ReadOnly(this, "y"); } Glib::PropertyProxy Text::property_font() { return Glib::PropertyProxy(this, "font"); } Glib::PropertyProxy_ReadOnly Text::property_font() const { return Glib::PropertyProxy_ReadOnly(this, "font"); } Glib::PropertyProxy Text::property_font_desc() { return Glib::PropertyProxy(this, "font-desc"); } Glib::PropertyProxy_ReadOnly Text::property_font_desc() const { return Glib::PropertyProxy_ReadOnly(this, "font-desc"); } Glib::PropertyProxy Text::property_family() { return Glib::PropertyProxy(this, "family"); } Glib::PropertyProxy_ReadOnly Text::property_family() const { return Glib::PropertyProxy_ReadOnly(this, "family"); } Glib::PropertyProxy Text::property_family_set() { return Glib::PropertyProxy(this, "family-set"); } Glib::PropertyProxy_ReadOnly Text::property_family_set() const { return Glib::PropertyProxy_ReadOnly(this, "family-set"); } Glib::PropertyProxy Text::property_attributes() { return Glib::PropertyProxy(this, "attributes"); } Glib::PropertyProxy_ReadOnly Text::property_attributes() const { return Glib::PropertyProxy_ReadOnly(this, "attributes"); } Glib::PropertyProxy Text::property_style() { return Glib::PropertyProxy(this, "style"); } Glib::PropertyProxy_ReadOnly Text::property_style() const { return Glib::PropertyProxy_ReadOnly(this, "style"); } Glib::PropertyProxy Text::property_style_set() { return Glib::PropertyProxy(this, "style-set"); } Glib::PropertyProxy_ReadOnly Text::property_style_set() const { return Glib::PropertyProxy_ReadOnly(this, "style-set"); } Glib::PropertyProxy Text::property_variant() { return Glib::PropertyProxy(this, "variant"); } Glib::PropertyProxy_ReadOnly Text::property_variant() const { return Glib::PropertyProxy_ReadOnly(this, "variant"); } Glib::PropertyProxy Text::property_variant_set() { return Glib::PropertyProxy(this, "variant-set"); } Glib::PropertyProxy_ReadOnly Text::property_variant_set() const { return Glib::PropertyProxy_ReadOnly(this, "variant-set"); } Glib::PropertyProxy Text::property_weight() { return Glib::PropertyProxy(this, "weight"); } Glib::PropertyProxy_ReadOnly Text::property_weight() const { return Glib::PropertyProxy_ReadOnly(this, "weight"); } Glib::PropertyProxy Text::property_weight_set() { return Glib::PropertyProxy(this, "weight-set"); } Glib::PropertyProxy_ReadOnly Text::property_weight_set() const { return Glib::PropertyProxy_ReadOnly(this, "weight-set"); } Glib::PropertyProxy Text::property_stretch() { return Glib::PropertyProxy(this, "stretch"); } Glib::PropertyProxy_ReadOnly Text::property_stretch() const { return Glib::PropertyProxy_ReadOnly(this, "stretch"); } Glib::PropertyProxy Text::property_stretch_set() { return Glib::PropertyProxy(this, "stretch-set"); } Glib::PropertyProxy_ReadOnly Text::property_stretch_set() const { return Glib::PropertyProxy_ReadOnly(this, "stretch-set"); } Glib::PropertyProxy Text::property_size() { return Glib::PropertyProxy(this, "size"); } Glib::PropertyProxy_ReadOnly Text::property_size() const { return Glib::PropertyProxy_ReadOnly(this, "size"); } Glib::PropertyProxy Text::property_size_set() { return Glib::PropertyProxy(this, "size-set"); } Glib::PropertyProxy_ReadOnly Text::property_size_set() const { return Glib::PropertyProxy_ReadOnly(this, "size-set"); } Glib::PropertyProxy Text::property_size_points() { return Glib::PropertyProxy(this, "size-points"); } Glib::PropertyProxy_ReadOnly Text::property_size_points() const { return Glib::PropertyProxy_ReadOnly(this, "size-points"); } Glib::PropertyProxy Text::property_strikethrough() { return Glib::PropertyProxy(this, "strikethrough"); } Glib::PropertyProxy_ReadOnly Text::property_strikethrough() const { return Glib::PropertyProxy_ReadOnly(this, "strikethrough"); } Glib::PropertyProxy Text::property_strikethrough_set() { return Glib::PropertyProxy(this, "strikethrough-set"); } Glib::PropertyProxy_ReadOnly Text::property_strikethrough_set() const { return Glib::PropertyProxy_ReadOnly(this, "strikethrough-set"); } Glib::PropertyProxy Text::property_underline() { return Glib::PropertyProxy(this, "underline"); } Glib::PropertyProxy_ReadOnly Text::property_underline() const { return Glib::PropertyProxy_ReadOnly(this, "underline"); } Glib::PropertyProxy Text::property_underline_set() { return Glib::PropertyProxy(this, "underline-set"); } Glib::PropertyProxy_ReadOnly Text::property_underline_set() const { return Glib::PropertyProxy_ReadOnly(this, "underline-set"); } Glib::PropertyProxy Text::property_rise() { return Glib::PropertyProxy(this, "rise"); } Glib::PropertyProxy_ReadOnly Text::property_rise() const { return Glib::PropertyProxy_ReadOnly(this, "rise"); } Glib::PropertyProxy Text::property_rise_set() { return Glib::PropertyProxy(this, "rise-set"); } Glib::PropertyProxy_ReadOnly Text::property_rise_set() const { return Glib::PropertyProxy_ReadOnly(this, "rise-set"); } Glib::PropertyProxy Text::property_scale() { return Glib::PropertyProxy(this, "scale"); } Glib::PropertyProxy_ReadOnly Text::property_scale() const { return Glib::PropertyProxy_ReadOnly(this, "scale"); } Glib::PropertyProxy Text::property_scale_set() { return Glib::PropertyProxy(this, "scale-set"); } Glib::PropertyProxy_ReadOnly Text::property_scale_set() const { return Glib::PropertyProxy_ReadOnly(this, "scale-set"); } Glib::PropertyProxy Text::property_anchor() { return Glib::PropertyProxy(this, "anchor"); } Glib::PropertyProxy_ReadOnly Text::property_anchor() const { return Glib::PropertyProxy_ReadOnly(this, "anchor"); } Glib::PropertyProxy Text::property_justification() { return Glib::PropertyProxy(this, "justification"); } Glib::PropertyProxy_ReadOnly Text::property_justification() const { return Glib::PropertyProxy_ReadOnly(this, "justification"); } Glib::PropertyProxy Text::property_clip_width() { return Glib::PropertyProxy(this, "clip-width"); } Glib::PropertyProxy_ReadOnly Text::property_clip_width() const { return Glib::PropertyProxy_ReadOnly(this, "clip-width"); } Glib::PropertyProxy Text::property_clip_height() { return Glib::PropertyProxy(this, "clip-height"); } Glib::PropertyProxy_ReadOnly Text::property_clip_height() const { return Glib::PropertyProxy_ReadOnly(this, "clip-height"); } Glib::PropertyProxy Text::property_clip() { return Glib::PropertyProxy(this, "clip"); } Glib::PropertyProxy_ReadOnly Text::property_clip() const { return Glib::PropertyProxy_ReadOnly(this, "clip"); } Glib::PropertyProxy Text::property_x_offset() { return Glib::PropertyProxy(this, "x-offset"); } Glib::PropertyProxy_ReadOnly Text::property_x_offset() const { return Glib::PropertyProxy_ReadOnly(this, "x-offset"); } Glib::PropertyProxy Text::property_y_offset() { return Glib::PropertyProxy(this, "y-offset"); } Glib::PropertyProxy_ReadOnly Text::property_y_offset() const { return Glib::PropertyProxy_ReadOnly(this, "y-offset"); } Glib::PropertyProxy Text::property_fill_color() { return Glib::PropertyProxy(this, "fill-color"); } Glib::PropertyProxy_ReadOnly Text::property_fill_color() const { return Glib::PropertyProxy_ReadOnly(this, "fill-color"); } Glib::PropertyProxy Text::property_fill_color_gdk() { return Glib::PropertyProxy(this, "fill-color-gdk"); } Glib::PropertyProxy_ReadOnly Text::property_fill_color_gdk() const { return Glib::PropertyProxy_ReadOnly(this, "fill-color-gdk"); } Glib::PropertyProxy Text::property_fill_color_rgba() { return Glib::PropertyProxy(this, "fill-color-rgba"); } Glib::PropertyProxy_ReadOnly Text::property_fill_color_rgba() const { return Glib::PropertyProxy_ReadOnly(this, "fill-color-rgba"); } Glib::PropertyProxy< Glib::RefPtr > Text::property_fill_stipple() { return Glib::PropertyProxy< Glib::RefPtr >(this, "fill-stipple"); } Glib::PropertyProxy_ReadOnly< Glib::RefPtr > Text::property_fill_stipple() const { return Glib::PropertyProxy_ReadOnly< Glib::RefPtr >(this, "fill-stipple"); } Glib::PropertyProxy Text::property_text_width() { return Glib::PropertyProxy(this, "text-width"); } Glib::PropertyProxy_ReadOnly Text::property_text_width() const { return Glib::PropertyProxy_ReadOnly(this, "text-width"); } Glib::PropertyProxy Text::property_text_height() { return Glib::PropertyProxy(this, "text-height"); } Glib::PropertyProxy_ReadOnly Text::property_text_height() const { return Glib::PropertyProxy_ReadOnly(this, "text-height"); } } // namespace Canvas } // namespace Gnome