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 00033 class Path 00034 { 00035 public: 00036 //Path(); 00037 explicit Path(cairo_path_t* cobject, bool take_ownership = false); 00038 //Path(const Path& src); 00039 00040 virtual ~Path(); 00041 00042 //Path& operator=(const Path& src); 00043 00044 //bool operator ==(const Path& src) const; 00045 //bool operator !=(const Path& src) const; 00046 00047 typedef cairo_path_t cobject; 00048 inline cobject* cobj() { return m_cobject; } 00049 inline const cobject* cobj() const { return m_cobject; } 00050 00051 #ifndef DOXYGEN_IGNORE_THIS 00053 //There is no *_status() function for this object: 00054 //inline ErrorStatus get_status() const 00055 //{ return cairo_path_status(const_cast<cairo_path_t*>(cobj())); } 00056 #endif //DOXYGEN_IGNORE_THIS 00057 00058 protected: 00059 00060 cobject* m_cobject; 00061 }; 00062 00063 } // namespace Cairo 00064 00065 #endif //__CAIROMM_PATH_H 00066 00067 // vim: ts=2 sw=2 et