Lines Matching defs:click
388 Click* click = child->findClickHandler(p.fX, p.fY, modi);
390 if (click) {
391 return click;
399 void SkView::DoClickDown(Click* click, int x, int y, unsigned modi)
401 SkASSERT(click);
403 SkView* target = (SkView*)SkEventSink::FindSink(click->fTargetID);
408 click->fIOrig.set(x, y);
409 click->fICurr = click->fIPrev = click->fIOrig;
411 click->fOrig.iset(x, y);
412 if (!target->globalToLocal(&click->fOrig)) {
416 click->fPrev = click->fCurr = click->fOrig;
418 click->fState = Click::kDown_State;
419 click->fModifierKeys = modi;
420 target->onClick(click);
423 void SkView::DoClickMoved(Click* click, int x, int y, unsigned modi)
425 SkASSERT(click);
427 SkView* target = (SkView*)SkEventSink::FindSink(click->fTargetID);
432 click->fIPrev = click->fICurr;
433 click->fICurr.set(x, y);
435 click->fPrev = click->fCurr;
436 click->fCurr.iset(x, y);
437 if (!target->globalToLocal(&click->fCurr)) {
439 click->fCurr = click->fPrev;
442 click->fState = Click::kMoved_State;
443 click->fModifierKeys = modi;
444 target->onClick(click);
447 void SkView::DoClickUp(Click* click, int x, int y, unsigned modi)
449 SkASSERT(click);
451 SkView* target = (SkView*)SkEventSink::FindSink(click->fTargetID);
456 click->fIPrev = click->fICurr;
457 click->fICurr.set(x, y);
459 click->fPrev = click->fCurr;
460 click->fCurr.iset(x, y);
461 if (!target->globalToLocal(&click->fCurr)) {
463 click->fCurr = click->fPrev;
466 click->fState = Click::kUp_State;
467 click->fModifierKeys = modi;
468 target->onClick(click);