2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _LIBGNOMECANVASMM_RECT_H
4 #define _LIBGNOMECANVASMM_RECT_H
12 * Copyright (C) 1998 EMC Capital Management Inc.
13 * Developed by Havoc Pennington <hp@pobox.com>
15 * Copyright (C) 1999 The Gtk-- Development Team
17 * This library is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU Library General Public
19 * License as published by the Free Software Foundation; either
20 * version 2 of the License, or (at your option) any later version.
22 * This library is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 * Library General Public License for more details.
27 * You should have received a copy of the GNU Library General Public
28 * License along with this library; if not, write to the Free
29 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 #include <libgnomecanvasmm/item.h>
33 #include <libgnomecanvasmm/group.h>
34 #include <libgnomecanvasmm/rect-ellipse.h>
37 #ifndef DOXYGEN_SHOULD_SKIP_THIS
38 typedef struct _GnomeCanvasRect GnomeCanvasRect;
39 typedef struct _GnomeCanvasRectClass GnomeCanvasRectClass;
40 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
47 { class Rect_Class; } // namespace Canvas
59 class Rect : public RectEllipse
62 #ifndef DOXYGEN_SHOULD_SKIP_THIS
63 typedef Rect CppObjectType;
64 typedef Rect_Class CppClassType;
65 typedef GnomeCanvasRect BaseObjectType;
66 typedef GnomeCanvasRectClass BaseClassType;
67 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
71 #ifndef DOXYGEN_SHOULD_SKIP_THIS
74 friend class Rect_Class;
75 static CppClassType rect_class_;
79 Rect& operator=(const Rect&);
82 explicit Rect(const Glib::ConstructParams& construct_params);
83 explicit Rect(GnomeCanvasRect* 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 GnomeCanvasRect* gobj() { return reinterpret_cast<GnomeCanvasRect*>(gobject_); }
96 ///Provides access to the underlying C GtkObject.
97 const GnomeCanvasRect* gobj() const { return reinterpret_cast<GnomeCanvasRect*>(gobject_); }
101 //C++ methods used to invoke GTK+ virtual functions:
104 //GTK+ Virtual Functions (override these to change behaviour):
106 //Default Signal Handlers::
113 Rect(Group& parent, double x1, double y1, double x2, double y2);
114 explicit Rect(Group& parent);
119 } /* namespace Canvas */
120 } /* namespace Gnome */
124 /** @relates Gnome::Canvas::Rect
125 * @param object The C instance
126 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
127 * @result A C++ instance that wraps this C instance.
129 Gnome::Canvas::Rect* wrap(GnomeCanvasRect* object, bool take_copy = false);
131 #endif /* _LIBGNOMECANVASMM_RECT_H */