Shadowless StatusWindow graphics, as well as an ITImageView which casts a shadow.
[ITKit.git] / ITImageView.h
1 /*
2  *      ITKit
3  *  ITImageView
4  *    NSImageView subclass which adds new features, such as smooth scaling.
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 ITImageView : NSImageView {
19
20 }
21
22 - (BOOL)scalesSmoothly;
23 - (void)setScalesSmoothly:(BOOL)flag;
24
25 - (BOOL)castsShadow;
26 - (void)setCastsShadow:(BOOL)newSetting;
27
28 - (float)shadowElevation;               /* Light source elevation in degrees.  Defaults to 45.0 */
29 - (void)setShadowElevation:(float)newElevation;
30
31 - (float)shadowAzimuth;                 /* Light source azimuth in degrees.  Defaults to 90.0 */
32 - (void)setShadowAzimuth:(float)newAzimuth;
33
34 - (float)shadowAmbient;                 /* Amount of ambient light.  Defaults to 0.15 */
35 - (void)setShadowAmbient:(float)newAmbient;
36
37 - (float)shadowHeight;                  /* Height above the canvas.  Defaults to 1.0 */
38 - (void)setShadowHeight:(float)newHeight;
39
40 - (float)shadowRadius;                  /* Blur radius.  Defaults to 4.0 */
41 - (void)setShadowRadius:(float)newRadius;
42
43 - (float)shadowSaturation;              /* Maximum saturation.  Defaults to 1.0 */
44 - (void)setShadowSaturation:(float)newSaturation;
45
46
47 @end