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 SkDrawText_DEFINED michael@0: #define SkDrawText_DEFINED michael@0: michael@0: #include "SkBoundable.h" michael@0: #include "SkMemberInfo.h" michael@0: michael@0: class SkText : public SkBoundable { michael@0: DECLARE_MEMBER_INFO(Text); michael@0: SkText(); michael@0: virtual ~SkText(); michael@0: virtual bool draw(SkAnimateMaker& ); michael@0: #ifdef SK_DUMP_ENABLED michael@0: virtual void dump(SkAnimateMaker* ); michael@0: #endif michael@0: virtual bool getProperty(int index, SkScriptValue* value) const ; michael@0: const char* getText() { return text.c_str(); } michael@0: size_t getSize() { return text.size(); } michael@0: protected: michael@0: SkString text; michael@0: SkScalar x; michael@0: SkScalar y; michael@0: private: michael@0: friend class SkTextToPath; michael@0: typedef SkBoundable INHERITED; michael@0: }; michael@0: michael@0: #endif // SkDrawText_DEFINED