5 * Custom NSImageCell subclass that casts a shadow using CoreGraphics,
6 * providing support for versions of Cocoa that don't have the NSShadow
7 * class which was introduced in Mac OS X 10.3 (Panther), and also
8 * provides smooth scaling.
10 * Copyright (c) 2005 iThink Software
14 #import <Cocoa/Cocoa.h>
16 @interface ITImageCell : NSImageCell {
19 float shadowElevation;
24 float shadowSaturation;
27 - (BOOL)scalesSmoothly;
28 - (void)setScalesSmoothly:(BOOL)flag;
31 - (void)setCastsShadow:(BOOL)newSetting;
33 - (float)shadowElevation; /* Light source elevation in degrees. Defaults to 45.0 */
34 - (void)setShadowElevation:(float)newElevation;
36 - (float)shadowAzimuth; /* Light source azimuth in degrees. Defaults to 90.0 */
37 - (void)setShadowAzimuth:(float)newAzimuth;
39 - (float)shadowAmbient; /* Amount of ambient light. Defaults to 0.15 */
40 - (void)setShadowAmbient:(float)newAmbient;
42 - (float)shadowHeight; /* Height above the canvas. Defaults to 1.0 */
43 - (void)setShadowHeight:(float)newHeight;
45 - (float)shadowRadius; /* Blur radius. Defaults to 4.0 */
46 - (void)setShadowRadius:(float)newRadius;
48 - (float)shadowSaturation; /* Maximum saturation. Defaults to 1.0 */
49 - (void)setShadowSaturation:(float)newSaturation;