root/Trunk/AIUtilities.framework/Versions/A/Headers/AIImageAdditions.h @ 2

Revision 2, 1.4 KB (checked in by jon, 16 years ago)

Initial commit of skeletal project.

Line 
1//
2//  AIImageAdditions.h
3//  Adium
4//
5//  Created by Evan Schoenberg on Tue Dec 02 2003.
6//  Copyright (c) 2003-2005 The Adium Team. All rights reserved.
7//
8
9typedef enum {
10    AIButtonActive = 0,
11    AIButtonPressed,
12    AIButtonUnknown,
13    AIButtonDisabled,
14    AIButtonHovered
15} AICloseButtonState;
16
17typedef enum {
18        AIUnknownFileType = -9999,
19        AITIFFFileType = NSTIFFFileType,
20    AIBMPFileType = NSBMPFileType,
21    AIGIFFileType = NSGIFFileType,
22    AIJPEGFileType = NSJPEGFileType,
23    AIPNGFileType = NSPNGFileType,
24    AIJPEG2000FileType = NSJPEG2000FileType
25} AIBitmapImageFileType;
26
27@interface NSImage (AIImageAdditions)
28
29+ (NSImage *)imageNamed:(NSString *)name forClass:(Class)inClass;
30+ (NSImage *)imageNamed:(NSString *)name forClass:(Class)inClass loadLazily:(BOOL)flag;
31
32+ (NSImage *)imageForSSL;
33
34+ (AIBitmapImageFileType)fileTypeOfData:(NSData *)inData;
35+ (NSString *)extensionForBitmapImageFileType:(AIBitmapImageFileType)inFileType;
36
37- (NSData *)JPEGRepresentation;
38- (NSData *)JPEGRepresentationWithCompressionFactor:(float)compressionFactor;
39- (NSData *)PNGRepresentation;
40- (NSData *)GIFRepresentation;
41- (NSData *)BMPRepresentation;
42- (NSBitmapImageRep *)largestBitmapImageRep;
43
44@end
45
46//Defined in AppKit.framework
47@interface NSImageCell(NSPrivateAnimationSupport)
48- (BOOL)_animates;
49- (void)_setAnimates:(BOOL)fp8;
50- (void)_startAnimation;
51- (void)_stopAnimation;
52- (void)_animationTimerCallback:fp8;
53@end
Note: See TracBrowser for help on using the browser.