git.ithinksw.org
/
ITKit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
"Fixed" ITButton... it's not REALLY fixed, as that's impossible, but it
[ITKit.git]
/
ITWindowEffect.h
diff --git
a/ITWindowEffect.h
b/ITWindowEffect.h
index
1c4e3cb
..
9ce6fcf
100755
(executable)
--- a/
ITWindowEffect.h
+++ b/
ITWindowEffect.h
@@
-15,16
+15,17
@@
#import <Cocoa/Cocoa.h>
#import "ITWindowPositioning.h"
#import <Cocoa/Cocoa.h>
#import "ITWindowPositioning.h"
+@class ITTransientStatusWindow;
#define EFFECT_FPS 30.0
#define DEFAULT_EFFECT_TIME 0.75
typedef enum {
#define EFFECT_FPS 30.0
#define DEFAULT_EFFECT_TIME 0.75
typedef enum {
- IT
TransientStatus
WindowHiddenState,
- IT
TransientStatus
WindowAppearingState,
- IT
TransientStatus
WindowVisibleState,
- IT
TransientStatus
WindowVanishingState
+ ITWindowHiddenState,
+ ITWindowAppearingState,
+ ITWindowVisibleState,
+ ITWindowVanishingState
} ITWindowVisibilityState;
} ITWindowVisibilityState;
@@
-36,20
+37,24
@@
typedef enum {
@end
@end
-@protocol ITWindow
Visib
ility
+@protocol ITWindow
Mot
ility
- (ITWindowVisibilityState)visibilityState;
- (void)setVisibilityState:(ITWindowVisibilityState)newState;
- (ITWindowVisibilityState)visibilityState;
- (void)setVisibilityState:(ITWindowVisibilityState)newState;
+- (float)effectProgress;
+- (void)setEffectProgress:(float)newProgress;
@end
@interface ITWindowEffect : NSObject <ITWindowEffect>
{
@end
@interface ITWindowEffect : NSObject <ITWindowEffect>
{
-
NSWindow
*_window;
+
ITTransientStatusWindow
*_window;
float _effectTime;
float _effectTime;
-
double _effectProgress
;
+
float _effectSpeed
;
ITVerticalWindowPosition _verticalPosition;
ITHorizontalWindowPosition _horizontalPosition;
NSTimer *_effectTimer;
ITVerticalWindowPosition _verticalPosition;
ITHorizontalWindowPosition _horizontalPosition;
NSTimer *_effectTimer;
+ BOOL __idle;
+ BOOL __shouldReleaseWhenIdle;
}
// Designated initializer
}
// Designated initializer
@@
-61,4
+66,9
@@
typedef enum {
- (void)setWindowVisibility:(ITWindowVisibilityState)visibilityState;
- (void)setWindowVisibility:(ITWindowVisibilityState)visibilityState;
+- (float)effectTime;
+- (void)setEffectTime:(float)newTime;
+
+- (void)releaseWhenIdle;
+
@end
@end