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
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QX11Info Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><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="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QX11Info Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QX11Info class provides information about the X display
configuration. <a href="#details">More...</a></p>
<h3>Methods</h3><ul><li><div class="fn" /><b><a href="qx11info.html#QX11Info">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qx11info.html#QX11Info-2">__init__</a></b> (<i>self</i>, QX11Info <i>other</i>)</li><li><div class="fn" />int <b><a href="qx11info.html#cells">cells</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qx11info.html#colormap">colormap</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qx11info.html#defaultColormap">defaultColormap</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qx11info.html#defaultVisual">defaultVisual</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qx11info.html#depth">depth</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qx11info.html#screen">screen</a></b> (<i>self</i>)</li><li><div class="fn" />sip.voidptr <b><a href="qx11info.html#visual">visual</a></b> (<i>self</i>)</li></ul><h3>Static Methods</h3><ul><li><div class="fn" />int <b><a href="qx11info.html#appCells">appCells</a></b> (int <i>screen</i> = -1)</li><li><div class="fn" />str <b><a href="qx11info.html#appClass">appClass</a></b> ()</li><li><div class="fn" />int <b><a href="qx11info.html#appColormap">appColormap</a></b> (int <i>screen</i> = -1)</li><li><div class="fn" />bool <b><a href="qx11info.html#appDefaultColormap">appDefaultColormap</a></b> (int <i>screen</i> = -1)</li><li><div class="fn" />bool <b><a href="qx11info.html#appDefaultVisual">appDefaultVisual</a></b> (int <i>screen</i> = -1)</li><li><div class="fn" />int <b><a href="qx11info.html#appDepth">appDepth</a></b> (int <i>screen</i> = -1)</li><li><div class="fn" />int <b><a href="qx11info.html#appDpiX">appDpiX</a></b> (int <i>screen</i> = -1)</li><li><div class="fn" />int <b><a href="qx11info.html#appDpiY">appDpiY</a></b> (int <i>screen</i> = -1)</li><li><div class="fn" />int <b><a href="qx11info.html#appRootWindow">appRootWindow</a></b> (int <i>screen</i> = -1)</li><li><div class="fn" />int <b><a href="qx11info.html#appScreen">appScreen</a></b> ()</li><li><div class="fn" />int <b><a href="qx11info.html#appTime">appTime</a></b> ()</li><li><div class="fn" />int <b><a href="qx11info.html#appUserTime">appUserTime</a></b> ()</li><li><div class="fn" />sip.voidptr <b><a href="qx11info.html#appVisual">appVisual</a></b> (int <i>screen</i> = -1)</li><li><div class="fn" />Display <b><a href="qx11info.html#display">display</a></b> ()</li><li><div class="fn" />bool <b><a href="qx11info.html#isCompositingManagerRunning">isCompositingManagerRunning</a></b> ()</li><li><div class="fn" /><b><a href="qx11info.html#setAppDpiX">setAppDpiX</a></b> (int <i>screen</i>, int <i>dpi</i>)</li><li><div class="fn" /><b><a href="qx11info.html#setAppDpiY">setAppDpiY</a></b> (int <i>screen</i>, int <i>dpi</i>)</li><li><div class="fn" /><b><a href="qx11info.html#setAppTime">setAppTime</a></b> (int <i>time</i>)</li><li><div class="fn" /><b><a href="qx11info.html#setAppUserTime">setAppUserTime</a></b> (int <i>time</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QX11Info class provides information about the X display
configuration.</p>
<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>
<p><b>Warning:</b> This class is only available on X11. For
querying per-screen information in a portable way, use <a href="qdesktopwidget.html">QDesktopWidget</a>.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QX11Info" />QX11Info.__init__ (<i>self</i>)</h3><p>Constructs an empty <a href="qx11info.html">QX11Info</a>
object.</p>
<h3 class="fn"><a name="QX11Info-2" />QX11Info.__init__ (<i>self</i>, <a href="qx11info.html">QX11Info</a> <i>other</i>)</h3><p>Constructs a copy of <i>other</i>.</p>
<h3 class="fn"><a name="appCells" />int QX11Info.appCells (int <i>screen</i> = -1)</h3><p>Returns the number of cells used by the application on the given
<i>screen</i>.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#cells">cells</a>().</p>
<h3 class="fn"><a name="appClass" />str QX11Info.appClass ()</h3><p>Returns the X11 application class.</p>
<p><b>See also</b> <a href="qx11info.html#display">display</a>().</p>
<h3 class="fn"><a name="appColormap" />int QX11Info.appColormap (int <i>screen</i> = -1)</h3><p>Returns a handle for the application's color map on the given
<i>screen</i>.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#colormap">colormap</a>()
and <a href="qx11info.html#defaultColormap">defaultColormap</a>().</p>
<h3 class="fn"><a name="appDefaultColormap" />bool QX11Info.appDefaultColormap (int <i>screen</i> = -1)</h3><p>Returns true if the application has a default color map on the
given <i>screen</i>; otherwise returns false.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<h3 class="fn"><a name="appDefaultVisual" />bool QX11Info.appDefaultVisual (int <i>screen</i> = -1)</h3><p>Returns true if the application has a default visual on the
given <i>screen</i>; otherwise returns false.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<h3 class="fn"><a name="appDepth" />int QX11Info.appDepth (int <i>screen</i> = -1)</h3><p>Returns the color depth (bits per pixel) used by the application
on the given <i>screen</i>.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#depth">depth</a>().</p>
<h3 class="fn"><a name="appDpiX" />int QX11Info.appDpiX (int <i>screen</i> = -1)</h3><p>Returns the horizontal resolution of the given <i>screen</i> in
terms of the number of dots per inch.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#setAppDpiX">setAppDpiX</a>() and <a href="qx11info.html#appDpiY">appDpiY</a>().</p>
<h3 class="fn"><a name="appDpiY" />int QX11Info.appDpiY (int <i>screen</i> = -1)</h3><p>Returns the vertical resolution of the given <i>screen</i> in
terms of the number of dots per inch.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#setAppDpiY">setAppDpiY</a>() and <a href="qx11info.html#appDpiX">appDpiX</a>().</p>
<h3 class="fn"><a name="appRootWindow" />int QX11Info.appRootWindow (int <i>screen</i> = -1)</h3><p>Returns a handle for the applications root window on the given
<i>screen</i>.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qapplication.html#desktop">QApplication.desktop</a>().</p>
<h3 class="fn"><a name="appScreen" />int QX11Info.appScreen ()</h3><p>Returns the number of the screen where the application is being
displayed.</p>
<p><b>See also</b> <a href="qx11info.html#display">display</a>()
and <a href="qx11info.html#screen">screen</a>().</p>
<h3 class="fn"><a name="appTime" />int QX11Info.appTime ()</h3><p>Returns the X11 time.</p>
<p><b>See also</b> <a href="qx11info.html#setAppTime">setAppTime</a>() and <a href="qx11info.html#appUserTime">appUserTime</a>().</p>
<h3 class="fn"><a name="appUserTime" />int QX11Info.appUserTime ()</h3><p>Returns the X11 user time.</p>
<p><b>See also</b> <a href="qx11info.html#setAppUserTime">setAppUserTime</a>() and <a href="qx11info.html#appTime">appTime</a>().</p>
<h3 class="fn"><a name="appVisual" />sip.voidptr QX11Info.appVisual (int <i>screen</i> = -1)</h3><p>Returns the current visual used by the application on the given
<i>screen</i>.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#visual">visual</a>() and
<a href="qx11info.html#defaultVisual">defaultVisual</a>().</p>
<h3 class="fn"><a name="cells" />int QX11Info.cells (<i>self</i>)</h3><p>Returns the number of cells.</p>
<p><b>See also</b> <a href="qx11info.html#appCells">appCells</a>().</p>
<h3 class="fn"><a name="colormap" />int QX11Info.colormap (<i>self</i>)</h3><p>Returns a handle for the color map.</p>
<p><b>See also</b> <a href="qx11info.html#defaultColormap">defaultColormap</a>().</p>
<h3 class="fn"><a name="defaultColormap" />bool QX11Info.defaultColormap (<i>self</i>)</h3><p>Returns true if there is a default color map; otherwise returns
false.</p>
<p><b>See also</b> <a href="qx11info.html#colormap">colormap</a>().</p>
<h3 class="fn"><a name="defaultVisual" />bool QX11Info.defaultVisual (<i>self</i>)</h3><p>Returns true if there is a default visual; otherwise returns
false.</p>
<p><b>See also</b> <a href="qx11info.html#visual">visual</a>() and
<a href="qx11info.html#appVisual">appVisual</a>().</p>
<h3 class="fn"><a name="depth" />int QX11Info.depth (<i>self</i>)</h3><p>Returns the color depth (bits per pixel) of the X display.</p>
<p><b>See also</b> <a href="qx11info.html#appDepth">appDepth</a>().</p>
<h3 class="fn"><a name="display" />Display QX11Info.display ()</h3><p>Returns the default display for the application.</p>
<p><b>See also</b> <a href="qx11info.html#appScreen">appScreen</a>().</p>
<h3 class="fn"><a name="isCompositingManagerRunning" />bool QX11Info.isCompositingManagerRunning ()</h3><p>Returns true if there is a compositing manager running.</p>
<p>This function was introduced in Qt 4.4.</p>
<h3 class="fn"><a name="screen" />int QX11Info.screen (<i>self</i>)</h3><p>Returns the number of the screen currently in use.</p>
<p>The return value is an X screen number. Be aware that if the
user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#appScreen">appScreen</a>().</p>
<h3 class="fn"><a name="setAppDpiX" />QX11Info.setAppDpiX (int <i>screen</i>, int <i>dpi</i>)</h3><p>Sets the horizontal resolution of the given <i>screen</i> to the
number of dots per inch specified by <i>xdpi</i>.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#appDpiX">appDpiX</a>()
and <a href="qx11info.html#setAppDpiY">setAppDpiY</a>().</p>
<h3 class="fn"><a name="setAppDpiY" />QX11Info.setAppDpiY (int <i>screen</i>, int <i>dpi</i>)</h3><p>Sets the vertical resolution of the given <i>screen</i> to the
number of dots per inch specified by <i>ydpi</i>.</p>
<p>The <i>screen</i> argument is an X screen number. Be aware that
if the user's system uses Xinerama (as opposed to traditional X11
multiscreen), there is only one X screen. Use <a href="qdesktopwidget.html">QDesktopWidget</a> to query for information
about Xinerama screens.</p>
<p><b>See also</b> <a href="qx11info.html#appDpiY">appDpiY</a>()
and <a href="qx11info.html#setAppDpiX">setAppDpiX</a>().</p>
<h3 class="fn"><a name="setAppTime" />QX11Info.setAppTime (int <i>time</i>)</h3><p>Sets the X11 time to the value specified by <i>time</i>.</p>
<p><b>See also</b> <a href="qx11info.html#appTime">appTime</a>()
and <a href="qx11info.html#setAppUserTime">setAppUserTime</a>().</p>
<h3 class="fn"><a name="setAppUserTime" />QX11Info.setAppUserTime (int <i>time</i>)</h3><p>Sets the X11 user time as specified by <i>time</i>.</p>
<p><b>See also</b> <a href="qx11info.html#appUserTime">appUserTime</a>() and <a href="qx11info.html#setAppTime">setAppTime</a>().</p>
<h3 class="fn"><a name="visual" />sip.voidptr QX11Info.visual (<i>self</i>)</h3><p>Returns the current visual.</p>
<p><b>See also</b> <a href="qx11info.html#appVisual">appVisual</a>() and <a href="qx11info.html#defaultVisual">defaultVisual</a>().</p>
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.12.1 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qt.io">The Qt Company</a> 2015</td><td align="right" width="25%">Qt 4.8.7</td></tr></table></div></address></body></html>
|