widget.h
Go to the documentation of this file.00001
00002
00003 #ifndef _GOOCANVASMM_WIDGET_H
00004 #define _GOOCANVASMM_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 #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
00035
00036
00037 namespace Goocanvas
00038 { class Widget_Class; }
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
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
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 #ifdef GLIBMM_PROPERTIES_ENABLED
00100
00106 Glib::PropertyProxy<Gtk::Widget*> property_widget() ;
00107 #endif //#GLIBMM_PROPERTIES_ENABLED
00108
00109 #ifdef GLIBMM_PROPERTIES_ENABLED
00110
00116 Glib::PropertyProxy_ReadOnly<Gtk::Widget*> property_widget() const;
00117 #endif //#GLIBMM_PROPERTIES_ENABLED
00118
00119 #ifdef GLIBMM_PROPERTIES_ENABLED
00120
00126 Glib::PropertyProxy<double> property_x() ;
00127 #endif //#GLIBMM_PROPERTIES_ENABLED
00128
00129 #ifdef GLIBMM_PROPERTIES_ENABLED
00130
00136 Glib::PropertyProxy_ReadOnly<double> property_x() const;
00137 #endif //#GLIBMM_PROPERTIES_ENABLED
00138
00139 #ifdef GLIBMM_PROPERTIES_ENABLED
00140
00146 Glib::PropertyProxy<double> property_y() ;
00147 #endif //#GLIBMM_PROPERTIES_ENABLED
00148
00149 #ifdef GLIBMM_PROPERTIES_ENABLED
00150
00156 Glib::PropertyProxy_ReadOnly<double> property_y() const;
00157 #endif //#GLIBMM_PROPERTIES_ENABLED
00158
00159 #ifdef GLIBMM_PROPERTIES_ENABLED
00160
00166 Glib::PropertyProxy<double> property_width() ;
00167 #endif //#GLIBMM_PROPERTIES_ENABLED
00168
00169 #ifdef GLIBMM_PROPERTIES_ENABLED
00170
00176 Glib::PropertyProxy_ReadOnly<double> property_width() const;
00177 #endif //#GLIBMM_PROPERTIES_ENABLED
00178
00179 #ifdef GLIBMM_PROPERTIES_ENABLED
00180
00186 Glib::PropertyProxy<double> property_height() ;
00187 #endif //#GLIBMM_PROPERTIES_ENABLED
00188
00189 #ifdef GLIBMM_PROPERTIES_ENABLED
00190
00196 Glib::PropertyProxy_ReadOnly<double> property_height() const;
00197 #endif //#GLIBMM_PROPERTIES_ENABLED
00198
00199 #ifdef GLIBMM_PROPERTIES_ENABLED
00200
00206 Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ;
00207 #endif //#GLIBMM_PROPERTIES_ENABLED
00208
00209 #ifdef GLIBMM_PROPERTIES_ENABLED
00210
00216 Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const;
00217 #endif //#GLIBMM_PROPERTIES_ENABLED
00218
00219
00220 public:
00221
00222 public:
00223
00224 #ifdef GLIBMM_VFUNCS_ENABLED
00225 #endif //GLIBMM_VFUNCS_ENABLED
00226
00227 protected:
00228
00229 #ifdef GLIBMM_VFUNCS_ENABLED
00230 #endif //GLIBMM_VFUNCS_ENABLED
00231
00232
00233 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00234 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00235
00236
00237 };
00238
00239 }
00240
00241
00242 namespace Glib
00243 {
00252 Glib::RefPtr<Goocanvas::Widget> wrap(GooCanvasWidget* object, bool take_copy = false);
00253 }
00254
00255
00256 #endif
00257