Mercurial > projects > dwt-mac
view dwt/dnd/TransferData.d @ 122:2e671fa40eec
Ported dwt.dnd, dwt.opengl, dwt.printing and dwt.program
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Wed, 31 Dec 2008 21:01:13 +0100 |
parents | cbefbb00a6c9 |
children |
line wrap: on
line source
/******************************************************************************* * Copyright (c) 2000, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation * * Port to the D programming language: * Jacob Carlborg <doob@me.com> *******************************************************************************/ module dwt.dnd.TransferData; import dwt.dwthelper.utils; import dwt.internal.cocoa.NSObject; /** * The <code>TransferData</code> class is a platform specific data structure for * describing the type and the contents of data being converted by a transfer agent. * * <p>As an application writer, you do not need to know the specifics of * TransferData. TransferData instances are passed to a subclass of Transfer * and the Transfer object manages the platform specific issues. * You can ask a Transfer subclass if it can handle this data by calling * Transfer.isSupportedType(transferData).</p> * * <p>You should only need to become familiar with the fields in this class if you * are implementing a Transfer subclass and you are unable to subclass the * ByteArrayTransfer class.</p> * * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> */ public class TransferData { /** * The type is a unique identifier of a system format or user defined format. * (Warning: This field is platform dependent) * <p> * <b>IMPORTANT:</b> This field is <em>not</em> part of the DWT * public API. It is marked public only so that it can be shared * within the packages provided by DWT. It is not available on all * platforms and should never be accessed from application code. * </p> */ public int type; /** * The data being transferred. * The data field may contain multiple values. * (Warning: This field is platform dependent) * <p> * <b>IMPORTANT:</b> This field is <em>not</em> part of the DWT * public API. It is marked public only so that it can be shared * within the packages provided by DWT. It is not available on all * platforms and should never be accessed from application code. * </p> */ public NSObject data; }