00001
00002
00003 #ifndef _LIBGNOMECANVASMM_RECT_H
00004 #define _LIBGNOMECANVASMM_RECT_H
00005
00006 #include <glibmm.h>
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #include <libgnomecanvasmm/item.h>
00033 #include <libgnomecanvasmm/group.h>
00034 #include <libgnomecanvasmm/rect-ellipse.h>
00035
00036
00037 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00038 typedef struct _GnomeCanvasRect GnomeCanvasRect;
00039 typedef struct _GnomeCanvasRectClass GnomeCanvasRectClass;
00040 #endif
00041
00042
00043 namespace Gnome
00044 {
00045
00046 namespace Canvas
00047 { class Rect_Class; }
00048
00049 }
00050 namespace Gnome
00051 {
00052
00053 namespace Canvas
00054 {
00055
00056
00057
00058
00059 class Rect : public RectEllipse
00060 {
00061 public:
00062 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00063 typedef Rect CppObjectType;
00064 typedef Rect_Class CppClassType;
00065 typedef GnomeCanvasRect BaseObjectType;
00066 typedef GnomeCanvasRectClass BaseClassType;
00067 #endif
00068
00069 virtual ~Rect();
00070
00071 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00072
00073 private:
00074 friend class Rect_Class;
00075 static CppClassType rect_class_;
00076
00077
00078 Rect(const Rect&);
00079 Rect& operator=(const Rect&);
00080
00081 protected:
00082 explicit Rect(const Glib::ConstructParams& construct_params);
00083 explicit Rect(GnomeCanvasRect* castitem);
00084
00085 #endif
00086
00087 public:
00088 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00089 static GType get_type() G_GNUC_CONST;
00090 static GType get_base_type() G_GNUC_CONST;
00091 #endif
00092
00094 GnomeCanvasRect* gobj() { return reinterpret_cast<GnomeCanvasRect*>(gobject_); }
00095
00097 const GnomeCanvasRect* gobj() const { return reinterpret_cast<GnomeCanvasRect*>(gobject_); }
00098
00099
00100 public:
00101
00102
00103 protected:
00104
00105
00106
00107
00108
00109 private:
00110
00111
00112 public:
00113 Rect(Group& parent, double x1, double y1, double x2, double y2);
00114 explicit Rect(Group& parent);
00115
00116
00117 };
00118
00119 }
00120 }
00121
00122 namespace Glib
00123 {
00125 Gnome::Canvas::Rect* wrap(GnomeCanvasRect* object, bool take_copy = false);
00126 }
00127 #endif
00128