diff options
author | yangsu@google.com <yangsu@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-06-24 16:04:50 +0000 |
---|---|---|
committer | yangsu@google.com <yangsu@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-06-24 16:04:50 +0000 |
commit | 501775e5ac99f9805d1aba3aa7ca554a83d2dc43 (patch) | |
tree | 32176d427329bfeb674bad2b9db855652296f0c9 /samplecode/SampleApp.h | |
parent | 2eff7e26c01bdcca7ae67019c6277b94cee5fd28 (diff) |
Added helper methods for changing samples, getting sample titles, and extracting pdf Data
http://codereview.appspot.com/4626073/
git-svn-id: http://skia.googlecode.com/svn/trunk@1704 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleApp.h')
-rw-r--r-- | samplecode/SampleApp.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/samplecode/SampleApp.h b/samplecode/SampleApp.h index 35a2bb4c0e..9c39ca4e7e 100644 --- a/samplecode/SampleApp.h +++ b/samplecode/SampleApp.h @@ -33,6 +33,7 @@ class SkCanvas; class SkGpuCanvas; class SkPicture; class SkTypeface; +class SkData; enum SkTriState { kFalse_SkTriState, @@ -58,9 +59,13 @@ public: void changeZoomLevel(float delta); bool nextSample(); bool previousSample(); + bool goToSample(int i); + SkString getSampleTitle(int i); + int sampleCount(); bool handleTouch(int ownerId, float x, float y, SkView::Click::State state); void saveToPdf(); + SkData* getPDFData() { return fPDFData; } void postInvalDelay(); protected: @@ -102,6 +107,7 @@ private: bool fSaveToPdf; SkCanvas* fPdfCanvas; + SkData* fPDFData; bool fUseClip; bool fNClip; |