1 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #include "imageframe.h"
4 #include "imageframe_p.h"
5 #include <libgnomecanvasmm/private/shape_p.h>
11 * Copyright (C) 1998 EMC Capital Management Inc.
12 * Developed by Havoc Pennington <hp@pobox.com>
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.
35 ImageFrame::ImageFrame(Group& parentx, ArtPixBuf* pbuf, double x, double y, Gtk::AnchorType anchor, double w, double h)
36 : Item(GNOME_CANVAS_ITEM(g_object_new(get_type(),0)))
38 item_construct(parentx);
39 set("pixbuf", pbuf, "x", x,"y", y,"width", w,"height", h, 0);
42 ImageFrame::ImageFrame(Group& parentx)
43 : Item(GNOME_CANVAS_ITEM(g_object_new(get_type(),0)))
45 item_construct(parentx);
48 } /* namespace Canvas */
49 } /* namespace Gnome */
54 } // anonymous namespace
60 Gnome::Canvas::ImageFrame* wrap(GnomeCanvasImageFrame* object, bool take_copy)
62 return dynamic_cast<Gnome::Canvas::ImageFrame *> (Glib::wrap_auto ((GObject*)(object), take_copy));
65 } /* namespace Glib */
74 /* The *_Class implementation: */
76 const Glib::Class& ImageFrame_Class::init()
78 if(!gtype_) // create the GType if necessary
80 // Glib::Class has to know the class init function to clone custom types.
81 class_init_func_ = &ImageFrame_Class::class_init_function;
83 // This is actually just optimized away, apparently with no harm.
84 // Make sure that the parent type has been created.
85 //CppClassParent::CppObjectType::get_type();
87 // Create the wrapper type, with the same class/instance size as the base type.
88 register_derived_type(gnome_canvas_imageframe_get_type());
90 // Add derived versions of interfaces, if the C type implements any interfaces:
96 void ImageFrame_Class::class_init_function(void* g_class, void* class_data)
98 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
99 CppClassParent::class_init_function(klass, class_data);
103 Glib::ObjectBase* ImageFrame_Class::wrap_new(GObject* o)
105 return manage(new ImageFrame((GnomeCanvasImageFrame*)(o)));
109 /* The implementation: */
111 ImageFrame::ImageFrame(const Glib::ConstructParams& construct_params)
112 : Item(construct_params)
116 ImageFrame::ImageFrame(GnomeCanvasImageFrame* castitem)
117 : Item ((GnomeCanvasItem*)(castitem))
121 ImageFrame::~ImageFrame()
126 ImageFrame::CppClassType ImageFrame::rect_class_; // initialize static member
128 GType ImageFrame::get_type()
130 return rect_class_.init().get_type();
133 GType ImageFrame::get_base_type()
135 return gnome_canvas_imageframe_get_type();
138 Glib::PropertyProxy<double> ImageFrame::property_x()
140 return Glib::PropertyProxy<double> (this, "x");
142 Glib::PropertyProxy_ReadOnly<double> ImageFrame::property_x() const
144 return Glib::PropertyProxy_ReadOnly<double> (this, "x");
146 Glib::PropertyProxy<double> ImageFrame::property_y()
148 return Glib::PropertyProxy<double> (this, "y");
150 Glib::PropertyProxy_ReadOnly<double> ImageFrame::property_y() const
152 return Glib::PropertyProxy_ReadOnly<double> (this, "y");
154 Glib::PropertyProxy<double> ImageFrame::property_width()
156 return Glib::PropertyProxy<double> (this, "width");
158 Glib::PropertyProxy_ReadOnly<double> ImageFrame::property_width() const
160 return Glib::PropertyProxy_ReadOnly<double> (this, "width");
162 Glib::PropertyProxy<double> ImageFrame::property_drawwidth()
164 return Glib::PropertyProxy<double> (this, "drawwidth");
166 Glib::PropertyProxy_ReadOnly<double> ImageFrame::property_drawwidth() const
168 return Glib::PropertyProxy_ReadOnly<double> (this, "drawwidth");
170 Glib::PropertyProxy<double> ImageFrame::property_height()
172 return Glib::PropertyProxy<double> (this, "height");
174 Glib::PropertyProxy_ReadOnly<double> ImageFrame::property_height() const
176 return Glib::PropertyProxy_ReadOnly<double> (this, "height");
178 Glib::PropertyProxy<Gtk::AnchorType> ImageFrame::property_anchor()
180 return Glib::PropertyProxy<Gtk::AnchorType>(this, "anchor");
182 Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> ImageFrame::property_anchor() const
184 return Glib::PropertyProxy_ReadOnly<Gtk::AnchorType>(this, "anchor");
189 } // namespace Canvas