gfx/skia/trunk/src/animator/SkDrawPaint.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/src/animator/SkDrawPaint.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,79 @@
     1.4 +
     1.5 +/*
     1.6 + * Copyright 2006 The Android Open Source Project
     1.7 + *
     1.8 + * Use of this source code is governed by a BSD-style license that can be
     1.9 + * found in the LICENSE file.
    1.10 + */
    1.11 +
    1.12 +
    1.13 +#ifndef SkDrawPaint_DEFINED
    1.14 +#define SkDrawPaint_DEFINED
    1.15 +
    1.16 +#include "SkDrawable.h"
    1.17 +#include "SkIntArray.h"
    1.18 +#include "SkMemberInfo.h"
    1.19 +#include "SkPaint.h"
    1.20 +#include "SkXfermode.h"
    1.21 +
    1.22 +class SkDrawMaskFilter;
    1.23 +class SkDrawPathEffect;
    1.24 +class SkDrawShader;
    1.25 +class SkTransferMode;
    1.26 +class SkDrawTypeface;
    1.27 +
    1.28 +class SkDrawPaint : public SkDrawable {
    1.29 +    DECLARE_DRAW_MEMBER_INFO(Paint);
    1.30 +    SkDrawPaint();
    1.31 +    virtual ~SkDrawPaint();
    1.32 +    virtual bool add(SkAnimateMaker* , SkDisplayable* child);
    1.33 +    virtual SkDisplayable* deepCopy(SkAnimateMaker* );
    1.34 +    virtual bool draw(SkAnimateMaker& );
    1.35 +#ifdef SK_DUMP_ENABLED
    1.36 +    virtual void dump(SkAnimateMaker* );
    1.37 +#endif
    1.38 +    virtual void executeFunction(SkDisplayable* target, int index,
    1.39 +        SkTDArray<SkScriptValue>& parameters, SkDisplayTypes type,
    1.40 +        SkScriptValue* );
    1.41 +    virtual const SkFunctionParamType* getFunctionsParameters();
    1.42 +    virtual bool getProperty(int index, SkScriptValue* value) const;
    1.43 +    virtual bool resolveIDs(SkAnimateMaker& maker, SkDisplayable* original, SkApply* apply);
    1.44 +protected:
    1.45 +    static const SkFunctionParamType fFunctionParameters[];
    1.46 +    void setupPaint(SkPaint* paint) const;
    1.47 +public:
    1.48 +    SkBool antiAlias;
    1.49 +    SkDrawColor* color;
    1.50 +    SkBool fakeBold;
    1.51 +    SkBool filterBitmap;
    1.52 +    SkBool linearText;
    1.53 +    SkDrawMaskFilter* maskFilter;
    1.54 +    SkDrawPathEffect* pathEffect;
    1.55 +    SkDrawShader* shader;
    1.56 +    SkBool strikeThru;
    1.57 +    SkBool stroke;
    1.58 +    int /*SkPaint::Cap*/ strokeCap;
    1.59 +    int /*SkPaint::Join */ strokeJoin;
    1.60 +    SkScalar strokeMiter;
    1.61 +    SkScalar strokeWidth;
    1.62 +    int /* SkPaint::Style */ style;
    1.63 +    int /* SkPaint::Align */ textAlign;
    1.64 +    SkScalar textScaleX;
    1.65 +    SkScalar textSize;
    1.66 +    SkScalar textSkewX;
    1.67 +    SkDrawTypeface* typeface;
    1.68 +    SkBool underline;
    1.69 +    int /*SkXfermode::Modes*/ xfermode;
    1.70 +    SkBool8 fOwnsColor;
    1.71 +    SkBool8 fOwnsMaskFilter;
    1.72 +    SkBool8 fOwnsPathEffect;
    1.73 +    SkBool8 fOwnsShader;
    1.74 +    SkBool8 fOwnsTransferMode;
    1.75 +    SkBool8 fOwnsTypeface;
    1.76 +private:
    1.77 +    typedef SkDrawable INHERITED;
    1.78 +    friend class SkTextToPath;
    1.79 +    friend class SkSaveLayer;
    1.80 +};
    1.81 +
    1.82 +#endif // SkDrawPaint_DEFINED

mercurial