//Auto-generated by kalyptus. DO NOT EDIT. package org.kde.koala; import org.kde.qt.Qt; import org.kde.qt.TQColor; import org.kde.qt.TQMimeSourceInterface; import org.kde.qt.TQMetaObject; import org.kde.qt.QtSupport; import org.kde.qt.TQMimeSource; import org.kde.qt.TQWidget; import org.kde.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 col. @short Constructs a color drag with the color col. */ 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 col. @short Sets the color of the drag to col. */ public native void setColor(TQColor col); /** Returns true if the MIME source e contains a color object. @short Returns true if the MIME source e contains a color object. */ public static native boolean canDecode(TQMimeSourceInterface e); /** Decodes the MIME source e and puts the resulting color into col. @short Decodes the MIME source e and puts the resulting color into col. */ 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(); }