4 * Protocal and abstract superclass for performing effects on windows.
6 * Original Author : Matt Judy <mjudy@ithinksw.com>
7 * Responsibility : Matt Judy <mjudy@ithinksw.com>
9 * Copyright (c) 2002 - 2003 iThink Software.
15 #import <Cocoa/Cocoa.h>
16 #import "ITWindowPositioning.h"
19 #define EFFECT_FPS 30.0
20 #define DEFAULT_EFFECT_TIME 0.75
23 @protocol ITWindowEffect
25 - (void)performAppear;
26 - (void)performVanish;
31 @interface ITWindowEffect : NSObject <ITWindowEffect>
35 double _effectProgress;
36 ITVerticalWindowPosition _verticalPosition;
37 ITHorizontalWindowPosition _horizontalPosition;
38 NSTimer *_effectTimer;
41 // Designated initializer
42 - (id)initWithWindow:(NSWindow *)window;
46 // setWindow: does not retain or release its window. It simply references it.
47 - (void)setWindow:(NSWindow *)newWindow;