1
<?xml version="1.0" encoding="iso-8859-1"?>
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/kernel/qx11info_x11.cpp -->
7
<title>Qt 4.0: QX11Info Class Reference</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>
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
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"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="annotated.html"><font color="#004faf">Annotated</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <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">QX11Info Class Reference</h1>
21
<p>The QX11Info class provides information about the X display configuration. <a href="#details">More...</a></p>
22
<pre>#include <QX11Info></pre><p>Part of the <a href="qtgui.html">QtGui</a> module.</p>
24
<li><a href="qx11info-members.html">List of all members, including inherited members</a></li>
26
<a name="public-functions"></a>
27
<h3>Public Functions</h3>
29
<li><div class="fn"/><b><a href="qx11info.html#QX11Info">QX11Info</a></b> ()</li>
30
<li><div class="fn"/><b><a href="qx11info.html#QX11Info-2">QX11Info</a></b> ( const QX11Info & <i>other</i> )</li>
31
<li><div class="fn"/><b><a href="qx11info.html#dtor.QX11Info">~QX11Info</a></b> ()</li>
32
<li><div class="fn"/>int <b><a href="qx11info.html#cells">cells</a></b> () const</li>
33
<li><div class="fn"/>Qt::HANDLE <b><a href="qx11info.html#colormap">colormap</a></b> () const</li>
34
<li><div class="fn"/>bool <b><a href="qx11info.html#defaultColormap">defaultColormap</a></b> () const</li>
35
<li><div class="fn"/>bool <b><a href="qx11info.html#defaultVisual">defaultVisual</a></b> () const</li>
36
<li><div class="fn"/>int <b><a href="qx11info.html#depth">depth</a></b> () const</li>
37
<li><div class="fn"/>int <b><a href="qx11info.html#screen">screen</a></b> () const</li>
38
<li><div class="fn"/>void * <b><a href="qx11info.html#visual">visual</a></b> () const</li>
39
<li><div class="fn"/>QX11Info & <b><a href="qx11info.html#operator-eq">operator=</a></b> ( const QX11Info & <i>other</i> )</li>
41
<a name="static-public-members"></a>
42
<h3>Static Public Members</h3>
44
<li><div class="fn"/>int <b><a href="qx11info.html#appCells">appCells</a></b> ( int <i>screen</i> = -1 )</li>
45
<li><div class="fn"/>const char * <b><a href="qx11info.html#appClass">appClass</a></b> ()</li>
46
<li><div class="fn"/>Qt::HANDLE <b><a href="qx11info.html#appColormap">appColormap</a></b> ( int <i>screen</i> = -1 )</li>
47
<li><div class="fn"/>bool <b><a href="qx11info.html#appDefaultColormap">appDefaultColormap</a></b> ( int <i>screen</i> = -1 )</li>
48
<li><div class="fn"/>bool <b><a href="qx11info.html#appDefaultVisual">appDefaultVisual</a></b> ( int <i>screen</i> = -1 )</li>
49
<li><div class="fn"/>int <b><a href="qx11info.html#appDepth">appDepth</a></b> ( int <i>screen</i> = -1 )</li>
50
<li><div class="fn"/>int <b><a href="qx11info.html#appDpiX">appDpiX</a></b> ( int <i>screen</i> = -1 )</li>
51
<li><div class="fn"/>int <b><a href="qx11info.html#appDpiY">appDpiY</a></b> ( int <i>screen</i> = -1 )</li>
52
<li><div class="fn"/>Qt::HANDLE <b><a href="qx11info.html#appRootWindow">appRootWindow</a></b> ( int <i>screen</i> = -1 )</li>
53
<li><div class="fn"/>int <b><a href="qx11info.html#appScreen">appScreen</a></b> ()</li>
54
<li><div class="fn"/>unsigned long <b><a href="qx11info.html#appTime">appTime</a></b> ()</li>
55
<li><div class="fn"/>unsigned long <b><a href="qx11info.html#appUserTime">appUserTime</a></b> ()</li>
56
<li><div class="fn"/>void * <b><a href="qx11info.html#appVisual">appVisual</a></b> ( int <i>screen</i> = -1 )</li>
57
<li><div class="fn"/>Display * <b><a href="qx11info.html#display">display</a></b> ()</li>
58
<li><div class="fn"/>void <b><a href="qx11info.html#setAppDpiX">setAppDpiX</a></b> ( int <i>screen</i>, int <i>xdpi</i> )</li>
59
<li><div class="fn"/>void <b><a href="qx11info.html#setAppDpiY">setAppDpiY</a></b> ( int <i>screen</i>, int <i>ydpi</i> )</li>
60
<li><div class="fn"/>void <b><a href="qx11info.html#setAppTime">setAppTime</a></b> ( unsigned long <i>time</i> )</li>
61
<li><div class="fn"/>void <b><a href="qx11info.html#setAppUserTime">setAppUserTime</a></b> ( unsigned long <i>time</i> )</li>
63
<a name="details"></a>
65
<h2>Detailed Description</h2>
66
<p>The QX11Info class provides information about the X display configuration.</p>
67
<p>The class provides two APIs: a set of non-static functions that provide information about a specific widget or pixmap, and a set of static functions that provide the default information for the application.</p>
68
<p><b>Warning:</b> This class is only available on <a href="winsystem.html#x11">X11</a>.</p>
69
<p>See also <a href="qwidget.html#x11Info">QWidget::x11Info</a>(), <a href="qpixmap.html#x11Info">QPixmap::x11Info</a>(), and <a href="qdesktopwidget.html">QDesktopWidget</a>.</p>
71
<h2>Member Function Documentation</h2>
72
<h3 class="fn"><a name="QX11Info"></a>QX11Info::QX11Info ()</h3>
73
<p>Constructs an empty <a href="qx11info.html">QX11Info</a> object.</p>
74
<h3 class="fn"><a name="QX11Info-2"></a>QX11Info::QX11Info ( const QX11Info & <i>other</i> )</h3>
75
<p>Constructs a copy of <i>other</i>.</p>
76
<h3 class="fn"><a name="dtor.QX11Info"></a>QX11Info::~QX11Info ()</h3>
77
<p>Destroys the <a href="qx11info.html">QX11Info</a> object.</p>
78
<h3 class="fn"><a name="appCells"></a>int QX11Info::appCells ( int <i>screen</i> = -1 ) <tt> [static]</tt></h3>
79
<p>Returns the number of cells used by the application on the given <i>screen</i>.</p>
80
<p>See also <a href="qx11info.html#cells">cells</a>().</p>
81
<h3 class="fn"><a name="appClass"></a>const char * QX11Info::appClass () <tt> [static]</tt></h3>
82
<p>Returns the <a href="winsystem.html#x11">X11</a> application class.</p>
83
<p>See also <a href="qx11info.html#display">display</a>().</p>
84
<h3 class="fn"><a name="appColormap"></a><a href="qt.html#HANDLE-typedef">Qt::HANDLE</a> QX11Info::appColormap ( int <i>screen</i> = -1 ) <tt> [static]</tt></h3>
85
<p>Returns a handle for the application's color map on the given <i>screen</i>.</p>
86
<p>See also <a href="qx11info.html#colormap">colormap</a>() and <a href="qx11info.html#defaultColormap">defaultColormap</a>().</p>
87
<h3 class="fn"><a name="appDefaultColormap"></a>bool QX11Info::appDefaultColormap ( int <i>screen</i> = -1 ) <tt> [static]</tt></h3>
88
<p>Returns true if the application has a default color map on the given <i>screen</i>; otherwise returns false.</p>
89
<h3 class="fn"><a name="appDefaultVisual"></a>bool QX11Info::appDefaultVisual ( int <i>screen</i> = -1 ) <tt> [static]</tt></h3>
90
<p>Returns true if the application has a default visual on the given <i>screen</i>; otherwise returns false.</p>
91
<h3 class="fn"><a name="appDepth"></a>int QX11Info::appDepth ( int <i>screen</i> = -1 ) <tt> [static]</tt></h3>
92
<p>Returns the color depth (bits per pixel) used by the application on the given <i>screen</i>.</p>
93
<p>See also <a href="qx11info.html#depth">depth</a>().</p>
94
<h3 class="fn"><a name="appDpiX"></a>int QX11Info::appDpiX ( int <i>screen</i> = -1 ) <tt> [static]</tt></h3>
95
<p>Returns the horizontal resolution of the given <i>screen</i> in terms of the number of dots per inch.</p>
96
<p>See also <a href="qx11info.html#setAppDpiX">setAppDpiX</a>() and <a href="qx11info.html#appDpiY">appDpiY</a>().</p>
97
<h3 class="fn"><a name="appDpiY"></a>int QX11Info::appDpiY ( int <i>screen</i> = -1 ) <tt> [static]</tt></h3>
98
<p>Returns the vertical resolution of the given <i>screen</i> in terms of the number of dots per inch.</p>
99
<p>See also <a href="qx11info.html#setAppDpiY">setAppDpiY</a>() and <a href="qx11info.html#appDpiX">appDpiX</a>().</p>
100
<h3 class="fn"><a name="appRootWindow"></a><a href="qt.html#HANDLE-typedef">Qt::HANDLE</a> QX11Info::appRootWindow ( int <i>screen</i> = -1 ) <tt> [static]</tt></h3>
101
<p>Returns a handle for the applications root window on the given <i>screen</i>.</p>
102
<p>See also <a href="qapplication.html#desktop">QApplication::desktop</a>().</p>
103
<h3 class="fn"><a name="appScreen"></a>int QX11Info::appScreen () <tt> [static]</tt></h3>
104
<p>Returns the number of the screen where the application is being displayed.</p>
105
<p>See also <a href="qx11info.html#display">display</a>() and <a href="qx11info.html#screen">screen</a>().</p>
106
<h3 class="fn"><a name="appTime"></a>unsigned long QX11Info::appTime () <tt> [static]</tt></h3>
107
<p>Returns the <a href="winsystem.html#x11">X11</a> time.</p>
108
<p>See also <a href="qx11info.html#setAppTime">setAppTime</a>() and <a href="qx11info.html#appUserTime">appUserTime</a>().</p>
109
<h3 class="fn"><a name="appUserTime"></a>unsigned long QX11Info::appUserTime () <tt> [static]</tt></h3>
110
<p>Returns the <a href="winsystem.html#x11">X11</a> user time.</p>
111
<p>See also <a href="qx11info.html#setAppUserTime">setAppUserTime</a>() and <a href="qx11info.html#appTime">appTime</a>().</p>
112
<h3 class="fn"><a name="appVisual"></a>void * QX11Info::appVisual ( int <i>screen</i> = -1 ) <tt> [static]</tt></h3>
113
<p>Returns the current visual used by the application on the given <i>screen</i>.</p>
114
<p>See also <a href="qx11info.html#visual">visual</a>() and <a href="qx11info.html#defaultVisual">defaultVisual</a>().</p>
115
<h3 class="fn"><a name="cells"></a>int QX11Info::cells () const</h3>
116
<p>Returns the number of cells.</p>
117
<p>See also <a href="qx11info.html#appCells">appCells</a>().</p>
118
<h3 class="fn"><a name="colormap"></a><a href="qt.html#HANDLE-typedef">Qt::HANDLE</a> QX11Info::colormap () const</h3>
119
<p>Returns a handle for the color map.</p>
120
<p>See also <a href="qx11info.html#defaultColormap">defaultColormap</a>().</p>
121
<h3 class="fn"><a name="defaultColormap"></a>bool QX11Info::defaultColormap () const</h3>
122
<p>Returns true if there is a default color map; otherwise returns false.</p>
123
<p>See also <a href="qx11info.html#colormap">colormap</a>().</p>
124
<h3 class="fn"><a name="defaultVisual"></a>bool QX11Info::defaultVisual () const</h3>
125
<p>Returns true if there is a default visual; otherwise returns false.</p>
126
<p>See also <a href="qx11info.html#visual">visual</a>() and <a href="qx11info.html#appVisual">appVisual</a>().</p>
127
<h3 class="fn"><a name="depth"></a>int QX11Info::depth () const</h3>
128
<p>Returns the color depth (bits per pixel) of the X display.</p>
129
<p>See also <a href="qx11info.html#appDepth">appDepth</a>().</p>
130
<h3 class="fn"><a name="display"></a>Display * QX11Info::display () <tt> [static]</tt></h3>
131
<p>Returns the default display for the application.</p>
132
<p>See also <a href="qx11info.html#appScreen">appScreen</a>().</p>
133
<h3 class="fn"><a name="screen"></a>int QX11Info::screen () const</h3>
134
<p>Returns the number of the screen currently in use.</p>
135
<p>See also <a href="qx11info.html#appScreen">appScreen</a>().</p>
136
<h3 class="fn"><a name="setAppDpiX"></a>void QX11Info::setAppDpiX ( int <i>screen</i>, int <i>xdpi</i> ) <tt> [static]</tt></h3>
137
<p>Sets the horizontal resolution of the given <i>screen</i> to the number of dots per inch specified by <i>xdpi</i>.</p>
138
<p>See also <a href="qx11info.html#appDpiX">appDpiX</a>() and <a href="qx11info.html#setAppDpiY">setAppDpiY</a>().</p>
139
<h3 class="fn"><a name="setAppDpiY"></a>void QX11Info::setAppDpiY ( int <i>screen</i>, int <i>ydpi</i> ) <tt> [static]</tt></h3>
140
<p>Sets the vertical resolution of the given <i>screen</i> to the number of dots per inch specified by <i>ydpi</i>.</p>
141
<p>See also <a href="qx11info.html#appDpiY">appDpiY</a>() and <a href="qx11info.html#setAppDpiX">setAppDpiX</a>().</p>
142
<h3 class="fn"><a name="setAppTime"></a>void QX11Info::setAppTime ( unsigned long <i>time</i> ) <tt> [static]</tt></h3>
143
<p>Sets the <a href="winsystem.html#x11">X11</a> time to the value specified by <i>time</i>.</p>
144
<p>See also <a href="qx11info.html#appTime">appTime</a>() and <a href="qx11info.html#setAppUserTime">setAppUserTime</a>().</p>
145
<h3 class="fn"><a name="setAppUserTime"></a>void QX11Info::setAppUserTime ( unsigned long <i>time</i> ) <tt> [static]</tt></h3>
146
<p>Sets the <a href="winsystem.html#x11">X11</a> user time as specified by <i>time</i>.</p>
147
<p>See also <a href="qx11info.html#appUserTime">appUserTime</a>() and <a href="qx11info.html#setAppTime">setAppTime</a>().</p>
148
<h3 class="fn"><a name="visual"></a>void * QX11Info::visual () const</h3>
149
<p>Returns the current visual.</p>
150
<p>See also <a href="qx11info.html#appVisual">appVisual</a>() and <a href="qx11info.html#defaultVisual">defaultVisual</a>().</p>
151
<h3 class="fn"><a name="operator-eq"></a>QX11Info & QX11Info::operator= ( const QX11Info & <i>other</i> )</h3>
152
<p>Assigns <i>other</i> to this object and returns a reference to this object.</p>
153
<p /><address><hr /><div align="center">
154
<table width="100%" cellspacing="0" border="0"><tr class="address">
155
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
156
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
157
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
158
</tr></table></div></address></body>