This repository has been archived by the owner on Apr 21, 2019. It is now read-only.
/
SBIcon.h
142 lines (138 loc) · 4.39 KB
/
SBIcon.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/**
* This header is generated by class-dump-z 0.2-1.
* class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
*
* Source: (null)
*/
#import <UIKit/UIView.h>
#import "SpringBoard-Structs.h"
#import <Availability2.h>
@class SBIconImageView, SBIconBadge, NSString, NSTimer, UIImageView, UIPushButton, SBIconLabel, CAAnimation;
@interface SBIcon : UIView {
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
UIImageView* _shadow;
#else
NSString* _filenameSafeDisplayIdentifier;
#endif
SBIconImageView* _image;
UIImageView* _reflection;
#if __IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_3_2
UIView* _grayFilterView;
#endif
SBIconBadge* _badge;
id _badgeNumberOrString;
SBIconLabel* _label;
UIPushButton* _closeBox;
unsigned _isShowingImages : 1;
unsigned _drawsLabel : 1;
unsigned _isHidden : 1;
unsigned _isRevealable : 1;
unsigned _inDock : 1;
unsigned _isGrabbed : 1;
unsigned _isGrabbing : 1;
unsigned _highlighted : 1;
unsigned _isJittering : 1;
unsigned _allowJitter : 1;
unsigned _touchDownInIcon : 1;
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
unsigned _disableAutorotation : 1;
unsigned _onWallpaper : 1;
#endif
NSTimer* _delayedUnhighlightTimer;
CGPoint _unjitterPoint;
CGPoint _grabPoint;
NSTimer* _grabTimer;
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
UIImage* _cachedIconImages[3];
#endif
}
+(CGSize)defaultIconSize;
+(void)enqueueReusableIconImageView:(id)view;
+(id)dequeueReusableIconImageView;
+(CAAnimation*)_jitterPositionAnimation;
+(CAAnimation*)_jitterTransformAnimation;
-(id)initWithDefaultSize;
// inherited: -(void)dealloc;
-(void)localeChanged;
-(void)showIconAnimationDidStop:(id)showIconAnimation didFinish:(id)finish icon:(id)icon;
-(void)setIsHidden:(BOOL)hidden animate:(BOOL)animate;
-(BOOL)isHidden;
-(void)setIsRevealable:(BOOL)revealable;
-(BOOL)isRevealable;
-(NSString*)displayName;
-(int)localizedCompareDisplayNames:(id)names;
-(NSString*)displayIdentifier;
-(id)tags;
-(BOOL)launchEnabled;
-(void)setDisplayedIcon:(id)icon;
-(UIImage*)reflectedIcon:(BOOL)icon;
-(BOOL)isShowingImages;
-(void)setShowsImages:(BOOL)images;
-(void)updateLabelOrigin;
-(BOOL)shouldEllipsizeLabel;
-(BOOL)shouldKernLabel;
-(void)setDrawsLabel:(BOOL)label;
-(void)updateLabelKerningAndEllipsing;
-(int)badgeValue;
-(void)setBadge:(NSString*)badge;
-(id)_automationID;
-(BOOL)pointMostlyInside:(CGPoint)inside withEvent:(id)event;
-(id)darkenedIcon:(id)icon alpha:(float)alpha;
-(BOOL)isHighlighted;
-(void)setHighlighted:(BOOL)highlighted;
-(void)setHighlighted:(BOOL)highlighted delayUnhighlight:(BOOL)unhighlight;
-(void)_delayedUnhighlight;
-(void)setInDock:(BOOL)dock;
-(BOOL)isInDock;
-(void)setOrigin:(CGPoint)origin;
-(void)setIsJittering:(BOOL)jittering;
-(void)setAllowJitter:(BOOL)jitter;
-(BOOL)allowJitter;
-(void)removeAllIconAnimations;
-(void)setIconPosition:(CGPoint)position;
-(double)grabDurationForEvent:(id)event;
-(void)setIsGrabbed:(BOOL)grabbed;
-(BOOL)_shouldLockItemsInStoreDemoMode;
-(void)grabTimerFired;
-(void)cancelGrabTimer;
// inherited: -(void)touchesCancelled:(id)cancelled withEvent:(id)event;
// inherited: -(void)touchesBegan:(id)began withEvent:(id)event;
// inherited: -(void)touchesMoved:(id)moved withEvent:(id)event;
// inherited: -(void)touchesEnded:(id)ended withEvent:(id)event;
-(NSString*)representation;
-(void)launch;
-(BOOL)pointInside:(CGPoint)inside withEvent:(id)event;
-(BOOL)allowsCloseBox;
-(void)hideCloseBoxAnimationDidStop:(id)hideCloseBoxAnimation didFinish:(id)finish closeBox:(id)box;
-(void)setIsShowingCloseBox:(BOOL)box;
-(BOOL)isShowingCloseBox;
-(void)closeBoxClicked:(id)clicked;
-(void)completeUninstall;
// inherited: -(id)description;
-(id)uninstallAlertTitle;
-(id)uninstallAlertBody;
-(id)uninstallAlertConfirmTitle;
-(id)uninstallAlertCancelTitle;
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
+(CGSize)defaultIconImageSize;
+(id)genericAppIcon:(int)icon;
-(id)generateIconImage:(int)image;
-(id)getIconImage:(int)image;
-(void)reloadIconImage;
-(id)_shadowImageName;
-(void)_updateShadow;
-(void)setDisplaysOnWallpaper:(BOOL)wallpaper;
-(BOOL)showsReflection;
-(UIEdgeInsets)snapshotEdgeInsets;
-(void)setShadowsHidden:(BOOL)hidden;
-(void)_updateShadowFrameForShadow:(id)shadow;
-(void)_updateShadowFrame;
-(id)createShadowImageView;
#else
-(NSString*)filenameSafeDisplayIndentifier;
-(NSDate*)modificationDate:(BOOL)date;
-(UIImage*)icon;
-(UIImage*)smallIcon;
-(id)_createIconImageDataForSmallIcon:(BOOL)smallIcon;
#endif
@end