RobotUIKit API
RobotUIKit/RUICalibrateGestureHandler.h
00001 //
00002 //  RUICalibrateGestureHandler.h
00003 //  RobotUIKit
00004 //
00005 //  Created by Jon Carroll on 11/28/11.
00006 //  Copyright (c) 2011 Orbotix Inc. All rights reserved.
00007 //
00008 
00009 #import <UIKit/UIKit.h>
00010 #import <Foundation/Foundation.h>
00011 
00012 @class RUICalibrateGestureHandler;
00013 @protocol RUICalibrateGestureHandlerProtocol;
00014 
00019 @interface RUICalibrateGestureHandler : NSObject {
00020     id <RUICalibrateGestureHandlerProtocol> delegate;
00021     @private
00022     UIView *view, *targetView;
00023     UIRotationGestureRecognizer *recognizer;
00024     CGPoint lastTouch2;
00025 }
00026 
00030 @property (nonatomic, assign) id <RUICalibrateGestureHandlerProtocol> delegate;
00031 
00035 -(id)initWithView:(UIView*)view;
00036 
00040 +(BOOL)isCalibrating;
00041 
00045 -(UIGestureRecognizer*)getGestureRecognizer;
00046 
00051 -(UIView*)getOverlayView;
00052 
00053 @end
00054 
00059 @protocol RUICalibrateGestureHandlerProtocol <NSObject>
00060 @optional
00066 -(BOOL)calibrateGestureHandlerShouldAllowCalibration:(RUICalibrateGestureHandler*)sender;
00067 
00071 -(void)calibrateGestureHandlerBegan:(RUICalibrateGestureHandler*)sender;
00072 
00076 -(void)calibrateGestureHandlerEnded:(RUICalibrateGestureHandler*)sender;
00077 
00078 @end
 All Classes Functions Properties