X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/f3f68377429d64947ab0b32f925eb3632bd7e94b..HEAD:/ITImageCell.h diff --git a/ITImageCell.h b/ITImageCell.h old mode 100755 new mode 100644 index c4bb080..8b70f2f --- a/ITImageCell.h +++ b/ITImageCell.h @@ -1,28 +1,46 @@ /* * ITKit - * ITImageCell - * NSImageCell subclass which adds new features. + * ITImageCell.h * - * Original Author : Matt Judy - * Responsibility : Matt Judy + * Custom NSImageCell subclass that casts a shadow and provides smooth scaling. * - * Copyright (c) 2003 iThink Software. - * All Rights Reserved + * Copyright (c) 2010 iThink Software * */ - - -#import +#import @interface ITImageCell : NSImageCell { - - BOOL _scalesSmoothly; - + BOOL _scalesSmoothly; + BOOL castsShadow; + float shadowAzimuth; + float shadowAmbient; + float shadowHeight; + float shadowRadius; } - (BOOL)scalesSmoothly; - (void)setScalesSmoothly:(BOOL)flag; +- (BOOL)castsShadow; +- (void)setCastsShadow:(BOOL)newSetting; + +- (float)shadowElevation; /* Light source elevation in degrees. Always 45.0 */ +- (void)setShadowElevation:(float)newElevation; /* NOOP */ + +- (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. Always 1.0 */ +- (void)setShadowSaturation:(float)newSaturation; /* NOOP */ -@end +@end \ No newline at end of file