00001
00002
00003 #ifndef _LIBGNOMECANVASMM_WIDGET_H
00004 #define _LIBGNOMECANVASMM_WIDGET_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
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
00042
00043
00044 namespace Gnome
00045 {
00046
00047 namespace Canvas
00048 { class Widget_Class; }
00049
00050 }
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
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
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
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
00103
00104 protected:
00105
00106
00107
00108
00109
00110 private:
00111
00112 public:
00113 Widget(Group& parent, double x, double y, Gtk::Widget& w);
00114 explicit Widget(Group& parent);
00115
00122 Glib::PropertyProxy<Gtk::Widget*> property_widget() ;
00123
00130 Glib::PropertyProxy_ReadOnly<Gtk::Widget*> property_widget() const;
00131
00138 Glib::PropertyProxy<double> property_x() ;
00139
00146 Glib::PropertyProxy_ReadOnly<double> property_x() const;
00147
00154 Glib::PropertyProxy<double> property_y() ;
00155
00162 Glib::PropertyProxy_ReadOnly<double> property_y() const;
00163
00170 Glib::PropertyProxy<double> property_width() ;
00171
00178 Glib::PropertyProxy_ReadOnly<double> property_width() const;
00179
00186 Glib::PropertyProxy<double> property_height() ;
00187
00194 Glib::PropertyProxy_ReadOnly<double> property_height() const;
00195
00202 Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ;
00203
00210 Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const;
00211
00218 Glib::PropertyProxy<bool> property_size_pixels() ;
00219
00226 Glib::PropertyProxy_ReadOnly<bool> property_size_pixels() const;
00227
00228
00229 };
00230
00231 }
00232 }
00233
00234
00235 namespace Glib
00236 {
00242 Gnome::Canvas::Widget* wrap(GnomeCanvasWidget* object, bool take_copy = false);
00243 }
00244
00245
00246 #endif
00247