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 00015 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00016 */ 00017 00018 #ifndef __CAIROMM_PATH_H 00019 #define __CAIROMM_PATH_H 00020 00021 #include <cairomm/enums.h> 00022 #include <string> 00023 #include <cairo/cairo.h> 00024 00025 00026 namespace Cairo 00027 { 00028 00032 class Path 00033 { 00034 public: 00035 //Path(); 00036 explicit Path(cairo_path_t* cobject, bool take_ownership = false); 00037 //Path(const Path& src); 00038 00039 virtual ~Path(); 00040 00041 //Path& operator=(const Path& src); 00042 00043 //bool operator ==(const Path& src) const; 00044 //bool operator !=(const Path& src) const; 00045 00046 typedef cairo_path_t cobject; 00047 inline cobject* cobj() { return m_cobject; } 00048 inline const cobject* cobj() const { return m_cobject; } 00049 00050 #ifndef DOXYGEN_IGNORE_THIS 00051 00052 //There is no *_status() function for this object: 00053 //inline ErrorStatus get_status() const 00054 //{ return cairo_path_status(const_cast<cairo_path_t*>(cobj())); } 00055 #endif //DOXYGEN_IGNORE_THIS 00056 00057 protected: 00058 00059 cobject* m_cobject; 00060 }; 00061 00062 } // namespace Cairo 00063 00064 #endif //__CAIROMM_PATH_H 00065