michael@0: michael@0: /* michael@0: * Copyright 2006 The Android Open Source Project michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: michael@0: #ifndef SkSVGGradient_DEFINED michael@0: #define SkSVGGradient_DEFINED michael@0: michael@0: #include "SkSVGElements.h" michael@0: michael@0: class SkSVGGradient : public SkSVGElement { michael@0: public: michael@0: SkSVGGradient(); michael@0: virtual SkSVGElement* getGradient(); michael@0: virtual bool isDef(); michael@0: virtual bool isNotDef(); michael@0: virtual void write(SkSVGParser& , SkString& color); michael@0: protected: michael@0: void translate(SkSVGParser& , bool defState); michael@0: void translateGradientUnits(SkString& units); michael@0: private: michael@0: typedef SkSVGElement INHERITED; michael@0: }; michael@0: michael@0: #endif // SkSVGGradient_DEFINED