RobotUIKit API
|
00001 // 00002 // RUIFlickView.h 00003 // RobotKit 00004 // 00005 // Copyright 2011 Orbotix Inc. All rights reserved. 00006 // 00007 00008 #import <UIKit/UIKit.h> 00009 00010 @class RUIFlickGestureRecognizer; 00011 00018 @interface RUIFlickView : UIView { 00019 @private 00020 UIImageView *puckView; 00021 CGAffineTransform puckTransform; 00022 double radius; 00023 double speed; 00024 double heading; 00025 00026 NSMutableArray *targets; 00027 NSMutableArray *actions; 00028 00029 RUIFlickGestureRecognizer *flickGestureRecognizer; 00030 } 00031 00033 @property (nonatomic, readonly) double speed; 00035 @property (nonatomic, readonly) double heading; 00036 00045 - (void)addTarget:(id)target action:(SEL)action; 00046 00052 - (void)setPuckImage:(UIImage*)image; 00053 00058 - (void)setFlickEnabled:(BOOL)enabled; 00059 00064 - (void)commonInit; 00065 00069 -(RUIFlickGestureRecognizer*)getRecognizer; 00070 00071 @end