summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QPainter.java
blob: 146d06e6b9536ae8ad48580419a6972b35fcc5b4 (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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.qt.Qt;

public class QPainter extends Qt  {
	protected QPainter(Class dummy){super((Class) null);}
	public static final int IsActive = 0x01;
	public static final int ExtDev = 0x02;
	public static final int IsStartingUp = 0x04;
	public static final int NoCache = 0x08;
	public static final int VxF = 0x10;
	public static final int WxF = 0x20;
	public static final int ClipOn = 0x40;
	public static final int SafePolygon = 0x80;
	public static final int MonoDev = 0x100;
	public static final int DirtyFont = 0x200;
	public static final int DirtyPen = 0x400;
	public static final int DirtyBrush = 0x800;
	public static final int RGBColor = 0x1000;
	public static final int FontMet = 0x2000;
	public static final int FontInf = 0x4000;
	public static final int CtorBegin = 0x8000;
	public static final int UsePrivateCx = 0x10000;
	public static final int VolatileDC = 0x20000;
	public static final int Qt2Compat = 0x40000;

	public static final int CoordDevice = 0;
	public static final int CoordPainter = 1;

	public static final int Auto = 0;
	public static final int RTL = 1;
	public static final int LTR = 2;

	public QPainter() {
		super((Class) null);
		newQPainter();
	}
	private native void newQPainter();
	public QPainter(QPaintDeviceInterface arg1, boolean unclipped) {
		super((Class) null);
		newQPainter(arg1,unclipped);
	}
	private native void newQPainter(QPaintDeviceInterface arg1, boolean unclipped);
	public QPainter(QPaintDeviceInterface arg1) {
		super((Class) null);
		newQPainter(arg1);
	}
	private native void newQPainter(QPaintDeviceInterface arg1);
	public QPainter(QPaintDeviceInterface arg1, QWidget arg2, boolean unclipped) {
		super((Class) null);
		newQPainter(arg1,arg2,unclipped);
	}
	private native void newQPainter(QPaintDeviceInterface arg1, QWidget arg2, boolean unclipped);
	public QPainter(QPaintDeviceInterface arg1, QWidget arg2) {
		super((Class) null);
		newQPainter(arg1,arg2);
	}
	private native void newQPainter(QPaintDeviceInterface arg1, QWidget arg2);
	public native boolean begin(QPaintDeviceInterface arg1, boolean unclipped);
	public native boolean begin(QPaintDeviceInterface arg1);
	public native boolean begin(QPaintDeviceInterface arg1, QWidget arg2, boolean unclipped);
	public native boolean begin(QPaintDeviceInterface arg1, QWidget arg2);
	public native boolean end();
	public native QPaintDeviceInterface device();
	public native boolean isActive();
	public native void flush(QRegion region, int cm);
	public native void flush(QRegion region);
	public native void flush();
	public native void save();
	public native void restore();
	public native QFontMetrics fontMetrics();
	public native QFontInfo fontInfo();
	public native QFont font();
	public native void setFont(QFont arg1);
	public native QPen pen();
	public native void setPen(QPen arg1);
	public native void setPen(int arg1);
	public native void setPen(QColor arg1);
	public native QBrush brush();
	public native void setBrush(QBrush arg1);
	public native void setBrush(int arg1);
	public native void setBrush(QColor arg1);
	public native QPoint pos();
	public native QColor backgroundColor();
	public native void setBackgroundColor(QColor arg1);
	public native int backgroundMode();
	public native void setBackgroundMode(int arg1);
	public native int rasterOp();
	public native void setRasterOp(int arg1);
	public native QPoint brushOrigin();
	public native void setBrushOrigin(int x, int y);
	public native void setBrushOrigin(QPoint arg1);
	public native boolean hasViewXForm();
	public native boolean hasWorldXForm();
	public native void setViewXForm(boolean arg1);
	public native QRect window();
	public native void setWindow(QRect arg1);
	public native void setWindow(int x, int y, int w, int h);
	public native QRect viewport();
	public native void setViewport(QRect arg1);
	public native void setViewport(int x, int y, int w, int h);
	public native void setWorldXForm(boolean arg1);
	public native QWMatrix worldMatrix();
	public native void setWorldMatrix(QWMatrix arg1, boolean combine);
	public native void setWorldMatrix(QWMatrix arg1);
	public native void saveWorldMatrix();
	public native void restoreWorldMatrix();
	public native void scale(double sx, double sy);
	public native void shear(double sh, double sv);
	public native void rotate(double a);
	public native void translate(double dx, double dy);
	public native void resetXForm();
	public native double translationX();
	public native double translationY();
	public native Object xForm(QPoint arg1);
	public native Object xForm(QRect arg1);
	public native Object xForm(QPointArray arg1);
	public native Object xForm(QPointArray arg1, int index, int npoints);
	public native QPoint xFormDev(QPoint arg1);
	public native QRect xFormDev(QRect arg1);
	public native QPointArray xFormDev(QPointArray arg1);
	public native QPointArray xFormDev(QPointArray arg1, int index, int npoints);
	public native void setClipping(boolean arg1);
	public native boolean hasClipping();
	public native QRegion clipRegion(int arg1);
	public native QRegion clipRegion();
	public native void setClipRect(QRect arg1, int arg2);
	public native void setClipRect(QRect arg1);
	public native void setClipRect(int x, int y, int w, int h, int arg5);
	public native void setClipRect(int x, int y, int w, int h);
	public native void setClipRegion(QRegion arg1, int arg2);
	public native void setClipRegion(QRegion arg1);
	public native void drawPoint(int x, int y);
	public native void drawPoint(QPoint arg1);
	public native void drawPoints(QPointArray a, int index, int npoints);
	public native void drawPoints(QPointArray a, int index);
	public native void drawPoints(QPointArray a);
	public native void moveTo(int x, int y);
	public native void moveTo(QPoint arg1);
	public native void lineTo(int x, int y);
	public native void lineTo(QPoint arg1);
	public native void drawLine(int x1, int y1, int x2, int y2);
	public native void drawLine(QPoint arg1, QPoint arg2);
	public native void drawRect(int x, int y, int w, int h);
	public native void drawRect(QRect arg1);
	public native void drawWinFocusRect(int x, int y, int w, int h);
	public native void drawWinFocusRect(int x, int y, int w, int h, QColor bgColor);
	public native void drawWinFocusRect(QRect arg1);
	public native void drawWinFocusRect(QRect arg1, QColor bgColor);
	public native void drawRoundRect(int x, int y, int w, int h, int arg5, int arg6);
	public native void drawRoundRect(int x, int y, int w, int h, int arg5);
	public native void drawRoundRect(int x, int y, int w, int h);
	public native void drawRoundRect(QRect arg1, int arg2, int arg3);
	public native void drawRoundRect(QRect arg1, int arg2);
	public native void drawRoundRect(QRect arg1);
	public native void drawEllipse(int x, int y, int w, int h);
	public native void drawEllipse(QRect arg1);
	public native void drawArc(int x, int y, int w, int h, int a, int alen);
	public native void drawArc(QRect arg1, int a, int alen);
	public native void drawPie(int x, int y, int w, int h, int a, int alen);
	public native void drawPie(QRect arg1, int a, int alen);
	public native void drawChord(int x, int y, int w, int h, int a, int alen);
	public native void drawChord(QRect arg1, int a, int alen);
	public native void drawLineSegments(QPointArray arg1, int index, int nlines);
	public native void drawLineSegments(QPointArray arg1, int index);
	public native void drawLineSegments(QPointArray arg1);
	public native void drawPolyline(QPointArray arg1, int index, int npoints);
	public native void drawPolyline(QPointArray arg1, int index);
	public native void drawPolyline(QPointArray arg1);
	public native void drawPolygon(QPointArray arg1, boolean winding, int index, int npoints);
	public native void drawPolygon(QPointArray arg1, boolean winding, int index);
	public native void drawPolygon(QPointArray arg1, boolean winding);
	public native void drawPolygon(QPointArray arg1);
	public native void drawConvexPolygon(QPointArray arg1, int index, int npoints);
	public native void drawConvexPolygon(QPointArray arg1, int index);
	public native void drawConvexPolygon(QPointArray arg1);
	public native void drawCubicBezier(QPointArray arg1, int index);
	public native void drawCubicBezier(QPointArray arg1);
	public native void drawPixmap(int x, int y, QPixmap arg3, int sx, int sy, int sw, int sh);
	public native void drawPixmap(int x, int y, QPixmap arg3, int sx, int sy, int sw);
	public native void drawPixmap(int x, int y, QPixmap arg3, int sx, int sy);
	public native void drawPixmap(int x, int y, QPixmap arg3, int sx);
	public native void drawPixmap(int x, int y, QPixmap arg3);
	public native void drawPixmap(QPoint arg1, QPixmap arg2, QRect sr);
	public native void drawPixmap(QPoint arg1, QPixmap arg2);
	public native void drawPixmap(QRect arg1, QPixmap arg2);
	public native void drawImage(int x, int y, QImage arg3, int sx, int sy, int sw, int sh, int conversionFlags);
	public native void drawImage(int x, int y, QImage arg3, int sx, int sy, int sw, int sh);
	public native void drawImage(int x, int y, QImage arg3, int sx, int sy, int sw);
	public native void drawImage(int x, int y, QImage arg3, int sx, int sy);
	public native void drawImage(int x, int y, QImage arg3, int sx);
	public native void drawImage(int x, int y, QImage arg3);
	public native void drawImage(QPoint arg1, QImage arg2, QRect sr, int conversionFlags);
	public native void drawImage(QPoint arg1, QImage arg2, QRect sr);
	public native void drawImage(QPoint arg1, QImage arg2, int conversion_flags);
	public native void drawImage(QPoint arg1, QImage arg2);
	public native void drawImage(QRect arg1, QImage arg2);
	public native void drawTiledPixmap(int x, int y, int w, int h, QPixmap arg5, int sx, int sy);
	public native void drawTiledPixmap(int x, int y, int w, int h, QPixmap arg5, int sx);
	public native void drawTiledPixmap(int x, int y, int w, int h, QPixmap arg5);
	public native void drawTiledPixmap(QRect arg1, QPixmap arg2, QPoint arg3);
	public native void drawTiledPixmap(QRect arg1, QPixmap arg2);
	public native void drawPicture(QPicture arg1);
	public native void drawPicture(int x, int y, QPicture arg3);
	public native void drawPicture(QPoint arg1, QPicture arg2);
	public native void fillRect(int x, int y, int w, int h, QBrush arg5);
	public native void fillRect(QRect arg1, QBrush arg2);
	public native void eraseRect(int x, int y, int w, int h);
	public native void eraseRect(QRect arg1);
	public native void drawText(int x, int y, String arg3, int len, int dir);
	public native void drawText(int x, int y, String arg3, int len);
	public native void drawText(int x, int y, String arg3);
	public native void drawText(QPoint arg1, String arg2, int len, int dir);
	public native void drawText(QPoint arg1, String arg2, int len);
	public native void drawText(QPoint arg1, String arg2);
	public native void drawText(int x, int y, String arg3, int pos, int len, int dir);
	public native void drawText(QPoint p, String arg2, int pos, int len, int dir);
	// void drawText(int arg1,int arg2,int arg3,int arg4,int arg5,const QString& arg6,int arg7,QRect* arg8,QTextParag** arg9); >>>> NOT CONVERTED
	public native void drawText(int x, int y, int w, int h, int flags, String arg6, int len, QRect br);
	public native void drawText(int x, int y, int w, int h, int flags, String arg6, int len);
	public native void drawText(int x, int y, int w, int h, int flags, String arg6);
	// void drawText(const QRect& arg1,int arg2,const QString& arg3,int arg4,QRect* arg5,QTextParag** arg6); >>>> NOT CONVERTED
	public native void drawText(QRect arg1, int flags, String arg3, int len, QRect br);
	public native void drawText(QRect arg1, int flags, String arg3, int len);
	public native void drawText(QRect arg1, int flags, String arg3);
	// QRect boundingRect(int arg1,int arg2,int arg3,int arg4,int arg5,const QString& arg6,int arg7,QTextParag** arg8); >>>> NOT CONVERTED
	public native QRect boundingRect(int x, int y, int w, int h, int flags, String arg6, int len);
	public native QRect boundingRect(int x, int y, int w, int h, int flags, String arg6);
	// QRect boundingRect(const QRect& arg1,int arg2,const QString& arg3,int arg4,QTextParag** arg5); >>>> NOT CONVERTED
	public native QRect boundingRect(QRect arg1, int flags, String arg3, int len);
	public native QRect boundingRect(QRect arg1, int flags, String arg3);
	public native int tabStops();
	public native void setTabStops(int arg1);
	public native int[] tabArray();
	public native void setTabArray(int[] arg1);
	public static native void redirect(QPaintDeviceInterface pdev, QPaintDeviceInterface replacement);
	public static native QPaintDeviceInterface redirect(QPaintDeviceInterface pdev);
	public static native void initialize();
	public static native void cleanup();
	/** 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();
}