summaryrefslogtreecommitdiffstats
path: root/doc/html/tqpaintdevice.html
blob: 082af7e69d9cbd7fe79c16718846dcffd2fe455d (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
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/tqpaintdevice_x11.cpp:47 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>TQPaintDevice Class</title>
<style type="text/css"><!--
fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
body { background: #ffffff; color: black; }
--></style>
</head>
<body>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr bgcolor="#E5E5E5">
<td valign=center>
 <a href="index.html">
<font color="#004faf">Home</font></a>
 | <a href="classes.html">
<font color="#004faf">All&nbsp;Classes</font></a>
 | <a href="mainclasses.html">
<font color="#004faf">Main&nbsp;Classes</font></a>
 | <a href="annotated.html">
<font color="#004faf">Annotated</font></a>
 | <a href="groups.html">
<font color="#004faf">Grouped&nbsp;Classes</font></a>
 | <a href="functions.html">
<font color="#004faf">Functions</font></a>
</td>
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>TQPaintDevice Class Reference</h1>

<p>The TQPaintDevice class is the base class of objects that
can be painted.
<a href="#details">More...</a>
<p><tt>#include &lt;<a href="tqpaintdevice-h.html">tqpaintdevice.h</a>&gt;</tt>
<p>Inherited by <a href="tqwidget.html">TQWidget</a>, <a href="ntqpixmap.html">TQPixmap</a>, <a href="ntqpicture.html">TQPicture</a>, and <a href="ntqprinter.html">TQPrinter</a>.
<p><a href="tqpaintdevice-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li class=fn>virtual <a href="#~TQPaintDevice"><b>~TQPaintDevice</b></a> ()</li>
<li class=fn>bool <a href="#isExtDev"><b>isExtDev</b></a> () const</li>
<li class=fn>bool <a href="#paintingActive"><b>paintingActive</b></a> () const</li>
<li class=fn>virtual HDC <b>handle</b> () const</li>
<li class=fn>virtual TQt::HANDLE <a href="#handle"><b>handle</b></a> () const</li>
<li class=fn>Display * <a href="#x11Display"><b>x11Display</b></a> () const</li>
<li class=fn>int <a href="#x11Screen"><b>x11Screen</b></a> () const</li>
<li class=fn>int <a href="#x11Depth"><b>x11Depth</b></a> () const</li>
<li class=fn>int <a href="#x11Cells"><b>x11Cells</b></a> () const</li>
<li class=fn>TQt::HANDLE <a href="#x11Colormap"><b>x11Colormap</b></a> () const</li>
<li class=fn>bool <a href="#x11DefaultColormap"><b>x11DefaultColormap</b></a> () const</li>
<li class=fn>void * <a href="#x11Visual"><b>x11Visual</b></a> () const</li>
<li class=fn>bool <a href="#x11DefaultVisual"><b>x11DefaultVisual</b></a> () const</li>
</ul>
<h2>Static Public Members</h2>
<ul>
<li class=fn>Display * <a href="#x11AppDisplay"><b>x11AppDisplay</b></a> ()</li>
<li class=fn>int <a href="#x11AppScreen"><b>x11AppScreen</b></a> ()</li>
<li class=fn>int <a href="#x11AppDpiX-2"><b>x11AppDpiX</b></a> ()</li>
<li class=fn>int <a href="#x11AppDpiY-2"><b>x11AppDpiY</b></a> ()</li>
<li class=fn>void <a href="#x11SetAppDpiX-2"><b>x11SetAppDpiX</b></a> ( int&nbsp;dpi )</li>
<li class=fn>void <a href="#x11SetAppDpiY-2"><b>x11SetAppDpiY</b></a> ( int&nbsp;dpi )</li>
<li class=fn>int <a href="#x11AppDepth-2"><b>x11AppDepth</b></a> ()</li>
<li class=fn>int <a href="#x11AppCells"><b>x11AppCells</b></a> ()</li>
<li class=fn>TQt::HANDLE <a href="#x11AppRootWindow"><b>x11AppRootWindow</b></a> ()</li>
<li class=fn>TQt::HANDLE <a href="#x11AppColormap"><b>x11AppColormap</b></a> ()</li>
<li class=fn>bool <a href="#x11AppDefaultColormap"><b>x11AppDefaultColormap</b></a> ()</li>
<li class=fn>void * <a href="#x11AppVisual"><b>x11AppVisual</b></a> ()</li>
<li class=fn>bool <a href="#x11AppDefaultVisual"><b>x11AppDefaultVisual</b></a> ()</li>
<li class=fn>int <a href="#x11AppDepth"><b>x11AppDepth</b></a> ( int&nbsp;screen )</li>
<li class=fn>int <a href="#x11AppCells-2"><b>x11AppCells</b></a> ( int&nbsp;screen )</li>
<li class=fn>TQt::HANDLE <a href="#x11AppRootWindow-2"><b>x11AppRootWindow</b></a> ( int&nbsp;screen )</li>
<li class=fn>TQt::HANDLE <a href="#x11AppColormap-2"><b>x11AppColormap</b></a> ( int&nbsp;screen )</li>
<li class=fn>void * <a href="#x11AppVisual-2"><b>x11AppVisual</b></a> ( int&nbsp;screen )</li>
<li class=fn>bool <a href="#x11AppDefaultColormap-2"><b>x11AppDefaultColormap</b></a> ( int&nbsp;screen )</li>
<li class=fn>bool <a href="#x11AppDefaultVisual-2"><b>x11AppDefaultVisual</b></a> ( int&nbsp;screen )</li>
<li class=fn>int <a href="#x11AppDpiX"><b>x11AppDpiX</b></a> ( int&nbsp;screen )</li>
<li class=fn>int <a href="#x11AppDpiY"><b>x11AppDpiY</b></a> ( int&nbsp;screen )</li>
<li class=fn>void <a href="#x11SetAppDpiX"><b>x11SetAppDpiX</b></a> ( int&nbsp;dpi, int&nbsp;screen )</li>
<li class=fn>void <a href="#x11SetAppDpiY"><b>x11SetAppDpiY</b></a> ( int&nbsp;dpi, int&nbsp;screen )</li>
</ul>
<h2>Protected Members</h2>
<ul>
<li class=fn><a href="#TQPaintDevice"><b>TQPaintDevice</b></a> ( uint&nbsp;devflags )</li>
<li class=fn>virtual bool <a href="#cmd"><b>cmd</b></a> ( int, TQPainter *, TQPDevCmdParam * )</li>
</ul>
<h2>Related Functions</h2>
<ul>
<li class=fn>void <a href="#bitBlt"><b>bitBlt</b></a> ( TQPaintDevice&nbsp;*&nbsp;dst, int&nbsp;dx, int&nbsp;dy, const&nbsp;TQPaintDevice&nbsp;*&nbsp;src, int&nbsp;sx, int&nbsp;sy, int&nbsp;sw, int&nbsp;sh, TQt::RasterOp&nbsp;rop, bool&nbsp;ignoreMask )</li>
<li class=fn>void <a href="#bitBlt-2"><b>bitBlt</b></a> ( TQPaintDevice&nbsp;*&nbsp;dst, const&nbsp;TQPoint&nbsp;&amp;&nbsp;dp, const&nbsp;TQPaintDevice&nbsp;*&nbsp;src, const&nbsp;TQRect&nbsp;&amp;&nbsp;sr, RasterOp&nbsp;rop )</li>
</ul>
<hr><a name="details"></a><h2>Detailed Description</h2>


The TQPaintDevice class is the base class of objects that
can be painted.
<p> 

<p> A paint device is an abstraction of a two-dimensional space that
can be drawn using a <a href="tqpainter.html">TQPainter</a>. The drawing capabilities are
implemented by the subclasses <a href="tqwidget.html">TQWidget</a>, <a href="ntqpixmap.html">TQPixmap</a>, <a href="ntqpicture.html">TQPicture</a> and
<a href="ntqprinter.html">TQPrinter</a>.
<p> The default coordinate system of a paint device has its origin
located at the top-left position. X increases to the right and Y
increases downward. The unit is one pixel. There are several ways
to set up a user-defined coordinate system using the painter, for
example, using <a href="tqpainter.html#setWorldMatrix">TQPainter::setWorldMatrix</a>().
<p> Example (draw on a paint device):
<pre>
    void MyWidget::paintEvent( <a href="tqpaintevent.html">TQPaintEvent</a> * )
    {
        <a href="tqpainter.html">TQPainter</a> p;                       // our painter
        p.<a href="tqpainter.html#begin">begin</a>( this );                  // start painting the widget
        p.<a href="tqpainter.html#setPen">setPen</a>( red );                  // red outline
        p.<a href="tqpainter.html#setBrush">setBrush</a>( yellow );             // yellow fill
        p.<a href="tqpainter.html#drawEllipse">drawEllipse</a>( 10, 20, 100,100 ); // 100x100 ellipse at position (10, 20)
        p.<a href="tqpainter.html#end">end</a>();                          // painting done
    }
    </pre>
 
<p> The bit block transfer is an extremely useful operation for
copying pixels from one paint device to another (or to itself). It
is implemented as the global function <a href="#bitBlt">bitBlt</a>().
<p> Example (scroll widget contents 10 pixels to the right):
<pre>
    <a href="#bitBlt">bitBlt</a>( myWidget, 10, 0, myWidget );
    </pre>
 
<p> <b>Warning:</b> TQt requires that a <a href="ntqapplication.html">TQApplication</a> object exists before
any paint devices can be created. Paint devices access window
system resources, and these resources are not initialized before
an application object is created.
<p>See also <a href="graphics.html">Graphics Classes</a> and <a href="images.html">Image Processing Classes</a>.

<hr><h2>Member Function Documentation</h2>
<h3 class=fn><a name="TQPaintDevice"></a>TQPaintDevice::TQPaintDevice ( uint&nbsp;devflags )<tt> [protected]</tt>
</h3>
Constructs a paint device with internal flags <em>devflags</em>. This
constructor can be invoked only from TQPaintDevice subclasses.

<h3 class=fn><a name="~TQPaintDevice"></a>TQPaintDevice::~TQPaintDevice ()<tt> [virtual]</tt>
</h3>
Destroys the paint device and frees window system resources.

<h3 class=fn>bool <a name="cmd"></a>TQPaintDevice::cmd ( int, <a href="tqpainter.html">TQPainter</a>&nbsp;*, TQPDevCmdParam * )<tt> [virtual protected]</tt>
</h3>
Internal virtual function that interprets drawing commands from
the painter.
<p> Implemented by subclasses that have no direct support for drawing
graphics (external paint devices, for example, <a href="ntqpicture.html">TQPicture</a>).

<h3 class=fn>TQt::HANDLE <a name="handle"></a>TQPaintDevice::handle () const<tt> [virtual]</tt>
</h3>
Returns the window system handle of the paint device, for
low-level access. Using this function is not portable.
<p> The HANDLE type varies with platform; see <a href="tqpaintdevice-h.html">tqpaintdevice.h</a> and
<a href="qwindowdefs-h.html">ntqwindowdefs.h</a> for details.
<p> <p>See also <a href="#x11Display">x11Display</a>().

<h3 class=fn>bool <a name="isExtDev"></a>TQPaintDevice::isExtDev () const
</h3>

<p> Returns TRUE if the device is an external paint device; otherwise
returns FALSE.
<p> External paint devices cannot be <a href="#bitBlt">bitBlt</a>()'ed from. <a href="ntqpicture.html">TQPicture</a> and
<a href="ntqprinter.html">TQPrinter</a> are external paint devices.

<h3 class=fn>bool <a name="paintingActive"></a>TQPaintDevice::paintingActive () const
</h3>

<p> Returns TRUE if the device is being painted, i.e. someone has
called <a href="tqpainter.html#begin">TQPainter::begin</a>() but not yet called <a href="tqpainter.html#end">TQPainter::end</a>() for
this device; otherwise returns FALSE.
<p> <p>See also <a href="tqpainter.html#isActive">TQPainter::isActive</a>().

<h3 class=fn>int <a name="x11AppCells"></a>TQPaintDevice::x11AppCells ()<tt> [static]</tt>
</h3>

<p> Returns the number of entries in the colormap for the default
screen of the X display global to the application (X11
only). Using this function is not portable.
<p> <p>See also <a href="#x11Colormap">x11Colormap</a>().

<h3 class=fn>int <a name="x11AppCells-2"></a>TQPaintDevice::x11AppCells ( int&nbsp;screen )<tt> [static]</tt>
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> 
<p> Returns the number of entries in the colormap for screen <em>screen</em>
of the X display global to the application (X11 only). Using this
function is not portable.
<p> <p>See also <a href="#x11Colormap">x11Colormap</a>().

<h3 class=fn>TQt::HANDLE <a name="x11AppColormap"></a>TQPaintDevice::x11AppColormap ()<tt> [static]</tt>
</h3>

<p> Returns the colormap for the default screen of the X display
global to the application (X11 only). Using this function is not
portable.
<p> <p>See also <a href="#x11Cells">x11Cells</a>().

<h3 class=fn>TQt::HANDLE <a name="x11AppColormap-2"></a>TQPaintDevice::x11AppColormap ( int&nbsp;screen )<tt> [static]</tt>
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> 
<p> Returns the colormap for screen <em>screen</em> of the X display global
to the application (X11 only). Using this function is not
portable.
<p> <p>See also <a href="#x11Cells">x11Cells</a>().

<h3 class=fn>bool <a name="x11AppDefaultColormap"></a>TQPaintDevice::x11AppDefaultColormap ()<tt> [static]</tt>
</h3>

<p> Returns the default colormap for the default screen of the X
display global to the application (X11 only). Using this function
is not portable.
<p> <p>See also <a href="#x11Cells">x11Cells</a>().

<h3 class=fn>bool <a name="x11AppDefaultColormap-2"></a>TQPaintDevice::x11AppDefaultColormap ( int&nbsp;screen )<tt> [static]</tt>
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> 
<p> Returns the default colormap for screen <em>screen</em> of the X display
global to the application (X11 only). Using this function is not
portable.
<p> <p>See also <a href="#x11Cells">x11Cells</a>().

<h3 class=fn>bool <a name="x11AppDefaultVisual"></a>TQPaintDevice::x11AppDefaultVisual ()<tt> [static]</tt>
</h3>

<p> Returns TRUE if the Visual used is the default for the default
screen of the X display global to the application (X11 only);
otherwise returns FALSE. Using this function is not portable.

<h3 class=fn>bool <a name="x11AppDefaultVisual-2"></a>TQPaintDevice::x11AppDefaultVisual ( int&nbsp;screen )<tt> [static]</tt>
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> 
<p> Returns TRUE if the Visual used is the default for screen
<em>screen</em> of the X display global to the application (X11 only);
otherwise returns FALSE. Using this function is not portable.

<h3 class=fn>int <a name="x11AppDepth"></a>TQPaintDevice::x11AppDepth ( int&nbsp;screen )<tt> [static]</tt>
</h3>

<p> Returns the depth for screen <em>screen</em> of the X display global to
the application (X11 only). Using this function is not portable.
<p> <p>See also <a href="ntqpixmap.html#defaultDepth">TQPixmap::defaultDepth</a>().

<h3 class=fn>int <a name="x11AppDepth-2"></a>TQPaintDevice::x11AppDepth ()<tt> [static]</tt>
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> 
<p> Returns the depth for the default screen of the X display global
to the application (X11 only). Using this function is not
portable.
<p> <p>See also <a href="ntqpixmap.html#defaultDepth">TQPixmap::defaultDepth</a>().

<h3 class=fn>Display * <a name="x11AppDisplay"></a>TQPaintDevice::x11AppDisplay ()<tt> [static]</tt>
</h3>

<p> Returns a pointer to the X display global to the application (X11
only). Using this function is not portable.
<p> <p>See also <a href="#handle">handle</a>().

<h3 class=fn>int <a name="x11AppDpiX"></a>TQPaintDevice::x11AppDpiX ( int&nbsp;screen )<tt> [static]</tt>
</h3>
Returns the horizontal DPI of the X display (X11 only) for screen
<em>screen</em>. Using this function is not portable. See
<a href="tqpaintdevicemetrics.html">TQPaintDeviceMetrics</a> for portable access to related information.
Using this function is not portable.
<p> <p>See also <a href="#x11AppDpiY">x11AppDpiY</a>(), <a href="#x11SetAppDpiX">x11SetAppDpiX</a>(), and <a href="tqpaintdevicemetrics.html#logicalDpiX">TQPaintDeviceMetrics::logicalDpiX</a>().

<h3 class=fn>int <a name="x11AppDpiX-2"></a>TQPaintDevice::x11AppDpiX ()<tt> [static]</tt>
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Returns the horizontal DPI of the X display (X11 only) for the
default screen. Using this function is not portable. See
<a href="tqpaintdevicemetrics.html">TQPaintDeviceMetrics</a> for portable access to related information.
Using this function is not portable.

<h3 class=fn>int <a name="x11AppDpiY"></a>TQPaintDevice::x11AppDpiY ( int&nbsp;screen )<tt> [static]</tt>
</h3>
Returns the vertical DPI of the X11 display (X11 only) for screen
<em>screen</em>.  Using this function is not portable. See
<a href="tqpaintdevicemetrics.html">TQPaintDeviceMetrics</a> for portable access to related information.
Using this function is not portable.
<p> <p>See also <a href="#x11AppDpiX">x11AppDpiX</a>(), <a href="#x11SetAppDpiY">x11SetAppDpiY</a>(), and <a href="tqpaintdevicemetrics.html#logicalDpiY">TQPaintDeviceMetrics::logicalDpiY</a>().

<h3 class=fn>int <a name="x11AppDpiY-2"></a>TQPaintDevice::x11AppDpiY ()<tt> [static]</tt>
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Returns the vertical DPI of the X11 display (X11 only) for the
default screen.  Using this function is not portable. See
<a href="tqpaintdevicemetrics.html">TQPaintDeviceMetrics</a> for portable access to related information.
Using this function is not portable.
<p> <p>See also <a href="#x11AppDpiX">x11AppDpiX</a>(), <a href="#x11SetAppDpiY">x11SetAppDpiY</a>(), and <a href="tqpaintdevicemetrics.html#logicalDpiY">TQPaintDeviceMetrics::logicalDpiY</a>().

<h3 class=fn>TQt::HANDLE <a name="x11AppRootWindow"></a>TQPaintDevice::x11AppRootWindow ()<tt> [static]</tt>
</h3>

<p> Returns the root window for the default screen of the X display
global to the applicatoin (X11 only). Using this function is not
portable.

<h3 class=fn>TQt::HANDLE <a name="x11AppRootWindow-2"></a>TQPaintDevice::x11AppRootWindow ( int&nbsp;screen )<tt> [static]</tt>
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> 
<p> Returns the root window for screen <em>screen</em> of the X display
global to the applicatoin (X11 only). Using this function is not
portable.

<h3 class=fn>int <a name="x11AppScreen"></a>TQPaintDevice::x11AppScreen ()<tt> [static]</tt>
</h3>

<p> Returns the screen number on the X display global to the
application (X11 only). Using this function is not portable.

<h3 class=fn>void * <a name="x11AppVisual"></a>TQPaintDevice::x11AppVisual ()<tt> [static]</tt>
</h3>

<p> Returns the Visual for the default screen of the X display global
to the application (X11 only). Using this function is not
portable.

<h3 class=fn>void * <a name="x11AppVisual-2"></a>TQPaintDevice::x11AppVisual ( int&nbsp;screen )<tt> [static]</tt>
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> 
<p> Returns the Visual for screen <em>screen</em> of the X display global to
the application (X11 only). Using this function is not portable.

<h3 class=fn>int <a name="x11Cells"></a>TQPaintDevice::x11Cells () const
</h3>

<p> Returns the number of entries in the colormap of the X display for
the paint device (X11 only). Using this function is not portable.
<p> <p>See also <a href="#x11Colormap">x11Colormap</a>().

<h3 class=fn>TQt::HANDLE <a name="x11Colormap"></a>TQPaintDevice::x11Colormap () const
</h3>

<p> Returns the colormap of the X display for the paint device (X11
only). Using this function is not portable.
<p> <p>See also <a href="#x11Cells">x11Cells</a>().

<h3 class=fn>bool <a name="x11DefaultColormap"></a>TQPaintDevice::x11DefaultColormap () const
</h3>

<p> Returns the default colormap of the X display for the paint device
(X11 only). Using this function is not portable.
<p> <p>See also <a href="#x11Cells">x11Cells</a>().

<h3 class=fn>bool <a name="x11DefaultVisual"></a>TQPaintDevice::x11DefaultVisual () const
</h3>

<p> Returns the default Visual of the X display for the paint device
(X11 only). Using this function is not portable.

<h3 class=fn>int <a name="x11Depth"></a>TQPaintDevice::x11Depth () const
</h3>

<p> Returns the depth of the X display for the paint device (X11
only). Using this function is not portable.
<p> <p>See also <a href="ntqpixmap.html#defaultDepth">TQPixmap::defaultDepth</a>().

<h3 class=fn>Display * <a name="x11Display"></a>TQPaintDevice::x11Display () const
</h3>

<p> Returns a pointer to the X display for the paint device (X11
only). Using this function is not portable.
<p> <p>See also <a href="#handle">handle</a>().

<h3 class=fn>int <a name="x11Screen"></a>TQPaintDevice::x11Screen () const
</h3>

<p> Returns the screen number on the X display for the paint device
(X11 only). Using this function is not portable.

<h3 class=fn>void <a name="x11SetAppDpiX"></a>TQPaintDevice::x11SetAppDpiX ( int&nbsp;dpi, int&nbsp;screen )<tt> [static]</tt>
</h3>
Sets the value returned by <a href="#x11AppDpiX">x11AppDpiX</a>() to <em>dpi</em> for screen
<em>screen</em>. The default is determined by the display configuration.
Changing this value will alter the scaling of fonts and many other
metrics and is not recommended. Using this function is not
portable.
<p> <p>See also <a href="#x11SetAppDpiY">x11SetAppDpiY</a>().

<h3 class=fn>void <a name="x11SetAppDpiX-2"></a>TQPaintDevice::x11SetAppDpiX ( int&nbsp;dpi )<tt> [static]</tt>
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Sets the value returned by <a href="#x11AppDpiX">x11AppDpiX</a>() to <em>dpi</em> for the default
screen. The default is determined by the display configuration.
Changing this value will alter the scaling of fonts and many other
metrics and is not recommended. Using this function is not
portable.
<p> 
<h3 class=fn>void <a name="x11SetAppDpiY"></a>TQPaintDevice::x11SetAppDpiY ( int&nbsp;dpi, int&nbsp;screen )<tt> [static]</tt>
</h3>
Sets the value returned by <a href="#x11AppDpiY">x11AppDpiY</a>() to <em>dpi</em> for screen
<em>screen</em>. The default is determined by the display configuration.
Changing this value will alter the scaling of fonts and many other
metrics and is not recommended. Using this function is not
portable.
<p> <p>See also <a href="#x11SetAppDpiX">x11SetAppDpiX</a>().

<h3 class=fn>void <a name="x11SetAppDpiY-2"></a>TQPaintDevice::x11SetAppDpiY ( int&nbsp;dpi )<tt> [static]</tt>
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Sets the value returned by <a href="#x11AppDpiY">x11AppDpiY</a>() to <em>dpi</em> for the default
screen.  The default is determined by the display configuration.
Changing this value will alter the scaling of fonts and many other
metrics and is not recommended. Using this function is not
portable.

<h3 class=fn>void * <a name="x11Visual"></a>TQPaintDevice::x11Visual () const
</h3>

<p> Returns the Visual of the X display for the paint device (X11
only). Using this function is not portable.

<hr><h2>Related Functions</h2>
<h3 class=fn>void <a name="bitBlt"></a>bitBlt ( <a href="tqpaintdevice.html">TQPaintDevice</a>&nbsp;*&nbsp;dst, int&nbsp;dx, int&nbsp;dy, const&nbsp;<a href="tqpaintdevice.html">TQPaintDevice</a>&nbsp;*&nbsp;src, int&nbsp;sx, int&nbsp;sy, int&nbsp;sw, int&nbsp;sh, <a href="ntqt.html#RasterOp-enum">TQt::RasterOp</a>&nbsp;rop, bool&nbsp;ignoreMask )
</h3>

<p> Copies a block of pixels from <em>src</em> to <em>dst</em>, perhaps merging
each pixel according to the <a href="ntqt.html#RasterOp-enum">raster operation</a>
<em>rop</em>. <em>sx</em>, <em>sy</em>
is the top-left pixel in <em>src</em> (0, 0) by default, <em>dx</em>, <em>dy</em> is
the top-left position in <em>dst</em> and <em>sw</em>, <em>sh</em> is the size of
the copied block (all of <em>src</em> by default).
<p> The most common values for <em>rop</em> are CopyROP and XorROP; the <a href="ntqt.html#RasterOp-enum">TQt::RasterOp</a> documentation defines all the possible values.
<p> If <em>ignoreMask</em> is FALSE (the default) and <em>src</em> is a
masked <a href="ntqpixmap.html">TQPixmap</a>, the entire blit is masked by <em>src</em>->mask().
<p> If <em>src</em>, <em>dst</em>, <em>sw</em> or <em>sh</em> is 0, <a href="#bitBlt">bitBlt</a>() does nothing. If
<em>sw</em> or <em>sh</em> is negative bitBlt() copies starting at <em>sx</em> (and
respectively, <em>sy</em>) and ending at the right end (respectively,
bottom) of <em>src</em>.
<p> <em>src</em> must be a <a href="tqwidget.html">TQWidget</a> or TQPixmap. You cannot blit from a
<a href="ntqprinter.html">TQPrinter</a>, for example. bitBlt() does nothing if you attempt to
blit from an unsupported device.
<p> bitBlt() does nothing if <em>src</em> has a greater depth than <em>dst</em>.
If you need to for example, draw a 24-bit pixmap on an 8-bit
widget, you must use drawPixmap().

<h3 class=fn>void <a name="bitBlt-2"></a>bitBlt ( <a href="tqpaintdevice.html">TQPaintDevice</a>&nbsp;*&nbsp;dst, const&nbsp;<a href="ntqpoint.html">TQPoint</a>&nbsp;&amp;&nbsp;dp, const&nbsp;<a href="tqpaintdevice.html">TQPaintDevice</a>&nbsp;*&nbsp;src, const&nbsp;<a href="ntqrect.html">TQRect</a>&nbsp;&amp;&nbsp;sr, RasterOp&nbsp;rop )
</h3>

<p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Overloaded <a href="#bitBlt">bitBlt</a>() with the destination point <em>dp</em> and source
rectangle <em>sr</em>.

<!-- eof -->
<hr><p>
This file is part of the <a href="index.html">TQt toolkit</a>.
Copyright &copy; 1995-2007
<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
<table width=100% cellspacing=0 border=0><tr>
<td>Copyright &copy; 2007
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
<td align=right><div align=right>TQt 3.3.8</div>
</table></div></address></body>
</html>