2 #ifndef _LIBGNOMECANVASMM_IMAGEFRAME_H
3 #define _LIBGNOMECANVASMM_IMAGEFRAME_H
11 * Copyright (C) 1998 EMC Capital Management Inc.
12 * Developed by Havoc Pennington <hp@pobox.com>
14 * Copyright (C) 1999 The Gtk-- Development Team
16 * This library is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU Library General Public
18 * License as published by the Free Software Foundation; either
19 * version 2 of the License, or (at your option) any later version.
21 * This library is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * Library General Public License for more details.
26 * You should have received a copy of the GNU Library General Public
27 * License along with this library; if not, write to the Free
28 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31 #include <libgnomecanvasmm/item.h>
32 #include <libgnomecanvasmm/group.h>
33 #include <libgnomecanvasmm/shape.h>
34 #include "canvas-imageframe.h"
37 #ifndef DOXYGEN_SHOULD_SKIP_THIS
38 typedef struct _GnomeCanvasImageFrame GnomeCanvasImageFrame;
39 typedef struct _GnomeCanvasImageFrameClass GnomeCanvasImageFrameClass;
40 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
47 { class ImageFrame_Class; } // namespace Canvas
59 class ImageFrame : public Item
62 #ifndef DOXYGEN_SHOULD_SKIP_THIS
63 typedef ImageFrame CppObjectType;
64 typedef ImageFrame_Class CppClassType;
65 typedef GnomeCanvasImageFrame BaseObjectType;
66 typedef GnomeCanvasImageFrameClass BaseClassType;
67 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
69 virtual ~ImageFrame();
71 #ifndef DOXYGEN_SHOULD_SKIP_THIS
74 friend class ImageFrame_Class;
75 static CppClassType rect_class_;
78 ImageFrame(const ImageFrame&);
79 ImageFrame& operator=(const ImageFrame&);
82 explicit ImageFrame(const Glib::ConstructParams& construct_params);
83 explicit ImageFrame(GnomeCanvasImageFrame* castitem);
85 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
88 #ifndef DOXYGEN_SHOULD_SKIP_THIS
89 static GType get_type() G_GNUC_CONST;
90 static GType get_base_type() G_GNUC_CONST;
93 ///Provides access to the underlying C GtkObject.
94 GnomeCanvasImageFrame* gobj() { return reinterpret_cast<GnomeCanvasImageFrame*>(gobject_); }
96 ///Provides access to the underlying C GtkObject.
97 const GnomeCanvasImageFrame* gobj() const { return reinterpret_cast<GnomeCanvasImageFrame*>(gobject_); }
101 //C++ methods used to invoke GTK+ virtual functions:
104 //GTK+ Virtual Functions (override these to change behaviour):
106 //Default Signal Handlers::
113 ImageFrame(Group& parentx, ArtPixBuf* pbuf, double x, double y, Gtk::AnchorType anchor, double w, double h);
114 explicit ImageFrame(Group& parent);
116 Glib::PropertyProxy<double> property_x();
117 Glib::PropertyProxy_ReadOnly<double> property_x() const;
118 Glib::PropertyProxy<double> property_y();
119 Glib::PropertyProxy_ReadOnly<double> property_y() const;
120 Glib::PropertyProxy<double> property_width();
121 Glib::PropertyProxy_ReadOnly<double> property_width() const;
122 Glib::PropertyProxy<double> property_drawwidth();
123 Glib::PropertyProxy_ReadOnly<double> property_drawwidth() const;
124 Glib::PropertyProxy<double> property_height();
125 Glib::PropertyProxy_ReadOnly<double> property_height() const;
126 Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ;
127 Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const;
131 } /* namespace Canvas */
132 } /* namespace Gnome */
136 /** @relates Gnome::Canvas::ImageFrame
137 * @param object The C instance
138 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
139 * @result A C++ instance that wraps this C instance.
141 Gnome::Canvas::ImageFrame* wrap(GnomeCanvasImageFrame* object, bool take_copy = false);
143 #endif /* _LIBGNOMECANVASMM_IMAGEFRAME_H */