Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/DOMUIEvent.d @ 45:d8635bb48c7c
Merge with SWT 3.5
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 01 Dec 2008 17:07:00 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
44:ca5e494f2bbf | 45:d8635bb48c7c |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2000, 2008 IBM Corporation and others. | |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 * | |
11 * Port to the D programming language: | |
12 * Jacob Carlborg <doob@me.com> | |
13 *******************************************************************************/ | |
14 module dwt.internal.cocoa.DOMUIEvent; | |
15 | |
16 import dwt.dwthelper.utils; | |
17 import cocoa = dwt.internal.cocoa.id; | |
18 import dwt.internal.cocoa.DOMEvent; | |
19 import dwt.internal.cocoa.OS; | |
20 import objc = dwt.internal.objc.runtime; | |
21 | |
22 public class DOMUIEvent : DOMEvent { | |
23 | |
24 public this() { | |
25 super(); | |
26 } | |
27 | |
28 public this(objc.id id) { | |
29 super(id); | |
30 } | |
31 | |
32 public this(cocoa.id id) { | |
33 super(id); | |
34 } | |
35 | |
36 public int detail() { | |
37 return cast(int)/*64*/OS.objc_msgSend(this.id, OS.sel_detail); | |
38 } | |
39 | |
40 } |