Fixed a crash when Core Image was available.
[ITKit.git] / ITTextField.m
1 #import "ITTextField.h"
2 #import "ITTextFieldCell.h"
3
4 @implementation ITTextField
5
6 + (void)initialize {
7         if (self == [ITTextField class]) {
8                 [self setCellClass:[ITTextFieldCell class]];
9         }
10 }
11
12 + (Class)cellClass {
13         return [ITTextFieldCell class];
14 }
15
16 - (BOOL)castsShadow {
17         return [[self cell] castsShadow];
18 }
19
20 - (void)setCastsShadow:(BOOL)newSetting {
21         [[self cell] setCastsShadow:newSetting];
22 }
23
24 - (float)shadowElevation {
25         return [[self cell] shadowElevation];
26 }
27
28 - (void)setShadowElevation:(float)newElevation {
29         [[self cell] setShadowElevation:newElevation];
30 }
31
32 - (float)shadowAzimuth {
33         return [[self cell] shadowAzimuth];
34 }
35
36 - (void)setShadowAzimuth:(float)newAzimuth {
37         [[self cell] setShadowAzimuth:newAzimuth];
38 }
39
40 - (float)shadowAmbient {
41         return [[self cell] shadowAmbient];
42 }
43
44 - (void)setShadowAmbient:(float)newAmbient {
45         [[self cell] setShadowAmbient:newAmbient];
46 }
47
48 - (float)shadowHeight {
49         return [[self cell] shadowHeight];
50 }
51
52 - (void)setShadowHeight:(float)newHeight {
53         [[self cell] setShadowHeight:newHeight];
54 }
55
56 - (float)shadowRadius {
57         return [[self cell] shadowRadius];
58 }
59
60 - (void)setShadowRadius:(float)newRadius {
61         [[self cell] setShadowRadius:newRadius];
62 }
63
64 - (float)shadowSaturation {
65         return [[self cell] shadowSaturation];
66 }
67
68 - (void)setShadowSaturation:(float)newSaturation {
69         [[self cell] setShadowSaturation:newSaturation];
70 }
71
72 @end