//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.qt;

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