libgnomecanvasmm
|
00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGNOMECANVASMM_RECT_H 00004 #define _LIBGNOMECANVASMM_RECT_H 00005 00006 00007 #include <glibmm.h> 00008 00009 /* $Id: rect.hg,v 1.5 2002/04/01 16:54:22 murrayc Exp $ */ 00010 00011 /* rect.h 00012 * 00013 * Copyright (C) 1998 EMC Capital Management Inc. 00014 * Developed by Havoc Pennington <hp@pobox.com> 00015 * 00016 * Copyright (C) 1999 The Gtk-- Development Team 00017 * 00018 * This library is free software; you can redistribute it and/or 00019 * modify it under the terms of the GNU Lesser General Public 00020 * License as published by the Free Software Foundation; either 00021 * version 2.1 of the License, or (at your option) any later version. 00022 * 00023 * This library is distributed in the hope that it will be useful, 00024 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00025 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00026 * Lesser General Public License for more details. 00027 * 00028 * You should have received a copy of the GNU Lesser General Public 00029 * License along with this library; if not, write to the Free 00030 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00031 */ 00032 00033 #include <libgnomecanvasmm/item.h> 00034 #include <libgnomecanvasmm/group.h> 00035 #include <libgnomecanvasmm/rect-ellipse.h> 00036 00037 00038 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00039 typedef struct _GnomeCanvasRect GnomeCanvasRect; 00040 typedef struct _GnomeCanvasRectClass GnomeCanvasRectClass; 00041 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00042 00043 00044 namespace Gnome 00045 { 00046 00047 namespace Canvas 00048 { class Rect_Class; } // namespace Canvas 00049 00050 } // namespace Gnome 00051 namespace Gnome 00052 { 00053 00054 namespace Canvas 00055 { 00056 00057 //class Group; 00058 00059 00060 class Rect : public RectEllipse 00061 { 00062 public: 00063 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00064 typedef Rect CppObjectType; 00065 typedef Rect_Class CppClassType; 00066 typedef GnomeCanvasRect BaseObjectType; 00067 typedef GnomeCanvasRectClass BaseClassType; 00068 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00069 00070 virtual ~Rect(); 00071 00072 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00073 00074 private: 00075 friend class Rect_Class; 00076 static CppClassType rect_class_; 00077 00078 // noncopyable 00079 Rect(const Rect&); 00080 Rect& operator=(const Rect&); 00081 00082 protected: 00083 explicit Rect(const Glib::ConstructParams& construct_params); 00084 explicit Rect(GnomeCanvasRect* castitem); 00085 00086 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00087 00088 public: 00089 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00090 static GType get_type() G_GNUC_CONST; 00091 static GType get_base_type() G_GNUC_CONST; 00092 #endif 00093 00095 GnomeCanvasRect* gobj() { return reinterpret_cast<GnomeCanvasRect*>(gobject_); } 00096 00098 const GnomeCanvasRect* gobj() const { return reinterpret_cast<GnomeCanvasRect*>(gobject_); } 00099 00100 00101 public: 00102 //C++ methods used to invoke GTK+ virtual functions: 00103 #ifdef GLIBMM_VFUNCS_ENABLED 00104 #endif //GLIBMM_VFUNCS_ENABLED 00105 00106 protected: 00107 //GTK+ Virtual Functions (override these to change behaviour): 00108 #ifdef GLIBMM_VFUNCS_ENABLED 00109 #endif //GLIBMM_VFUNCS_ENABLED 00110 00111 //Default Signal Handlers:: 00112 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00113 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00114 00115 00116 private: 00117 00118 00119 public: 00120 Rect(Group& parent, double x1, double y1, double x2, double y2); 00121 explicit Rect(Group& parent); 00122 00123 00124 }; 00125 00126 } /* namespace Canvas */ 00127 } /* namespace Gnome */ 00128 00129 00130 namespace Glib 00131 { 00140 Gnome::Canvas::Rect* wrap(GnomeCanvasRect* object, bool take_copy = false); 00141 } //namespace Glib 00142 00143 00144 #endif /* _LIBGNOMECANVASMM_RECT_H */ 00145