X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/22a86e1af594d77fde7f056cf5152478f14dafbf..56515bcf2e6dd44a8fe3767b7f3791cae184d940:/ITTransientStatusWindow.h diff --git a/ITTransientStatusWindow.h b/ITTransientStatusWindow.h index af6d277..adaf75a 100755 --- a/ITTransientStatusWindow.h +++ b/ITTransientStatusWindow.h @@ -18,7 +18,12 @@ #import -#define DEFAULT_EXIT_DELAY 3.0 +#define DEFAULT_EXIT_DELAY 3.0 +#define DEFAULT_EFFECT_TIME 0.33 + + +@class ITTextField; +@class ITGrayRoundedView; typedef enum { @@ -52,24 +57,28 @@ typedef enum { ITTransientStatusWindowOther } ITTransientStatusWindowPosition; -typedef enum { // Note: Entry effects described here. Exit does the reverse. - ITTransientStatusWindowEffectNone, // No effect, window just appears. - ITTransientStatusWindowEffectDissolve, // Fades in. - ITTransientStatusWindowEffectSlideVertically, // Slides vertically onto the screen from the nearest edge - ITTransientStatusWindowEffectSlideHorizontally // Slides horizontally onto the screen from the nearest edge +typedef enum { // Note: Entry effects described here. Exit does the reverse. + ITTransientStatusWindowEffectNone, // No effect, window just appears. + ITTransientStatusWindowEffectDissolve, // Fades in. + ITTransientStatusWindowEffectSlideVertically, // Slides vertically onto the screen from the nearest edge + ITTransientStatusWindowEffectSlideHorizontally, // Slides horizontally onto the screen from the nearest edge + ITTransientStatusWindowEffectPivot // Rotate into place from perpendicular edge } ITTransientStatusWindowEffect; @interface ITTransientStatusWindow : NSWindow { - ITTransientStatusWindowVisibilityState _visibilityState; - ITTransientStatusWindowExitMode _exitMode; - float _exitDelay; - ITTransientStatusWindowBackgroundType _backgroundType; - ITTransientStatusWindowEffect _entryEffect; - ITTransientStatusWindowEffect _exitEffect; - ITTransientStatusWindowPosition _verticalPosition; - ITTransientStatusWindowPosition _horizontalPosition; + ITTransientStatusWindowVisibilityState _visibilityState; + ITTransientStatusWindowExitMode _exitMode; + float _exitDelay; + ITTransientStatusWindowBackgroundType _backgroundType; + ITTransientStatusWindowEffect _entryEffect; + ITTransientStatusWindowEffect _exitEffect; + float _effectTime; + ITTransientStatusWindowPosition _verticalPosition; + ITTransientStatusWindowPosition _horizontalPosition; + + BOOL _reallyIgnoresEvents; NSTimer *_delayTimer; NSTimer *_fadeTimer; @@ -102,4 +111,7 @@ typedef enum { // Note: Entry effects descri - (ITTransientStatusWindowEffect)exitEffect; - (void)setExitEffect:(ITTransientStatusWindowEffect)newEffect; +- (void)setRotation:(float)angle; + + @end