summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/trinitydesktop/qt/TQPixmap.java
blob: 40ad2f79a286e770a0c43f98aaf739729de836e7 (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.trinitydesktop.qt;

import org.trinitydesktop.qt.Qt;

public class TQPixmap extends Qt implements TQPaintDeviceInterface {
	protected TQPixmap(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 TQPixmap() {
		super((Class) null);
		newTQPixmap();
	}
	private native void newTQPixmap();
	public TQPixmap(TQImage image) {
		super((Class) null);
		newTQPixmap(image);
	}
	private native void newTQPixmap(TQImage image);
	public TQPixmap(int w, int h, int depth, int arg4) {
		super((Class) null);
		newTQPixmap(w,h,depth,arg4);
	}
	private native void newTQPixmap(int w, int h, int depth, int arg4);
	public TQPixmap(int w, int h, int depth) {
		super((Class) null);
		newTQPixmap(w,h,depth);
	}
	private native void newTQPixmap(int w, int h, int depth);
	public TQPixmap(int w, int h) {
		super((Class) null);
		newTQPixmap(w,h);
	}
	private native void newTQPixmap(int w, int h);
	public TQPixmap(TQSize arg1, int depth, int arg3) {
		super((Class) null);
		newTQPixmap(arg1,depth,arg3);
	}
	private native void newTQPixmap(TQSize arg1, int depth, int arg3);
	public TQPixmap(TQSize arg1, int depth) {
		super((Class) null);
		newTQPixmap(arg1,depth);
	}
	private native void newTQPixmap(TQSize arg1, int depth);
	public TQPixmap(TQSize arg1) {
		super((Class) null);
		newTQPixmap(arg1);
	}
	private native void newTQPixmap(TQSize arg1);
	public TQPixmap(String fileName, String format, int mode) {
		super((Class) null);
		newTQPixmap(fileName,format,mode);
	}
	private native void newTQPixmap(String fileName, String format, int mode);
	public TQPixmap(String fileName, String format) {
		super((Class) null);
		newTQPixmap(fileName,format);
	}
	private native void newTQPixmap(String fileName, String format);
	public TQPixmap(String fileName) {
		super((Class) null);
		newTQPixmap(fileName);
	}
	private native void newTQPixmap(String fileName);
	public TQPixmap(String[] xpm) {
		super((Class) null);
		newTQPixmap(xpm);
	}
	private native void newTQPixmap(String[] xpm);
	public TQPixmap(byte[] data) {
		super((Class) null);
		newTQPixmap(data);
	}
	private native void newTQPixmap(byte[] data);
	public TQPixmap(TQPixmap arg1) {
		super((Class) null);
		newTQPixmap(arg1);
	}
	private native void newTQPixmap(TQPixmap arg1);
	public native boolean isNull();
	public native int width();
	public native int height();
	public native TQSize size();
	public native TQRect rect();
	public native int depth();
	public native void fill(TQColor fillColor);
	public native void fill();
	public native void fill(TQWidget arg1, int xofs, int yofs);
	public native void fill(TQWidget arg1, TQPoint ofs);
	public native void resize(int width, int height);
	public native void resize(TQSize arg1);
	public native TQBitmap mask();
	public native void setMask(TQBitmap arg1);
	public native boolean selfMask();
	public native boolean hasAlpha();
	public native boolean hasAlphaChannel();
	public native TQBitmap createHeuristicMask(boolean clipTight);
	public native TQBitmap createHeuristicMask();
	public native Object xForm(TQWMatrix arg1);
	public native TQImage convertToImage();
	public native boolean convertFromImage(TQImage arg1, int mode);
	public native boolean convertFromImage(TQImage 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(TQIODeviceInterface device, String format, int quality);
	public native boolean save(TQIODeviceInterface device, String format);
	public native int serialNumber();
	public native int optimization();
	public native void setOptimization(int arg1);
	public native void detach();
	public native boolean isTQBitmap();
	public static native int defaultDepth();
	public static native TQPixmap fromMimeSource(String abs_name);
	public static native TQPixmap grabWindow(long arg1, int x, int y, int w, int h);
	public static native TQPixmap grabWindow(long arg1, int x, int y, int w);
	public static native TQPixmap grabWindow(long arg1, int x, int y);
	public static native TQPixmap grabWindow(long arg1, int x);
	public static native TQPixmap grabWindow(long arg1);
	public static native TQPixmap grabWidget(TQWidget widget, int x, int y, int w, int h);
	public static native TQPixmap grabWidget(TQWidget widget, int x, int y, int w);
	public static native TQPixmap grabWidget(TQWidget widget, int x, int y);
	public static native TQPixmap grabWidget(TQWidget widget, int x);
	public static native TQPixmap grabWidget(TQWidget widget);
	public static native TQWMatrix trueMatrix(TQWMatrix 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 TQPixmap(int w, int h, char[] data, boolean isXbitmap) {
		super((Class) null);
		newTQPixmap(w,h,data,isXbitmap);
	}
	private native void newTQPixmap(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,TQPainter* arg2,TQPDevCmdParam* arg3); >>>> NOT CONVERTED
	protected native int fontMet(TQFont arg1, int arg2, String arg3, int arg4);
	protected native int fontMet(TQFont arg1, int arg2, String arg3);
	protected native int fontMet(TQFont arg1, int arg2);
	protected native int fontInf(TQFont arg1, int arg2);
	public native boolean loadFromData(char[] data);

	/** Internal method */
	protected native long paintDevice();

}