00001
00002
00003 #ifndef _GOOCANVASMM_BOUNDS_H
00004 #define _GOOCANVASMM_BOUNDS_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 #include <goocanvasitem.h>
00027
00028
00029 namespace Goocanvas
00030 {
00031
00032 class Bounds
00033 {
00034 public:
00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00036 typedef Bounds CppObjectType;
00037 typedef GooCanvasBounds BaseObjectType;
00038
00039 static GType get_type() G_GNUC_CONST;
00040 #endif
00041
00042 Bounds();
00043
00044 explicit Bounds(const GooCanvasBounds* gobject);
00045
00047 GooCanvasBounds* gobj() { return &gobject_; }
00048
00050 const GooCanvasBounds* gobj() const { return &gobject_; }
00051
00052 protected:
00053 GooCanvasBounds gobject_;
00054
00055 private:
00056
00057
00058 public:
00059 Bounds(double x1, double y1, double x2, double y2);
00060
00061 double get_x1() const;
00062 void set_x1(const double& value);
00063
00064 double get_x2() const;
00065 void set_x2(const double& value);
00066
00067 double get_y1() const;
00068 void set_y1(const double& value);
00069
00070 double get_y2() const;
00071 void set_y2(const double& value);
00072
00073
00074 };
00075
00076 }
00077
00078
00079 namespace Glib
00080 {
00081
00086 Goocanvas::Bounds& wrap(GooCanvasBounds* object);
00087
00092 const Goocanvas::Bounds& wrap(const GooCanvasBounds* object);
00093
00094 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00095 template <>
00096 class Value<Goocanvas::Bounds> : public Glib::Value_Boxed<Goocanvas::Bounds>
00097 {};
00098 #endif
00099
00100 }
00101
00102
00103 #endif
00104