1 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #include "imageframe.h"
4 #include "imageframe_p.h"
5 #include <libgnomecanvasmm/private/shape_p.h>
10 * Copyright (C) 1998 EMC Capital Management Inc.
11 * Developed by Havoc Pennington <hp@pobox.com>
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.
34 ImageFrame::ImageFrame(Group
& parentx
, ArtPixBuf
* pbuf
, double x
, double y
, Gtk::AnchorType anchor
, double w
, double h
)
35 : Item(GNOME_CANVAS_ITEM(g_object_new(get_type(),0)))
37 item_construct(parentx
);
38 set("pixbuf", pbuf
, "x", x
,"y", y
,"width", w
,"height", h
, "anchor", anchor
, 0);
41 ImageFrame::ImageFrame(Group
& parentx
)
42 : Item(GNOME_CANVAS_ITEM(g_object_new(get_type(),0)))
44 item_construct(parentx
);
47 } /* namespace Canvas */
48 } /* namespace Gnome */
53 } // anonymous namespace
59 Gnome::Canvas::ImageFrame
* wrap(GnomeCanvasImageFrame
* object
, bool take_copy
)
61 return dynamic_cast<Gnome::Canvas::ImageFrame
*> (Glib::wrap_auto ((GObject
*)(object
), take_copy
));
64 } /* namespace Glib */
73 /* The *_Class implementation: */
75 const Glib::Class
& ImageFrame_Class::init()
77 if(!gtype_
) // create the GType if necessary
79 // Glib::Class has to know the class init function to clone custom types.
80 class_init_func_
= &ImageFrame_Class::class_init_function
;
82 // This is actually just optimized away, apparently with no harm.
83 // Make sure that the parent type has been created.
84 //CppClassParent::CppObjectType::get_type();
86 // Create the wrapper type, with the same class/instance size as the base type.
87 register_derived_type(gnome_canvas_imageframe_get_type());
89 // Add derived versions of interfaces, if the C type implements any interfaces:
95 void ImageFrame_Class::class_init_function(void* g_class
, void* class_data
)
97 BaseClassType
*const klass
= static_cast<BaseClassType
*>(g_class
);
98 CppClassParent::class_init_function(klass
, class_data
);
102 Glib::ObjectBase
* ImageFrame_Class::wrap_new(GObject
* o
)
104 return manage(new ImageFrame((GnomeCanvasImageFrame
*)(o
)));
108 /* The implementation: */
110 ImageFrame::ImageFrame(const Glib::ConstructParams
& construct_params
)
111 : Item(construct_params
)
115 ImageFrame::ImageFrame(GnomeCanvasImageFrame
* castitem
)
116 : Item ((GnomeCanvasItem
*)(castitem
))
120 ImageFrame::~ImageFrame()
125 ImageFrame::CppClassType
ImageFrame::rect_class_
; // initialize static member
127 GType
ImageFrame::get_type()
129 return rect_class_
.init().get_type();
132 GType
ImageFrame::get_base_type()
134 return gnome_canvas_imageframe_get_type();
137 Glib::PropertyProxy
<double> ImageFrame::property_x()
139 return Glib::PropertyProxy
<double> (this, "x");
141 Glib::PropertyProxy_ReadOnly
<double> ImageFrame::property_x() const
143 return Glib::PropertyProxy_ReadOnly
<double> (this, "x");
145 Glib::PropertyProxy
<double> ImageFrame::property_y()
147 return Glib::PropertyProxy
<double> (this, "y");
149 Glib::PropertyProxy_ReadOnly
<double> ImageFrame::property_y() const
151 return Glib::PropertyProxy_ReadOnly
<double> (this, "y");
153 Glib::PropertyProxy
<double> ImageFrame::property_width()
155 return Glib::PropertyProxy
<double> (this, "width");
157 Glib::PropertyProxy_ReadOnly
<double> ImageFrame::property_width() const
159 return Glib::PropertyProxy_ReadOnly
<double> (this, "width");
161 Glib::PropertyProxy
<double> ImageFrame::property_drawwidth()
163 return Glib::PropertyProxy
<double> (this, "drawwidth");
165 Glib::PropertyProxy_ReadOnly
<double> ImageFrame::property_drawwidth() const
167 return Glib::PropertyProxy_ReadOnly
<double> (this, "drawwidth");
169 Glib::PropertyProxy
<double> ImageFrame::property_height()
171 return Glib::PropertyProxy
<double> (this, "height");
173 Glib::PropertyProxy_ReadOnly
<double> ImageFrame::property_height() const
175 return Glib::PropertyProxy_ReadOnly
<double> (this, "height");
177 Glib::PropertyProxy
<Gtk::AnchorType
> ImageFrame::property_anchor()
179 return Glib::PropertyProxy
<Gtk::AnchorType
>(this, "anchor");
181 Glib::PropertyProxy_ReadOnly
<Gtk::AnchorType
> ImageFrame::property_anchor() const
183 return Glib::PropertyProxy_ReadOnly
<Gtk::AnchorType
>(this, "anchor");
188 } // namespace Canvas