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

import org.kde.qt.Qt;
import org.kde.qt.QColor;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QDragEnterEvent;
import org.kde.qt.QPainter;
import org.kde.qt.QMouseEvent;
import org.kde.qt.QDropEvent;
import org.kde.qt.QWidget;
import org.kde.qt.QFrame;

/**

 The KColorPatch widget is a (usually small) widget showing
 a selected color e. g. in the KColorDialog. It
 automatically handles drag and drop from and on the widget.
  See {@link KColorPatchSignals} for signals emitted by KColorPatch
		@short A color displayer.

*/
public class KColorPatch extends QFrame  {
	protected KColorPatch(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	public KColorPatch(QWidget parent) {
		super((Class) null);
		newKColorPatch(parent);
	}
	private native void newKColorPatch(QWidget parent);
	public native void setColor(QColor col);
	protected native void drawContents(QPainter painter);
	protected native void mouseMoveEvent(QMouseEvent arg1);
	protected native void dragEnterEvent(QDragEnterEvent arg1);
	protected native void dropEvent(QDropEvent arg1);
	/** 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();
}
