~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qpaintdevice-qt3.html

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
<!DOCTYPE html
 
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/gui/painting/qpaintdevice_x11.cpp -->
 
6
<head>
 
7
    <title>Qt 4.0: Qt 3 Support Members for QPaintDevice</title>
 
8
    <style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
 
9
a:link { color: #004faf; text-decoration: none }
 
10
a:visited { color: #672967; text-decoration: none }
 
11
td.postheader { font-family: sans-serif }
 
12
tr.address { font-family: sans-serif }
 
13
body { background: #ffffff; color: black; }</style>
 
14
</head>
 
15
<body>
 
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
 
17
<tr>
 
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
 
19
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="annotated.html"><font color="#004faf">Annotated</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
 
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">Qt 3 Support Members for QPaintDevice</h1>
 
21
<p><b>The following class members are part of the Qt 3 support layer.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
 
22
<p><ul><li><a href="qpaintdevice.html">QPaintDevice class reference</a></li></ul></p>
 
23
<h3>Public Functions</h3>
 
24
<ul>
 
25
<li><div class="fn"/>int <b><a href="qpaintdevice-qt3.html#x11Cells">x11Cells</a></b> () const</li>
 
26
<li><div class="fn"/>Qt::HANDLE <b><a href="qpaintdevice-qt3.html#x11Colormap">x11Colormap</a></b> () const</li>
 
27
<li><div class="fn"/>bool <b><a href="qpaintdevice-qt3.html#x11DefaultColormap">x11DefaultColormap</a></b> () const</li>
 
28
<li><div class="fn"/>bool <b><a href="qpaintdevice-qt3.html#x11DefaultVisual">x11DefaultVisual</a></b> () const</li>
 
29
<li><div class="fn"/>int <b><a href="qpaintdevice-qt3.html#x11Depth">x11Depth</a></b> () const</li>
 
30
<li><div class="fn"/>Display * <b><a href="qpaintdevice-qt3.html#x11Display">x11Display</a></b> () const</li>
 
31
<li><div class="fn"/>int <b><a href="qpaintdevice-qt3.html#x11Screen">x11Screen</a></b> () const</li>
 
32
<li><div class="fn"/>void * <b><a href="qpaintdevice-qt3.html#x11Visual">x11Visual</a></b> () const</li>
 
33
</ul>
 
34
<h3>Static Public Members</h3>
 
35
<ul>
 
36
<li><div class="fn"/>int <b><a href="qpaintdevice-qt3.html#x11AppCells">x11AppCells</a></b> ( int <i>screen</i> = -1 )</li>
 
37
<li><div class="fn"/>Qt::HANDLE <b><a href="qpaintdevice-qt3.html#x11AppColormap">x11AppColormap</a></b> ( int <i>screen</i> = -1 )</li>
 
38
<li><div class="fn"/>bool <b><a href="qpaintdevice-qt3.html#x11AppDefaultColormap">x11AppDefaultColormap</a></b> ( int <i>screen</i> = -1 )</li>
 
39
<li><div class="fn"/>bool <b><a href="qpaintdevice-qt3.html#x11AppDefaultVisual">x11AppDefaultVisual</a></b> ( int <i>screen</i> = -1 )</li>
 
40
<li><div class="fn"/>int <b><a href="qpaintdevice-qt3.html#x11AppDepth">x11AppDepth</a></b> ( int <i>screen</i> = -1 )</li>
 
41
<li><div class="fn"/>Display * <b><a href="qpaintdevice-qt3.html#x11AppDisplay">x11AppDisplay</a></b> ()</li>
 
42
<li><div class="fn"/>int <b><a href="qpaintdevice-qt3.html#x11AppDpiX">x11AppDpiX</a></b> ( int <i>screen</i> = -1 )</li>
 
43
<li><div class="fn"/>int <b><a href="qpaintdevice-qt3.html#x11AppDpiY">x11AppDpiY</a></b> ( int <i>screen</i> = -1 )</li>
 
44
<li><div class="fn"/>Qt::HANDLE <b><a href="qpaintdevice-qt3.html#x11AppRootWindow">x11AppRootWindow</a></b> ( int <i>screen</i> = -1 )</li>
 
45
<li><div class="fn"/>int <b><a href="qpaintdevice-qt3.html#x11AppScreen">x11AppScreen</a></b> ()</li>
 
46
<li><div class="fn"/>void * <b><a href="qpaintdevice-qt3.html#x11AppVisual">x11AppVisual</a></b> ( int <i>screen</i> = -1 )</li>
 
47
<li><div class="fn"/>void <b><a href="qpaintdevice-qt3.html#x11SetAppDpiX">x11SetAppDpiX</a></b> ( int <i>dpi</i>, int <i>screen</i> )</li>
 
48
<li><div class="fn"/>void <b><a href="qpaintdevice-qt3.html#x11SetAppDpiY">x11SetAppDpiY</a></b> ( int <i>dpi</i>, int <i>screen</i> )</li>
 
49
</ul>
 
50
<hr />
 
51
<h2>Member Function Documentation</h2>
 
52
<h3 class="fn"><a name="x11AppCells"></a>int QPaintDevice::x11AppCells ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
 
53
<p>Use <a href="qx11info.html#cells">QX11Info::cells</a>() instead.</p>
 
54
<p>For example, if you have code like</p>
 
55
<pre><font color="#404040">    int cells = QPaintDevice::x11AppCells(screen);</font></pre>
 
56
<p>you can rewrite it as</p>
 
57
<pre>    int cells = qApp-&gt;x11Info(screen).cells();</pre>
 
58
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
59
<h3 class="fn"><a name="x11AppColormap"></a><a href="qt.html#HANDLE-typedef">Qt::HANDLE</a> QPaintDevice::x11AppColormap ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
 
60
<p>Use <a href="qx11info.html#colormap">QX11Info::colormap</a>() instead.</p>
 
61
<p>For example, if you have code like</p>
 
62
<pre><font color="#404040">    unsigned long colormap = QPaintDevice::x11AppColormap(screen);</font></pre>
 
63
<p>you can rewrite it as</p>
 
64
<pre>    unsigned long colormap = qApp-&gt;x11Info(screen).colormap();</pre>
 
65
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
66
<h3 class="fn"><a name="x11AppDefaultColormap"></a>bool QPaintDevice::x11AppDefaultColormap ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
 
67
<p>Use QX11Info::isDefaultColormap() instead.</p>
 
68
<p>For example, if you have code like</p>
 
69
<pre><font color="#404040">    bool isDefault = QPaintDevice::x11AppDefaultColormap(screen);</font></pre>
 
70
<p>you can rewrite it as</p>
 
71
<pre>    bool isDefault = qApp-&gt;x11Info(screen).isDefaultColormap();</pre>
 
72
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
73
<h3 class="fn"><a name="x11AppDefaultVisual"></a>bool QPaintDevice::x11AppDefaultVisual ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
 
74
<p>Use QX11Info::isDefaultVisual() instead.</p>
 
75
<p>For example, if you have code like</p>
 
76
<pre><font color="#404040">    bool isDefault = QPaintDevice::x11AppDefaultVisual(screen);</font></pre>
 
77
<p>you can rewrite it as</p>
 
78
<pre>    bool isDefault = qApp-&gt;x11Info(screen).isDefaultVisual();</pre>
 
79
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
80
<h3 class="fn"><a name="x11AppDepth"></a>int QPaintDevice::x11AppDepth ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
 
81
<p>Use <a href="qx11info.html#depth">QX11Info::depth</a>() instead.</p>
 
82
<p>For example, if you have code like</p>
 
83
<pre><font color="#404040">    int depth = QPaintDevice::x11AppDepth(screen);</font></pre>
 
84
<p>you can rewrite it as</p>
 
85
<pre>    int depth = qApp-&gt;x11Info(screen).depth();</pre>
 
86
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
87
<h3 class="fn"><a name="x11AppDisplay"></a>Display * QPaintDevice::x11AppDisplay ()&nbsp;&nbsp;<tt> [static]</tt></h3>
 
88
<p>Use <a href="qx11info.html#display">QX11Info::display</a>() instead.</p>
 
89
<p>For example, if you have code like</p>
 
90
<pre><font color="#404040">    Display *display = QPaintDevice::x11AppDisplay();</font></pre>
 
91
<p>you can rewrite it as</p>
 
92
<pre>    Display *display = qApp-&gt;x11Info().display();</pre>
 
93
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
94
<h3 class="fn"><a name="x11AppDpiX"></a>int QPaintDevice::x11AppDpiX ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
 
95
<p>Use QX11Info::dpiX() instead.</p>
 
96
<p>For example, if you have code like</p>
 
97
<pre><font color="#404040">    bool isDefault = QPaintDevice::x11AppDpiX(screen);</font></pre>
 
98
<p>you can rewrite it as</p>
 
99
<pre>    bool isDefault = qApp-&gt;x11Info(screen).dpiX();</pre>
 
100
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
101
<h3 class="fn"><a name="x11AppDpiY"></a>int QPaintDevice::x11AppDpiY ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
 
102
<p>Returns the vertical DPI of the <a href="winsystem.html#x11">X11</a> display (<a href="winsystem.html#x11">X11</a> only) for screen <i>screen</i>. Using this function is not portable. Using this function is not portable.</p>
 
103
<p>See also <a href="qpaintdevice-qt3.html#x11AppDpiX">x11AppDpiX</a>(), <a href="qpaintdevice-qt3.html#x11SetAppDpiY">x11SetAppDpiY</a>(), and <a href="qpaintdevice.html#logicalDpiY">logicalDpiY</a>().</p>
 
104
<h3 class="fn"><a name="x11AppRootWindow"></a><a href="qt.html#HANDLE-typedef">Qt::HANDLE</a> QPaintDevice::x11AppRootWindow ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
 
105
<p>Use QX11Info::rootWindow() instead.</p>
 
106
<p>For example, if you have code like</p>
 
107
<pre><font color="#404040">    unsigned long window = QPaintDevice::x11AppRootWindow(screen);</font></pre>
 
108
<p>you can rewrite it as</p>
 
109
<pre>    unsigned long window = qApp-&gt;x11Info(screen).rootWindow();</pre>
 
110
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
111
<h3 class="fn"><a name="x11AppScreen"></a>int QPaintDevice::x11AppScreen ()&nbsp;&nbsp;<tt> [static]</tt></h3>
 
112
<p>Use <a href="qx11info.html#screen">QX11Info::screen</a>() instead.</p>
 
113
<p>For example, if you have code like</p>
 
114
<pre><font color="#404040">    int screen = QPaintDevice::x11AppScreen();</font></pre>
 
115
<p>you can rewrite it as</p>
 
116
<pre>    int screen = qApp-&gt;x11Info().screen();</pre>
 
117
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
118
<h3 class="fn"><a name="x11AppVisual"></a>void * QPaintDevice::x11AppVisual ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></h3>
 
119
<p>Use <a href="qx11info.html#visual">QX11Info::visual</a>() instead.</p>
 
120
<p>For example, if you have code like</p>
 
121
<pre><font color="#404040">    void *visual = QPaintDevice::x11AppVisual(screen);</font></pre>
 
122
<p>you can rewrite it as</p>
 
123
<pre>    void *visual = qApp-&gt;x11Info(screen).visual();</pre>
 
124
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
125
<h3 class="fn"><a name="x11Cells"></a>int QPaintDevice::x11Cells () const</h3>
 
126
<p>Use <a href="qx11info.html#cells">QX11Info::cells</a>() instead.</p>
 
127
<p>For example, if you have code like</p>
 
128
<pre><font color="#404040">    int cells = widget-&gt;x11Cells();</font></pre>
 
129
<p>you can rewrite it as</p>
 
130
<pre>    int cells = widget-&gt;x11Info().cells();</pre>
 
131
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
132
<h3 class="fn"><a name="x11Colormap"></a><a href="qt.html#HANDLE-typedef">Qt::HANDLE</a> QPaintDevice::x11Colormap () const</h3>
 
133
<p>Use <a href="qx11info.html#colormap">QX11Info::colormap</a>() instead.</p>
 
134
<p>For example, if you have code like</p>
 
135
<pre><font color="#404040">    unsigned long screen = widget-&gt;x11Colormap();</font></pre>
 
136
<p>you can rewrite it as</p>
 
137
<pre>    unsigned long screen = widget-&gt;x11Info().colormap();</pre>
 
138
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
139
<h3 class="fn"><a name="x11DefaultColormap"></a>bool QPaintDevice::x11DefaultColormap () const</h3>
 
140
<p>Use QX11Info::isDefaultColormap() instead.</p>
 
141
<p>For example, if you have code like</p>
 
142
<pre><font color="#404040">    bool isDefault = widget-&gt;x11DefaultColormap();</font></pre>
 
143
<p>you can rewrite it as</p>
 
144
<pre>    bool isDefault = widget-&gt;x11Info().isDefaultColormap();</pre>
 
145
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
146
<h3 class="fn"><a name="x11DefaultVisual"></a>bool QPaintDevice::x11DefaultVisual () const</h3>
 
147
<p>Use QX11Info::isDefaultVisual() instead.</p>
 
148
<p>For example, if you have code like</p>
 
149
<pre><font color="#404040">    bool isDefault = widget-&gt;x11DefaultVisual();</font></pre>
 
150
<p>you can rewrite it as</p>
 
151
<pre>    bool isDefault = widget-&gt;x11Info().isDefaultVisual();</pre>
 
152
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
153
<h3 class="fn"><a name="x11Depth"></a>int QPaintDevice::x11Depth () const</h3>
 
154
<p>Use <a href="qx11info.html#depth">QX11Info::depth</a>() instead.</p>
 
155
<p>For example, if you have code like</p>
 
156
<pre><font color="#404040">    int depth = widget-&gt;x11Depth();</font></pre>
 
157
<p>you can rewrite it as</p>
 
158
<pre>    int depth = widget-&gt;x11Info().depth();</pre>
 
159
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
160
<h3 class="fn"><a name="x11Display"></a>Display * QPaintDevice::x11Display () const</h3>
 
161
<p>Use <a href="qx11info.html#display">QX11Info::display</a>() instead.</p>
 
162
<p>For example, if you have code like</p>
 
163
<pre><font color="#404040">    Display *display = widget-&gt;x11Display();</font></pre>
 
164
<p>you can rewrite it as</p>
 
165
<pre>    Display *display = widget-&gt;x11Info().display();</pre>
 
166
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
167
<h3 class="fn"><a name="x11Screen"></a>int QPaintDevice::x11Screen () const</h3>
 
168
<p>Use <a href="qx11info.html#screen">QX11Info::screen</a>() instead.</p>
 
169
<p>For example, if you have code like</p>
 
170
<pre><font color="#404040">    int screen = widget-&gt;x11Screen();</font></pre>
 
171
<p>you can rewrite it as</p>
 
172
<pre>    int screen = widget-&gt;x11Info().screen();</pre>
 
173
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
174
<h3 class="fn"><a name="x11SetAppDpiX"></a>void QPaintDevice::x11SetAppDpiX ( int <i>dpi</i>, int <i>screen</i> )&nbsp;&nbsp;<tt> [static]</tt></h3>
 
175
<p>Use QX11Info::setDpiX() instead.</p>
 
176
<h3 class="fn"><a name="x11SetAppDpiY"></a>void QPaintDevice::x11SetAppDpiY ( int <i>dpi</i>, int <i>screen</i> )&nbsp;&nbsp;<tt> [static]</tt></h3>
 
177
<p>Use QX11Info::setDpiY() instead.</p>
 
178
<h3 class="fn"><a name="x11Visual"></a>void * QPaintDevice::x11Visual () const</h3>
 
179
<p>Use <a href="qx11info.html#visual">QX11Info::visual</a>() instead.</p>
 
180
<p>For example, if you have code like</p>
 
181
<pre><font color="#404040">    void *visual = widget-&gt;x11Visual();</font></pre>
 
182
<p>you can rewrite it as</p>
 
183
<pre>    void *visual = widget-&gt;x11Info().visual();</pre>
 
184
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>() and <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>().</p>
 
185
<p /><address><hr /><div align="center">
 
186
<table width="100%" cellspacing="0" border="0"><tr class="address">
 
187
<td width="30%">Copyright &copy; 2005 <a href="trolltech.html">Trolltech</a></td>
 
188
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
189
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
 
190
</tr></table></div></address></body>
 
191
</html>