comparison dwt/internal/cocoa/NSMovieView.d @ 1:8b48be5454ce

The internal cocoa classes compile now
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 19 Aug 2008 17:35:17 +0200
parents 380af2bdd8e5
children f565d3a95c0a
comparison
equal deleted inserted replaced
0:380af2bdd8e5 1:8b48be5454ce
38 super(id); 38 super(id);
39 } 39 }
40 40
41 public void clear (id sender) 41 public void clear (id sender)
42 { 42 {
43 OS.objc_msgSend(this.id, OS.sel_clear_1, sender !is null ? sender.id : null); 43 OS.objc_msgSend(this.id_, OS.sel_clear_1, sender !is null ? sender.id_ : null);
44 } 44 }
45 45
46 public void copy (id sender) 46 public void copy (id sender)
47 { 47 {
48 OS.objc_msgSend(this.id, OS.sel_copy_1, sender !is null ? sender.id : null); 48 OS.objc_msgSend(this.id_, OS.sel_copy_1, sender !is null ? sender.id_ : null);
49 } 49 }
50 50
51 public void cut (id sender) 51 public void cut (id sender)
52 { 52 {
53 OS.objc_msgSend(this.id, OS.sel_cut_1, sender !is null ? sender.id : null); 53 OS.objc_msgSend(this.id_, OS.sel_cut_1, sender !is null ? sender.id_ : null);
54 } 54 }
55 55
56 public void deletee (id sender) 56 public void deletee (id sender)
57 { 57 {
58 OS.objc_msgSend(this.id, OS.sel_delete_1, sender !is null ? sender.id : null); 58 OS.objc_msgSend(this.id_, OS.sel_delete_1, sender !is null ? sender.id_ : null);
59 } 59 }
60 60
61 public void gotoBeginning (id sender) 61 public void gotoBeginning (id sender)
62 { 62 {
63 OS.objc_msgSend(this.id, OS.sel_gotoBeginning_1, sender !is null ? sender.id : null); 63 OS.objc_msgSend(this.id_, OS.sel_gotoBeginning_1, sender !is null ? sender.id_ : null);
64 } 64 }
65 65
66 public void gotoEnd (id sender) 66 public void gotoEnd (id sender)
67 { 67 {
68 OS.objc_msgSend(this.id, OS.sel_gotoEnd_1, sender !is null ? sender.id : null); 68 OS.objc_msgSend(this.id_, OS.sel_gotoEnd_1, sender !is null ? sender.id_ : null);
69 } 69 }
70 70
71 public void gotoPosterFrame (id sender) 71 public void gotoPosterFrame (id sender)
72 { 72 {
73 OS.objc_msgSend(this.id, OS.sel_gotoPosterFrame_1, sender !is null ? sender.id : null); 73 OS.objc_msgSend(this.id_, OS.sel_gotoPosterFrame_1, sender !is null ? sender.id_ : null);
74 } 74 }
75 75
76 public bool isControllerVisible () 76 public bool isControllerVisible ()
77 { 77 {
78 return OS.objc_msgSend(this.id, OS.sel_isControllerVisible) !is null; 78 return OS.objc_msgSend(this.id_, OS.sel_isControllerVisible) !is null;
79 } 79 }
80 80
81 public bool isEditable () 81 public bool isEditable ()
82 { 82 {
83 return OS.objc_msgSend(this.id, OS.sel_isEditable) !is null; 83 return OS.objc_msgSend(this.id_, OS.sel_isEditable) !is null;
84 } 84 }
85 85
86 public bool isMuted () 86 public bool isMuted ()
87 { 87 {
88 return OS.objc_msgSend(this.id, OS.sel_isMuted) !is null; 88 return OS.objc_msgSend(this.id_, OS.sel_isMuted) !is null;
89 } 89 }
90 90
91 public bool isPlaying () 91 public bool isPlaying ()
92 { 92 {
93 return OS.objc_msgSend(this.id, OS.sel_isPlaying) !is null; 93 return OS.objc_msgSend(this.id_, OS.sel_isPlaying) !is null;
94 } 94 }
95 95
96 public NSQTMovieLoopMode loopMode () 96 public NSQTMovieLoopMode loopMode ()
97 { 97 {
98 return OS.objc_msgSend(this.id, OS.sel_loopMode); 98 return cast(NSQTMovieLoopMode) OS.objc_msgSend(this.id_, OS.sel_loopMode);
99 } 99 }
100 100
101 public NSMovie movie () 101 public NSMovie movie ()
102 { 102 {
103 objc.id result = OS.objc_msgSend(this.id, OS.sel_movie); 103 objc.id result = OS.objc_msgSend(this.id_, OS.sel_movie);
104 return result !is null ? new NSMovie(result) : null; 104 return result !is null ? new NSMovie(result) : null;
105 } 105 }
106 106
107 public void* movieController () 107 public void* movieController ()
108 { 108 {
109 return OS.objc_msgSend(this.id, OS.sel_movieController); 109 return OS.objc_msgSend(this.id_, OS.sel_movieController);
110 } 110 }
111 111
112 public NSRect movieRect () 112 public NSRect movieRect ()
113 { 113 {
114 NSRect result; 114 NSRect result;
115 OS.objc_msgSend_stret(result, this.id, OS.sel_movieRect); 115 OS.objc_msgSend_stret(&result, this.id_, OS.sel_movieRect);
116 return result; 116 return result;
117 } 117 }
118 118
119 public void paste (id sender) 119 public void paste (id sender)
120 { 120 {
121 OS.objc_msgSend(this.id, OS.sel_paste_1, sender !is null ? sender.id : null); 121 OS.objc_msgSend(this.id_, OS.sel_paste_1, sender !is null ? sender.id_ : null);
122 } 122 }
123 123
124 public bool playsEveryFrame () 124 public bool playsEveryFrame ()
125 { 125 {
126 return OS.objc_msgSend(this.id, OS.sel_playsEveryFrame) !is null; 126 return OS.objc_msgSend(this.id_, OS.sel_playsEveryFrame) !is null;
127 } 127 }
128 128
129 public bool playsSelectionOnly () 129 public bool playsSelectionOnly ()
130 { 130 {
131 return OS.objc_msgSend(this.id, OS.sel_playsSelectionOnly) !is null; 131 return OS.objc_msgSend(this.id_, OS.sel_playsSelectionOnly) !is null;
132 } 132 }
133 133
134 public float rate () 134 public float rate ()
135 { 135 {
136 return cast(float) OS.objc_msgSend_fpret(this.id, OS.sel_rate); 136 return cast(float) OS.objc_msgSend_fpret(this.id_, OS.sel_rate);
137 } 137 }
138 138
139 public void resizeWithMagnification (CGFloat magnification) 139 public void resizeWithMagnification (CGFloat magnification)
140 { 140 {
141 OS.objc_msgSend(this.id, OS.sel_resizeWithMagnification_1, magnification); 141 OS.objc_msgSend(this.id_, OS.sel_resizeWithMagnification_1, magnification);
142 } 142 }
143 143
144 public void selectAll (id sender) 144 public void selectAll (id sender)
145 { 145 {
146 OS.objc_msgSend(this.id, OS.sel_selectAll_1, sender !is null ? sender.id : null); 146 OS.objc_msgSend(this.id_, OS.sel_selectAll_1, sender !is null ? sender.id_ : null);
147 } 147 }
148 148
149 public void setEditable (bool editable) 149 public void setEditable (bool editable)
150 { 150 {
151 OS.objc_msgSend(this.id, OS.sel_setEditable_1, editable); 151 OS.objc_msgSend(this.id_, OS.sel_setEditable_1, editable);
152 } 152 }
153 153
154 public void setLoopMode (NSQTMovieLoopMode mode) 154 public void setLoopMode (NSQTMovieLoopMode mode)
155 { 155 {
156 OS.objc_msgSend(this.id, OS.sel_setLoopMode_1, mode); 156 OS.objc_msgSend(this.id_, OS.sel_setLoopMode_1, mode);
157 } 157 }
158 158
159 public void setMovie (NSMovie movie) 159 public void setMovie (NSMovie movie)
160 { 160 {
161 OS.objc_msgSend(this.id, OS.sel_setMovie_1, movie !is null ? movie.id : null); 161 OS.objc_msgSend(this.id_, OS.sel_setMovie_1, movie !is null ? movie.id_ : null);
162 } 162 }
163 163
164 public void setMuted (bool mute) 164 public void setMuted (bool mute)
165 { 165 {
166 OS.objc_msgSend(this.id, OS.sel_setMuted_1, mute); 166 OS.objc_msgSend(this.id_, OS.sel_setMuted_1, mute);
167 } 167 }
168 168
169 public void setPlaysEveryFrame (bool flag) 169 public void setPlaysEveryFrame (bool flag)
170 { 170 {
171 OS.objc_msgSend(this.id, OS.sel_setPlaysEveryFrame_1, flag); 171 OS.objc_msgSend(this.id_, OS.sel_setPlaysEveryFrame_1, flag);
172 } 172 }
173 173
174 public void setPlaysSelectionOnly (bool flag) 174 public void setPlaysSelectionOnly (bool flag)
175 { 175 {
176 OS.objc_msgSend(this.id, OS.sel_setPlaysSelectionOnly_1, flag); 176 OS.objc_msgSend(this.id_, OS.sel_setPlaysSelectionOnly_1, flag);
177 } 177 }
178 178
179 public void setRate (float rate) 179 public void setRate (float rate)
180 { 180 {
181 OS.objc_msgSend(this.id, OS.sel_setRate_1, rate); 181 OS.objc_msgSend(this.id_, OS.sel_setRate_1, rate);
182 } 182 }
183 183
184 public void setVolume (float volume) 184 public void setVolume (float volume)
185 { 185 {
186 OS.objc_msgSend(this.id, OS.sel_setVolume_1, volume); 186 OS.objc_msgSend(this.id_, OS.sel_setVolume_1, volume);
187 } 187 }
188 188
189 public void showController (bool show, bool adjustSize) 189 public void showController (bool show, bool adjustSize)
190 { 190 {
191 OS.objc_msgSend(this.id, OS.sel_showController_1adjustingSize_1, show, adjustSize); 191 OS.objc_msgSend(this.id_, OS.sel_showController_1adjustingSize_1, show, adjustSize);
192 } 192 }
193 193
194 public NSSize sizeForMagnification (CGFloat magnification) 194 public NSSize sizeForMagnification (CGFloat magnification)
195 { 195 {
196 NSSize result; 196 NSSize result;
197 OS.objc_msgSend_stret(result, this.id, OS.sel_sizeForMagnification_1, magnification); 197 OS.objc_msgSend_stret(&result, this.id_, OS.sel_sizeForMagnification_1, magnification);
198 return result; 198 return result;
199 } 199 }
200 200
201 public void start (id sender) 201 public void start (id sender)
202 { 202 {
203 OS.objc_msgSend(this.id, OS.sel_start_1, sender !is null ? sender.id : null); 203 OS.objc_msgSend(this.id_, OS.sel_start_1, sender !is null ? sender.id_ : null);
204 } 204 }
205 205
206 public void stepBack (id sender) 206 public void stepBack (id sender)
207 { 207 {
208 OS.objc_msgSend(this.id, OS.sel_stepBack_1, sender !is null ? sender.id : null); 208 OS.objc_msgSend(this.id_, OS.sel_stepBack_1, sender !is null ? sender.id_ : null);
209 } 209 }
210 210
211 public void stepForward (id sender) 211 public void stepForward (id sender)
212 { 212 {
213 OS.objc_msgSend(this.id, OS.sel_stepForward_1, sender !is null ? sender.id : null); 213 OS.objc_msgSend(this.id_, OS.sel_stepForward_1, sender !is null ? sender.id_ : null);
214 } 214 }
215 215
216 public void stop (id sender) 216 public void stop (id sender)
217 { 217 {
218 OS.objc_msgSend(this.id, OS.sel_stop_1, sender !is null ? sender.id : null); 218 OS.objc_msgSend(this.id_, OS.sel_stop_1, sender !is null ? sender.id_ : null);
219 } 219 }
220 220
221 public float volume () 221 public float volume ()
222 { 222 {
223 return cast(float) OS.objc_msgSend_fpret(this.id, OS.sel_volume); 223 return cast(float) OS.objc_msgSend_fpret(this.id_, OS.sel_volume);
224 } 224 }
225 225
226 } 226 }