Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

widget.h

Go to the documentation of this file.
00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGNOMECANVASMM_WIDGET_H 00004 #define _LIBGNOMECANVASMM_WIDGET_H 00005 00006 #include <glibmm.h> 00007 00008 /* $Id: widget.hg,v 1.7 2003/12/19 15:28:43 murrayc Exp $ */ 00009 00010 /* widget.h 00011 * 00012 * Copyright (C) 1998 EMC Capital Management Inc. 00013 * Developed by Havoc Pennington <hp@pobox.com> 00014 * 00015 * Copyright (C) 1999 The Gtk-- Development Team 00016 * 00017 * This library is free software; you can redistribute it and/or 00018 * modify it under the terms of the GNU Library General Public 00019 * License as published by the Free Software Foundation; either 00020 * version 2 of the License, or (at your option) any later version. 00021 * 00022 * This library is distributed in the hope that it will be useful, 00023 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00024 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00025 * Library General Public License for more details. 00026 * 00027 * You should have received a copy of the GNU Library General Public 00028 * License along with this library; if not, write to the Free 00029 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00030 */ 00031 00032 #include <libgnomecanvasmm/item.h> 00033 #include <libgnomecanvas/gnome-canvas-widget.h> 00034 #include <gtkmm/widget.h> 00035 00036 00037 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00038 typedef struct _GnomeCanvasWidget GnomeCanvasWidget; 00039 typedef struct _GnomeCanvasWidgetClass GnomeCanvasWidgetClass; 00040 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00041 00042 00043 namespace Gnome 00044 { 00045 00046 namespace Canvas 00047 { class Widget_Class; } // namespace Canvas 00048 00049 } // namespace Gnome 00050 namespace Gnome 00051 { 00052 00053 namespace Canvas 00054 { 00055 00056 class Group; 00057 00058 00059 class Widget : public Item 00060 { 00061 public: 00062 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00063 typedef Widget CppObjectType; 00064 typedef Widget_Class CppClassType; 00065 typedef GnomeCanvasWidget BaseObjectType; 00066 typedef GnomeCanvasWidgetClass BaseClassType; 00067 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00068 00069 virtual ~Widget(); 00070 00071 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00072 00073 private: 00074 friend class Widget_Class; 00075 static CppClassType widget_class_; 00076 00077 // noncopyable 00078 Widget(const Widget&); 00079 Widget& operator=(const Widget&); 00080 00081 protected: 00082 explicit Widget(const Glib::ConstructParams& construct_params); 00083 explicit Widget(GnomeCanvasWidget* castitem); 00084 00085 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00086 00087 public: 00088 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00089 static GType get_type() G_GNUC_CONST; 00090 static GType get_base_type() G_GNUC_CONST; 00091 #endif 00092 00094 GnomeCanvasWidget* gobj() { return reinterpret_cast<GnomeCanvasWidget*>(gobject_); } 00095 00097 const GnomeCanvasWidget* gobj() const { return reinterpret_cast<GnomeCanvasWidget*>(gobject_); } 00098 00099 00100 public: 00101 //C++ methods used to invoke GTK+ virtual functions: 00102 00103 protected: 00104 //GTK+ Virtual Functions (override these to change behaviour): 00105 00106 //Default Signal Handlers:: 00107 00108 00109 private: 00110 00111 public: 00112 Widget(Group& parent, double x, double y, Gtk::Widget& w); 00113 explicit Widget(Group& parent); 00114 00119 Glib::PropertyProxy<Gtk::Widget*> property_widget() ; 00120 00125 Glib::PropertyProxy_ReadOnly<Gtk::Widget*> property_widget() const; 00126 00131 Glib::PropertyProxy<double> property_x() ; 00132 00137 Glib::PropertyProxy_ReadOnly<double> property_x() const; 00138 00143 Glib::PropertyProxy<double> property_y() ; 00144 00149 Glib::PropertyProxy_ReadOnly<double> property_y() const; 00150 00155 Glib::PropertyProxy<double> property_width() ; 00156 00161 Glib::PropertyProxy_ReadOnly<double> property_width() const; 00162 00167 Glib::PropertyProxy<double> property_height() ; 00168 00173 Glib::PropertyProxy_ReadOnly<double> property_height() const; 00174 00179 Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ; 00180 00185 Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const; 00186 00191 Glib::PropertyProxy<bool> property_size_pixels() ; 00192 00197 Glib::PropertyProxy_ReadOnly<bool> property_size_pixels() const; 00198 00199 00200 }; 00201 00202 } /* namespace Canvas */ 00203 } /* namespace Gnome */ 00204 00205 00206 namespace Glib 00207 { 00213 Gnome::Canvas::Widget* wrap(GnomeCanvasWidget* object, bool take_copy = false); 00214 } 00215 #endif /* _LIBGNOMECANVASMM_WIDGET_H */ 00216

Generated on Wed Jul 28 18:08:17 2004 for libgnomecanvasmm by doxygen 1.3.7