Removing the use of private CoreGraphics APIs to draw shadows, and replacing with...
[ITKit.git] / ITTSWBackgroundView.h
1 /*
2  *      ITKit
3  *      ITTSWBackgroundView.h
4  *
5  *      NSView subclass which draws a translucent background with rounded corners.
6  *
7  *      Copyright (c) 2005 iThink Software
8  *
9  */
10
11 #import <Cocoa/Cocoa.h>
12
13 typedef enum _ITTSWBackgroundMode {
14         ITTSWBackgroundApple,
15         ITTSWBackgroundReadable,
16         ITTSWBackgroundColored
17 } ITTSWBackgroundMode;
18
19 @interface ITTSWBackgroundView : NSView {
20         NSBezierPath *_path;
21         NSColor *_color;
22         ITTSWBackgroundMode _mode;
23 }
24
25 - (ITTSWBackgroundMode)backgroundMode;
26 - (void)setBackgroundMode:(ITTSWBackgroundMode)newMode;
27
28 - (NSColor *)backgroundColor;
29 - (void)setBackgroundColor:(NSColor *)newColor;
30
31 @end