Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSButton.d @ 37:642f460a0908
Fixed a lot of compile errors, a "hello world" app compiles now
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Fri, 10 Oct 2008 12:29:48 +0200 |
parents | f565d3a95c0a |
children | d8635bb48c7c |
comparison
equal
deleted
inserted
replaced
36:db5a898b2119 | 37:642f460a0908 |
---|---|
12 * Jacob Carlborg <jacob.carlborg@gmail.com> | 12 * Jacob Carlborg <jacob.carlborg@gmail.com> |
13 *******************************************************************************/ | 13 *******************************************************************************/ |
14 module dwt.internal.cocoa.NSButton; | 14 module dwt.internal.cocoa.NSButton; |
15 | 15 |
16 import dwt.internal.cocoa.NSAttributedString; | 16 import dwt.internal.cocoa.NSAttributedString; |
17 import dwt.internal.cocoa.NSButtonCell : NSBezelStyle, NSButtonType; | |
18 import dwt.internal.cocoa.NSCell; | |
17 import dwt.internal.cocoa.NSControl; | 19 import dwt.internal.cocoa.NSControl; |
18 import dwt.internal.cocoa.NSEvent; | 20 import dwt.internal.cocoa.NSEvent; |
19 import dwt.internal.cocoa.NSImage; | 21 import dwt.internal.cocoa.NSImage; |
20 import dwt.internal.cocoa.NSInteger; | 22 import dwt.internal.cocoa.NSInteger; |
21 import dwt.internal.cocoa.NSSound; | 23 import dwt.internal.cocoa.NSSound; |
140 public void setAttributedTitle (NSAttributedString aString) | 142 public void setAttributedTitle (NSAttributedString aString) |
141 { | 143 { |
142 OS.objc_msgSend(this.id_, OS.sel_setAttributedTitle_1, aString !is null ? aString.id_ : null); | 144 OS.objc_msgSend(this.id_, OS.sel_setAttributedTitle_1, aString !is null ? aString.id_ : null); |
143 } | 145 } |
144 | 146 |
145 public void setBezelStyle (objc.id bezelStyle) | 147 public void setBezelStyle (NSBezelStyle bezelStyle) |
146 { | 148 { |
147 OS.objc_msgSend(this.id_, OS.sel_setBezelStyle_1, bezelStyle); | 149 OS.objc_msgSend(this.id_, OS.sel_setBezelStyle_1, bezelStyle); |
148 } | 150 } |
149 | 151 |
150 public void setBordered (bool flag) | 152 public void setBordered (bool flag) |
151 { | 153 { |
152 OS.objc_msgSend(this.id_, OS.sel_setBordered_1, flag); | 154 OS.objc_msgSend(this.id_, OS.sel_setBordered_1, flag); |
153 } | 155 } |
154 | 156 |
155 public void setButtonType (objc.id aType) | 157 public void setButtonType (NSButtonType aType) |
156 { | 158 { |
157 OS.objc_msgSend(this.id_, OS.sel_setButtonType_1, aType); | 159 OS.objc_msgSend(this.id_, OS.sel_setButtonType_1, aType); |
158 } | 160 } |
159 | 161 |
160 public void setImage (NSImage image) | 162 public void setImage (NSImage image) |
161 { | 163 { |
162 OS.objc_msgSend(this.id_, OS.sel_setImage_1, image !is null ? image.id_ : null); | 164 OS.objc_msgSend(this.id_, OS.sel_setImage_1, image !is null ? image.id_ : null); |
163 } | 165 } |
164 | 166 |
165 public void setImagePosition (objc.id aPosition) | 167 public void setImagePosition (NSCellImagePosition aPosition) |
166 { | 168 { |
167 OS.objc_msgSend(this.id_, OS.sel_setImagePosition_1, aPosition); | 169 OS.objc_msgSend(this.id_, OS.sel_setImagePosition_1, aPosition); |
168 } | 170 } |
169 | 171 |
170 public void setKeyEquivalent (NSString charCode) | 172 public void setKeyEquivalent (NSString charCode) |