Lines Matching defs:event
55 * True if the delegate had been targeted on a down event (intersected mBounds).
100 * Will forward touch events to the delegate view if the event is within the bounds
103 * @param event The touch event to forward
104 * @return True if the event was forwarded to the delegate, false otherwise.
106 public boolean onTouchEvent(MotionEvent event) {
107 int x = (int)event.getX();
108 int y = (int)event.getY();
113 switch (event.getAction()) {
141 // Offset event coordinates to be inside the target view
142 event.setLocation(delegateView.getWidth() / 2, delegateView.getHeight() / 2);
144 // Offset event coordinates to be outside the target view (in case it does
147 event.setLocation(-(slop * 2), -(slop * 2));
149 handled = delegateView.dispatchTouchEvent(event);