X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/2decf87be669b9e65e76abff193b2013ee41b86f..f2b0d96803579e18b734728916b484828d895e16:/ITTextFieldCell.h diff --git a/ITTextFieldCell.h b/ITTextFieldCell.h new file mode 100755 index 0000000..50d8cf0 --- /dev/null +++ b/ITTextFieldCell.h @@ -0,0 +1,54 @@ +/* + * ITKit + * ITTextFieldCell + * Allows shadows to be drawn under text in cells. + * + * Original Author : Matt Judy + * Responsibility : Matt Judy + * Responsibility : Joseph Spiros + * + * Copyright (c) 2003 iThink Software. + * All Rights Reserved + * + */ + + +#import + + +@interface ITTextFieldCell : NSTextFieldCell { + + BOOL castsShadow; + + float shadowElevation; + float shadowAzimuth; + float shadowAmbient; + float shadowHeight; + float shadowRadius; + float shadowSaturation; + +} + +- (BOOL)castsShadow; +- (void)setCastsShadow:(BOOL)newSetting; + +- (float)shadowElevation; /* Light source elevation in degrees. Defaults to 45.0 */ +- (void)setShadowElevation:(float)newElevation; + +- (float)shadowAzimuth; /* Light source azimuth in degrees. Defaults to 90.0 */ +- (void)setShadowAzimuth:(float)newAzimuth; + +- (float)shadowAmbient; /* Amount of ambient light. Defaults to 0.15 */ +- (void)setShadowAmbient:(float)newAmbient; + +- (float)shadowHeight; /* Height above the canvas. Defaults to 1.0 */ +- (void)setShadowHeight:(float)newHeight; + +- (float)shadowRadius; /* Blur radius. Defaults to 4.0 */ +- (void)setShadowRadius:(float)newRadius; + +- (float)shadowSaturation; /* Maximum saturation. Defaults to 1.0 */ +- (void)setShadowSaturation:(float)newSaturation; + + +@end