OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkView_DEFINED | 10 #ifndef SkView_DEFINED |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 /** Override this to be notified when the view's size changes. Be sure to ca
ll the inherited version too */ | 330 /** Override this to be notified when the view's size changes. Be sure to ca
ll the inherited version too */ |
331 virtual void onSizeChange(); | 331 virtual void onSizeChange(); |
332 /** Override this if you want to handle an inval request from this view or o
ne of its children. | 332 /** Override this if you want to handle an inval request from this view or o
ne of its children. |
333 Tyically this is only overridden by the by the "window". If your subclas
s does handle the | 333 Tyically this is only overridden by the by the "window". If your subclas
s does handle the |
334 request, return true so the request will not continue to propogate to th
e parent. | 334 request, return true so the request will not continue to propogate to th
e parent. |
335 */ | 335 */ |
336 virtual bool handleInval(const SkRect*); | 336 virtual bool handleInval(const SkRect*); |
337 //! called once before all of the children are drawn (or clipped/translated) | 337 //! called once before all of the children are drawn (or clipped/translated) |
338 virtual SkCanvas* beforeChildren(SkCanvas* c) { return c; } | 338 virtual SkCanvas* beforeChildren(SkCanvas* c) { return c; } |
339 //! called once after all of the children are drawn (or clipped/translated) | 339 //! called once after all of the children are drawn (or clipped/translated) |
340 virtual void afterChildren(SkCanvas* orig) {} | 340 virtual void afterChildren(SkCanvas*) {} |
341 | 341 |
342 //! called right before this child's onDraw is called | 342 //! called right before this child's onDraw is called |
343 virtual void beforeChild(SkView* child, SkCanvas* canvas) {} | 343 virtual void beforeChild(SkView* /*child*/, SkCanvas*) {} |
344 //! called right after this child's onDraw is called | 344 //! called right after this child's onDraw is called |
345 virtual void afterChild(SkView* child, SkCanvas* canvas) {} | 345 virtual void afterChild(SkView* /*child*/, SkCanvas*) {} |
346 | 346 |
347 /** Override this if you might handle the click | 347 /** Override this if you might handle the click |
348 */ | 348 */ |
349 virtual Click* onFindClickHandler(SkScalar x, SkScalar y, unsigned modi); | 349 virtual Click* onFindClickHandler(SkScalar x, SkScalar y, unsigned modi); |
350 /** Override this to decide if your children are targets for a click. | 350 /** Override this to decide if your children are targets for a click. |
351 The default returns true, in which case your children views will be | 351 The default returns true, in which case your children views will be |
352 candidates for onFindClickHandler. Returning false wil skip the children | 352 candidates for onFindClickHandler. Returning false wil skip the children |
353 and just call your onFindClickHandler. | 353 and just call your onFindClickHandler. |
354 */ | 354 */ |
355 virtual bool onSendClickToChildren(SkScalar x, SkScalar y, unsigned modi); | 355 virtual bool onSendClickToChildren(SkScalar x, SkScalar y, unsigned modi); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 friend class SkLayerView; | 396 friend class SkLayerView; |
397 | 397 |
398 bool setFocusView(SkView* fvOrNull); | 398 bool setFocusView(SkView* fvOrNull); |
399 SkView* acceptFocus(FocusDirection); | 399 SkView* acceptFocus(FocusDirection); |
400 void detachFromParent_NoLayout(); | 400 void detachFromParent_NoLayout(); |
401 /** Compute the matrix to transform view-local coordinates into global ones
*/ | 401 /** Compute the matrix to transform view-local coordinates into global ones
*/ |
402 void localToGlobal(SkMatrix* matrix) const; | 402 void localToGlobal(SkMatrix* matrix) const; |
403 }; | 403 }; |
404 | 404 |
405 #endif | 405 #endif |
OLD | NEW |