ionflux.org | Impressum

CairoGradient.hpp

Go to the documentation of this file.
00001 #ifndef IONFLUX_TOOLS_CAIRO_GRADIENT
00002 #define IONFLUX_TOOLS_CAIRO_GRADIENT
00003 /* ==========================================================================
00004  * Ionflux Tools
00005  * Copyright (c) 2005 Joern P. Meier
00006  * mail@ionflux.org
00007  * --------------------------------------------------------------------------
00008  * CairoGradient.hpp                      Cairo gradient.
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 "ionflux/color.hpp"
00030 #include "ionflux/CairoPattern.hpp"
00031 
00032 namespace Ionflux
00033 {
00034 
00035 namespace Tools
00036 {
00037 
00038 namespace Cairo
00039 {
00040 
00049 class Gradient
00050 : public Pattern
00051 {
00052     private:
00053         
00054     protected:
00055         
00056     public:
00061         Gradient();
00062         
00069         Gradient(const Gradient& initGradient);
00070         
00077         Gradient(cairo_pattern_t* initGradient);
00078         
00083         virtual ~Gradient();
00084         
00094         virtual void addColorStopRgb(double offset, double red, double green, 
00095         double blue);
00096         
00107         virtual void addColorStopRgba(double offset, double red, double green, 
00108         double blue, double alpha);
00109         
00117         virtual void addColorStop(double offset, const Ionflux::Tools::Color& 
00118         color);
00119         
00128         virtual Gradient& operator=(const Gradient& newCairoPattern);
00129         
00138         virtual Gradient& operator=(cairo_pattern_t* newCairoPattern);
00139 };
00140 
00141 }
00142 
00143 }
00144 
00145 }
00146 
00150 #endif

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