Removing the use of private CoreGraphics APIs to draw shadows, and replacing with...
[ITKit.git] / ITTextFieldCell.h
1 /*
2  *      ITKit
3  *      ITTextFieldCell.h
4  *
5  *      Custom NSTextFieldCell subclass that casts a shadow.
6  *
7  *      Copyright (c) 2010 iThink Software
8  *
9  */
10
11 #import <Cocoa/Cocoa.h>
12
13 @interface ITTextFieldCell : NSTextFieldCell {
14         BOOL castsShadow;
15         float shadowAzimuth;
16         float shadowAmbient;
17         float shadowHeight;
18         float shadowRadius;
19 }
20
21 - (BOOL)castsShadow;
22 - (void)setCastsShadow:(BOOL)newSetting;
23
24 - (float)shadowElevation; /* Light source elevation in degrees. Always 45.0 */
25 - (void)setShadowElevation:(float)newElevation; /* NOOP */
26
27 - (float)shadowAzimuth; /* Light source azimuth in degrees. Defaults to 90.0 */
28 - (void)setShadowAzimuth:(float)newAzimuth;
29
30 - (float)shadowAmbient; /* Amount of ambient light. Defaults to 0.0 */
31 - (void)setShadowAmbient:(float)newAmbient;
32
33 - (float)shadowHeight; /* Height above the canvas. Defaults to 1.0 */
34 - (void)setShadowHeight:(float)newHeight;
35
36 - (float)shadowRadius; /* Blur radius. Defaults to 4.0 */
37 - (void)setShadowRadius:(float)newRadius;
38
39 - (float)shadowSaturation; /* Maximum saturation. Always 1.0 */
40 - (void)setShadowSaturation:(float)newSaturation; /* NOOP */
41
42 @end