Lines Matching refs:click

148 void Sample::DoClickDown(Click* click, int x, int y, unsigned modi) {  in DoClickDown()  argument
149 SkASSERT(click); in DoClickDown()
151 Sample* target = click->fTarget.get(); in DoClickDown()
156 click->fIOrig.set(x, y); in DoClickDown()
157 click->fICurr = click->fIPrev = click->fIOrig; in DoClickDown()
159 click->fOrig.iset(x, y); in DoClickDown()
160 click->fPrev = click->fCurr = click->fOrig; in DoClickDown()
162 click->fState = Click::kDown_State; in DoClickDown()
163 click->fModifierKeys = modi; in DoClickDown()
164 target->onClick(click); in DoClickDown()
167 void Sample::DoClickMoved(Click* click, int x, int y, unsigned modi) { in DoClickMoved() argument
168 SkASSERT(click); in DoClickMoved()
170 Sample* target = click->fTarget.get(); in DoClickMoved()
175 click->fIPrev = click->fICurr; in DoClickMoved()
176 click->fICurr.set(x, y); in DoClickMoved()
178 click->fPrev = click->fCurr; in DoClickMoved()
179 click->fCurr.iset(x, y); in DoClickMoved()
181 click->fState = Click::kMoved_State; in DoClickMoved()
182 click->fModifierKeys = modi; in DoClickMoved()
183 target->onClick(click); in DoClickMoved()
186 void Sample::DoClickUp(Click* click, int x, int y, unsigned modi) { in DoClickUp() argument
187 SkASSERT(click); in DoClickUp()
189 Sample* target = click->fTarget.get(); in DoClickUp()
194 click->fIPrev = click->fICurr; in DoClickUp()
195 click->fICurr.set(x, y); in DoClickUp()
197 click->fPrev = click->fCurr; in DoClickUp()
198 click->fCurr.iset(x, y); in DoClickUp()
200 click->fState = Click::kUp_State; in DoClickUp()
201 click->fModifierKeys = modi; in DoClickUp()
202 target->onClick(click); in DoClickUp()