* Try to find a sensitive object, working up the hierarchy of composites. * */
| 339 | * |
| 340 | */ |
| 341 | wxShape *wxShapeCanvas::FindFirstSensitiveShape(double x, double y, int *new_attachment, int op) |
| 342 | { |
| 343 | wxShape *image = FindShape(x, y, new_attachment); |
| 344 | if (!image) return NULL; |
| 345 | |
| 346 | wxShape *actualImage = FindFirstSensitiveShape1(image, op); |
| 347 | if (actualImage) |
| 348 | { |
| 349 | double dist; |
| 350 | // Find actual attachment |
| 351 | actualImage->HitTest(x, y, new_attachment, &dist); |
| 352 | } |
| 353 | return actualImage; |
| 354 | } |
| 355 | |
| 356 | wxShape *wxShapeCanvas::FindFirstSensitiveShape1(wxShape *image, int op) |
| 357 | { |