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

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

public class QColor implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected QColor(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 QColor() {
		newQColor();
	}
	private native void newQColor();
	public QColor(int r, int g, int b) {
		newQColor(r,g,b);
	}
	private native void newQColor(int r, int g, int b);
	public QColor(int x, int y, int z, int arg4) {
		newQColor(x,y,z,arg4);
	}
	private native void newQColor(int x, int y, int z, int arg4);
	public QColor(int rgb, int pixel) {
		newQColor(rgb,pixel);
	}
	private native void newQColor(int rgb, int pixel);
	public QColor(int rgb) {
		newQColor(rgb);
	}
	private native void newQColor(int rgb);
	public QColor(String name) {
		newQColor(name);
	}
	private native void newQColor(String name);
	public QColor(QColor arg1) {
		newQColor(arg1);
	}
	private native void newQColor(QColor 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 QColor light(int f);
	public native QColor light();
	public native QColor dark(int f);
	public native QColor dark();
	public native boolean op_equals(QColor c);
	public native boolean op_not_equals(QColor 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();
}
