widget.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GOOCANVASMM_WIDGET_H
00004 #define _GOOCANVASMM_WIDGET_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* Copyright (C) 1998-2006 The gtkmm Development Team
00010  *
00011  * This library is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU Lesser General Public
00013  * License as published by the Free Software Foundation; either
00014  * version 2.1 of the License, or (at your option) any later version.
00015  *
00016  * This library is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  * Lesser General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Lesser General Public
00022  * License along with this library; if not, write to the Free
00023  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00024  */
00025 
00026 
00027 #include <gtkmm/widget.h>
00028 #include <goocanvasmm/itemsimple.h>
00029 
00030 
00031 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00032 typedef struct _GooCanvasWidget GooCanvasWidget;
00033 typedef struct _GooCanvasWidgetClass GooCanvasWidgetClass;
00034 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00035 
00036 
00037 namespace Goocanvas
00038 { class Widget_Class; } // namespace Goocanvas
00039 namespace Goocanvas
00040 {
00041 
00042 
00043 class Widget : public Goocanvas::ItemSimple
00044 {
00045   
00046 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00047 
00048 public:
00049   typedef Widget CppObjectType;
00050   typedef Widget_Class CppClassType;
00051   typedef GooCanvasWidget BaseObjectType;
00052   typedef GooCanvasWidgetClass BaseClassType;
00053 
00054 private:  friend class Widget_Class;
00055   static CppClassType widget_class_;
00056 
00057 private:
00058   // noncopyable
00059   Widget(const Widget&);
00060   Widget& operator=(const Widget&);
00061 
00062 protected:
00063   explicit Widget(const Glib::ConstructParams& construct_params);
00064   explicit Widget(GooCanvasWidget* castitem);
00065 
00066 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00067 
00068 public:
00069   virtual ~Widget();
00070 
00071 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00072   static GType get_type()      G_GNUC_CONST;
00073   static GType get_base_type() G_GNUC_CONST;
00074 #endif
00075 
00077   GooCanvasWidget*       gobj()       { return reinterpret_cast<GooCanvasWidget*>(gobject_); }
00078 
00080   const GooCanvasWidget* gobj() const { return reinterpret_cast<GooCanvasWidget*>(gobject_); }
00081 
00083   GooCanvasWidget* gobj_copy();
00084 
00085 private:
00086 
00087 
00088 protected:
00089 
00090   Widget(Gtk::Widget& widget, double x, double y, double width = -1, double height = -1);
00091   
00092 
00093 public:
00094 
00095   
00096   static Glib::RefPtr<Widget> create(Gtk::Widget& widget, double x =  0.0, double y =  0.0, double width =  0.0, double height =  0.0);
00097 
00098 
00099   //We put these in item.hg instead.
00100   //See the comment there.
00101   //_WRAP_PROPERTY("x", double)
00102   //_WRAP_PROPERTY("y", double)
00103   //_WRAP_PROPERTY("width", double)
00104   //_WRAP_PROPERTY("height", double)
00105   #ifdef GLIBMM_PROPERTIES_ENABLED
00106 
00112   Glib::PropertyProxy<Gtk::Widget*> property_widget() ;
00113 #endif //#GLIBMM_PROPERTIES_ENABLED
00114 
00115 #ifdef GLIBMM_PROPERTIES_ENABLED
00116 
00122   Glib::PropertyProxy_ReadOnly<Gtk::Widget*> property_widget() const;
00123 #endif //#GLIBMM_PROPERTIES_ENABLED
00124 
00125   #ifdef GLIBMM_PROPERTIES_ENABLED
00126 
00132   Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ;
00133 #endif //#GLIBMM_PROPERTIES_ENABLED
00134 
00135 #ifdef GLIBMM_PROPERTIES_ENABLED
00136 
00142   Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const;
00143 #endif //#GLIBMM_PROPERTIES_ENABLED
00144 
00145 
00146 public:
00147 
00148 public:
00149   //C++ methods used to invoke GTK+ virtual functions:
00150 #ifdef GLIBMM_VFUNCS_ENABLED
00151 #endif //GLIBMM_VFUNCS_ENABLED
00152 
00153 protected:
00154   //GTK+ Virtual Functions (override these to change behaviour):
00155 #ifdef GLIBMM_VFUNCS_ENABLED
00156 #endif //GLIBMM_VFUNCS_ENABLED
00157 
00158   //Default Signal Handlers::
00159 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00160 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00161 
00162 
00163 };
00164 
00165 }
00166 
00167 
00168 namespace Glib
00169 {
00178   Glib::RefPtr<Goocanvas::Widget> wrap(GooCanvasWidget* object, bool take_copy = false);
00179 }
00180 
00181 
00182 #endif /* _GOOCANVASMM_WIDGET_H */
00183 

Generated on Thu Aug 13 16:42:26 2009 for goocanvasmm by  doxygen 1.5.9