2 Copyright 2004, Apple, Inc. All rights reserved.
4 #ifndef OMIT_TIGER_FEATURES
6 #import <Cocoa/Cocoa.h>
8 // Needed for CGCompositeOperation
9 #import <CoreGraphics/CGContextPrivate.h>
11 @class WebImageRenderer;
13 @interface WebImageData : NSObject <NSCopying>
17 size_t imagePropertiesSize;
18 CFDictionaryRef fileProperties;
19 CFDictionaryRef *imageProperties;
20 CGImageSourceRef imageSource;
25 CFMutableDictionaryRef animatingRenderers;
28 size_t frameDurationsSize;
29 float *frameDurations;
32 int repetitionsComplete;
33 BOOL animationFinished;
41 - (size_t)numberOfImages;
42 - (CGImageRef)imageAtIndex:(size_t)index;
43 - (BOOL)incrementalLoadWithBytes:(const void *)bytes length:(unsigned)length complete:(BOOL)isComplete callback:(id)c;
44 - (void)drawImageAtIndex:(size_t)index inRect:(CGRect)ir fromRect:(CGRect)fr compositeOperation:(CGCompositeOperation)op context:(CGContextRef)aContext;
45 - (void)drawImageAtIndex:(size_t)index inRect:(CGRect)ir fromRect:(CGRect)fr adjustedSize:(CGSize)size compositeOperation:(CGCompositeOperation)op context:(CGContextRef)aContext;
46 - (void)tileInRect:(CGRect)rect fromPoint:(CGPoint)point context:(CGContextRef)aContext;
50 - (BOOL)shouldAnimate;
51 + (void)stopAnimationsInView:(NSView *)aView;
52 - (void)addAnimatingRenderer:(WebImageRenderer *)r inView:(NSView *)view;
53 - (void)removeAnimatingRenderer:(WebImageRenderer *)self;
54 - (BOOL)isAnimationFinished;
55 - (size_t)currentFrame;
56 - (CFDictionaryRef)propertiesAtIndex:(size_t)index;
58 - (void)decodeData:(CFDataRef)data isComplete:(BOOL)f callback:(id)c;
60 - (void)setIsPDF:(BOOL)f;