Updating ITKit with additions to support Haven development.
[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 by iThink Software.
8  *      All Rights Reserved.
9  *
10  *      $Id$
11  *
12  */
13
14 #import <Cocoa/Cocoa.h>
15
16 typedef enum _ITTSWBackgroundMode {
17         ITTSWBackgroundApple,
18         ITTSWBackgroundReadable,
19         ITTSWBackgroundColored
20 } ITTSWBackgroundMode;
21
22 @interface ITTSWBackgroundView : NSView {
23         NSBezierPath *_path;
24         NSColor *_color;
25         ITTSWBackgroundMode _mode;
26 }
27
28 - (ITTSWBackgroundMode)backgroundMode;
29 - (void)setBackgroundMode:(ITTSWBackgroundMode)newMode;
30
31 - (NSColor *)backgroundColor;
32 - (void)setBackgroundColor:(NSColor *)newColor;
33
34 @end