-
Notifications
You must be signed in to change notification settings - Fork 5
/
SBAppSliderIconController.h
91 lines (87 loc) · 3.6 KB
/
SBAppSliderIconController.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
/**
* This header is generated by class-dump-z 0.2a.
* class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
*
* Source: (null)
*/
#import "UIScrollViewDelegate.h"
#import <XXUnknownSuperclass.h> // Unknown library
#import "SBIconViewDelegate.h"
#import "SpringBoard-Structs.h"
#import "SBIconViewMapDelegate.h"
@class NSMutableDictionary, SBStopScrollingGestureRecognizer, NSMutableArray, UIScrollView, UIView, NSArray;
@protocol SBAppSliderIconControllerDelegate;
__attribute__((visibility("hidden")))
@interface SBAppSliderIconController : XXUnknownSuperclass <UIScrollViewDelegate, SBIconViewMapDelegate, SBIconViewDelegate> {
NSMutableArray* _appList;
NSMutableDictionary* _iconViews;
NSMutableArray* _iconViewCenters;
UIScrollView* _scrollView;
UIView* _iconContainer;
float _distanceBetweenCenters;
float _nominalDistanceBetweenCenters3;
float _nominalDistanceBetweenCenters5;
unsigned _iconTransitionIndex;
BOOL _dragMaster;
BOOL _preventScroll;
SBStopScrollingGestureRecognizer* _stopScrollingGesture;
int _layoutOrientation;
int _simplicityOptions;
CGRect _iconViewDefaultFrame;
id<SBAppSliderIconControllerDelegate> _delegate;
NSArray* _displayIdentifiers;
}
@property(assign, nonatomic) unsigned iconTransitionIndex;
@property(copy, nonatomic) NSArray* displayIdentifiers;
@property(assign, nonatomic) id<SBAppSliderIconControllerDelegate> delegate;
+(float)nominalDistanceBetween5IconCentersForSize:(CGSize)size;
+(float)nominalDistanceBetween3IconCentersForSize:(CGSize)size;
-(void)handleVolumeDecrease;
-(void)handleVolumeIncrease;
-(void)scrollViewWillEndDragging:(id)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint*)offset;
-(void)scrollViewDidScroll:(id)scrollView;
-(void)scrollViewDidEndDecelerating:(id)scrollView;
-(void)scrollViewDidEndDragging:(id)scrollView willDecelerate:(BOOL)decelerate;
-(void)scrollViewWillBeginDragging:(id)scrollView;
-(void)_iconsReloaded;
-(float)iconLabelWidth;
-(void)iconTouchBegan:(id)began;
-(void)iconHandleLongPress:(id)press;
-(BOOL)iconShouldAllowTap:(id)icon;
-(void)iconTapped:(id)tapped;
-(Class)viewMap:(id)map iconViewClassForIcon:(id)icon;
-(int)viewMap:(id)map locationForIcon:(id)icon;
-(unsigned)viewMap:(id)map maxRecycledIconViewsOfClass:(Class)aClass;
-(int)_windowInterfaceOrientation;
-(unsigned)_centeredIndex;
-(void)_handleStopScrollingGesture:(id)gesture;
-(float)_recalculateLayout:(BOOL)layout;
-(float)_calculateDistanceBetweenCentersBasedOnCurrentContentOffset;
-(float)_calculateDistanceBetweenCentersBasedOnCenteredIndex:(unsigned)index;
-(void)_layoutForDistance:(float)distance;
-(void)_updateVisibleIconViewsWithPadding:(BOOL)padding;
-(CGPoint)_adjustedCenter:(CGPoint)center forIconView:(id)iconView;
-(BOOL)_isIndexVisible:(unsigned)visible withPadding:(BOOL)padding;
-(CGPoint)_centerOfIndex:(unsigned)index forDistance:(float)distance inOrientation:(int)orientation;
-(float)_distanceBetweenCenters;
-(void)reloadInOrientation:(int)orientation;
-(void)_cleanupAllIcons;
-(void)_cleanupIcon:(id)icon;
-(float)_halfWidth;
-(void)_recalculateBaseIconSpacingValues;
-(unsigned)supportedInterfaceOrientations;
-(BOOL)shouldAutorotate;
-(BOOL)shouldAutomaticallyForwardRotationMethods;
-(void)removeIndex:(unsigned)index duration:(double)duration;
-(void)cancelScrolling;
-(void)switcherWasDismissed:(BOOL)dismissed;
-(void)loadView;
-(BOOL)isScrolling;
-(void)setNormalizedOffset:(float)offset;
-(void)setOffsetToIndex:(unsigned)index animated:(BOOL)animated;
-(float)_maxXOffsetForDistance:(float)distance;
-(id)_iconViewForIndex:(unsigned)index;
-(CGRect)_iconFaultRectForIndex:(unsigned)index;
-(void)dealloc;
-(id)init;
@end