You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
2.9 KiB
87 lines
2.9 KiB
//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 <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();
|
|
}
|