summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QWidget.java
blob: e7f5d77ffedb0959e3adc7d7f3499e3572cd42a1 (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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.qt.Qt;

public class QWidget extends QObject implements QPaintDeviceInterface {
	protected QWidget(Class dummy){super((Class) null);}
	public static final int NoFocus = 0;
	public static final int TabFocus = 0x1;
	public static final int ClickFocus = 0x2;
	public static final int StrongFocus = TabFocus|ClickFocus|0x8;
	public static final int WheelFocus = StrongFocus|0x4;

	public static final int WidgetOrigin = 0;
	public static final int ParentOrigin = 1;
	public static final int WindowOrigin = 2;
	public static final int AncestorOrigin = 3;

	public native QMetaObject metaObject();
	public native String className();
	public QWidget(QWidget parent, String name, int f) {
		super((Class) null);
		newQWidget(parent,name,f);
	}
	private native void newQWidget(QWidget parent, String name, int f);
	public QWidget(QWidget parent, String name) {
		super((Class) null);
		newQWidget(parent,name);
	}
	private native void newQWidget(QWidget parent, String name);
	public QWidget(QWidget parent) {
		super((Class) null);
		newQWidget(parent);
	}
	private native void newQWidget(QWidget parent);
	public QWidget() {
		super((Class) null);
		newQWidget();
	}
	private native void newQWidget();
	public native long winId();
	public native void setName(String name);
	public native QStyle style();
	public native void setStyle(QStyle arg1);
	public native QStyle setStyle(String arg1);
	public native boolean isTopLevel();
	public native boolean isDialog();
	public native boolean isPopup();
	public native boolean isDesktop();
	public native boolean isModal();
	public native boolean isEnabled();
	public native boolean isEnabledTo(QWidget arg1);
	public native boolean isEnabledToTLW();
	public native QRect frameGeometry();
	public native QRect geometry();
	public native int x();
	public native int y();
	public native QPoint pos();
	public native QSize frameSize();
	public native QSize size();
	public native int width();
	public native int height();
	public native QRect rect();
	public native QRect childrenRect();
	public native QRegion childrenRegion();
	public native QSize minimumSize();
	public native QSize maximumSize();
	public native int minimumWidth();
	public native int minimumHeight();
	public native int maximumWidth();
	public native int maximumHeight();
	public native void setMinimumSize(QSize arg1);
	public native void setMinimumSize(int minw, int minh);
	public native void setMaximumSize(QSize arg1);
	public native void setMaximumSize(int maxw, int maxh);
	public native void setMinimumWidth(int minw);
	public native void setMinimumHeight(int minh);
	public native void setMaximumWidth(int maxw);
	public native void setMaximumHeight(int maxh);
	public native QSize sizeIncrement();
	public native void setSizeIncrement(QSize arg1);
	public native void setSizeIncrement(int w, int h);
	public native QSize baseSize();
	public native void setBaseSize(QSize arg1);
	public native void setBaseSize(int basew, int baseh);
	public native void setFixedSize(QSize arg1);
	public native void setFixedSize(int w, int h);
	public native void setFixedWidth(int w);
	public native void setFixedHeight(int h);
	public native QPoint mapToGlobal(QPoint arg1);
	public native QPoint mapFromGlobal(QPoint arg1);
	public native QPoint mapToParent(QPoint arg1);
	public native QPoint mapFromParent(QPoint arg1);
	public native QPoint mapTo(QWidget arg1, QPoint arg2);
	public native QPoint mapFrom(QWidget arg1, QPoint arg2);
	public native QWidget topLevelWidget();
	public native int backgroundMode();
	public native void setBackgroundMode(int arg1);
	public native void setBackgroundMode(int arg1, int arg2);
	public native QColor foregroundColor();
	public native QColor eraseColor();
	public native void setEraseColor(QColor arg1);
	public native QPixmap erasePixmap();
	public native void setErasePixmap(QPixmap arg1);
	public native QColorGroup colorGroup();
	public native QPalette palette();
	public native boolean ownPalette();
	public native void setPalette(QPalette arg1);
	public native void unsetPalette();
	public native QColor paletteForegroundColor();
	public native void setPaletteForegroundColor(QColor arg1);
	public native QColor paletteBackgroundColor();
	public native void setPaletteBackgroundColor(QColor arg1);
	public native QPixmap paletteBackgroundPixmap();
	public native void setPaletteBackgroundPixmap(QPixmap arg1);
	public native QBrush backgroundBrush();
	public native QFont font();
	public native boolean ownFont();
	public native void setFont(QFont arg1);
	public native void unsetFont();
	public native QFontMetrics fontMetrics();
	public native QFontInfo fontInfo();
	public native QCursor cursor();
	public native boolean ownCursor();
	public native void setCursor(QCursor arg1);
	public native void unsetCursor();
	public native String caption();
	public native QPixmap icon();
	public native String iconText();
	public native boolean hasMouseTracking();
	public native boolean hasMouse();
	public native void setMask(QBitmap arg1);
	public native void setMask(QRegion arg1);
	public native void clearMask();
	public native QColor backgroundColor();
	public native void setBackgroundColor(QColor arg1);
	public native QPixmap backgroundPixmap();
	public native void setBackgroundPixmap(QPixmap arg1);
	public native boolean isActiveWindow();
	public native void setActiveWindow();
	public native boolean isFocusEnabled();
	public native int focusPolicy();
	public native void setFocusPolicy(int arg1);
	public native boolean hasFocus();
	public native void setFocusProxy(QWidget arg1);
	public native QWidget focusProxy();
	public native void setInputMethodEnabled(boolean b);
	public native boolean isInputMethodEnabled();
	public native void grabMouse();
	public native void grabMouse(QCursor arg1);
	public native void releaseMouse();
	public native void grabKeyboard();
	public native void releaseKeyboard();
	public native boolean isUpdatesEnabled();
	public native boolean close(boolean alsoDelete);
	public native boolean isVisible();
	public native boolean isVisibleTo(QWidget arg1);
	public native boolean isVisibleToTLW();
	public native QRect visibleRect();
	public native boolean isHidden();
	public native boolean isShown();
	public native boolean isMinimized();
	public native boolean isMaximized();
	public native boolean isFullScreen();
	public native int windowState();
	public native void setWindowState(int windowState);
	public native QSize sizeHint();
	public native QSize minimumSizeHint();
	public native QSizePolicy sizePolicy();
	public native void setSizePolicy(QSizePolicy arg1);
	public native void setSizePolicy(int hor, int ver, boolean hfw);
	public native void setSizePolicy(int hor, int ver);
	public native int heightForWidth(int arg1);
	public native QRegion clipRegion();
	public native QLayout layout();
	public native void updateGeometry();
	public native void reparent(QWidget parent, int arg2, QPoint arg3, boolean showIt);
	public native void reparent(QWidget parent, int arg2, QPoint arg3);
	public native void reparent(QWidget parent, QPoint arg2, boolean showIt);
	public native void reparent(QWidget parent, QPoint arg2);
	public native void recreate(QWidget parent, int f, QPoint p, boolean showIt);
	public native void recreate(QWidget parent, int f, QPoint p);
	public native void erase();
	public native void erase(int x, int y, int w, int h);
	public native void erase(QRect arg1);
	public native void erase(QRegion arg1);
	public native void scroll(int dx, int dy);
	public native void scroll(int dx, int dy, QRect arg3);
	public native void drawText(int x, int y, String arg3);
	public native void drawText(QPoint arg1, String arg2);
	public native QWidget focusWidget();
	public native QRect microFocusHint();
	public native boolean acceptDrops();
	public native void setAcceptDrops(boolean on);
	public native void setAutoMask(boolean arg1);
	public native boolean autoMask();
	public native void setBackgroundOrigin(int arg1);
	public native int backgroundOrigin();
	public native QPoint backgroundOffset();
	public native boolean customWhatsThis();
	public native QWidget parentWidget(boolean sameWindow);
	public native QWidget parentWidget();
	public native int testWState(int s);
	public native int testWFlags(int f);
	public native QWidget childAt(int x, int y, boolean includeThis);
	public native QWidget childAt(int x, int y);
	public native QWidget childAt(QPoint arg1, boolean includeThis);
	public native QWidget childAt(QPoint arg1);
	public native void setWindowOpacity(double level);
	public native double windowOpacity();
	public native void setPalette(QPalette p, boolean arg2);
	public native void setFont(QFont f, boolean arg2);
	public native void setEnabled(boolean arg1);
	public native void setDisabled(boolean arg1);
	public native void setCaption(String arg1);
	public native void setIcon(QPixmap arg1);
	public native void setIconText(String arg1);
	public native void setMouseTracking(boolean enable);
	public native void setFocus();
	public native void clearFocus();
	public native void setUpdatesEnabled(boolean enable);
	public native void update();
	public native void update(int x, int y, int w, int h);
	public native void update(QRect arg1);
	public native void repaint();
	public native void repaint(boolean erase);
	public native void repaint(int x, int y, int w, int h, boolean erase);
	public native void repaint(int x, int y, int w, int h);
	public native void repaint(QRect arg1, boolean erase);
	public native void repaint(QRect arg1);
	public native void repaint(QRegion arg1, boolean erase);
	public native void repaint(QRegion arg1);
	public native void show();
	public native void hide();
	public native void setShown(boolean show);
	public native void setHidden(boolean hide);
	public native void iconify();
	public native void showMinimized();
	public native void showMaximized();
	public native void showFullScreen();
	public native void showNormal();
	public native void polish();
	public native void constPolish();
	public native boolean close();
	public native void raise();
	public native void lower();
	public native void stackUnder(QWidget arg1);
	public native void move(int x, int y);
	public native void move(QPoint arg1);
	public native void resize(int w, int h);
	public native void resize(QSize arg1);
	public native void setGeometry(int x, int y, int w, int h);
	public native void setGeometry(QRect arg1);
	public native void adjustSize();
	public static native String tr(String arg1, String arg2);
	public static native String tr(String arg1);
	public static native void setTabOrder(QWidget arg1, QWidget arg2);
	public static native QWidget mouseGrabber();
	public static native QWidget keyboardGrabber();
	public static native QWidget find(long arg1);
	// QWidgetMapper* wmapper(); >>>> NOT CONVERTED
	public native boolean event(QEvent arg1);
	protected native void mousePressEvent(QMouseEvent arg1);
	protected native void mouseReleaseEvent(QMouseEvent arg1);
	protected native void mouseDoubleClickEvent(QMouseEvent arg1);
	protected native void mouseMoveEvent(QMouseEvent arg1);
	protected native void wheelEvent(QWheelEvent arg1);
	protected native void keyPressEvent(QKeyEvent arg1);
	protected native void keyReleaseEvent(QKeyEvent arg1);
	protected native void focusInEvent(QFocusEvent arg1);
	protected native void focusOutEvent(QFocusEvent arg1);
	protected native void enterEvent(QEvent arg1);
	protected native void leaveEvent(QEvent arg1);
	protected native void paintEvent(QPaintEvent arg1);
	protected native void moveEvent(QMoveEvent arg1);
	protected native void resizeEvent(QResizeEvent arg1);
	protected native void closeEvent(QCloseEvent arg1);
	protected native void contextMenuEvent(QContextMenuEvent arg1);
	protected native void imStartEvent(QIMEvent arg1);
	protected native void imComposeEvent(QIMEvent arg1);
	protected native void imEndEvent(QIMEvent arg1);
	protected native void tabletEvent(QTabletEvent arg1);
	protected native void dragEnterEvent(QDragEnterEvent arg1);
	protected native void dragMoveEvent(QDragMoveEvent arg1);
	protected native void dragLeaveEvent(QDragLeaveEvent arg1);
	protected native void dropEvent(QDropEvent arg1);
	public native void showEvent(QShowEvent arg1);
	protected native void hideEvent(QHideEvent arg1);
	protected native void updateMask();
	public native void styleChange(QStyle arg1);
	protected native void enabledChange(boolean oldEnabled);
	protected native void paletteChange(QPalette arg1);
	protected native void fontChange(QFont arg1);
	protected native void windowActivationChange(boolean oldActive);
	protected native int metric(int arg1);
	protected native void resetInputContext();
	protected native void create(long arg1, boolean initializeWindow, boolean destroyOldWindow);
	protected native void create(long arg1, boolean initializeWindow);
	protected native void create(long arg1);
	protected native void create();
	protected native void destroy(boolean destroyWindow, boolean destroySubWindows);
	protected native void destroy(boolean destroyWindow);
	protected native void destroy();
	protected native int getWState();
	protected native void setWState(int arg1);
	protected native void clearWState(int n);
	protected native int getWFlags();
	protected native void setWFlags(int arg1);
	protected native void clearWFlags(int n);
	protected native boolean focusNextPrevChild(boolean next);
	// QWExtra* extraData(); >>>> NOT CONVERTED
	// QTLWExtra* topData(); >>>> NOT CONVERTED
	protected native QFocusData focusData();
	protected native void setKeyCompression(boolean arg1);
	protected native void setMicroFocusHint(int x, int y, int w, int h, boolean text, QFont f);
	protected native void setMicroFocusHint(int x, int y, int w, int h, boolean text);
	protected native void setMicroFocusHint(int x, int y, int w, int h);
	/** 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();
	public native int devType();
	public native boolean isExtDev();
	public native boolean paintingActive();
	public native void setResolution(int arg1);
	public native int resolution();
	// bool cmd(int arg1,QPainter* arg2,QPDevCmdParam* arg3); >>>> NOT CONVERTED
	protected native int fontMet(QFont arg1, int arg2, String arg3, int arg4);
	protected native int fontMet(QFont arg1, int arg2, String arg3);
	protected native int fontMet(QFont arg1, int arg2);
	protected native int fontInf(QFont arg1, int arg2);
	/** Internal method */
	protected native long paintDevice();

}