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 by iThink Software.
11 * All Rights Reserved.
17 #import <Cocoa/Cocoa.h>
19 @interface ITImageCell : NSImageCell {
22 float shadowElevation;
27 float shadowSaturation;
30 - (BOOL)scalesSmoothly;
31 - (void)setScalesSmoothly:(BOOL)flag;
34 - (void)setCastsShadow:(BOOL)newSetting;
36 - (float)shadowElevation; /* Light source elevation in degrees. Defaults to 45.0 */
37 - (void)setShadowElevation:(float)newElevation;
39 - (float)shadowAzimuth; /* Light source azimuth in degrees. Defaults to 90.0 */
40 - (void)setShadowAzimuth:(float)newAzimuth;
42 - (float)shadowAmbient; /* Amount of ambient light. Defaults to 0.15 */
43 - (void)setShadowAmbient:(float)newAmbient;
45 - (float)shadowHeight; /* Height above the canvas. Defaults to 1.0 */
46 - (void)setShadowHeight:(float)newHeight;
48 - (float)shadowRadius; /* Blur radius. Defaults to 4.0 */
49 - (void)setShadowRadius:(float)newRadius;
51 - (float)shadowSaturation; /* Maximum saturation. Defaults to 1.0 */
52 - (void)setShadowSaturation:(float)newSaturation;