00001 #ifndef IONFLUX_TOOLS_CAIRO_RADIALGRADIENT 00002 #define IONFLUX_TOOLS_CAIRO_RADIALGRADIENT 00003 /* ========================================================================== 00004 * Ionflux Tools 00005 * Copyright (c) 2005 Joern P. Meier 00006 * mail@ionflux.org 00007 * -------------------------------------------------------------------------- 00008 * CairoRadialGradient.hpp Cairo radial 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/CairoGradient.hpp" 00030 00031 namespace Ionflux 00032 { 00033 00034 namespace Tools 00035 { 00036 00037 namespace Cairo 00038 { 00039 00048 class RadialGradient 00049 : public Gradient 00050 { 00051 private: 00052 00053 protected: 00054 00055 public: 00060 RadialGradient(); 00061 00068 RadialGradient(const RadialGradient& initGradient); 00069 00076 RadialGradient(cairo_pattern_t* initGradient); 00077 00089 RadialGradient(double cx0, double cy0, double radius0, double cx1, double 00090 cy1, double radius1); 00091 00096 virtual ~RadialGradient(); 00097 00106 virtual RadialGradient& operator=(const RadialGradient& newCairoPattern); 00107 00116 virtual RadialGradient& operator=(cairo_pattern_t* newCairoPattern); 00117 }; 00118 00119 } 00120 00121 } 00122 00123 } 00124 00128 #endif