3 * Copyright 2006 The Android Open Source Project
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
10 #ifndef SkDrawRectangle_DEFINED
11 #define SkDrawRectangle_DEFINED
13 #include "SkBoundable.h"
14 #include "SkMemberInfo.h"
19 class SkDrawRect : public SkBoundable {
20 DECLARE_DRAW_MEMBER_INFO(Rect);
22 void dirty() SK_OVERRIDE;
23 bool draw(SkAnimateMaker& ) SK_OVERRIDE;
24 #ifdef SK_DUMP_ENABLED
25 void dump(SkAnimateMaker* ) SK_OVERRIDE;
27 SkDisplayable* getParent() const SK_OVERRIDE;
28 bool getProperty(int index, SkScriptValue* value) const SK_OVERRIDE;
29 bool setParent(SkDisplayable* parent) SK_OVERRIDE;
30 bool setProperty(int index, SkScriptValue& ) SK_OVERRIDE;
33 SkDisplayable* fParent;
35 friend class SkDrawClip;
36 friend class SkRectToRect;
37 friend class SkSaveLayer;
38 typedef SkBoundable INHERITED;
41 class SkRoundRect : public SkDrawRect {
42 DECLARE_MEMBER_INFO(RoundRect);
44 bool draw(SkAnimateMaker& ) SK_OVERRIDE;
45 #ifdef SK_DUMP_ENABLED
46 void dump(SkAnimateMaker* ) SK_OVERRIDE;
52 typedef SkDrawRect INHERITED;
55 #endif // SkDrawRectangle_DEFINED