| 454 | } |
| 455 | |
| 456 | Widget *OOFAwareWidget::getWidgetAtPoint (int x, int y, |
| 457 | GettingWidgetAtPointContext *context) |
| 458 | { |
| 459 | DBG_OBJ_ENTER ("events", 0, "getWidgetAtPoint", "%d, %d", x, y); |
| 460 | Widget *widgetAtPoint = NULL; |
| 461 | |
| 462 | if (inAllocation (x, y)) { |
| 463 | for (int level = SL_END - 1; widgetAtPoint == NULL && level > SL_START; |
| 464 | level--) |
| 465 | widgetAtPoint = getWidgetAtPointLevel (x, y, level, context); |
| 466 | } |
| 467 | |
| 468 | DBG_OBJ_MSGF ("events", 1, "=> %p", widgetAtPoint); |
| 469 | DBG_OBJ_LEAVE (); |
| 470 | return widgetAtPoint; |
| 471 | } |
| 472 | |
| 473 | Widget *OOFAwareWidget::getWidgetAtPointLevel (int x, int y, int level, |
| 474 | GettingWidgetAtPointContext |
no test coverage detected