add new sigc++2 directory
[ardour.git] / libs / libgnomecanvasmm / libgnomecanvasmm / bpath.h
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _LIBGNOMECANVASMM_BPATH_H
4 #define _LIBGNOMECANVASMM_BPATH_H
5
6 #include <glibmm.h>
7
8 /* $Id$ */
9
10 /* bpath.h
11  * 
12  *
13  * Copyright (C) 2002 The libgnomecanvasmm Development Team
14  *
15  * This library is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU Library General Public
17  * License as published by the Free Software Foundation; either
18  * version 2 of the License, or (at your option) any later version.
19  *
20  * This library is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
23  * Library General Public License for more details.
24  *
25  * You should have received a copy of the GNU Library General Public
26  * License along with this library; if not, write to the Free
27  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28  */
29
30 #include <libgnomecanvasmm/shape.h>
31 #include <libgnomecanvasmm/path-def.h>
32 #include <libgnomecanvas/gnome-canvas-bpath.h>
33
34
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 typedef struct _GnomeCanvasBpath GnomeCanvasBpath;
37 typedef struct _GnomeCanvasBpathClass GnomeCanvasBpathClass;
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39
40
41 namespace Gnome
42 {
43
44 namespace Canvas
45 { class Bpath_Class; } // namespace Canvas
46
47 } // namespace Gnome
48 namespace Gnome
49 {
50
51 namespace Canvas
52 {
53
54
55 class Bpath : public Shape
56 {
57   public:
58 #ifndef DOXYGEN_SHOULD_SKIP_THIS
59   typedef Bpath CppObjectType;
60   typedef Bpath_Class CppClassType;
61   typedef GnomeCanvasBpath BaseObjectType;
62   typedef GnomeCanvasBpathClass BaseClassType;
63 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
64
65   virtual ~Bpath();
66
67 #ifndef DOXYGEN_SHOULD_SKIP_THIS
68
69 private:
70   friend class Bpath_Class;
71   static CppClassType bpath_class_;
72
73   // noncopyable
74   Bpath(const Bpath&);
75   Bpath& operator=(const Bpath&);
76
77 protected:
78   explicit Bpath(const Glib::ConstructParams& construct_params);
79   explicit Bpath(GnomeCanvasBpath* castitem);
80
81 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
82
83 public:
84 #ifndef DOXYGEN_SHOULD_SKIP_THIS
85   static GType get_type()      G_GNUC_CONST;
86   static GType get_base_type() G_GNUC_CONST;
87 #endif
88
89   ///Provides access to the underlying C GtkObject.
90   GnomeCanvasBpath*       gobj()       { return reinterpret_cast<GnomeCanvasBpath*>(gobject_); }
91
92   ///Provides access to the underlying C GtkObject.
93   const GnomeCanvasBpath* gobj() const { return reinterpret_cast<GnomeCanvasBpath*>(gobject_); }
94
95
96 public:
97   //C++ methods used to invoke GTK+ virtual functions:
98
99 protected:
100   //GTK+ Virtual Functions (override these to change behaviour):
101
102   //Default Signal Handlers::
103
104
105 private:
106
107 public:
108   explicit Bpath(Group& parent);
109
110   // This property stores a pointer to GnomeCanvasPathDef
111   /** 
112    *
113    * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
114    * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
115    * the value of the property changes.
116    */
117   Glib::PropertyProxy<gpointer> property_bpath() ;
118
119 /** 
120    *
121    * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
122    * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
123    * the value of the property changes.
124    */
125   Glib::PropertyProxy_ReadOnly<gpointer> property_bpath() const;
126
127
128   void set_bpath(const Glib::RefPtr<PathDef>& path);
129
130
131 };
132
133 } /* namespace Canvas */
134
135 } /* namespace Gnome */
136
137
138 namespace Glib
139 {
140   /** @relates Gnome::Canvas::Bpath
141    * @param object The C instance
142    * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
143    * @result A C++ instance that wraps this C instance.
144    */
145   Gnome::Canvas::Bpath* wrap(GnomeCanvasBpath* object, bool take_copy = false);
146 }
147 #endif /* _LIBGNOMECANVASMM_BPATH_H */
148