libgnomecanvasmm
widget.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _LIBGNOMECANVASMM_WIDGET_H
4 #define _LIBGNOMECANVASMM_WIDGET_H
5 
6 
7 #include <glibmm.h>
8 
9 /* $Id: widget.hg,v 1.7 2003/12/19 15:28:43 murrayc Exp $ */
10 
11 /* widget.h
12  *
13  * Copyright (C) 1998 EMC Capital Management Inc.
14  * Developed by Havoc Pennington <hp@pobox.com>
15  *
16  * Copyright (C) 1999 The Gtk-- Development Team
17  *
18  * This library is free software; you can redistribute it and/or
19  * modify it under the terms of the GNU Lesser General Public
20  * License as published by the Free Software Foundation; either
21  * version 2.1 of the License, or (at your option) any later version.
22  *
23  * This library is distributed in the hope that it will be useful,
24  * but WITHOUT ANY WARRANTY; without even the implied warranty of
25  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26  * Lesser General Public License for more details.
27  *
28  * You should have received a copy of the GNU Lesser General Public
29  * License along with this library; if not, write to the Free
30  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31  */
32 
33 #include <libgnomecanvasmm/item.h>
34 #include <libgnomecanvas/gnome-canvas-widget.h>
35 #include <gtkmm/widget.h>
36 
37 
38 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 typedef struct _GnomeCanvasWidget GnomeCanvasWidget;
40 typedef struct _GnomeCanvasWidgetClass GnomeCanvasWidgetClass;
41 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
42 
43 
44 namespace Gnome
45 {
46 
47 namespace Canvas
48 { class Widget_Class; } // namespace Canvas
49 
50 } // namespace Gnome
51 namespace Gnome
52 {
53 
54 namespace Canvas
55 {
56 
57 class Group;
58 
59 
60 class Widget : public Item
61 {
62  public:
63 #ifndef DOXYGEN_SHOULD_SKIP_THIS
64  typedef Widget CppObjectType;
65  typedef Widget_Class CppClassType;
66  typedef GnomeCanvasWidget BaseObjectType;
67  typedef GnomeCanvasWidgetClass BaseClassType;
68 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
69 
70  virtual ~Widget();
71 
72 #ifndef DOXYGEN_SHOULD_SKIP_THIS
73 
74 private:
75  friend class Widget_Class;
76  static CppClassType widget_class_;
77 
78  // noncopyable
79  Widget(const Widget&);
80  Widget& operator=(const Widget&);
81 
82 protected:
83  explicit Widget(const Glib::ConstructParams& construct_params);
84  explicit Widget(GnomeCanvasWidget* castitem);
85 
86 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
87 
88 public:
89 #ifndef DOXYGEN_SHOULD_SKIP_THIS
90  static GType get_type() G_GNUC_CONST;
91  static GType get_base_type() G_GNUC_CONST;
92 #endif
93 
95  GnomeCanvasWidget* gobj() { return reinterpret_cast<GnomeCanvasWidget*>(gobject_); }
96 
98  const GnomeCanvasWidget* gobj() const { return reinterpret_cast<GnomeCanvasWidget*>(gobject_); }
99 
100 
101 public:
102  //C++ methods used to invoke GTK+ virtual functions:
103 #ifdef GLIBMM_VFUNCS_ENABLED
104 #endif //GLIBMM_VFUNCS_ENABLED
105 
106 protected:
107  //GTK+ Virtual Functions (override these to change behaviour):
108 #ifdef GLIBMM_VFUNCS_ENABLED
109 #endif //GLIBMM_VFUNCS_ENABLED
110 
111  //Default Signal Handlers::
112 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
113 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
114 
115 
116 private:
117 
118 public:
119  Widget(Group& parent, double x, double y, Gtk::Widget& w);
120  explicit Widget(Group& parent);
121 
122  #ifdef GLIBMM_PROPERTIES_ENABLED
123 
129  Glib::PropertyProxy<Gtk::Widget*> property_widget() ;
130 #endif //#GLIBMM_PROPERTIES_ENABLED
131 
132 #ifdef GLIBMM_PROPERTIES_ENABLED
133 
139  Glib::PropertyProxy_ReadOnly<Gtk::Widget*> property_widget() const;
140 #endif //#GLIBMM_PROPERTIES_ENABLED
141 
142  #ifdef GLIBMM_PROPERTIES_ENABLED
143 
149  Glib::PropertyProxy<double> property_x() ;
150 #endif //#GLIBMM_PROPERTIES_ENABLED
151 
152 #ifdef GLIBMM_PROPERTIES_ENABLED
153 
159  Glib::PropertyProxy_ReadOnly<double> property_x() const;
160 #endif //#GLIBMM_PROPERTIES_ENABLED
161 
162  #ifdef GLIBMM_PROPERTIES_ENABLED
163 
169  Glib::PropertyProxy<double> property_y() ;
170 #endif //#GLIBMM_PROPERTIES_ENABLED
171 
172 #ifdef GLIBMM_PROPERTIES_ENABLED
173 
179  Glib::PropertyProxy_ReadOnly<double> property_y() const;
180 #endif //#GLIBMM_PROPERTIES_ENABLED
181 
182  #ifdef GLIBMM_PROPERTIES_ENABLED
183 
189  Glib::PropertyProxy<double> property_width() ;
190 #endif //#GLIBMM_PROPERTIES_ENABLED
191 
192 #ifdef GLIBMM_PROPERTIES_ENABLED
193 
199  Glib::PropertyProxy_ReadOnly<double> property_width() const;
200 #endif //#GLIBMM_PROPERTIES_ENABLED
201 
202  #ifdef GLIBMM_PROPERTIES_ENABLED
203 
209  Glib::PropertyProxy<double> property_height() ;
210 #endif //#GLIBMM_PROPERTIES_ENABLED
211 
212 #ifdef GLIBMM_PROPERTIES_ENABLED
213 
219  Glib::PropertyProxy_ReadOnly<double> property_height() const;
220 #endif //#GLIBMM_PROPERTIES_ENABLED
221 
222  #ifdef GLIBMM_PROPERTIES_ENABLED
223 
229  Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ;
230 #endif //#GLIBMM_PROPERTIES_ENABLED
231 
232 #ifdef GLIBMM_PROPERTIES_ENABLED
233 
239  Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const;
240 #endif //#GLIBMM_PROPERTIES_ENABLED
241 
242  #ifdef GLIBMM_PROPERTIES_ENABLED
243 
249  Glib::PropertyProxy<bool> property_size_pixels() ;
250 #endif //#GLIBMM_PROPERTIES_ENABLED
251 
252 #ifdef GLIBMM_PROPERTIES_ENABLED
253 
259  Glib::PropertyProxy_ReadOnly<bool> property_size_pixels() const;
260 #endif //#GLIBMM_PROPERTIES_ENABLED
261 
262 
263 };
264 
265 } /* namespace Canvas */
266 } /* namespace Gnome */
267 
268 
269 namespace Glib
270 {
279  Gnome::Canvas::Widget* wrap(GnomeCanvasWidget* object, bool take_copy = false);
280 } //namespace Glib
281 
282 
283 #endif /* _LIBGNOMECANVASMM_WIDGET_H */
284 
Glib::PropertyProxy< double > property_x()
You rarely need to use properties because there are get_ and set_ methods for almost all of them...
Glib::PropertyProxy< Gtk::Widget * > property_widget()
You rarely need to use properties because there are get_ and set_ methods for almost all of them...
Definition: bpath.h:149
Glib::PropertyProxy< Gtk::AnchorType > property_anchor()
You rarely need to use properties because there are get_ and set_ methods for almost all of them...
Definition: affinetrans.h:29
Glib::PropertyProxy< bool > property_size_pixels()
You rarely need to use properties because there are get_ and set_ methods for almost all of them...
GnomeCanvasWidget * gobj()
Provides access to the underlying C GtkObject.
Definition: widget.h:95
Widget(Group &parent, double x, double y, Gtk::Widget &w)
Glib::PropertyProxy< double > property_y()
You rarely need to use properties because there are get_ and set_ methods for almost all of them...
Glib::PropertyProxy< double > property_width()
You rarely need to use properties because there are get_ and set_ methods for almost all of them...
Definition: widget.h:60
Glib::PropertyProxy< double > property_height()
You rarely need to use properties because there are get_ and set_ methods for almost all of them...
Definition: item.h:66
Definition: group.h:59
const GnomeCanvasWidget * gobj() const
Provides access to the underlying C GtkObject.
Definition: widget.h:98