Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 174 lines (167 sloc) 5.951 kb
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 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
#import <SpringBoard/SpringBoard.h>
#import <QuartzCore/QuartzCore.h>

@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
Something went wrong with that request. Please try again.