comparison dwt/internal/cocoa/NSButton.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
36 super(id); 36 super(id);
37 } 37 }
38 38
39 public bool allowsMixedState () 39 public bool allowsMixedState ()
40 { 40 {
41 return OS.objc_msgSend(this.id, OS.sel_allowsMixedState) !is null; 41 return OS.objc_msgSend(this.id_, OS.sel_allowsMixedState) !is null;
42 } 42 }
43 43
44 public NSImage alternateImage () 44 public NSImage alternateImage ()
45 { 45 {
46 objc.id result = OS.objc_msgSend(this.id, OS.sel_alternateImage); 46 objc.id result = OS.objc_msgSend(this.id_, OS.sel_alternateImage);
47 return result !is null ? new NSImage(result) : null; 47 return result !is null ? new NSImage(result) : null;
48 } 48 }
49 49
50 public NSString alternateTitle () 50 public NSString alternateTitle ()
51 { 51 {
52 objc.id result = OS.objc_msgSend(this.id, OS.sel_alternateTitle); 52 objc.id result = OS.objc_msgSend(this.id_, OS.sel_alternateTitle);
53 return result !is null ? new NSString(result) : null; 53 return result !is null ? new NSString(result) : null;
54 } 54 }
55 55
56 public NSAttributedString attributedAlternateTitle () 56 public NSAttributedString attributedAlternateTitle ()
57 { 57 {
58 objc.id result = OS.objc_msgSend(this.id, OS.sel_attributedAlternateTitle); 58 objc.id result = OS.objc_msgSend(this.id_, OS.sel_attributedAlternateTitle);
59 return result !is null ? new NSAttributedString(result) : null; 59 return result !is null ? new NSAttributedString(result) : null;
60 } 60 }
61 61
62 public NSAttributedString attributedTitle () 62 public NSAttributedString attributedTitle ()
63 { 63 {
64 objc.id result = OS.objc_msgSend(this.id, OS.sel_attributedTitle); 64 objc.id result = OS.objc_msgSend(this.id_, OS.sel_attributedTitle);
65 return result !is null ? new NSAttributedString(result) : null; 65 return result !is null ? new NSAttributedString(result) : null;
66 } 66 }
67 67
68 public objc.id bezelStyle () 68 public objc.id bezelStyle ()
69 { 69 {
70 return OS.objc_msgSend(this.id, OS.sel_bezelStyle); 70 return OS.objc_msgSend(this.id_, OS.sel_bezelStyle);
71 } 71 }
72 72
73 public void getPeriodicDelay (float* delay, float* interval) 73 public void getPeriodicDelay (float* delay, float* interval)
74 { 74 {
75 OS.objc_msgSend(this.id, OS.sel_getPeriodicDelay_1interval_1, delay, interval); 75 OS.objc_msgSend(this.id_, OS.sel_getPeriodicDelay_1interval_1, delay, interval);
76 } 76 }
77 77
78 public void highlight (bool flag) 78 public void highlight (bool flag)
79 { 79 {
80 OS.objc_msgSend(this.id, OS.sel_highlight_1, flag); 80 OS.objc_msgSend(this.id_, OS.sel_highlight_1, flag);
81 } 81 }
82 82
83 public NSImage image () 83 public NSImage image ()
84 { 84 {
85 objc.id result = OS.objc_msgSend(this.id, OS.sel_image); 85 objc.id result = OS.objc_msgSend(this.id_, OS.sel_image);
86 return result !is null ? new NSImage(result) : null; 86 return result !is null ? new NSImage(result) : null;
87 } 87 }
88 88
89 public objc.id imagePosition () 89 public objc.id imagePosition ()
90 { 90 {
91 return OS.objc_msgSend(this.id, OS.sel_imagePosition); 91 return OS.objc_msgSend(this.id_, OS.sel_imagePosition);
92 } 92 }
93 93
94 public bool isBordered () 94 public bool isBordered ()
95 { 95 {
96 return OS.objc_msgSend(this.id, OS.sel_isBordered) !is null; 96 return OS.objc_msgSend(this.id_, OS.sel_isBordered) !is null;
97 } 97 }
98 98
99 public bool isTransparent () 99 public bool isTransparent ()
100 { 100 {
101 return OS.objc_msgSend(this.id, OS.sel_isTransparent) !is null; 101 return OS.objc_msgSend(this.id_, OS.sel_isTransparent) !is null;
102 } 102 }
103 103
104 public NSString keyEquivalent () 104 public NSString keyEquivalent ()
105 { 105 {
106 objc.id result = OS.objc_msgSend(this.id, OS.sel_keyEquivalent); 106 objc.id result = OS.objc_msgSend(this.id_, OS.sel_keyEquivalent);
107 return result !is null ? new NSString(result) : null; 107 return result !is null ? new NSString(result) : null;
108 } 108 }
109 109
110 public NSUInteger keyEquivalentModifierMask () 110 public NSUInteger keyEquivalentModifierMask ()
111 { 111 {
112 return OS.objc_msgSend(this.id, OS.sel_keyEquivalentModifierMask); 112 return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_keyEquivalentModifierMask);
113 } 113 }
114 114
115 public bool performKeyEquivalent (NSEvent key) 115 public bool performKeyEquivalent (NSEvent key)
116 { 116 {
117 return OS.objc_msgSend(this.id, OS.sel_performKeyEquivalent_1, key !is null ? key.id : null) !is null; 117 return OS.objc_msgSend(this.id_, OS.sel_performKeyEquivalent_1, key !is null ? key.id_ : null) !is null;
118 } 118 }
119 119
120 public void setAllowsMixedState (bool flag) 120 public void setAllowsMixedState (bool flag)
121 { 121 {
122 OS.objc_msgSend(this.id, OS.sel_setAllowsMixedState_1, flag); 122 OS.objc_msgSend(this.id_, OS.sel_setAllowsMixedState_1, flag);
123 } 123 }
124 124
125 public void setAlternateImage (NSImage image) 125 public void setAlternateImage (NSImage image)
126 { 126 {
127 OS.objc_msgSend(this.id, OS.sel_setAlternateImage_1, image !is null ? image.id : null); 127 OS.objc_msgSend(this.id_, OS.sel_setAlternateImage_1, image !is null ? image.id_ : null);
128 } 128 }
129 129
130 public void setAlternateTitle (NSString aString) 130 public void setAlternateTitle (NSString aString)
131 { 131 {
132 OS.objc_msgSend(this.id, OS.sel_setAlternateTitle_1, aString !is null ? aString.id : null); 132 OS.objc_msgSend(this.id_, OS.sel_setAlternateTitle_1, aString !is null ? aString.id_ : null);
133 } 133 }
134 134
135 public void setAttributedAlternateTitle (NSAttributedString obj) 135 public void setAttributedAlternateTitle (NSAttributedString obj)
136 { 136 {
137 OS.objc_msgSend(this.id, OS.sel_setAttributedAlternateTitle_1, obj !is null ? obj.id : null); 137 OS.objc_msgSend(this.id_, OS.sel_setAttributedAlternateTitle_1, obj !is null ? obj.id_ : null);
138 } 138 }
139 139
140 public void setAttributedTitle (NSAttributedString aString) 140 public void setAttributedTitle (NSAttributedString aString)
141 { 141 {
142 OS.objc_msgSend(this.id, OS.sel_setAttributedTitle_1, aString !is null ? aString.id : null); 142 OS.objc_msgSend(this.id_, OS.sel_setAttributedTitle_1, aString !is null ? aString.id_ : null);
143 } 143 }
144 144
145 public void setBezelStyle (objc.id bezelStyle) 145 public void setBezelStyle (objc.id bezelStyle)
146 { 146 {
147 OS.objc_msgSend(this.id, OS.sel_setBezelStyle_1, bezelStyle); 147 OS.objc_msgSend(this.id_, OS.sel_setBezelStyle_1, bezelStyle);
148 } 148 }
149 149
150 public void setBordered (bool flag) 150 public void setBordered (bool flag)
151 { 151 {
152 OS.objc_msgSend(this.id, OS.sel_setBordered_1, flag); 152 OS.objc_msgSend(this.id_, OS.sel_setBordered_1, flag);
153 } 153 }
154 154
155 public void setButtonType (objc.id aType) 155 public void setButtonType (objc.id aType)
156 { 156 {
157 OS.objc_msgSend(this.id, OS.sel_setButtonType_1, aType); 157 OS.objc_msgSend(this.id_, OS.sel_setButtonType_1, aType);
158 } 158 }
159 159
160 public void setImage (NSImage image) 160 public void setImage (NSImage image)
161 { 161 {
162 OS.objc_msgSend(this.id, OS.sel_setImage_1, image !is null ? image.id : null); 162 OS.objc_msgSend(this.id_, OS.sel_setImage_1, image !is null ? image.id_ : null);
163 } 163 }
164 164
165 public void setImagePosition (objc.id aPosition) 165 public void setImagePosition (objc.id aPosition)
166 { 166 {
167 OS.objc_msgSend(this.id, OS.sel_setImagePosition_1, aPosition); 167 OS.objc_msgSend(this.id_, OS.sel_setImagePosition_1, aPosition);
168 } 168 }
169 169
170 public void setKeyEquivalent (NSString charCode) 170 public void setKeyEquivalent (NSString charCode)
171 { 171 {
172 OS.objc_msgSend(this.id, OS.sel_setKeyEquivalent_1, charCode !is null ? charCode.id : null); 172 OS.objc_msgSend(this.id_, OS.sel_setKeyEquivalent_1, charCode !is null ? charCode.id_ : null);
173 } 173 }
174 174
175 public void setKeyEquivalentModifierMask (NSUInteger mask) 175 public void setKeyEquivalentModifierMask (NSUInteger mask)
176 { 176 {
177 OS.objc_msgSend(this.id, OS.sel_setKeyEquivalentModifierMask_1, mask); 177 OS.objc_msgSend(this.id_, OS.sel_setKeyEquivalentModifierMask_1, mask);
178 } 178 }
179 179
180 public void setNextState () 180 public void setNextState ()
181 { 181 {
182 OS.objc_msgSend(this.id, OS.sel_setNextState); 182 OS.objc_msgSend(this.id_, OS.sel_setNextState);
183 } 183 }
184 184
185 public void setPeriodicDelay (float delay, float interval) 185 public void setPeriodicDelay (float delay, float interval)
186 { 186 {
187 OS.objc_msgSend(this.id, OS.sel_setPeriodicDelay_1interval_1, delay, interval); 187 OS.objc_msgSend(this.id_, OS.sel_setPeriodicDelay_1interval_1, delay, interval);
188 } 188 }
189 189
190 public void setShowsBorderOnlyWhileMouseInside (bool show) 190 public void setShowsBorderOnlyWhileMouseInside (bool show)
191 { 191 {
192 OS.objc_msgSend(this.id, OS.sel_setShowsBorderOnlyWhileMouseInside_1, show); 192 OS.objc_msgSend(this.id_, OS.sel_setShowsBorderOnlyWhileMouseInside_1, show);
193 } 193 }
194 194
195 public void setSound (NSSound aSound) 195 public void setSound (NSSound aSound)
196 { 196 {
197 OS.objc_msgSend(this.id, OS.sel_setSound_1, aSound !is null ? aSound.id : null); 197 OS.objc_msgSend(this.id_, OS.sel_setSound_1, aSound !is null ? aSound.id_ : null);
198 } 198 }
199 199
200 public void setState (NSInteger value) 200 public void setState (NSInteger value)
201 { 201 {
202 OS.objc_msgSend(this.id, OS.sel_setState_1, value); 202 OS.objc_msgSend(this.id_, OS.sel_setState_1, value);
203 } 203 }
204 204
205 public void setTitle (NSString aString) 205 public void setTitle (NSString aString)
206 { 206 {
207 OS.objc_msgSend(this.id, OS.sel_setTitle_1, aString !is null ? aString.id : null); 207 OS.objc_msgSend(this.id_, OS.sel_setTitle_1, aString !is null ? aString.id_ : null);
208 } 208 }
209 209
210 public void setTitleWithMnemonic (NSString StringWithAmpersand) 210 public void setTitleWithMnemonic (NSString StringWithAmpersand)
211 { 211 {
212 OS.objc_msgSend(this.id, OS.sel_setTitleWithMnemonic_1, StringWithAmpersand !is null ? StringWithAmpersand.id : null); 212 OS.objc_msgSend(this.id_, OS.sel_setTitleWithMnemonic_1, StringWithAmpersand !is null ? StringWithAmpersand.id_ : null);
213 } 213 }
214 214
215 public void setTransparent (bool flag) 215 public void setTransparent (bool flag)
216 { 216 {
217 OS.objc_msgSend(this.id, OS.sel_setTransparent_1, flag); 217 OS.objc_msgSend(this.id_, OS.sel_setTransparent_1, flag);
218 } 218 }
219 219
220 public bool showsBorderOnlyWhileMouseInside () 220 public bool showsBorderOnlyWhileMouseInside ()
221 { 221 {
222 return OS.objc_msgSend(this.id, OS.sel_showsBorderOnlyWhileMouseInside) !is null; 222 return OS.objc_msgSend(this.id_, OS.sel_showsBorderOnlyWhileMouseInside) !is null;
223 } 223 }
224 224
225 public NSSound sound () 225 public NSSound sound ()
226 { 226 {
227 objc.id result = OS.objc_msgSend(this.id, OS.sel_sound); 227 objc.id result = OS.objc_msgSend(this.id_, OS.sel_sound);
228 return result !is null ? new NSSound(result) : null; 228 return result !is null ? new NSSound(result) : null;
229 } 229 }
230 230
231 public NSInteger state () 231 public NSInteger state ()
232 { 232 {
233 return OS.objc_msgSend(this.id, OS.sel_state); 233 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_state);
234 } 234 }
235 235
236 public NSString title () 236 public NSString title ()
237 { 237 {
238 objc.id result = OS.objc_msgSend(this.id, OS.sel_title); 238 objc.id result = OS.objc_msgSend(this.id_, OS.sel_title);
239 return result !is null ? new NSString(result) : null; 239 return result !is null ? new NSString(result) : null;
240 } 240 }
241 241
242 } 242 }