diff options
Diffstat (limited to 'samplecode/SampleCode.h')
-rw-r--r-- | samplecode/SampleCode.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/samplecode/SampleCode.h b/samplecode/SampleCode.h index c901af3c39..058985a13f 100644 --- a/samplecode/SampleCode.h +++ b/samplecode/SampleCode.h @@ -2,16 +2,24 @@ #define SampleCode_DEFINED #include "SkEvent.h" +#include "SkKey.h" class SampleCode { public: + static bool KeyQ(const SkEvent&, SkKey* outKey); + static bool CharQ(const SkEvent&, SkUnichar* outUni); + static bool TitleQ(const SkEvent&); static void TitleR(SkEvent*, const char title[]); static bool PrefSizeQ(const SkEvent&); static void PrefSizeR(SkEvent*, SkScalar width, SkScalar height); - + + static bool FastTextQ(const SkEvent&); + static SkMSec GetAnimTime(); + static SkMSec GetAnimTimeDelta(); + static SkScalar GetAnimSecondsDelta(); static SkScalar GetAnimScalar(SkScalar speedPerSec, SkScalar period = 0); }; |