Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

polygon.h

Go to the documentation of this file.
00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGNOMECANVASMM_POLYGON_H 00004 #define _LIBGNOMECANVASMM_POLYGON_H 00005 00006 #include <glibmm.h> 00007 00008 /* $Id: polygon.hg,v 1.5 2002/04/01 16:54:22 murrayc Exp $ */ 00009 00010 00011 /* polygon.hg 00012 * 00013 * Copyright (C) 1999 The Gtk-- Development Team 00014 * 00015 * This library is free software; you can redistribute it and/or 00016 * modify it under the terms of the GNU Library General Public 00017 * License as published by the Free Software Foundation; either 00018 * version 2 of the License, or (at your option) any later version. 00019 * 00020 * This library is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00023 * Library General Public License for more details. 00024 * 00025 * You should have received a copy of the GNU Library General Public 00026 * License along with this library; if not, write to the Free 00027 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00028 */ 00029 00030 #include <libgnomecanvasmm/shape.h> 00031 #include <libgnomecanvasmm/line.h> 00032 #include <libgnomecanvas/gnome-canvas-polygon.h> 00033 00034 00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00036 typedef struct _GnomeCanvasPolygon GnomeCanvasPolygon; 00037 typedef struct _GnomeCanvasPolygonClass GnomeCanvasPolygonClass; 00038 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00039 00040 00041 namespace Gnome 00042 { 00043 00044 namespace Canvas 00045 { class Polygon_Class; } // namespace Canvas 00046 00047 } // namespace Gnome 00048 namespace Gnome 00049 { 00050 00051 namespace Canvas 00052 { 00053 00054 00055 class Polygon : public Shape 00056 { 00057 public: 00058 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00059 typedef Polygon CppObjectType; 00060 typedef Polygon_Class CppClassType; 00061 typedef GnomeCanvasPolygon BaseObjectType; 00062 typedef GnomeCanvasPolygonClass BaseClassType; 00063 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00064 00065 virtual ~Polygon(); 00066 00067 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00068 00069 private: 00070 friend class Polygon_Class; 00071 static CppClassType polygon_class_; 00072 00073 // noncopyable 00074 Polygon(const Polygon&); 00075 Polygon& operator=(const Polygon&); 00076 00077 protected: 00078 explicit Polygon(const Glib::ConstructParams& construct_params); 00079 explicit Polygon(GnomeCanvasPolygon* castitem); 00080 00081 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00082 00083 public: 00084 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00085 static GType get_type() G_GNUC_CONST; 00086 static GType get_base_type() G_GNUC_CONST; 00087 #endif 00088 00090 GnomeCanvasPolygon* gobj() { return reinterpret_cast<GnomeCanvasPolygon*>(gobject_); } 00091 00093 const GnomeCanvasPolygon* gobj() const { return reinterpret_cast<GnomeCanvasPolygon*>(gobject_); } 00094 00095 00096 public: 00097 //C++ methods used to invoke GTK+ virtual functions: 00098 00099 protected: 00100 //GTK+ Virtual Functions (override these to change behaviour): 00101 00102 //Default Signal Handlers:: 00103 00104 00105 private: 00106 00107 public: 00108 Polygon(Group& parent, const Points& points); 00109 explicit Polygon(Group& parent); 00110 00115 Glib::PropertyProxy<Points> property_points() ; 00116 00121 Glib::PropertyProxy_ReadOnly<Points> property_points() const; 00122 00123 00124 }; 00125 00126 } /* namespace Canvas */ 00127 } /* namespace Gnome */ 00128 00129 00130 namespace Glib 00131 { 00137 Gnome::Canvas::Polygon* wrap(GnomeCanvasPolygon* object, bool take_copy = false); 00138 } 00139 #endif /* _LIBGNOMECANVASMM_POLYGON_H */ 00140

Generated on Fri Aug 13 10:17:58 2004 for libgnomecanvasmm by doxygen 1.3.7