org.eclipse.swt.internal.ole.win32.IDataObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.swt.win32.win32.x86 Show documentation
Show all versions of org.eclipse.swt.win32.win32.x86 Show documentation
SWT is an open source widget toolkit for Java designed to provide efficient, portable access to the user-interface facilities of the operating systems on which it is implemented.
The newest version!
/*******************************************************************************
* Copyright (c) 2000, 2012 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
*******************************************************************************/
package org.eclipse.swt.internal.ole.win32;
public class IDataObject extends IUnknown {
public IDataObject(int /*long*/ address) {
super(address);
}
public int EnumFormatEtc(int dwDirection, int /*long*/[] ppenumFormatetc) {
return COM.VtblCall(8, address, dwDirection, ppenumFormatetc);
}
public int GetData(FORMATETC pFormatetc, STGMEDIUM pmedium) {
//Called by a data consumer to obtain data from a source data object.
//The GetData method renders the data described in the specified FORMATETC
//structure and transfers it through the specified STGMEDIUM structure.
//The caller then assumes responsibility for releasing the STGMEDIUM structure.
return COM.VtblCall(3, address, pFormatetc, pmedium);
}
public int GetDataHere(FORMATETC pFormatetc, STGMEDIUM pmedium) {
//Called by a data consumer to obtain data from a source data object.
//This method differs from the GetData method in that the caller must
//allocate and free the specified storage medium.
return COM.VtblCall(4, address, pFormatetc, pmedium);
}
public int QueryGetData(FORMATETC pFormatetc) {
return COM.VtblCall(5, address, pFormatetc);
}
public int SetData(
FORMATETC pFormatetc, // Pointer to the FORMATETC structure
STGMEDIUM pmedium, // Pointer to STGMEDIUM structure
boolean fRelease // Indicates which object owns the storage medium after the call is completed
){
return COM.VtblCall(7, address, pFormatetc, pmedium, fRelease);
}
}