mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Move forward declarations from interface to implementation.
This commit is contained in:
parent
f763f37c13
commit
31cbdde184
@ -34,13 +34,13 @@ CNS_FIX_CATEGORY_BUG(UIImage_HockeyAdditionsPrivate)
|
||||
// Private helper methods
|
||||
@interface UIImage (HockeyAdditionsPrivate)
|
||||
- (void)addRoundedRectToPath:(CGRect)rect context:(CGContextRef)context ovalWidth:(CGFloat)ovalWidth ovalHeight:(CGFloat)ovalHeight;
|
||||
|
||||
CGContextRef MyOpenBitmapContext(int pixelsWide, int pixelsHigh);
|
||||
CGImageRef CreateGradientImage(int pixelsWide, int pixelsHigh, float fromAlpha, float toAlpha);
|
||||
@end
|
||||
|
||||
@implementation UIImage (HockeyAdditions)
|
||||
|
||||
CGContextRef MyOpenBitmapContext(int pixelsWide, int pixelsHigh);
|
||||
CGImageRef CreateGradientImage(int pixelsWide, int pixelsHigh, float fromAlpha, float toAlpha);
|
||||
|
||||
// Returns true if the image has an alpha layer
|
||||
- (BOOL)hasAlpha {
|
||||
CGImageAlphaInfo alpha = CGImageGetAlphaInfo(self.CGImage);
|
||||
|
Loading…
x
Reference in New Issue
Block a user