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 SkDisplayRandom_DEFINED michael@0: #define SkDisplayRandom_DEFINED michael@0: michael@0: #include "SkDisplayable.h" michael@0: #include "SkMemberInfo.h" michael@0: #include "SkRandom.h" michael@0: michael@0: #ifdef min michael@0: #undef min michael@0: #endif michael@0: michael@0: #ifdef max michael@0: #undef max michael@0: #endif michael@0: michael@0: class SkDisplayRandom : public SkDisplayable { michael@0: DECLARE_DISPLAY_MEMBER_INFO(Random); michael@0: SkDisplayRandom(); 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: virtual bool setProperty(int index, SkScriptValue& ); michael@0: private: michael@0: SkScalar blend; michael@0: SkScalar min; michael@0: SkScalar max; michael@0: mutable SkRandom fRandom; michael@0: }; michael@0: michael@0: #endif // SkDisplayRandom_DEFINED