5 * Custom NSTextFieldCell subclass that casts a shadow using CoreGraphics,
6 * providing support for versions of Cocoa that don't have the NSShadow
7 * class which was introduced in Mac OS X 10.3 (Panther).
9 * Copyright (c) 2005 iThink Software
13 #import <Cocoa/Cocoa.h>
15 @interface ITTextFieldCell : NSTextFieldCell {
17 float shadowElevation;
22 float shadowSaturation;
26 - (void)setCastsShadow:(BOOL)newSetting;
28 - (float)shadowElevation; /* Light source elevation in degrees. Defaults to 45.0 */
29 - (void)setShadowElevation:(float)newElevation;
31 - (float)shadowAzimuth; /* Light source azimuth in degrees. Defaults to 90.0 */
32 - (void)setShadowAzimuth:(float)newAzimuth;
34 - (float)shadowAmbient; /* Amount of ambient light. Defaults to 0.15 */
35 - (void)setShadowAmbient:(float)newAmbient;
37 - (float)shadowHeight; /* Height above the canvas. Defaults to 1.0 */
38 - (void)setShadowHeight:(float)newHeight;
40 - (float)shadowRadius; /* Blur radius. Defaults to 4.0 */
41 - (void)setShadowRadius:(float)newRadius;
43 - (float)shadowSaturation; /* Maximum saturation. Defaults to 1.0 */
44 - (void)setShadowSaturation:(float)newSaturation;