Fixed a possible crasher where an ITMultilineTextFieldCell is treated as
[ITKit.git] / ITTSWBackgroundView.h
index 53172e0..129eb03 100755 (executable)
@@ -1,16 +1,36 @@
-//
-//  ITGrayRoundedView.h
-//  ITKit
-//
-//  Created by Matt L. Judy on Wed Jan 22 2003.
-//  Copyright (c) 2003 NibFile.com. All rights reserved.
-//
+/*
+ *     ITKit
+ *  ITTSWBackgroundView
+ *    NSView subclass which draws a translucent background with rounded corners.
+ *
+ *  Original Author : Matthew Judy <mjudy@ithinksw.com>
+ *   Responsibility : Matthew Judy <mjudy@ithinksw.com>
+ *
+ *  Copyright (c) 2002 - 2003 iThink Software.
+ *  All Rights Reserved
+ *
+ */
 
 #import <Cocoa/Cocoa.h>
 
 
-@interface ITGrayRoundedView : NSView {
+typedef enum _ITTSWBackgroundMode {
+    ITTSWBackgroundApple,
+    ITTSWBackgroundReadable,
+    ITTSWBackgroundColored
+} ITTSWBackgroundMode;
 
+
+@interface ITTSWBackgroundView : NSView {
+    NSBezierPath        *_path;
+    NSColor             *_color;
+    ITTSWBackgroundMode  _mode;
 }
 
+- (ITTSWBackgroundMode)backgroundMode;
+- (void)setBackgroundMode:(ITTSWBackgroundMode)newMode;
+
+- (NSColor *)backgroundColor;
+- (void)setBackgroundColor:(NSColor *)newColor;
+
 @end