summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/TQColor.java
blob: bc91c67ad0b8a4e74f086f2e6cdf5d297507a7ea (plain)
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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.qt.Qt;
import java.util.ArrayList;

public class TQColor implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected TQColor(Class dummy){}

	public static final int Dirt = 0x44495254;
	public static final int Invalid = 0x49000000;

	public static final int Rgb = 0;
	public static final int Hsv = 1;

	public TQColor() {
		newTQColor();
	}
	private native void newTQColor();
	public TQColor(int r, int g, int b) {
		newTQColor(r,g,b);
	}
	private native void newTQColor(int r, int g, int b);
	public TQColor(int x, int y, int z, int arg4) {
		newTQColor(x,y,z,arg4);
	}
	private native void newTQColor(int x, int y, int z, int arg4);
	public TQColor(int rgb, int pixel) {
		newTQColor(rgb,pixel);
	}
	private native void newTQColor(int rgb, int pixel);
	public TQColor(int rgb) {
		newTQColor(rgb);
	}
	private native void newTQColor(int rgb);
	public TQColor(String name) {
		newTQColor(name);
	}
	private native void newTQColor(String name);
	public TQColor(TQColor arg1) {
		newTQColor(arg1);
	}
	private native void newTQColor(TQColor arg1);
	public native boolean isValid();
	public native boolean isDirty();
	public native String name();
	public native void setNamedColor(String name);
	public native int rgb();
	public native void setRgb(int r, int g, int b);
	public native void setRgb(int rgb);
	public native void getRgb(int[] r, int[] g, int[] b);
	public native void rgb(int[] r, int[] g, int[] b);
	public native int red();
	public native int green();
	public native int blue();
	public native void setHsv(int h, int s, int v);
	public native void getHsv(int[] h, int[] s, int[] v);
	public native void hsv(int[] h, int[] s, int[] v);
	public native TQColor light(int f);
	public native TQColor light();
	public native TQColor dark(int f);
	public native TQColor dark();
	public native boolean op_equals(TQColor c);
	public native boolean op_not_equals(TQColor c);
	public native int alloc();
	public native int pixel();
	public static native int maxColors();
	public static native int numBitPlanes();
	public static native int enterAllocContext();
	public static native void leaveAllocContext();
	public static native int currentAllocContext();
	public static native void destroyAllocContext(int arg1);
	public static native void initialize();
	public static native void cleanup();
	public static native ArrayList colorNames();
	/** 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();
}