1 #import "ITImageView.h"
2 #import "ITImageCell.h"
4 @implementation ITImageView
7 if (self == [ITImageView class]) {
8 [self setCellClass:[ITImageCell class]];
13 return [ITImageCell class];
16 - (id)initWithFrame:(NSRect)rect {
17 if ((self = [super initWithFrame:rect])) {
18 [self setScalesSmoothly:YES];
23 - (BOOL)scalesSmoothly {
24 return [[self cell] scalesSmoothly];
27 - (void)setScalesSmoothly:(BOOL)flag {
28 [[self cell] setScalesSmoothly:flag];
32 return [[self cell] castsShadow];
35 - (void)setCastsShadow:(BOOL)newSetting {
36 [[self cell] setCastsShadow:newSetting];
39 - (float)shadowElevation {
40 return [[self cell] shadowElevation];
43 - (void)setShadowElevation:(float)newElevation {
44 [[self cell] setShadowElevation:newElevation];
47 - (float)shadowAzimuth {
48 return [[self cell] shadowAzimuth];
51 - (void)setShadowAzimuth:(float)newAzimuth {
52 [[self cell] setShadowAzimuth:newAzimuth];
55 - (float)shadowAmbient {
56 return [[self cell] shadowAmbient];
59 - (void)setShadowAmbient:(float)newAmbient {
60 [[self cell] setShadowAmbient:newAmbient];
63 - (float)shadowHeight {
64 return [[self cell] shadowHeight];
67 - (void)setShadowHeight:(float)newHeight {
68 [[self cell] setShadowHeight:newHeight];
71 - (float)shadowRadius {
72 return [[self cell] shadowRadius];
75 - (void)setShadowRadius:(float)newRadius {
76 [[self cell] setShadowRadius:newRadius];
79 - (float)shadowSaturation {
80 return [[self cell] shadowSaturation];
83 - (void)setShadowSaturation:(float)newSaturation {
84 [[self cell] setShadowSaturation:newSaturation];