bounds.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GOOCANVASMM_BOUNDS_H
00004 #define _GOOCANVASMM_BOUNDS_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 #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 /* DOXYGEN_SHOULD_SKIP_THIS */
00041 
00042   Bounds();
00043 
00044   explicit Bounds(const GooCanvasBounds* gobject); // always takes a copy
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 /* DOXYGEN_SHOULD_SKIP_THIS */
00099 
00100 } // namespace Glib
00101 
00102 
00103 #endif /* _GOOCANVASMM_BOUNDS_H */
00104 

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