1 | /* |
---|
2 | * Adium is the legal property of its developers, whose names are listed in the copyright file included |
---|
3 | * with this source distribution. |
---|
4 | * |
---|
5 | * This program is free software; you can redistribute it and/or modify it under the terms of the GNU |
---|
6 | * General Public License as published by the Free Software Foundation; either version 2 of the License, |
---|
7 | * or (at your option) any later version. |
---|
8 | * |
---|
9 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even |
---|
10 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
---|
11 | * Public License for more details. |
---|
12 | * |
---|
13 | * You should have received a copy of the GNU General Public License along with this program; if not, |
---|
14 | * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
15 | */ |
---|
16 | |
---|
17 | |
---|
18 | @interface AIIconState : NSObject { |
---|
19 | BOOL animated; |
---|
20 | BOOL overlay; |
---|
21 | |
---|
22 | //Static |
---|
23 | NSImage *image; |
---|
24 | |
---|
25 | //Animated |
---|
26 | NSMutableArray *imageArray; |
---|
27 | float delay; |
---|
28 | BOOL looping; |
---|
29 | int currentFrame; |
---|
30 | int numberOfFrames; |
---|
31 | |
---|
32 | //Animated w/ delayed rendering |
---|
33 | NSArray *iconRendering_states; |
---|
34 | AIIconState *iconRendering_baseState; |
---|
35 | AIIconState *iconRendering_animationState; |
---|
36 | } |
---|
37 | |
---|
38 | - (id)initWithImages:(NSArray *)inImages delay:(float)inDelay looping:(BOOL)inLooping overlay:(BOOL)inOverlay; |
---|
39 | - (id)initWithImage:(NSImage *)inImage overlay:(BOOL)inOverlay; |
---|
40 | - (id)initByCompositingStates:(NSArray *)inIconStates; |
---|
41 | - (BOOL)animated; |
---|
42 | - (float)animationDelay; |
---|
43 | - (BOOL)looping; |
---|
44 | - (BOOL)overlay; |
---|
45 | - (NSArray *)imageArray; |
---|
46 | - (NSImage *)image; |
---|
47 | - (NSImage *)_compositeStates:(NSArray *)iconStateArray withBaseState:(AIIconState *)baseState animatingState:(AIIconState *)animatingState forFrame:(int)frame; |
---|
48 | - (int)currentFrame; |
---|
49 | - (void)nextFrame; |
---|
50 | - (int)numberOfFrames; |
---|
51 | |
---|
52 | @end |
---|
53 | |
---|