diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KColorDrag.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KColorDrag.java | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KColorDrag.java b/kdejava/koala/org/kde/koala/KColorDrag.java new file mode 100644 index 00000000..60c4733b --- /dev/null +++ b/kdejava/koala/org/kde/koala/KColorDrag.java @@ -0,0 +1,86 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QColor; +import org.kde.qt.QMimeSourceInterface; +import org.kde.qt.QMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.QMimeSource; +import org.kde.qt.QWidget; +import org.kde.qt.QStoredDrag; + +/** + + 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 QStoredDrag { + protected KColorDrag(Class dummy){super((Class) null);} + public native QMetaObject metaObject(); + public native String className(); + /** + Constructs a color drag with a white color. + @short Constructs a color drag with a white color. + */ + public KColorDrag(QWidget dragsource, String name) { + super((Class) null); + newKColorDrag(dragsource,name); + } + private native void newKColorDrag(QWidget dragsource, String name); + public KColorDrag(QWidget dragsource) { + super((Class) null); + newKColorDrag(dragsource); + } + private native void newKColorDrag(QWidget 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(QColor col, QWidget dragsource, String name) { + super((Class) null); + newKColorDrag(col,dragsource,name); + } + private native void newKColorDrag(QColor col, QWidget dragsource, String name); + public KColorDrag(QColor col, QWidget dragsource) { + super((Class) null); + newKColorDrag(col,dragsource); + } + private native void newKColorDrag(QColor col, QWidget dragsource); + public KColorDrag(QColor col) { + super((Class) null); + newKColorDrag(col); + } + private native void newKColorDrag(QColor 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(QColor 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(QMimeSourceInterface 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(QMimeSourceInterface e, QColor 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(); +} |