libgnomecanvasmm
polygon.h
Go to the documentation of this file.
1// -*- c++ -*-
2// Generated by gtkmmproc -- DO NOT MODIFY!
3#ifndef _LIBGNOMECANVASMM_POLYGON_H
4#define _LIBGNOMECANVASMM_POLYGON_H
5
6
7#include <glibmm.h>
8
9/* $Id: polygon.hg,v 1.5 2002/04/01 16:54:22 murrayc Exp $ */
10
11
12/* polygon.hg
13 *
14 * Copyright (C) 1999 The Gtk-- Development Team
15 *
16 * This library is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU Lesser General Public
18 * License as published by the Free Software Foundation; either
19 * version 2.1 of the License, or (at your option) any later version.
20 *
21 * This library is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * Lesser General Public License for more details.
25 *
26 * You should have received a copy of the GNU Lesser General Public
27 * License along with this library; if not, write to the Free
28 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29 */
30
33#include <libgnomecanvas/gnome-canvas-polygon.h>
34
35
36#ifndef DOXYGEN_SHOULD_SKIP_THIS
37typedef struct _GnomeCanvasPolygon GnomeCanvasPolygon;
38typedef struct _GnomeCanvasPolygonClass GnomeCanvasPolygonClass;
39#endif /* DOXYGEN_SHOULD_SKIP_THIS */
40
41
42namespace Gnome
43{
44
45namespace Canvas
46{ class Polygon_Class; } // namespace Canvas
47
48} // namespace Gnome
49namespace Gnome
50{
51
52namespace Canvas
53{
54
55
56class Polygon : public Shape
57{
58 public:
59#ifndef DOXYGEN_SHOULD_SKIP_THIS
60 typedef Polygon CppObjectType;
61 typedef Polygon_Class CppClassType;
62 typedef GnomeCanvasPolygon BaseObjectType;
63 typedef GnomeCanvasPolygonClass BaseClassType;
64#endif /* DOXYGEN_SHOULD_SKIP_THIS */
65
66 virtual ~Polygon();
67
68#ifndef DOXYGEN_SHOULD_SKIP_THIS
69
70private:
71 friend class Polygon_Class;
72 static CppClassType polygon_class_;
73
74 // noncopyable
75 Polygon(const Polygon&);
76 Polygon& operator=(const Polygon&);
77
78protected:
79 explicit Polygon(const Glib::ConstructParams& construct_params);
80 explicit Polygon(GnomeCanvasPolygon* castitem);
81
82#endif /* DOXYGEN_SHOULD_SKIP_THIS */
83
84public:
85#ifndef DOXYGEN_SHOULD_SKIP_THIS
86 static GType get_type() G_GNUC_CONST;
87 static GType get_base_type() G_GNUC_CONST;
88#endif
89
91 GnomeCanvasPolygon* gobj() { return reinterpret_cast<GnomeCanvasPolygon*>(gobject_); }
92
94 const GnomeCanvasPolygon* gobj() const { return reinterpret_cast<GnomeCanvasPolygon*>(gobject_); }
95
96
97public:
98 //C++ methods used to invoke GTK+ virtual functions:
99#ifdef GLIBMM_VFUNCS_ENABLED
100#endif //GLIBMM_VFUNCS_ENABLED
101
102protected:
103 //GTK+ Virtual Functions (override these to change behaviour):
104#ifdef GLIBMM_VFUNCS_ENABLED
105#endif //GLIBMM_VFUNCS_ENABLED
106
107 //Default Signal Handlers::
108#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
109#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
110
111
112private:
113
114public:
115 Polygon(Group& parent, const Points& points);
116 explicit Polygon(Group& parent);
117
118 #ifdef GLIBMM_PROPERTIES_ENABLED
125 Glib::PropertyProxy<Points> property_points() ;
126#endif //#GLIBMM_PROPERTIES_ENABLED
127
128#ifdef GLIBMM_PROPERTIES_ENABLED
135 Glib::PropertyProxy_ReadOnly<Points> property_points() const;
136#endif //#GLIBMM_PROPERTIES_ENABLED
137
138
139};
140
141} /* namespace Canvas */
142} /* namespace Gnome */
143
144
145namespace Glib
146{
155 Gnome::Canvas::Polygon* wrap(GnomeCanvasPolygon* object, bool take_copy = false);
156} //namespace Glib
157
158
159#endif /* _LIBGNOMECANVASMM_POLYGON_H */
160
Definition: group.h:60
Wrapper for GnomeCanvasPoints.
Definition: line.h:79
Definition: polygon.h:57
Gnome::Canvas::Polygon * wrap(GnomeCanvasPolygon *object, bool take_copy=false)
A Glib::wrap() method for this object.
Glib::PropertyProxy< Points > property_points()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
const GnomeCanvasPolygon * gobj() const
Provides access to the underlying C GtkObject.
Definition: polygon.h:94
Polygon(Group &parent)
Glib::PropertyProxy_ReadOnly< Points > property_points() const
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
GnomeCanvasPolygon * gobj()
Provides access to the underlying C GtkObject.
Definition: polygon.h:91
Polygon(Group &parent, const Points &points)
Definition: shape.h:58
Definition: bpath.h:150
Definition: affinetrans.h:30