Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
183 lines (173 sloc) 5.96 KB
#import <SpringBoard/SpringBoard.h>
#import <QuartzCore/QuartzCore.h>
@interface SBIcon (iOS83)
- (NSString *)displayNameForLocation:(NSInteger)location;
@end
@protocol SBIconObserver
@optional
- (void)iconImageDidUpdate:(SBIcon *)icon;
- (void)iconAccessoriesDidUpdate:(SBIcon *)icon;
- (void)iconLaunchEnabledDidChange:(SBIcon *)icon;
@end
@protocol SBIconViewDelegate, SBIconViewLocker, SBIconObserver;
@class SBIconImageContainerView, SBIconBadgeImage;
@interface SBIconView : UIView <SBIconObserver> {
SBIcon *_icon;
id<SBIconViewDelegate> _delegate;
id<SBIconViewLocker> _locker;
SBIconImageContainerView *_iconImageContainer;
SBIconImageView *_iconImageView;
UIImageView *_iconDarkeningOverlay;
UIImageView *_ghostlyImageView;
UIImageView *_reflection;
UIImageView *_shadow;
SBIconBadgeImage *_badgeImage;
UIImageView *_badgeView;
SBIconLabel *_label;
BOOL _labelHidden;
BOOL _labelOnWallpaper;
UIView *_closeBox;
int _closeBoxType;
UIImageView *_dropGlow;
unsigned _drawsLabel : 1;
unsigned _isHidden : 1;
unsigned _isGrabbed : 1;
unsigned _isOverlapping : 1;
unsigned _refusesRecipientStatus : 1;
unsigned _highlighted : 1;
unsigned _launchDisabled : 1;
unsigned _isJittering : 1;
unsigned _allowJitter : 1;
unsigned _touchDownInIcon : 1;
unsigned _hideShadow : 1;
NSTimer *_delayedUnhighlightTimer;
unsigned _onWallpaper : 1;
unsigned _ghostlyRequesters;
int _iconLocation;
CGFloat _iconImageAlpha;
CGFloat _iconImageBrightness;
CGFloat _iconLabelAlpha;
CGFloat _accessoryAlpha;
CGPoint _unjitterPoint;
CGPoint _grabPoint;
NSTimer *_longPressTimer;
unsigned _ghostlyTag;
UIImage *_ghostlyImage;
BOOL _ghostlyPending;
}
+(CGSize)defaultIconSize;
+(CGSize)defaultIconImageSize;
+(BOOL)allowsRecycling;
+(CAAnimation *)_jitterPositionAnimation;
+(CAAnimation *)_jitterTransformAnimation;
@property(assign) id<SBIconViewDelegate> delegate;
@property(assign) id<SBIconViewLocker> locker;
@property(readonly, retain) SBIcon *icon;
- (id)initWithDefaultSize;
- (void)dealloc;
- (void)setIcon:(SBIcon *)icon;
- (int)location;
- (void)setLocation:(int)location;
- (void)showIconAnimationDidStop:(id)showIconAnimation didFinish:(id)finish icon:(id)icon;
- (void)setIsHidden:(BOOL)hidden animate:(BOOL)animate;
- (BOOL)isHidden;
- (BOOL)isRevealable;
- (void)positionIconImageView;
- (void)applyIconImageTransform:(CATransform3D)transform duration:(float)duration delay:(float)delay;
- (void)setDisplayedIconImage:(id)image;
- (id)snapshotSettings;
- (id)iconImageSnapshot:(id)snapshot;
- (id)reflectedIconWithBrightness:(float)brightness;
- (void)setIconImageAlpha:(CGFloat)alpha;
- (void)setIconLabelAlpha:(CGFloat)alpha;
- (UIImageView *)iconImageView;
- (void)setLabelHidden:(BOOL)hidden;
- (void)positionLabel;
- (CGSize)_labelSize;
- (Class)_labelClass;
- (void)updateLabel;
- (void)_updateBadgePosition;
- (NSString *)_overriddenBadgeTextForText:(NSString *)text;
- (void)updateBadge;
- (id)_automationID;
- (BOOL)pointMostlyInside:(CGPoint)point withEvent:(UIEvent *)event;
- (CGRect)frameForIconOverlay;
- (void)placeIconOverlayView;
- (void)updateIconOverlayView;
- (void)_updateIconBrightness;
- (BOOL)allowsTapWhileEditing;
- (BOOL)delaysUnhighlightWhenTapped;
- (BOOL)isHighlighted;
- (void)setHighlighted:(BOOL)highlighted;
- (void)setHighlighted:(BOOL)highlighted delayUnhighlight:(BOOL)unhighlight;
- (void)_delayedUnhighlight;
- (BOOL)isInDock;
- (UIImage *)_shadowImage;
- (void)_updateShadow;
- (void)updateReflection;
- (void)setDisplaysOnWallpaper:(BOOL)displaysOnWallpaper;
- (void)setLabelDisplaysOnWallpaper:(BOOL)labelDisplaysOnWallpaper;
- (BOOL)showsReflection;
- (CGFloat)_reflectionImageOffset;
- (void)setFrame:(CGRect)frame;
- (void)setIsJittering:(BOOL)isJittering;
- (void)setAllowJitter:(BOOL)allowJitter;
- (BOOL)allowJitter;
- (void)removeAllIconAnimations;
- (void)setIconPosition:(CGPoint)position;
- (void)setRefusesRecipientStatus:(BOOL)refusesRecipientStatus;
- (BOOL)canReceiveGrabbedIcon:(SBIcon *)icon;
- (NSTimeInterval)grabDurationForEvent:(UIEvent *)event;
- (void)setIsGrabbed:(BOOL)isGrabbed;
- (BOOL)isGrabbed;
- (void)setIsOverlapping:(BOOL)isOverlapping;
- (CGAffineTransform)transformToMakeDropGlowShrinkToIconSize;
- (void)prepareDropGlow;
- (void)showDropGlow:(BOOL)glow;
- (void)removeDropGlow;
- (id)dropGlow;
- (BOOL)isShowingDropGlow;
- (void)placeGhostlyImageView;
- (id)_genGhostlyImage:(id)image;
- (void)prepareGhostlyImageIfNeeded;
- (void)prepareGhostlyImage;
- (void)prepareGhostlyImageView;
- (void)setGhostly:(BOOL)ghostly requester:(int)requester;
- (void)setPartialGhostly:(float)ghostly requester:(int)requester;
- (void)removeGhostlyImageView;
- (BOOL)isGhostly;
- (int)ghostlyRequesters;
- (void)longPressTimerFired;
- (void)cancelLongPressTimer;
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
- (BOOL)isTouchDownInIcon;
- (void)setTouchDownInIcon:(BOOL)touchDownInIcon;
- (void)hideCloseBoxAnimationDidStop:(id)hideCloseBoxAnimation didFinish:(id)finish closeBox:(id)box;
- (void)positionCloseBoxOfType:(int)type;
- (id)_newCloseBoxOfType:(int)type;
- (void)setShowsCloseBox:(BOOL)box;
- (void)setShowsCloseBox:(BOOL)box animated:(BOOL)animated;
- (BOOL)isShowingCloseBox;
- (void)closeBoxTapped;
- (BOOL)pointInside:(CGPoint)inside withEvent:(id)event;
- (UIEdgeInsets)snapshotEdgeInsets;
- (void)setShadowsHidden:(BOOL)hidden;
- (void)_updateShadowFrameForShadow:(id)shadow;
- (void)_updateShadowFrame;
- (BOOL)_delegatePositionIsEditable;
- (void)_delegateTouchEnded:(BOOL)ended;
- (BOOL)_delegateTapAllowed;
- (int)_delegateCloseBoxType;
- (id)createShadowImageView;
- (void)prepareForRecycling;
- (CGRect)defaultFrameForProgressBar;
- (void)iconImageDidUpdate:(id)iconImage;
- (void)iconAccessoriesDidUpdate:(id)iconAccessories;
- (void)iconLaunchEnabledDidChange:(id)iconLaunchEnabled;
@end
@interface SBIconView (iOS7)
- (void)_updateLabel;
@end