1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/skia/trunk/src/animator/SkDrawTextBox.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 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 SkDrawTextBox_DEFINED 1.14 +#define SkDrawTextBox_DEFINED 1.15 + 1.16 +#include "SkDrawRectangle.h" 1.17 +#include "SkTextBox.h" 1.18 + 1.19 +class SkDrawTextBox : public SkDrawRect { 1.20 + DECLARE_DRAW_MEMBER_INFO(TextBox); 1.21 + SkDrawTextBox(); 1.22 + 1.23 + // overrides 1.24 + virtual bool draw(SkAnimateMaker& ); 1.25 +#ifdef SK_DUMP_ENABLED 1.26 + virtual void dump(SkAnimateMaker* ); 1.27 +#endif 1.28 + virtual bool getProperty(int index, SkScriptValue* value) const; 1.29 + virtual bool setProperty(int index, SkScriptValue& ); 1.30 + 1.31 +private: 1.32 + SkString fText; 1.33 + SkScalar fSpacingMul; 1.34 + SkScalar fSpacingAdd; 1.35 + int /*SkTextBox::Mode*/ mode; 1.36 + int /*SkTextBox::SpacingAlign*/ spacingAlign; 1.37 + 1.38 + typedef SkDrawRect INHERITED; 1.39 +}; 1.40 + 1.41 +#endif // SkDrawTextBox_DEFINED