Updating ITKit to be an Xcode project.
[ITKit.git] / ITTextField.m
1 #import "ITTextField.h"
2 #import "ITTextFieldCell.h"
3 #import <ApplicationServices/ApplicationServices.h>
4 #import "ITCoreGraphicsHacks.h"
5
6
7 /*************************************************************************/
8 #pragma mark -
9 #pragma mark IMPLEMENTATION
10 /*************************************************************************/
11
12 @implementation ITTextField
13
14
15 /*************************************************************************/
16 #pragma mark -
17 #pragma mark INITIALIZATION METHODS
18 /*************************************************************************/
19
20 + (void)initialize
21 {
22     if ( self == [ITTextField class] ) {
23         [self setCellClass:[ITTextFieldCell class]];
24     }
25 }
26
27 + (Class)cellClass
28 {
29     return [ITTextFieldCell class];
30 }
31
32
33 /*************************************************************************/
34 #pragma mark -
35 #pragma mark ACCESSOR METHODS
36 /*************************************************************************/
37
38 - (BOOL)castsShadow;
39 {
40     return [[self cell] castsShadow];
41 }
42
43 - (void)setCastsShadow:(BOOL)newSetting;
44 {
45     [[self cell] setCastsShadow:newSetting];
46 }
47
48 - (float)shadowElevation;
49 {
50     return [[self cell] shadowElevation];
51 }
52
53 - (void)setShadowElevation:(float)newElevation;
54 {
55     [[self cell] setShadowElevation:newElevation];
56 }
57
58 - (float)shadowAzimuth;
59 {
60     return [[self cell] shadowAzimuth];
61 }
62
63 - (void)setShadowAzimuth:(float)newAzimuth;
64 {
65     [[self cell] setShadowAzimuth:newAzimuth];
66 }
67
68 - (float)shadowAmbient;
69 {
70     return [[self cell] shadowAmbient];
71 }
72
73 - (void)setShadowAmbient:(float)newAmbient;
74 {
75     [[self cell] setShadowAmbient:newAmbient];
76 }
77
78 - (float)shadowHeight;
79 {
80     return [[self cell] shadowHeight];
81 }
82
83 - (void)setShadowHeight:(float)newHeight;
84 {
85     [[self cell] setShadowHeight:newHeight];
86 }
87
88 - (float)shadowRadius;
89 {
90     return [[self cell] shadowRadius];
91 }
92
93 - (void)setShadowRadius:(float)newRadius;
94 {
95     [[self cell] setShadowRadius:newRadius];
96 }
97
98 - (float)shadowSaturation;
99 {
100     return [[self cell] shadowSaturation];
101 }
102
103 - (void)setShadowSaturation:(float)newSaturation;
104 {
105     [[self cell] setShadowSaturation:newSaturation];
106 }
107
108
109 @end