ionflux.org | Impressum

CairoPattern.hpp

Go to the documentation of this file.
00001 #ifndef IONFLUX_TOOLS_CAIRO_PATTERN
00002 #define IONFLUX_TOOLS_CAIRO_PATTERN
00003 /* ==========================================================================
00004  * Ionflux Tools
00005  * Copyright (c) 2005 Joern P. Meier
00006  * mail@ionflux.org
00007  * --------------------------------------------------------------------------
00008  * CairoPattern.hpp                       Cairo pattern.
00009  * ==========================================================================
00010  * 
00011  * This file is part of Ionflux Tools.
00012  * 
00013  * Ionflux Tools is free software; you can redistribute it and/or modify it
00014  * under the terms of the GNU General Public License as published by the 
00015  * Free Software Foundation; either version 2 of the License, or (at your 
00016  * option) any later version.
00017  * 
00018  * Ionflux Tools is distributed in the hope that it will be useful, but 
00019  * WITHOUT ANY WARRANTY; without even the implied warranty of 
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00021  * General Public License for more details.
00022  * 
00023  * You should have received a copy of the GNU General Public License along 
00024  * with Ionflux Tools; if not, write to the Free Software Foundation, Inc.,
00025  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00026  * 
00027  * ========================================================================== */
00028 
00029 #include "cairo.h"
00030 #include "ionflux/ManagedObject.hpp"
00031 #include "ionflux/CairoMatrix.hpp"
00032 
00033 namespace Ionflux
00034 {
00035 
00036 namespace Tools
00037 {
00038 
00039 namespace Cairo
00040 {
00041 
00050 class Pattern
00051 : public Ionflux::Tools::ManagedObject
00052 {
00053     private:
00054         
00055     protected:
00057         cairo_pattern_t* cairoPattern;
00058         
00059     public:
00064         Pattern();
00065         
00072         Pattern(const Pattern& initPattern);
00073         
00080         Pattern(cairo_pattern_t* initPattern);
00081         
00086         virtual ~Pattern();
00087         
00092         virtual void reference();
00093         
00098         virtual void destroy();
00099         
00106         virtual cairo_status_t status();
00107         
00114         virtual void setMatrix(const cairo_matrix_t* matrix);
00115         
00122         virtual void getMatrix(cairo_matrix_t* matrix);
00123         
00130         virtual void setMatrix(const Matrix& matrix);
00131         
00138         virtual void getMatrix(Matrix& matrix);
00139         
00148         virtual Pattern& operator=(const Pattern& newCairoPattern);
00149         
00158         virtual Pattern& operator=(cairo_pattern_t* newCairoPattern);
00159         
00166         virtual void setCairoPattern(cairo_pattern_t* newCairoPattern);
00167         
00172         virtual cairo_pattern_t* getCairoPattern() const;
00173 };
00174 
00175 }
00176 
00177 }
00178 
00179 }
00180 
00184 #endif

Generated on Tue Mar 14 20:58:29 2006 for Ionflux Tools Class Library (iftools) by  doxygen 1.4.6