Shadowless StatusWindow graphics, as well as an ITImageView which casts a shadow.
[ITKit.git] / ITImageCell.h
1 /*
2  *      ITKit
3  *  ITImageCell
4  *    Cell used by the ITImageView control.
5  *
6  *  Original Author : Matthew Judy <mjudy@ithinksw.com>
7  *   Responsibility : Matthew Judy <mjudy@ithinksw.com>
8  *
9  *  Copyright (c) 2003 iThink Software.
10  *  All Rights Reserved
11  *
12  */
13  
14  
15 #import <Cocoa/Cocoa.h>
16
17
18 @interface ITImageCell : NSImageCell {
19
20     BOOL _scalesSmoothly;
21
22     BOOL  castsShadow;
23     
24     float shadowElevation;
25     float shadowAzimuth;
26     float shadowAmbient;
27     float shadowHeight;
28     float shadowRadius;
29     float shadowSaturation;
30 }
31
32 - (BOOL)scalesSmoothly;
33 - (void)setScalesSmoothly:(BOOL)flag;
34
35 - (BOOL)castsShadow;
36 - (void)setCastsShadow:(BOOL)newSetting;
37
38 - (float)shadowElevation;               /* Light source elevation in degrees.  Defaults to 45.0 */
39 - (void)setShadowElevation:(float)newElevation;
40
41 - (float)shadowAzimuth;                 /* Light source azimuth in degrees.  Defaults to 90.0 */
42 - (void)setShadowAzimuth:(float)newAzimuth;
43
44 - (float)shadowAmbient;                 /* Amount of ambient light.  Defaults to 0.15 */
45 - (void)setShadowAmbient:(float)newAmbient;
46
47 - (float)shadowHeight;                  /* Height above the canvas.  Defaults to 1.0 */
48 - (void)setShadowHeight:(float)newHeight;
49
50 - (float)shadowRadius;                  /* Blur radius.  Defaults to 4.0 */
51 - (void)setShadowRadius:(float)newRadius;
52
53 - (float)shadowSaturation;              /* Maximum saturation.  Defaults to 1.0 */
54 - (void)setShadowSaturation:(float)newSaturation;
55
56 @end