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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/src/animator/SkDrawRectangle.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,55 @@
     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 SkDrawRectangle_DEFINED
    1.14 +#define SkDrawRectangle_DEFINED
    1.15 +
    1.16 +#include "SkBoundable.h"
    1.17 +#include "SkMemberInfo.h"
    1.18 +#include "SkRect.h"
    1.19 +
    1.20 +class SkRectToRect;
    1.21 +
    1.22 +class SkDrawRect : public SkBoundable {
    1.23 +    DECLARE_DRAW_MEMBER_INFO(Rect);
    1.24 +    SkDrawRect();
    1.25 +    virtual void dirty();
    1.26 +    virtual bool draw(SkAnimateMaker& );
    1.27 +#ifdef SK_DUMP_ENABLED
    1.28 +    virtual void dump(SkAnimateMaker* );
    1.29 +#endif
    1.30 +    virtual SkDisplayable* getParent() const;
    1.31 +    virtual bool getProperty(int index, SkScriptValue* value) const;
    1.32 +    virtual bool setParent(SkDisplayable* parent);
    1.33 +    virtual bool setProperty(int index, SkScriptValue& );
    1.34 +protected:
    1.35 +    SkRect fRect;
    1.36 +    SkDisplayable* fParent;
    1.37 +private:
    1.38 +    friend class SkDrawClip;
    1.39 +    friend class SkRectToRect;
    1.40 +    friend class SkSaveLayer;
    1.41 +    typedef SkBoundable INHERITED;
    1.42 +};
    1.43 +
    1.44 +class SkRoundRect : public SkDrawRect {
    1.45 +    DECLARE_MEMBER_INFO(RoundRect);
    1.46 +    SkRoundRect();
    1.47 +    virtual bool draw(SkAnimateMaker& );
    1.48 +#ifdef SK_DUMP_ENABLED
    1.49 +    virtual void dump(SkAnimateMaker* );
    1.50 +#endif
    1.51 +protected:
    1.52 +    SkScalar rx;
    1.53 +    SkScalar ry;
    1.54 +private:
    1.55 +    typedef SkDrawRect INHERITED;
    1.56 +};
    1.57 +
    1.58 +#endif // SkDrawRectangle_DEFINED

mercurial