summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QButton.java
blob: 57a3ab1f75cb4c05a97be42f35af080197364ce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
//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();
}