00001
00002
00003
#ifndef _LIBGNOMECANVASMM_POLYGON_H
00004
#define _LIBGNOMECANVASMM_POLYGON_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
#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
00039
00040
00041
namespace Gnome
00042 {
00043
00044
namespace Canvas
00045 {
class Polygon_Class; }
00046
00047 }
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
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
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
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
00098
00099
protected:
00100
00101
00102
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 }
00127 }
00128
00129
00130 namespace Glib
00131 {
00137
Gnome::Canvas::Polygon* wrap(GnomeCanvasPolygon* object,
bool take_copy =
false);
00138 }
00139
#endif
00140