//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.TQColor;
import org.trinitydesktop.qt.TQMimeSourceInterface;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQMimeSource;
import org.trinitydesktop.qt.TQWidget;
import org.trinitydesktop.qt.TQStoredDrag;

/**

 A drag-and-drop object for colors. The according MIME type
 is set to application/x-color.
 See the Qt drag'n'drop documentation.
 		@short    A drag-and-drop object for colors.

*/
public class KColorDrag extends TQStoredDrag  {
	protected KColorDrag(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**
		 Constructs a color drag with a white color.
		     		@short    Constructs a color drag with a white color.
	*/
	public KColorDrag(TQWidget dragsource, String name) {
		super((Class) null);
		newKColorDrag(dragsource,name);
	}
	private native void newKColorDrag(TQWidget dragsource, String name);
	public KColorDrag(TQWidget dragsource) {
		super((Class) null);
		newKColorDrag(dragsource);
	}
	private native void newKColorDrag(TQWidget dragsource);
	public KColorDrag() {
		super((Class) null);
		newKColorDrag();
	}
	private native void newKColorDrag();
	/**
		 Constructs a color drag with the color <code>col.</code>
		     		@short    Constructs a color drag with the color <code>col.</code>
	*/
	public KColorDrag(TQColor col, TQWidget dragsource, String name) {
		super((Class) null);
		newKColorDrag(col,dragsource,name);
	}
	private native void newKColorDrag(TQColor col, TQWidget dragsource, String name);
	public KColorDrag(TQColor col, TQWidget dragsource) {
		super((Class) null);
		newKColorDrag(col,dragsource);
	}
	private native void newKColorDrag(TQColor col, TQWidget dragsource);
	public KColorDrag(TQColor col) {
		super((Class) null);
		newKColorDrag(col);
	}
	private native void newKColorDrag(TQColor col);
	public native String format(int i);
	public native byte[] encodedData(String m);
	/**
		 Sets the color of the drag to <code>col.</code>
		     		@short    Sets the color of the drag to <code>col.</code>
	*/
	public native void setColor(TQColor col);
	/**
		 Returns true if the MIME source <code>e</code> contains a color object.
		     		@short    Returns true if the MIME source <code>e</code> contains a color object.
	*/
	public static native boolean canDecode(TQMimeSourceInterface e);
	/**
		 Decodes the MIME source <code>e</code> and puts the resulting color into <code>col.</code>
		     		@short    Decodes the MIME source <code>e</code> and puts the resulting color into <code>col.</code>
	*/
	public static native boolean decode(TQMimeSourceInterface e, TQColor col);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}
