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

import org.kde.qt.Qt;

public class QPixmap extends Qt implements QPaintDeviceInterface {
	protected QPixmap(Class dummy){super((Class) null);}
	public static final int Auto = 0;
	public static final int Color = 1;
	public static final int Mono = 2;

	public static final int DefaultOptim = 0;
	public static final int NoOptim = 1;
	public static final int MemoryOptim = NoOptim;
	public static final int NormalOptim = 2;
	public static final int BestOptim = 3;

	public QPixmap() {
		super((Class) null);
		newQPixmap();
	}
	private native void newQPixmap();
	public QPixmap(QImage image) {
		super((Class) null);
		newQPixmap(image);
	}
	private native void newQPixmap(QImage image);
	public QPixmap(int w, int h, int depth, int arg4) {
		super((Class) null);
		newQPixmap(w,h,depth,arg4);
	}
	private native void newQPixmap(int w, int h, int depth, int arg4);
	public QPixmap(int w, int h, int depth) {
		super((Class) null);
		newQPixmap(w,h,depth);
	}
	private native void newQPixmap(int w, int h, int depth);
	public QPixmap(int w, int h) {
		super((Class) null);
		newQPixmap(w,h);
	}
	private native void newQPixmap(int w, int h);
	public QPixmap(QSize arg1, int depth, int arg3) {
		super((Class) null);
		newQPixmap(arg1,depth,arg3);
	}
	private native void newQPixmap(QSize arg1, int depth, int arg3);
	public QPixmap(QSize arg1, int depth) {
		super((Class) null);
		newQPixmap(arg1,depth);
	}
	private native void newQPixmap(QSize arg1, int depth);
	public QPixmap(QSize arg1) {
		super((Class) null);
		newQPixmap(arg1);
	}
	private native void newQPixmap(QSize arg1);
	public QPixmap(String fileName, String format, int mode) {
		super((Class) null);
		newQPixmap(fileName,format,mode);
	}
	private native void newQPixmap(String fileName, String format, int mode);
	public QPixmap(String fileName, String format) {
		super((Class) null);
		newQPixmap(fileName,format);
	}
	private native void newQPixmap(String fileName, String format);
	public QPixmap(String fileName) {
		super((Class) null);
		newQPixmap(fileName);
	}
	private native void newQPixmap(String fileName);
	public QPixmap(String[] xpm) {
		super((Class) null);
		newQPixmap(xpm);
	}
	private native void newQPixmap(String[] xpm);
	public QPixmap(byte[] data) {
		super((Class) null);
		newQPixmap(data);
	}
	private native void newQPixmap(byte[] data);
	public QPixmap(QPixmap arg1) {
		super((Class) null);
		newQPixmap(arg1);
	}
	private native void newQPixmap(QPixmap arg1);
	public native boolean isNull();
	public native int width();
	public native int height();
	public native QSize size();
	public native QRect rect();
	public native int depth();
	public native void fill(QColor fillColor);
	public native void fill();
	public native void fill(QWidget arg1, int xofs, int yofs);
	public native void fill(QWidget arg1, QPoint ofs);
	public native void resize(int width, int height);
	public native void resize(QSize arg1);
	public native QBitmap mask();
	public native void setMask(QBitmap arg1);
	public native boolean selfMask();
	public native boolean hasAlpha();
	public native boolean hasAlphaChannel();
	public native QBitmap createHeuristicMask(boolean clipTight);
	public native QBitmap createHeuristicMask();
	public native Object xForm(QWMatrix arg1);
	public native QImage convertToImage();
	public native boolean convertFromImage(QImage arg1, int mode);
	public native boolean convertFromImage(QImage arg1);
	public native boolean load(String fileName, String format, int mode);
	public native boolean load(String fileName, String format);
	public native boolean load(String fileName);
	public native boolean loadFromData(char[] buf, int len, String format, int mode);
	public native boolean loadFromData(char[] buf, int len, String format);
	public native boolean loadFromData(char[] buf, int len);
	public native boolean loadFromData(byte[] data, String format, int conversion_flags);
	public native boolean loadFromData(byte[] data, String format);
	public native boolean loadFromData(byte[] data);
	public native boolean save(String fileName, String format, int quality);
	public native boolean save(String fileName, String format);
	public native boolean save(QIODeviceInterface device, String format, int quality);
	public native boolean save(QIODeviceInterface device, String format);
	public native int serialNumber();
	public native int optimization();
	public native void setOptimization(int arg1);
	public native void detach();
	public native boolean isQBitmap();
	public static native int defaultDepth();
	public static native QPixmap fromMimeSource(String abs_name);
	public static native QPixmap grabWindow(long arg1, int x, int y, int w, int h);
	public static native QPixmap grabWindow(long arg1, int x, int y, int w);
	public static native QPixmap grabWindow(long arg1, int x, int y);
	public static native QPixmap grabWindow(long arg1, int x);
	public static native QPixmap grabWindow(long arg1);
	public static native QPixmap grabWidget(QWidget widget, int x, int y, int w, int h);
	public static native QPixmap grabWidget(QWidget widget, int x, int y, int w);
	public static native QPixmap grabWidget(QWidget widget, int x, int y);
	public static native QPixmap grabWidget(QWidget widget, int x);
	public static native QPixmap grabWidget(QWidget widget);
	public static native QWMatrix trueMatrix(QWMatrix arg1, int w, int h);
	public static native String imageFormat(String fileName);
	public static native int defaultOptimization();
	public static native void setDefaultOptimization(int arg1);
	public QPixmap(int w, int h, char[] data, boolean isXbitmap) {
		super((Class) null);
		newQPixmap(w,h,data,isXbitmap);
	}
	private native void newQPixmap(int w, int h, char[] data, boolean isXbitmap);
	protected native int metric(int 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();
	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);
	public native boolean loadFromData(char[] data);
	
	/** Internal method */
	protected native long paintDevice();

}