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