X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/f9ac1766dbe420e477be299e49b2d8f69cafe5ec..f62f46dfa394f35899b21f2b2cf793e8c651d9bb:/ITWindowEffect.h?ds=sidebyside diff --git a/ITWindowEffect.h b/ITWindowEffect.h old mode 100755 new mode 100644 index 2cc6c45..6fd2586 --- a/ITWindowEffect.h +++ b/ITWindowEffect.h @@ -1,58 +1,62 @@ /* * ITKit - * ITWindowEffect - * Protocal and abstract superclass for performing effects on windows. + * ITWindowEffect.h * - * Original Author : Matt Judy - * Responsibility : Matt Judy + * Protocol and abstract superclass for performing effects on windows. * - * Copyright (c) 2002 - 2003 iThink Software. - * All Rights Reserved + * Copyright (c) 2005 iThink Software * */ - #import -#import "ITWindowPositioning.h" +#import +@class ITTransientStatusWindow; #define EFFECT_FPS 30.0 #define DEFAULT_EFFECT_TIME 0.75 - typedef enum { - ITTransientStatusWindowHiddenState, - ITTransientStatusWindowAppearingState, - ITTransientStatusWindowVisibleState, - ITTransientStatusWindowVanishingState + ITWindowHiddenState, + ITWindowAppearingState, + ITWindowVisibleState, + ITWindowVanishingState } ITWindowVisibilityState; - @protocol ITWindowEffect + ++ (NSString *)effectName; ++ (NSDictionary *)supportedPositions; ++ (unsigned int)listOrder; - (void)performAppear; - (void)performVanish; - (void)cancelAppear; - (void)cancelVanish; + @end +@protocol ITWindowMotility -@protocol ITWindowVisibility - (ITWindowVisibilityState)visibilityState; - (void)setVisibilityState:(ITWindowVisibilityState)newState; -@end +- (float)effectProgress; +- (void)setEffectProgress:(float)newProgress; +@end -@interface ITWindowEffect : NSObject -{ - NSWindow *_window; - float _effectTime; - float _effectSpeed; - double _effectProgress; - ITVerticalWindowPosition _verticalPosition; - ITHorizontalWindowPosition _horizontalPosition; - NSTimer *_effectTimer; +@interface ITWindowEffect : NSObject { + NSWindow *_window; + float _effectTime; + float _effectSpeed; + ITVerticalWindowPosition _verticalPosition; + ITHorizontalWindowPosition _horizontalPosition; + NSTimer *_effectTimer; + BOOL __idle; + BOOL __shouldReleaseWhenIdle; } ++ (NSArray *)effectClasses; + // Designated initializer - (id)initWithWindow:(NSWindow *)window; @@ -65,4 +69,6 @@ typedef enum { - (float)effectTime; - (void)setEffectTime:(float)newTime; -@end +- (void)releaseWhenIdle; + +@end \ No newline at end of file