| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 such that it will be drawn after all other child views. | 203 such that it will be drawn after all other child views. |
| 204 The child view parameter is returned. | 204 The child view parameter is returned. |
| 205 */ | 205 */ |
| 206 /** Detach all child views from this view. */ | 206 /** Detach all child views from this view. */ |
| 207 void detachAllChildren(); | 207 void detachAllChildren(); |
| 208 | 208 |
| 209 /** Convert the specified point from global coordinates into view-local coor
dinates | 209 /** Convert the specified point from global coordinates into view-local coor
dinates |
| 210 * Return true on success; false on failure | 210 * Return true on success; false on failure |
| 211 */ | 211 */ |
| 212 bool globalToLocal(SkPoint* pt) const { | 212 bool globalToLocal(SkPoint* pt) const { |
| 213 if (NULL != pt) { | 213 if (pt) { |
| 214 return this->globalToLocal(pt->fX, pt->fY, pt); | 214 return this->globalToLocal(pt->fX, pt->fY, pt); |
| 215 } | 215 } |
| 216 return true; // nothing to do so return true | 216 return true; // nothing to do so return true |
| 217 } | 217 } |
| 218 /** Convert the specified x,y from global coordinates into view-local coordi
nates, returning | 218 /** Convert the specified x,y from global coordinates into view-local coordi
nates, returning |
| 219 the answer in the local parameter. | 219 the answer in the local parameter. |
| 220 */ | 220 */ |
| 221 bool globalToLocal(SkScalar globalX, SkScalar globalY, SkPoint* local
) const; | 221 bool globalToLocal(SkScalar globalX, SkScalar globalY, SkPoint* local
) const; |
| 222 | 222 |
| 223 /** \class F2BIter | 223 /** \class F2BIter |
| (...skipping 172 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 |