//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.QtSupport;
import org.trinitydesktop.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();
}
