libgnomecanvasmm
|
00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGNOMECANVASMM_WIDGET_H 00004 #define _LIBGNOMECANVASMM_WIDGET_H 00005 00006 00007 #include <glibmm.h> 00008 00009 /* $Id: widget.hg,v 1.7 2003/12/19 15:28:43 murrayc Exp $ */ 00010 00011 /* widget.h 00012 * 00013 * Copyright (C) 1998 EMC Capital Management Inc. 00014 * Developed by Havoc Pennington <hp@pobox.com> 00015 * 00016 * Copyright (C) 1999 The Gtk-- Development Team 00017 * 00018 * This library is free software; you can redistribute it and/or 00019 * modify it under the terms of the GNU Lesser General Public 00020 * License as published by the Free Software Foundation; either 00021 * version 2.1 of the License, or (at your option) any later version. 00022 * 00023 * This library is distributed in the hope that it will be useful, 00024 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00025 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00026 * Lesser General Public License for more details. 00027 * 00028 * You should have received a copy of the GNU Lesser General Public 00029 * License along with this library; if not, write to the Free 00030 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00031 */ 00032 00033 #include <libgnomecanvasmm/item.h> 00034 #include <libgnomecanvas/gnome-canvas-widget.h> 00035 #include <gtkmm/widget.h> 00036 00037 00038 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00039 typedef struct _GnomeCanvasWidget GnomeCanvasWidget; 00040 typedef struct _GnomeCanvasWidgetClass GnomeCanvasWidgetClass; 00041 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00042 00043 00044 namespace Gnome 00045 { 00046 00047 namespace Canvas 00048 { class Widget_Class; } // namespace Canvas 00049 00050 } // namespace Gnome 00051 namespace Gnome 00052 { 00053 00054 namespace Canvas 00055 { 00056 00057 class Group; 00058 00059 00060 class Widget : public Item 00061 { 00062 public: 00063 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00064 typedef Widget CppObjectType; 00065 typedef Widget_Class CppClassType; 00066 typedef GnomeCanvasWidget BaseObjectType; 00067 typedef GnomeCanvasWidgetClass BaseClassType; 00068 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00069 00070 virtual ~Widget(); 00071 00072 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00073 00074 private: 00075 friend class Widget_Class; 00076 static CppClassType widget_class_; 00077 00078 // noncopyable 00079 Widget(const Widget&); 00080 Widget& operator=(const Widget&); 00081 00082 protected: 00083 explicit Widget(const Glib::ConstructParams& construct_params); 00084 explicit Widget(GnomeCanvasWidget* castitem); 00085 00086 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00087 00088 public: 00089 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00090 static GType get_type() G_GNUC_CONST; 00091 static GType get_base_type() G_GNUC_CONST; 00092 #endif 00093 00095 GnomeCanvasWidget* gobj() { return reinterpret_cast<GnomeCanvasWidget*>(gobject_); } 00096 00098 const GnomeCanvasWidget* gobj() const { return reinterpret_cast<GnomeCanvasWidget*>(gobject_); } 00099 00100 00101 public: 00102 //C++ methods used to invoke GTK+ virtual functions: 00103 #ifdef GLIBMM_VFUNCS_ENABLED 00104 #endif //GLIBMM_VFUNCS_ENABLED 00105 00106 protected: 00107 //GTK+ Virtual Functions (override these to change behaviour): 00108 #ifdef GLIBMM_VFUNCS_ENABLED 00109 #endif //GLIBMM_VFUNCS_ENABLED 00110 00111 //Default Signal Handlers:: 00112 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00113 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00114 00115 00116 private: 00117 00118 public: 00119 Widget(Group& parent, double x, double y, Gtk::Widget& w); 00120 explicit Widget(Group& parent); 00121 00122 #ifdef GLIBMM_PROPERTIES_ENABLED 00123 00129 Glib::PropertyProxy<Gtk::Widget*> property_widget() ; 00130 #endif //#GLIBMM_PROPERTIES_ENABLED 00131 00132 #ifdef GLIBMM_PROPERTIES_ENABLED 00133 00139 Glib::PropertyProxy_ReadOnly<Gtk::Widget*> property_widget() const; 00140 #endif //#GLIBMM_PROPERTIES_ENABLED 00141 00142 #ifdef GLIBMM_PROPERTIES_ENABLED 00143 00149 Glib::PropertyProxy<double> property_x() ; 00150 #endif //#GLIBMM_PROPERTIES_ENABLED 00151 00152 #ifdef GLIBMM_PROPERTIES_ENABLED 00153 00159 Glib::PropertyProxy_ReadOnly<double> property_x() const; 00160 #endif //#GLIBMM_PROPERTIES_ENABLED 00161 00162 #ifdef GLIBMM_PROPERTIES_ENABLED 00163 00169 Glib::PropertyProxy<double> property_y() ; 00170 #endif //#GLIBMM_PROPERTIES_ENABLED 00171 00172 #ifdef GLIBMM_PROPERTIES_ENABLED 00173 00179 Glib::PropertyProxy_ReadOnly<double> property_y() const; 00180 #endif //#GLIBMM_PROPERTIES_ENABLED 00181 00182 #ifdef GLIBMM_PROPERTIES_ENABLED 00183 00189 Glib::PropertyProxy<double> property_width() ; 00190 #endif //#GLIBMM_PROPERTIES_ENABLED 00191 00192 #ifdef GLIBMM_PROPERTIES_ENABLED 00193 00199 Glib::PropertyProxy_ReadOnly<double> property_width() const; 00200 #endif //#GLIBMM_PROPERTIES_ENABLED 00201 00202 #ifdef GLIBMM_PROPERTIES_ENABLED 00203 00209 Glib::PropertyProxy<double> property_height() ; 00210 #endif //#GLIBMM_PROPERTIES_ENABLED 00211 00212 #ifdef GLIBMM_PROPERTIES_ENABLED 00213 00219 Glib::PropertyProxy_ReadOnly<double> property_height() const; 00220 #endif //#GLIBMM_PROPERTIES_ENABLED 00221 00222 #ifdef GLIBMM_PROPERTIES_ENABLED 00223 00229 Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ; 00230 #endif //#GLIBMM_PROPERTIES_ENABLED 00231 00232 #ifdef GLIBMM_PROPERTIES_ENABLED 00233 00239 Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const; 00240 #endif //#GLIBMM_PROPERTIES_ENABLED 00241 00242 #ifdef GLIBMM_PROPERTIES_ENABLED 00243 00249 Glib::PropertyProxy<bool> property_size_pixels() ; 00250 #endif //#GLIBMM_PROPERTIES_ENABLED 00251 00252 #ifdef GLIBMM_PROPERTIES_ENABLED 00253 00259 Glib::PropertyProxy_ReadOnly<bool> property_size_pixels() const; 00260 #endif //#GLIBMM_PROPERTIES_ENABLED 00261 00262 00263 }; 00264 00265 } /* namespace Canvas */ 00266 } /* namespace Gnome */ 00267 00268 00269 namespace Glib 00270 { 00279 Gnome::Canvas::Widget* wrap(GnomeCanvasWidget* object, bool take_copy = false); 00280 } //namespace Glib 00281 00282 00283 #endif /* _LIBGNOMECANVASMM_WIDGET_H */ 00284