1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
//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();
}
|