X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/6927398d4cafaae8c6977280433be86431272986..HEAD:/ITWindowEffect.h diff --git a/ITWindowEffect.h b/ITWindowEffect.h old mode 100755 new mode 100644 index 8663331..6fd2586 --- a/ITWindowEffect.h +++ b/ITWindowEffect.h @@ -1,35 +1,30 @@ /* * 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 { - ITWindowHiddenState, - ITWindowAppearingState, - ITWindowVisibleState, - ITWindowVanishingState + ITWindowHiddenState, + ITWindowAppearingState, + ITWindowVisibleState, + ITWindowVanishingState } ITWindowVisibilityState; - @protocol ITWindowEffect + + (NSString *)effectName; + (NSDictionary *)supportedPositions; + (unsigned int)listOrder; @@ -37,27 +32,27 @@ typedef enum { - (void)performVanish; - (void)cancelAppear; - (void)cancelVanish; -@end +@end @protocol ITWindowMotility + - (ITWindowVisibilityState)visibilityState; - (void)setVisibilityState:(ITWindowVisibilityState)newState; - (float)effectProgress; - (void)setEffectProgress:(float)newProgress; -@end +@end -@interface ITWindowEffect : NSObject -{ - ITTransientStatusWindow *_window; - float _effectTime; - float _effectSpeed; - ITVerticalWindowPosition _verticalPosition; - ITHorizontalWindowPosition _horizontalPosition; - NSTimer *_effectTimer; - BOOL __idle; - BOOL __shouldReleaseWhenIdle; +@interface ITWindowEffect : NSObject { + NSWindow *_window; + float _effectTime; + float _effectSpeed; + ITVerticalWindowPosition _verticalPosition; + ITHorizontalWindowPosition _horizontalPosition; + NSTimer *_effectTimer; + BOOL __idle; + BOOL __shouldReleaseWhenIdle; } + (NSArray *)effectClasses; @@ -76,4 +71,4 @@ typedef enum { - (void)releaseWhenIdle; -@end +@end \ No newline at end of file