1 #import "ITImageView.h"
2 #import "ITImageCell.h"
5 @implementation ITImageView
10 if ( self == [ITImageView class] ) {
11 [self setCellClass:[ITImageCell class]];
17 return [ITImageCell class];
20 - (id)initWithFrame:(NSRect)rect
22 if ( (self = [super initWithFrame:rect]) ) {
23 [self setScalesSmoothly:YES];
29 - (BOOL)scalesSmoothly
31 return [[self cell] scalesSmoothly];
34 - (void)setScalesSmoothly:(BOOL)flag
36 [[self cell] setScalesSmoothly:flag];
41 return [[self cell] castsShadow];
44 - (void)setCastsShadow:(BOOL)newSetting;
46 [[self cell] setCastsShadow:newSetting];
49 - (float)shadowElevation;
51 return [[self cell] shadowElevation];
54 - (void)setShadowElevation:(float)newElevation;
56 [[self cell] setShadowElevation:newElevation];
59 - (float)shadowAzimuth;
61 return [[self cell] shadowAzimuth];
64 - (void)setShadowAzimuth:(float)newAzimuth;
66 [[self cell] setShadowAzimuth:newAzimuth];
69 - (float)shadowAmbient;
71 return [[self cell] shadowAmbient];
74 - (void)setShadowAmbient:(float)newAmbient;
76 [[self cell] setShadowAmbient:newAmbient];
79 - (float)shadowHeight;
81 return [[self cell] shadowHeight];
84 - (void)setShadowHeight:(float)newHeight;
86 [[self cell] setShadowHeight:newHeight];
89 - (float)shadowRadius;
91 return [[self cell] shadowRadius];
94 - (void)setShadowRadius:(float)newRadius;
96 [[self cell] setShadowRadius:newRadius];
99 - (float)shadowSaturation;
101 return [[self cell] shadowSaturation];
104 - (void)setShadowSaturation:(float)newSaturation;
106 [[self cell] setShadowSaturation:newSaturation];