OLD | NEW |
1 #import "SkUIView.h" | 1 #import "SkUIView.h" |
2 #include "SkCanvas.h" | 2 #include "SkCanvas.h" |
3 #include "SkCGUtils.h" | 3 #include "SkCGUtils.h" |
4 @implementation SkUIView | 4 @implementation SkUIView |
5 | 5 |
6 @synthesize fWind, fTitleItem, fOptionsDelegate; | 6 @synthesize fWind, fTitleItem, fOptionsDelegate; |
7 | 7 |
8 - (id)initWithDefaults { | 8 - (id)initWithDefaults { |
9 fWind = NULL; | 9 fWind = NULL; |
10 return self; | 10 return self; |
(...skipping 12 matching lines...) Expand all Loading... |
23 self = [self initWithDefaults]; | 23 self = [self initWithDefaults]; |
24 [self setUpWindow]; | 24 [self setUpWindow]; |
25 } | 25 } |
26 return self; | 26 return self; |
27 } | 27 } |
28 | 28 |
29 - (void)setUpWindow { | 29 - (void)setUpWindow { |
30 if (NULL != fWind) { | 30 if (NULL != fWind) { |
31 fWind->setVisibleP(true); | 31 fWind->setVisibleP(true); |
32 fWind->resize(self.frame.size.width, self.frame.size.height, | 32 fWind->resize(self.frame.size.width, self.frame.size.height, |
33 kPMColor_SkColorType); | 33 kN32_SkColorType); |
34 } | 34 } |
35 } | 35 } |
36 | 36 |
37 - (void)dealloc { | 37 - (void)dealloc { |
38 delete fWind; | 38 delete fWind; |
39 [fTitleItem release]; | 39 [fTitleItem release]; |
40 [super dealloc]; | 40 [super dealloc]; |
41 } | 41 } |
42 | 42 |
43 - (void)forceRedraw { | 43 - (void)forceRedraw { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 - (void)onUpdateMenu:(SkOSMenu*)menu { | 106 - (void)onUpdateMenu:(SkOSMenu*)menu { |
107 [self.fOptionsDelegate view:self didUpdateMenu:menu]; | 107 [self.fOptionsDelegate view:self didUpdateMenu:menu]; |
108 } | 108 } |
109 | 109 |
110 - (void)postInvalWithRect:(const SkIRect*)r { | 110 - (void)postInvalWithRect:(const SkIRect*)r { |
111 [self performSelector:@selector(drawInRaster) withObject:nil afterDelay:0]; | 111 [self performSelector:@selector(drawInRaster) withObject:nil afterDelay:0]; |
112 [self setNeedsDisplay]; | 112 [self setNeedsDisplay]; |
113 } | 113 } |
114 | 114 |
115 @end | 115 @end |
OLD | NEW |