comparison dwt/internal/cocoa/SWTView.d @ 45:d8635bb48c7c

Merge with SWT 3.5
author Jacob Carlborg <doob@me.com>
date Mon, 01 Dec 2008 17:07:00 +0100
parents 642f460a0908
children
comparison
equal deleted inserted replaced
44:ca5e494f2bbf 45:d8635bb48c7c
7 * 7 *
8 * Contributors: 8 * Contributors:
9 * IBM Corporation - initial API and implementation 9 * IBM Corporation - initial API and implementation
10 * 10 *
11 * Port to the D programming language: 11 * Port to the D programming language:
12 * Jacob Carlborg <jacob.carlborg@gmail.com> 12 * Jacob Carlborg <doob@me.com>
13 *******************************************************************************/ 13 *******************************************************************************/
14 module dwt.internal.cocoa.SWTView; 14 module dwt.internal.cocoa.SWTView;
15 15
16 import dwt.internal.cocoa.NSInteger; 16 import dwt.dwthelper.utils;
17 import dwt.internal.cocoa.NSView; 17 import dwt.internal.cocoa.NSView;
18 import dwt.internal.cocoa.OS;
19 import objc = dwt.internal.objc.runtime; 18 import objc = dwt.internal.objc.runtime;
19
20 20
21 public class SWTView : NSView { 21 public class SWTView : NSView {
22 22
23 public this () { 23 public this() {
24 super(null); 24 super(cast(objc.id) null);
25 } 25 }
26
27 public this(objc.id id) {
28 super(id);
29 }
26 30
27 public this (objc.id id) {
28 super(id);
29 }
30
31 public void setTag (NSInteger tag) {
32 OS.objc_msgSend(id_, OS.sel_setTag_1, tag);
33 }
34 } 31 }