diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-08-14 16:08:38 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-08-14 16:08:38 +0000 |
commit | 6c5f6f25b43f1210decb48956c1a2fbe5b58f889 (patch) | |
tree | 6e807d72d62fc739ac46dbff4e606556a0ae124d /include | |
parent | a2b2c4ba5351b8cee0f03b5a9eeeb430862bbc7d (diff) |
add 'r' (rotate) 's' (scale) options to SampleApp to test those matrix ops on
all slides
add beforeChild/afterChild methods for parents to wack the canvas before/after
it draws. These are called after the std child-view translate and clip, unlike
beforeChildren/afterChildren
git-svn-id: http://skia.googlecode.com/svn/trunk@324 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/views/SkView.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/views/SkView.h b/include/views/SkView.h index d5d89dfeed..050debaf45 100644 --- a/include/views/SkView.h +++ b/include/views/SkView.h @@ -296,8 +296,16 @@ protected: request, return true so the request will not continue to propogate to the parent. */ virtual bool handleInval(const SkRect&); + //! called once before all of the children are drawn (or clipped/translated) virtual SkCanvas* beforeChildren(SkCanvas* c) { return c; } + //! called once after all of the children are drawn (or clipped/translated) virtual void afterChildren(SkCanvas* orig) {} + + //! called right before this child's onDraw is called + virtual void beforeChild(SkView* child, SkCanvas* canvas) {} + //! called right after this child's onDraw is called + virtual void afterChild(SkView* child, SkCanvas* canvas) {} + /** Override this if you might handle the click */ virtual Click* onFindClickHandler(SkScalar x, SkScalar y); |