Huge audit of ITKit, mostly everything has been updated to current coding
[ITKit.git] / ITTextFieldCell.h
1 /*
2  *      ITKit
3  *      ITTextFieldCell.h
4  *
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).
8  *
9  *      Copyright (c) 2005 by iThink Software.
10  *      All Rights Reserved.
11  *
12  *      $Id$
13  *
14  */
15
16 #import <Cocoa/Cocoa.h>
17
18 @interface ITTextFieldCell : NSTextFieldCell {
19         BOOL castsShadow;
20         float shadowElevation;
21         float shadowAzimuth;
22         float shadowAmbient;
23         float shadowHeight;
24         float shadowRadius;
25         float shadowSaturation;
26 }
27
28 - (BOOL)castsShadow;
29 - (void)setCastsShadow:(BOOL)newSetting;
30
31 - (float)shadowElevation; /* Light source elevation in degrees. Defaults to 45.0 */
32 - (void)setShadowElevation:(float)newElevation;
33
34 - (float)shadowAzimuth; /* Light source azimuth in degrees. Defaults to 90.0 */
35 - (void)setShadowAzimuth:(float)newAzimuth;
36
37 - (float)shadowAmbient; /* Amount of ambient light. Defaults to 0.15 */
38 - (void)setShadowAmbient:(float)newAmbient;
39
40 - (float)shadowHeight; /* Height above the canvas. Defaults to 1.0 */
41 - (void)setShadowHeight:(float)newHeight;
42
43 - (float)shadowRadius; /* Blur radius. Defaults to 4.0 */
44 - (void)setShadowRadius:(float)newRadius;
45
46 - (float)shadowSaturation; /* Maximum saturation. Defaults to 1.0 */
47 - (void)setShadowSaturation:(float)newSaturation;
48
49 @end