X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/f3f68377429d64947ab0b32f925eb3632bd7e94b..HEAD:/ITImageView.m diff --git a/ITImageView.m b/ITImageView.m old mode 100755 new mode 100644 index 899cae6..de903dd --- a/ITImageView.m +++ b/ITImageView.m @@ -1,40 +1,87 @@ #import "ITImageView.h" #import "ITImageCell.h" - @implementation ITImageView ++ (void)initialize { + if (self == [ITImageView class]) { + [self setCellClass:[ITImageCell class]]; + } +} + ++ (Class)cellClass { + return [ITImageCell class]; +} + +- (id)initWithFrame:(NSRect)rect { + if ((self = [super initWithFrame:rect])) { + [self setScalesSmoothly:YES]; + } + return self; +} + +- (BOOL)scalesSmoothly { + return [[self cell] scalesSmoothly]; +} + +- (void)setScalesSmoothly:(BOOL)flag { + [[self cell] setScalesSmoothly:flag]; +} + +- (BOOL)castsShadow { + return [[self cell] castsShadow]; +} + +- (void)setCastsShadow:(BOOL)newSetting { + [[self cell] setCastsShadow:newSetting]; +} -+ (void)initialize -{ - if ( self == [ITImageView class] ) { - [self setCellClass:[ITImageCell class]]; - } +- (float)shadowElevation { + return [[self cell] shadowElevation]; } -+ (Class)cellClass -{ - return [ITImageCell class]; +- (void)setShadowElevation:(float)newElevation { + [[self cell] setShadowElevation:newElevation]; } -- (id)initWithFrame:(NSRect)rect -{ - if ( (self = [super initWithFrame:rect]) ) { - [self setScalesSmoothly:YES]; - } - - return self; +- (float)shadowAzimuth { + return [[self cell] shadowAzimuth]; } -- (BOOL)scalesSmoothly -{ - return [[self cell] scalesSmoothly]; +- (void)setShadowAzimuth:(float)newAzimuth { + [[self cell] setShadowAzimuth:newAzimuth]; } -- (void)setScalesSmoothly:(BOOL)flag -{ - [[self cell] setScalesSmoothly:flag]; +- (float)shadowAmbient { + return [[self cell] shadowAmbient]; } +- (void)setShadowAmbient:(float)newAmbient { + [[self cell] setShadowAmbient:newAmbient]; +} + +- (float)shadowHeight { + return [[self cell] shadowHeight]; +} + +- (void)setShadowHeight:(float)newHeight { + [[self cell] setShadowHeight:newHeight]; +} + +- (float)shadowRadius { + return [[self cell] shadowRadius]; +} + +- (void)setShadowRadius:(float)newRadius { + [[self cell] setShadowRadius:newRadius]; +} + +- (float)shadowSaturation { + return [[self cell] shadowSaturation]; +} + +- (void)setShadowSaturation:(float)newSaturation { + [[self cell] setShadowSaturation:newSaturation]; +} -@end +@end \ No newline at end of file