path.h

Go to the documentation of this file.
00001 /* Copyright (C) 2005 The cairomm Development Team
00002  *
00003  * This library is free software; you can redistribute it and/or
00004  * modify it under the terms of the GNU Library General Public
00005  * License as published by the Free Software Foundation; either
00006  * version 2 of the License, or (at your option) any later version.
00007  *
00008  * This library is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011  * Library General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU Library General Public
00014  * License along with this library; if not, write to the Free Software
00015  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00016  * 02110-1301, USA.
00017  */
00018 
00019 #ifndef __CAIROMM_PATH_H
00020 #define __CAIROMM_PATH_H
00021 
00022 #include <cairomm/enums.h>
00023 #include <string>
00024 #include <cairo.h>
00025 
00026 
00027 namespace Cairo
00028 {
00029 
00038 class Path
00039 {
00040 public:
00041   //Path();
00042   explicit Path(cairo_path_t* cobject, bool take_ownership = false);
00043   //Path(const Path& src);
00044 
00045   virtual ~Path();
00046 
00047   //Path& operator=(const Path& src);
00048 
00049   //bool operator ==(const Path& src) const;
00050   //bool operator !=(const Path& src) const;
00051 
00052   typedef cairo_path_t cobject;
00053   inline cobject* cobj() { return m_cobject; }
00054   inline const cobject* cobj() const { return m_cobject; }
00055 
00056   #ifndef DOXYGEN_IGNORE_THIS
00058   //There is no *_status() function for this object:
00059   //inline ErrorStatus get_status() const
00060   //{ return cairo_path_status(const_cast<cairo_path_t*>(cobj())); }
00061   #endif //DOXYGEN_IGNORE_THIS
00062 
00063 protected:
00064 
00065   cobject* m_cobject;
00066 };
00067 
00068 } // namespace Cairo
00069 
00070 #endif //__CAIROMM_PATH_H
00071 
00072 // vim: ts=2 sw=2 et

Generated on Thu Sep 4 21:57:13 2008 for cairomm by  doxygen 1.5.5