• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KHTML

SVGPaint.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2004, 2005 Nikolas Zimmermann <wildfox@kde.org>
00003                   2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
00004     Copyright (C) 2006 Samuel Weinig (sam.weinig@gmial.com)
00005 
00006     This file is part of the KDE project
00007 
00008     This library is free software; you can redistribute it and/or
00009     modify it under the terms of the GNU Library General Public
00010     License as published by the Free Software Foundation; either
00011     version 2 of the License, or (at your option) any later version.
00012 
00013     This library is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016     Library General Public License for more details.
00017 
00018     You should have received a copy of the GNU Library General Public License
00019     along with this library; see the file COPYING.LIB.  If not, write to
00020     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021     Boston, MA 02110-1301, USA.
00022 */
00023 
00024 #ifndef SVGPaint_h
00025 #define SVGPaint_h
00026 #if ENABLE(SVG)
00027 
00028 #include "SVGColor.h"
00029 
00030 namespace WebCore {
00031 
00032     class SVGPaint : public SVGColor {
00033     public:
00034         enum SVGPaintType {
00035             SVG_PAINTTYPE_UNKNOWN               = 0,
00036             SVG_PAINTTYPE_RGBCOLOR              = 1,
00037             SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR     = 2,
00038             SVG_PAINTTYPE_NONE                  = 101,
00039             SVG_PAINTTYPE_CURRENTCOLOR          = 102,
00040             SVG_PAINTTYPE_URI_NONE              = 103,
00041             SVG_PAINTTYPE_URI_CURRENTCOLOR      = 104,
00042             SVG_PAINTTYPE_URI_RGBCOLOR          = 105,
00043             SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106,
00044             SVG_PAINTTYPE_URI                   = 107
00045         };
00046 
00047         SVGPaint();
00048         SVGPaint(const String& uri);
00049         SVGPaint(SVGPaintType);
00050         SVGPaint(SVGPaintType, const String& uri, const String& rgbPaint = String(), const String& iccPaint = String());
00051         SVGPaint(const Color& c);
00052         SVGPaint(const String& uri, const Color& c);
00053         virtual ~SVGPaint();
00054 
00055         // 'SVGPaint' functions
00056         SVGPaintType paintType() const { return m_paintType; }
00057         String uri() const;
00058 
00059         void setUri(const String&);
00060         void setPaint(SVGPaintType, const String& uri, const String& rgbPaint, const String& iccPaint, ExceptionCode&);
00061 
00062         virtual String cssText() const;
00063         
00064         static SVGPaint* defaultFill();
00065         static SVGPaint* defaultStroke();
00066 
00067         virtual bool isSVGPaint() const { return true; }
00068 
00069         // KHTML compat
00070         virtual unsigned short cssValueType() const { return DOM::CSSValue::CSS_CUSTOM; }
00071     private:
00072         SVGPaintType m_paintType;
00073         String m_uri;
00074     };
00075 
00076 } // namespace WebCore
00077 
00078 #endif // ENABLE(SVG)
00079 #endif // SVGPaint_h
00080 
00081 // vim:ts=4

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal