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

import org.kde.qt.Qt;

/**
 See {@link QButtonSignals} for signals emitted by QButton
*/
public class QButton extends QWidget  {
	protected QButton(Class dummy){super((Class) null);}
	public static final int SingleShot = 0;
	public static final int Toggle = 1;
	public static final int Tristate = 2;

	public static final int Off = 0;
	public static final int NoChange = 1;
	public static final int On = 2;

	public native QMetaObject metaObject();
	public native String className();
	public QButton(QWidget parent, String name, int f) {
		super((Class) null);
		newQButton(parent,name,f);
	}
	private native void newQButton(QWidget parent, String name, int f);
	public QButton(QWidget parent, String name) {
		super((Class) null);
		newQButton(parent,name);
	}
	private native void newQButton(QWidget parent, String name);
	public QButton(QWidget parent) {
		super((Class) null);
		newQButton(parent);
	}
	private native void newQButton(QWidget parent);
	public QButton() {
		super((Class) null);
		newQButton();
	}
	private native void newQButton();
	public native String text();
	public native void setText(String arg1);
	public native QPixmap pixmap();
	public native void setPixmap(QPixmap arg1);
	public native QKeySequence accel();
	public native void setAccel(QKeySequence arg1);
	public native boolean isToggleButton();
	public native int toggleType();
	public native void setDown(boolean arg1);
	public native boolean isDown();
	public native boolean isOn();
	public native int state();
	public native boolean autoResize();
	public native void setAutoResize(boolean arg1);
	public native boolean autoRepeat();
	public native void setAutoRepeat(boolean arg1);
	public native boolean isExclusiveToggle();
	public native QButtonGroup group();
	public native void animateClick();
	public native void toggle();
	public static native String tr(String arg1, String arg2);
	public static native String tr(String arg1);
	protected native void setToggleButton(boolean arg1);
	protected native void setToggleType(int arg1);
	protected native void setOn(boolean arg1);
	public native void setState(int arg1);
	protected native boolean hitButton(QPoint pos);
	protected native void drawButton(QPainter arg1);
	protected native void drawButtonLabel(QPainter arg1);
	protected native void keyPressEvent(QKeyEvent arg1);
	protected native void keyReleaseEvent(QKeyEvent arg1);
	protected native void mousePressEvent(QMouseEvent arg1);
	protected native void mouseReleaseEvent(QMouseEvent arg1);
	protected native void mouseMoveEvent(QMouseEvent arg1);
	protected native void paintEvent(QPaintEvent arg1);
	protected native void focusInEvent(QFocusEvent arg1);
	protected native void focusOutEvent(QFocusEvent arg1);
	protected native void enabledChange(boolean 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();
}
