-
Notifications
You must be signed in to change notification settings - Fork 5
/
UICalloutView.h
108 lines (104 loc) · 3.97 KB
/
UICalloutView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/**
* This header is generated by class-dump-z 0.1-11o.
* class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
*/
#import <GraphicsServices/GSEvent.h>
@class UILabel, NSMutableArray, NSTimer, UIImageView;
@interface UICalloutView : UIControl {
UIImageView* _leftCap;
UIImageView* _rightCap;
UIImageView* _topAnchor;
UIImageView* _bottomAnchor;
UIImageView* _leftBackground;
UIImageView* _rightBackground;
UILabel* _title;
UILabel* _subtitle;
UILabel* _temporary;
UIView* _leftView;
UIView* _rightView;
struct {
CGPoint origin;
CGPoint offset;
int position;
CGPoint desiredPoint;
CGRect desiredBounds;
} _anchor;
CGRect _frame;
id _delegate;
struct {
unsigned shouldSendTouchPauseUp : 1;
unsigned delegateViewHandleTapWithCountEvent : 1;
unsigned delegateViewHandleTapWithCountEventFingerCount : 1;
unsigned delegateViewHandleTouchPauseIsDown : 1;
unsigned reserved : 28;
} _flags;
NSMutableArray* _fadeInViews;
NSMutableArray* _fadeOutViews;
NSTimer* _layoutAnimationTimer;
}
@property(retain, nonatomic) UIView* leftView;
@property(retain, nonatomic) UIView* rightView;
@property(assign, nonatomic) BOOL canAnchorFromBottom;
@property(assign, nonatomic) int subtitleTextAlignment __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_3_1);
@property(assign, nonatomic) int titleTextAlignment __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_3_1);
@property(assign, nonatomic) int subtitleLineBreakMode;
@property(assign, nonatomic) int titleLineBreakMode;
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
@property(readonly, assign, nonatomic) float UICalloutViewMinimumWidth;
@property(readonly, assign, nonatomic) float UICalloutViewVerticalMargin;
@property(readonly, assign, nonatomic) float UICalloutViewHorizontalPadding;
@property(readonly, assign, nonatomic) float UICalloutViewHorizontalMargin;
@property(readonly, assign, nonatomic) float UICalloutViewButtonPadding;
@property(readonly, assign, nonatomic) float UICalloutViewLayoutDuration;
@property(readonly, assign, nonatomic) float UICalloutViewCapPaddingTop;
@property(readonly, assign, nonatomic) float UICalloutViewCapHeight;
#endif
+(id)_backgroundImage;
+(id)_leftCapImage;
+(id)_rightCapImage;
+(id)_topAnchorImage;
+(id)_bottomAnchorImage;
+(float)defaultHeight;
+(UICalloutView*)sharedCalloutView;
-(void)_setLeftView:(id)view;
-(void)_setRightView:(id)view;
-(void)_scheduleViewToFadeIn:(id)anIn;
-(void)_scheduleViewToFadeOut:(id)fadeOut;
-(void)setLeftView:(id)view animated:(BOOL)animated;
-(void)setRightView:(id)view animated:(BOOL)animated;
-(void)setSubtitle:(id)subtitle animated:(BOOL)animated;
-(void)_setLayoutAnimationTimer:(id)timer;
-(void)_layoutAnimation;
-(void)_scheduleLayoutAnimation;
-(void)_fadeViewsIn:(BOOL)anIn;
-(id)initWithFrame:(CGRect)frame;
-(void)dealloc;
-(void)setTitle:(id)title;
-(id)title;
-(void)setSubtitle:(id)subtitle;
-(id)subtitle;
-(void)setTemporaryTitle:(id)title;
-(id)temporaryTitle;
-(void)setOffset:(CGPoint)offset;
-(CGPoint)offset;
-(CGPoint)anchorPoint;
-(void)getActualAnchorPoint:(CGPoint*)point frame:(CGRect*)frame position:(int*)position forDesiredAnchorPoint:(CGPoint)desiredAnchorPoint boundaryRect:(CGRect)rect;
-(void)_setOriginForScale:(float)scale;
-(void)_layoutSubviews:(BOOL)subviews;
-(void)setAnchorPoint:(CGPoint)point boundaryRect:(CGRect)rect animate:(BOOL)animate;
-(void)animationDidStop:(id)animation finished:(id)finished context:(void*)context;
-(void)fadeOutWithDuration:(float)duration;
-(void)_markDidMoveCalled;
-(void)completeBounceAnimation;
-(void)addTarget:(id)target action:(SEL)action;
-(void)removeTarget:(id)target;
-(void)setDelegate:(id)delegate;
-(id)delegate;
-(id)hitTest:(CGPoint)test forEvent:(GSEventRef)event;
-(id)hitTest:(CGPoint)test withEvent:(id)event;
@end
@protocol UICalloutViewDelegate <NSObject>
@optional
-(void)calloutView:(UICalloutView*)calloutView willMoveToAnchorPoint:(CGPoint)newPoint animated:(BOOL)animated;
-(void)calloutView:(UICalloutView*)calloutView didMoveToAnchorPoint:(CGPoint)newPoint animated:(BOOL)animated;
@end