#import <Cocoa/Cocoa.h>
#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;
@end
-@protocol ITWindowVisibility
+@protocol ITWindowMotility
- (ITWindowVisibilityState)visibilityState;
- (void)setVisibilityState:(ITWindowVisibilityState)newState;
+- (float)effectProgress;
+- (void)setEffectProgress:(float)newProgress;
@end
@interface ITWindowEffect : NSObject <ITWindowEffect>
{
- NSWindow *_window;
+ ITTransientStatusWindow *_window;
float _effectTime;
- double _effectProgress;
+ float _effectSpeed;
ITVerticalWindowPosition _verticalPosition;
ITHorizontalWindowPosition _horizontalPosition;
NSTimer *_effectTimer;
+ BOOL __idle;
+ BOOL __shouldReleaseWhenIdle;
}
// Designated initializer
- (void)setWindowVisibility:(ITWindowVisibilityState)visibilityState;
+- (float)effectTime;
+- (void)setEffectTime:(float)newTime;
+
+- (void)releaseWhenIdle;
+
@end