X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/f9ac1766dbe420e477be299e49b2d8f69cafe5ec..1d5525ced75adc1fe1508e8c19fcc31af129464e:/ITWindowEffect.h diff --git a/ITWindowEffect.h b/ITWindowEffect.h index 2cc6c45..9b6c0bd 100755 --- a/ITWindowEffect.h +++ b/ITWindowEffect.h @@ -3,8 +3,8 @@ * ITWindowEffect * Protocal and abstract superclass for performing effects on windows. * - * Original Author : Matt Judy - * Responsibility : Matt Judy + * Original Author : Matthew Judy + * Responsibility : Matthew Judy * * Copyright (c) 2002 - 2003 iThink Software. * All Rights Reserved @@ -15,20 +15,24 @@ #import #import "ITWindowPositioning.h" +@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; @@ -36,23 +40,28 @@ typedef enum { @end -@protocol ITWindowVisibility +@protocol ITWindowMotility - (ITWindowVisibilityState)visibilityState; - (void)setVisibilityState:(ITWindowVisibilityState)newState; +- (float)effectProgress; +- (void)setEffectProgress:(float)newProgress; @end @interface ITWindowEffect : NSObject { - NSWindow *_window; + ITTransientStatusWindow *_window; float _effectTime; float _effectSpeed; - double _effectProgress; ITVerticalWindowPosition _verticalPosition; ITHorizontalWindowPosition _horizontalPosition; NSTimer *_effectTimer; + BOOL __idle; + BOOL __shouldReleaseWhenIdle; } ++ (NSArray *)effectClasses; + // Designated initializer - (id)initWithWindow:(NSWindow *)window; @@ -65,4 +74,6 @@ typedef enum { - (float)effectTime; - (void)setEffectTime:(float)newTime; +- (void)releaseWhenIdle; + @end