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

Merge with SWT 3.5
author Jacob Carlborg <doob@me.com>
date Mon, 01 Dec 2008 17:07:00 +0100
parents f565d3a95c0a
children
comparison
equal deleted inserted replaced
44:ca5e494f2bbf 45:d8635bb48c7c
1 /******************************************************************************* 1 /*******************************************************************************
2 * Copyright (c) 2007 IBM Corporation and others. 2 * Copyright (c) 2000, 2008 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials 3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0 4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at 5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html 6 * http://www.eclipse.org/legal/epl-v10.html
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.NSSecureTextField; 14 module dwt.internal.cocoa.NSSecureTextField;
15 15
16 import dwt.dwthelper.utils;
17 import cocoa = dwt.internal.cocoa.id;
16 import dwt.internal.cocoa.NSTextField; 18 import dwt.internal.cocoa.NSTextField;
19 import dwt.internal.cocoa.OS;
17 import objc = dwt.internal.objc.runtime; 20 import objc = dwt.internal.objc.runtime;
18 21
19 public class NSSecureTextField : NSTextField 22 public class NSSecureTextField : NSTextField {
20 {
21 23
22 public this () 24 public this() {
23 { 25 super();
24 super(); 26 }
25 }
26 27
27 public this (objc.id id) 28 public this(objc.id id) {
28 { 29 super(id);
29 super(id); 30 }
30 } 31
32 public this(cocoa.id id) {
33 super(id);
34 }
35
36 public static objc.Class cellClass() {
37 return cast(objc.Class) OS.objc_msgSend(OS.class_NSSecureTextField, OS.sel_cellClass);
38 }
39
40 public static void setCellClass(objc.Class factoryId) {
41 OS.objc_msgSend(OS.class_NSSecureTextField, OS.sel_setCellClass_, factoryId);
42 }
31 43
32 } 44 }