summaryrefslogtreecommitdiff
path: root/frontends/cocoa/PSMTabBarControl/PSMTabDragWindowController.h
blob: 5948207f29168956e27c5208006a856504c5976d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
//  PSMTabDragWindowController.h
//  PSMTabBarControl
//
//  Created by Kent Sutherland on 6/18/07.
//  Copyright 2007 Kent Sutherland. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "PSMTabBarControl.h"

#define kPSMTabDragWindowAlpha 0.75
#define kPSMTabDragAlphaInterval 0.15

@class PSMTabDragView;

@interface PSMTabDragWindowController : NSWindowController {
	PSMTabBarTearOffStyle				_tearOffStyle;
	PSMTabDragView						*_view;
	NSAnimation							*_animation;
	NSTimer								*_timer;

	BOOL									_showingAlternate;
	NSRect									_originalWindowFrame;
}
- (id)initWithImage:(NSImage *)image styleMask:(NSUInteger) styleMask tearOffStyle:(PSMTabBarTearOffStyle)tearOffStyle;

- (NSImage *)image;
- (NSImage *)alternateImage;
- (void)setAlternateImage:(NSImage *)image;
- (BOOL)isAnimating;
- (void)switchImages;
@end