X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/676d1feebedb6b04b4da4bb58b3ca1282d7740f5..7a218424c6a92eb4979564a7260f862edd46052d:/ITImageCell.h diff --git a/ITImageCell.h b/ITImageCell.h old mode 100755 new mode 100644 index d3a9424..61c657f --- a/ITImageCell.h +++ b/ITImageCell.h @@ -1,32 +1,30 @@ /* * ITKit - * ITImageCell - * Cell used by the ITImageView control. + * ITImageCell.h * - * Original Author : Matthew Judy - * Responsibility : Matthew Judy + * Custom NSImageCell subclass that casts a shadow using CoreGraphics, + * providing support for versions of Cocoa that don't have the NSShadow + * class which was introduced in Mac OS X 10.3 (Panther), and also + * provides smooth scaling. * - * Copyright (c) 2003 iThink Software. - * All Rights Reserved + * Copyright (c) 2005 by iThink Software. + * All Rights Reserved. + * + * $Id$ * */ - - -#import +#import @interface ITImageCell : NSImageCell { - - BOOL _scalesSmoothly; - - BOOL castsShadow; - - float shadowElevation; - float shadowAzimuth; - float shadowAmbient; - float shadowHeight; - float shadowRadius; - float shadowSaturation; + BOOL _scalesSmoothly; + BOOL castsShadow; + float shadowElevation; + float shadowAzimuth; + float shadowAmbient; + float shadowHeight; + float shadowRadius; + float shadowSaturation; } - (BOOL)scalesSmoothly; @@ -35,22 +33,22 @@ - (BOOL)castsShadow; - (void)setCastsShadow:(BOOL)newSetting; -- (float)shadowElevation; /* Light source elevation in degrees. Defaults to 45.0 */ +- (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 */ +- (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 */ +- (float)shadowAmbient; /* Amount of ambient light. Defaults to 0.15 */ - (void)setShadowAmbient:(float)newAmbient; -- (float)shadowHeight; /* Height above the canvas. Defaults to 1.0 */ +- (float)shadowHeight; /* Height above the canvas. Defaults to 1.0 */ - (void)setShadowHeight:(float)newHeight; -- (float)shadowRadius; /* Blur radius. Defaults to 4.0 */ +- (float)shadowRadius; /* Blur radius. Defaults to 4.0 */ - (void)setShadowRadius:(float)newRadius; -- (float)shadowSaturation; /* Maximum saturation. Defaults to 1.0 */ +- (float)shadowSaturation; /* Maximum saturation. Defaults to 1.0 */ - (void)setShadowSaturation:(float)newSaturation; -@end +@end \ No newline at end of file