You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.7 KiB
51 lines
1.7 KiB
// |
|
// QCMethod.h |
|
// |
|
// Version 1.2 |
|
// |
|
// www.quartzcodeapp.com |
|
// |
|
|
|
#import "TargetConditionals.h" |
|
#import <QuartzCore/QuartzCore.h> |
|
|
|
#if (TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE) |
|
#import <UIKit/UIKit.h> |
|
#else |
|
#import <Cocoa/Cocoa.h> |
|
#endif |
|
|
|
@interface QCMethod : NSObject |
|
+ (CAAnimation*)reverseAnimation:(CAAnimation*)anim totalDuration:(CGFloat)totalDuration; |
|
+ (CAAnimationGroup*)groupAnimations:(NSArray*)animations fillMode:(NSString*)fillMode forEffectLayer:(BOOL)forEffectLayer sublayersCount:(NSInteger)count; |
|
+ (CAAnimationGroup*)groupAnimations:(NSArray*)animations fillMode:(NSString*)fillMode; |
|
+ (CGFloat)maxDurationFromAnimations:(NSArray*)anims; |
|
+ (CGFloat)maxDurationOfEffectAnimation:(CAAnimationGroup*)anim sublayersCount:(NSInteger)count; |
|
+ (void)updateValueFromAnimationsForLayers:(NSArray*)layers; |
|
+ (void)updateValueForAnimation:(CAAnimation*)anim theLayer:(CALayer *)layer; |
|
+ (void)updateValueFromPresentationLayerForAnimation:(CAAnimation*)anim theLayer:(CALayer *)layer; |
|
+ (void)addSublayersAnimation:(CAAnimation*)anim forKey:(NSString*)key forLayer:(CALayer*)layer; |
|
+ (void)addSublayersAnimationNeedReverse:(CAAnimation*)anim forKey:(NSString*)key forLayer:(CALayer*)layer reverseAnimation:(BOOL)reverse totalDuration:(CGFloat)totalDuration; |
|
|
|
#if (TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE) |
|
+ (UIBezierPath*)alignToBottomPath:(UIBezierPath*)path layer:(CALayer*)layer; |
|
+ (UIBezierPath*)offsetPath:(UIBezierPath*)path by:(CGPoint)offset; |
|
|
|
#else |
|
+ (NSBezierPath*)offsetPath:(NSBezierPath*)path by:(CGPoint)offset; |
|
|
|
#endif |
|
@end |
|
|
|
#if (TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE) |
|
#else |
|
@interface NSBezierPath (Path) |
|
- (CGPathRef)quartzPath; |
|
@end |
|
|
|
@interface NSImage (cgImage) |
|
-(CGImageRef)cgImage; |
|
@end |
|
|
|
|
|
#endif |