MCPcopy Create free account
hub / github.com/dillo-browser/dillo / getWidgetAtPoint

Method getWidgetAtPoint

dw/oofawarewidget.cc:456–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456Widget *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
473Widget *OOFAwareWidget::getWidgetAtPointLevel (int x, int y, int level,
474 GettingWidgetAtPointContext

Callers 1

getWidgetOOFAtPointMethod · 0.45

Calls 1

inAllocationFunction · 0.85

Tested by

no test coverage detected