summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KColor.java
blob: b39c9f3803e2e91fd2671a998fb9a1229f598a90 (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
//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.QtSupport;
import org.kde.qt.TQColor;

/**

 A color class that preserves both RGB and HSV values.
 This is
 unlike TQColor which only preserves RGB values and recalculates HSV
 values. The TQColor behavior leads to an accumulation of rounding
 errors when working in the HSV color space.
		@author Waldo Bastian <bastian@kde.org>

		@short    A color class that preserves both RGB and HSV values.

*/
public class KColor extends TQColor  {
	protected KColor(Class dummy){super((Class) null);}
	public KColor() {
		super((Class) null);
		newKColor();
	}
	private native void newKColor();
	public KColor(KColor col) {
		super((Class) null);
		newKColor(col);
	}
	private native void newKColor(KColor col);
	public KColor(TQColor col) {
		super((Class) null);
		newKColor(col);
	}
	private native void newKColor(TQColor col);
	public native boolean op_equals(KColor col);
	public native void setHsv(int _h, int _s, int _v);
	public native void setRgb(int _r, int _g, int _b);
	public native void rgb(int[] _r, int[] _g, int[] _b);
	public native void hsv(int[] _h, int[] _s, int[] _v);
	/** 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();
}