Changed controlKey display character, per Alex's request.
[ITKit.git] / ITImageCell.h
1 /*
2  *      ITKit
3  *      ITImageCell.h
4  *
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.
9  *
10  *      Copyright (c) 2005 by iThink Software.
11  *      All Rights Reserved.
12  *
13  *      $Id$
14  *
15  */
16
17 #import <Cocoa/Cocoa.h>
18
19 @interface ITImageCell : NSImageCell {
20         BOOL _scalesSmoothly;
21         BOOL castsShadow;
22         float shadowElevation;
23         float shadowAzimuth;
24         float shadowAmbient;
25         float shadowHeight;
26         float shadowRadius;
27         float shadowSaturation;
28 }
29
30 - (BOOL)scalesSmoothly;
31 - (void)setScalesSmoothly:(BOOL)flag;
32
33 - (BOOL)castsShadow;
34 - (void)setCastsShadow:(BOOL)newSetting;
35
36 - (float)shadowElevation; /* Light source elevation in degrees. Defaults to 45.0 */
37 - (void)setShadowElevation:(float)newElevation;
38
39 - (float)shadowAzimuth; /* Light source azimuth in degrees. Defaults to 90.0 */
40 - (void)setShadowAzimuth:(float)newAzimuth;
41
42 - (float)shadowAmbient; /* Amount of ambient light. Defaults to 0.15 */
43 - (void)setShadowAmbient:(float)newAmbient;
44
45 - (float)shadowHeight; /* Height above the canvas. Defaults to 1.0 */
46 - (void)setShadowHeight:(float)newHeight;
47
48 - (float)shadowRadius; /* Blur radius. Defaults to 4.0 */
49 - (void)setShadowRadius:(float)newRadius;
50
51 - (float)shadowSaturation; /* Maximum saturation. Defaults to 1.0 */
52 - (void)setShadowSaturation:(float)newSaturation;
53
54 @end