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

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.TQRect;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQPaintEvent;
import org.trinitydesktop.qt.TQPainter;
import org.trinitydesktop.qt.TQMouseEvent;
import org.trinitydesktop.qt.TQWidget;
import org.trinitydesktop.qt.TQWheelEvent;
import org.trinitydesktop.qt.TQWidget;

/**

 KXYSelector is the base class for other widgets which
 provides the ability to choose from a two-dimensional
 range of values. The currently chosen value is indicated
 by a cross. An example is the KHSSelector which
 allows to choose from a range of colors, and which is
 used in KColorDialog.
 A custom drawing routine for the widget surface has
 to be provided by the subclass.
  See {@link KXYSelectorSignals} for signals emitted by KXYSelector
		@short    KXYSelector is the base class for other widgets which  provides the ability to choose from a two-dimensional  range of values.

*/
public class KXYSelector extends TQWidget  {
	protected KXYSelector(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**
		 Constructs a two-dimensional selector widget which
		 has a value range of [0..100] in both directions.
		   		@short    Constructs a two-dimensional selector widget which  has a value range of [0.
	*/
	public KXYSelector(TQWidget parent, String name) {
		super((Class) null);
		newKXYSelector(parent,name);
	}
	private native void newKXYSelector(TQWidget parent, String name);
	public KXYSelector(TQWidget parent) {
		super((Class) null);
		newKXYSelector(parent);
	}
	private native void newKXYSelector(TQWidget parent);
	public KXYSelector() {
		super((Class) null);
		newKXYSelector();
	}
	private native void newKXYSelector();
	/**
		 Sets the current values in horizontal and
		 vertical direction.
			@param xPos the horizontal value
			@param yPos the veritcal value
		   		@short    Sets the current values in horizontal and  vertical direction.
	*/
	public native void setValues(int xPos, int yPos);
	/**
		 Sets the current horizontal value
			@param xPos the horizontal value
		   		@short    Sets the current horizontal value
	*/
	public native void setXValue(int xPos);
	/**
		 Sets the current vertical value
			@param yPos the veritcal value
		   		@short    Sets the current vertical value
	*/
	public native void setYValue(int yPos);
	/**
		 Sets the range of possible values.
		   		@short    Sets the range of possible values.
	*/
	public native void setRange(int minX, int minY, int maxX, int maxY);
	/**
				@return the current value in horizontal direction.

		@short
	*/
	public native int xValue();
	/**
				@return the current value in vertical direction.

		@short
	*/
	public native int yValue();
	/**
				@return the rectangle on which subclasses should draw.

		@short
	*/
	public native TQRect contentsRect();
	/**
		 Override this function to draw the contents of the widget.
		 The default implementation does nothing.
			 Draw within contentsRect() only.
		   		@short    Override this function to draw the contents of the widget.
	*/
	protected native void drawContents(TQPainter arg1);
	/**
		 Override this function to draw the cursor which
		 indicates the currently selected value pair.
		   		@short    Override this function to draw the cursor which  indicates the currently selected value pair.
	*/
	protected native void drawCursor(TQPainter p, int xp, int yp);
	protected native void paintEvent(TQPaintEvent e);
	protected native void mousePressEvent(TQMouseEvent e);
	protected native void mouseMoveEvent(TQMouseEvent e);
	protected native void wheelEvent(TQWheelEvent arg1);
	/**
		 Converts a pixel position to its corresponding values.
		   		@short    Converts a pixel position to its corresponding values.
	*/
	protected native void valuesFromPosition(int x, int y, int[] xVal, int[] yVal);
	/** 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();
}
