This repository has been archived by the owner on Apr 21, 2019. It is now read-only.
/
SBIconList.h
122 lines (118 loc) · 4.53 KB
/
SBIconList.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
/**
* 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 "SpringBoard-Structs.h"
#import <UIKit/UIView.h>
#import <Availability2.h>
@class NSMutableArray, SBIcon;
@interface SBIconList : UIView {
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
int _orientation;
#endif
SBIcon* _bouncedIcon;
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
NSMutableArray* _icons;
#else
NSMutableArray* _iconMatrix;
#endif
NSMutableArray* _removedIcons;
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
NSMutableArray* _iconContainerMatrix;
#endif
unsigned _scattered : 1;
unsigned _needsLayout : 1;
unsigned _stateIsDirty : 1;
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
unsigned _rotating : 1;
unsigned _onWallpaper : 1;
UIView* _fadeView;
#endif
}
// inherited: -(id)initWithFrame:(CGRect)frame;
// inherited: -(void)dealloc;
-(NSArray*)icons;
-(BOOL)isEmpty;
-(BOOL)needsCompacting;
-(void)compactIconsInIconList:(BOOL)iconList;
-(void)showIconAnimationDidStop:(id)showIconAnimation didFinish:(id)finish icon:(id)icon;
-(BOOL)containsIcon:(id)icon;
-(BOOL)containsIconForDisplayIdentifier:(id)displayIdentifier;
-(void)removeIcon:(id)icon compactEmptyLists:(BOOL)lists animate:(BOOL)animate;
-(void)removeAllIcons;
-(BOOL)isScattered;
-(void)setIconAlphaForRow:(int)row column:(int)column alpha:(float)alpha;
-(void)removeAllIconAnimations;
-(float)verticalIconPadding;
-(float)topIconPadding;
-(CGPoint)originForIconAtX:(int)x Y:(int)y;
-(CGPoint)originForIcon:(id)icon;
-(void)setFrame:(CGRect)frame;
-(void)layoutIconsNow;
-(float)layoutIconsIfNeeded:(float)needed domino:(BOOL)domino;
-(int)columnAtPoint:(CGPoint)point;
-(int)rowAtPoint:(CGPoint)point;
-(void)removeInfoAnimation:(id)animation didFinish:(id)finish view:(id)view;
-(void)stopJittering;
-(void)noteEditingStateChanged;
-(void)setStateIsDirty:(BOOL)dirty;
-(BOOL)stateIsDirty;
-(BOOL)isDock;
-(void)setBouncedIcon:(id)icon;
-(id)bouncedIcon;
-(void)resetWithRepresentation:(id)representation;
-(id)initWithRepresentation:(id)representation;
-(NSArray*)representation;
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
+(int)iconRowsForInterfaceOrientation:(int)interfaceOrientation;
+(int)iconColumnsForInterfaceOrientation:(int)interfaceOrientation;
+(int)maxIcons;
-(int)iconRowsForCurrentOrientation;
-(int)iconColumnsForCurrentOrientation;
-(int)iconsInRowForSpacingCalculation;
-(void)setOrientation:(int)orientation;
-(void)setDisplaysOnWallpaper:(BOOL)wallpaper;
-(int)indexForX:(int)x Y:(int)y forOrientation:(int)orientation;
-(void)getX:(int*)x Y:(int*)y forIndex:(int)index forOrientation:(int)orientation;
-(id)iconAtIndex:(int)index;
-(BOOL)firstFreeSlotIndex:(int*)index;
-(id)placeIcon:(id)icon atIndex:(int)index animate:(BOOL)animate moveNow:(BOOL)now;
-(id)insertIcon:(id)icon atIndex:(int)index moveNow:(BOOL)now;
-(BOOL)getIndex:(int*)index forIcon:(id)icon;
-(BOOL)getIndex:(int*)index forDisplayIdentifier:(id)displayIdentifier;
-(void)removeIconAtIndex:(int)index compactEmptyLists:(BOOL)lists animate:(BOOL)animate;
-(void)scatterWithDuration:(double)duration startTime:(double)time;
-(void)unscatterWithDuration:(double)duration startTime:(double)time;
-(void)fade:(float)fade;
-(float)horizontalIconInset;
-(float)horizontalIconSpace;
-(CGPoint)originForIconAtIndex:(int)index;
-(void)setIconsNeedLayout;
-(id)iconAtPoint:(CGPoint)point index:(int*)index;
-(id)iconAtPoint:(CGPoint)point index:(int*)index proposedOrder:(int*)order;
-(void)makeColumn:(int)column showImages:(BOOL)images andJitter:(BOOL)jitter;
-(id)rotationIconContainers;
-(void)prepareToRotateToInterfaceOrientation:(int)interfaceOrientation;
-(void)performRotationWithDuration:(double)duration;
-(void)cleanupAfterRotation;
#else
-(float)horizontalIconInset;
-(int)maxIconRows;
-(int)maxIconColumns;
-(SBIcon*)iconAtX:(int)x Y:(int)y;
-(BOOL)firstFreeSlotX:(int*)x Y:(int*)y;
-(id)placeIcon:(id)icon atX:(int)x Y:(int)y animate:(BOOL)animate moveNow:(BOOL)now;
-(id)insertIcon:(id)icon atX:(int)x Y:(int)y moveNow:(BOOL)now;
-(BOOL)getX:(int*)x Y:(int*)y forIcon:(id)icon;
-(BOOL)getX:(int*)x Y:(int*)y forDisplayIdentifier:(id)displayIdentifier;
-(void)removeIconAtX:(int)x Y:(int)y compactEmptyLists:(BOOL)lists animate:(BOOL)animate;
-(void)scatter:(BOOL)scatter startTime:(double)time;
-(void)unscatter:(BOOL)unscatter startTime:(double)time;
-(void)setIconsNeedLayout;
-(int)visibleIconsInRow:(id)row;
-(id)iconAtPoint:(CGPoint)point X:(int*)x Y:(int*)y;
-(id)iconAtPoint:(CGPoint)point X:(int*)x Y:(int*)y proposedOrder:(int*)order;
#endif
@end