Lines Matching refs:click
360 Click* click = child->findClickHandler(x - child->fLoc.fX, in findClickHandler() local
362 if (click) { in findClickHandler()
363 return click; in findClickHandler()
370 void SkView::DoClickDown(Click* click, int x, int y) in DoClickDown() argument
372 SkASSERT(click); in DoClickDown()
374 SkView* target = (SkView*)SkEventSink::FindSink(click->fTargetID); in DoClickDown()
378 click->fIOrig.set(x, y); in DoClickDown()
379 click->fICurr = click->fIPrev = click->fIOrig; in DoClickDown()
381 click->fOrig.iset(x, y); in DoClickDown()
382 target->globalToLocal(&click->fOrig); in DoClickDown()
383 click->fPrev = click->fCurr = click->fOrig; in DoClickDown()
385 click->fState = Click::kDown_State; in DoClickDown()
386 target->onClick(click); in DoClickDown()
389 void SkView::DoClickMoved(Click* click, int x, int y) in DoClickMoved() argument
391 SkASSERT(click); in DoClickMoved()
393 SkView* target = (SkView*)SkEventSink::FindSink(click->fTargetID); in DoClickMoved()
397 click->fIPrev = click->fICurr; in DoClickMoved()
398 click->fICurr.set(x, y); in DoClickMoved()
400 click->fPrev = click->fCurr; in DoClickMoved()
401 click->fCurr.iset(x, y); in DoClickMoved()
402 target->globalToLocal(&click->fCurr); in DoClickMoved()
404 click->fState = Click::kMoved_State; in DoClickMoved()
405 target->onClick(click); in DoClickMoved()
408 void SkView::DoClickUp(Click* click, int x, int y) in DoClickUp() argument
410 SkASSERT(click); in DoClickUp()
412 SkView* target = (SkView*)SkEventSink::FindSink(click->fTargetID); in DoClickUp()
416 click->fIPrev = click->fICurr; in DoClickUp()
417 click->fICurr.set(x, y); in DoClickUp()
419 click->fPrev = click->fCurr; in DoClickUp()
420 click->fCurr.iset(x, y); in DoClickUp()
421 target->globalToLocal(&click->fCurr); in DoClickUp()
423 click->fState = Click::kUp_State; in DoClickUp()
424 target->onClick(click); in DoClickUp()