IDMTapDetectingView.h 783 B

123456789101112131415161718192021222324252627
  1. //
  2. // IDMTapDetectingView.h
  3. // IDMPhotoBrowser
  4. //
  5. // Created by Michael Waterfall on 04/11/2009.
  6. // Copyright 2009 d3i. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @protocol IDMTapDetectingViewDelegate;
  10. @interface IDMTapDetectingView : UIView {
  11. id <IDMTapDetectingViewDelegate> __weak tapDelegate;
  12. }
  13. @property (nonatomic, weak) id <IDMTapDetectingViewDelegate> tapDelegate;
  14. - (void)handleSingleTap:(UITouch *)touch;
  15. - (void)handleDoubleTap:(UITouch *)touch;
  16. - (void)handleTripleTap:(UITouch *)touch;
  17. @end
  18. @protocol IDMTapDetectingViewDelegate <NSObject>
  19. @optional
  20. - (void)view:(UIView *)view singleTapDetected:(UITouch *)touch;
  21. - (void)view:(UIView *)view doubleTapDetected:(UITouch *)touch;
  22. - (void)view:(UIView *)view tripleTapDetected:(UITouch *)touch;
  23. @end