X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/78553c25bacdbd190fd14591420cf4f7fa578617..56515bcf2e6dd44a8fe3767b7f3791cae184d940:/ITTransientStatusWindow.h diff --git a/ITTransientStatusWindow.h b/ITTransientStatusWindow.h index 1d1a218..adaf75a 100755 --- a/ITTransientStatusWindow.h +++ b/ITTransientStatusWindow.h @@ -18,11 +18,12 @@ #import -@class ITTextField; -@class ITGrayRoundedView; +#define DEFAULT_EXIT_DELAY 3.0 +#define DEFAULT_EFFECT_TIME 0.33 -#define DEFAULT_EXIT_DELAY 3.0 +@class ITTextField; +@class ITGrayRoundedView; typedef enum { @@ -56,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; @@ -106,4 +111,7 @@ typedef enum { // Note: Entry effects descri - (ITTransientStatusWindowEffect)exitEffect; - (void)setExitEffect:(ITTransientStatusWindowEffect)newEffect; +- (void)setRotation:(float)angle; + + @end