File: qx11info.html

package info (click to toggle)
python-qt4 4.0.1-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 18,632 kB
  • ctags: 2,639
  • sloc: python: 29,409; sh: 5,646; cpp: 3,168; xml: 149; makefile: 109
file content (64 lines) | stat: -rw-r--r-- 12,183 bytes parent folder | download
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
<?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">&#160;&#160;</td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <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&#160;<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" />unsigned long <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&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />str <b><a href="qx11info.html#appClass">appClass</a></b> ()</li><li><div class="fn" />unsigned long <b><a href="qx11info.html#appColormap">appColormap</a></b> (int&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />bool <b><a href="qx11info.html#appDefaultColormap">appDefaultColormap</a></b> (int&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />bool <b><a href="qx11info.html#appDefaultVisual">appDefaultVisual</a></b> (int&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />int <b><a href="qx11info.html#appDepth">appDepth</a></b> (int&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />int <b><a href="qx11info.html#appDpiX">appDpiX</a></b> (int&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />int <b><a href="qx11info.html#appDpiY">appDpiY</a></b> (int&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />unsigned long <b><a href="qx11info.html#appRootWindow">appRootWindow</a></b> (int&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />int <b><a href="qx11info.html#appScreen">appScreen</a></b> ()</li><li><div class="fn" />unsigned long <b><a href="qx11info.html#appTime">appTime</a></b> ()</li><li><div class="fn" />unsigned long <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&#160;<i>screen</i>&#160;=&#160;-1)</li><li><div class="fn" />sip.voidptr <b><a href="qx11info.html#display">display</a></b> ()</li><li><div class="fn" /><b><a href="qx11info.html#setAppDpiX">setAppDpiX</a></b> (int&#160;<i>screen</i>, int&#160;<i>dpi</i>)</li><li><div class="fn" /><b><a href="qx11info.html#setAppDpiY">setAppDpiY</a></b> (int&#160;<i>screen</i>, int&#160;<i>dpi</i>)</li><li><div class="fn" /><b><a href="qx11info.html#setAppTime">setAppTime</a></b> (unsigned long&#160;<i>time</i>)</li><li><div class="fn" /><b><a href="qx11info.html#setAppUserTime">setAppUserTime</a></b> (unsigned long&#160;<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.</p>
<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>
<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>&#160;<i>other</i>)</h3><p>Constructs a copy of <i>other</i>.</p>
<h3 class="fn"><a name="appCells" />int QX11Info.appCells (int&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns the number of cells used by the application on the given <i>screen</i>.</p>
<p>See also <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>See also <a href="qx11info.html#display">display</a>().</p>
<h3 class="fn"><a name="appColormap" />unsigned long QX11Info.appColormap (int&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns a handle for the application's color map on the given <i>screen</i>.</p>
<p>See also <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&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns true if the application has a default color map on the given <i>screen</i>; otherwise returns false.</p>
<h3 class="fn"><a name="appDefaultVisual" />bool QX11Info.appDefaultVisual (int&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns true if the application has a default visual on the given <i>screen</i>; otherwise returns false.</p>
<h3 class="fn"><a name="appDepth" />int QX11Info.appDepth (int&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns the color depth (bits per pixel) used by the application on the given <i>screen</i>.</p>
<p>See also <a href="qx11info.html#depth">depth</a>().</p>
<h3 class="fn"><a name="appDpiX" />int QX11Info.appDpiX (int&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns the horizontal resolution of the given <i>screen</i> in terms of the number of dots per inch.</p>
<p>See also <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&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns the vertical resolution of the given <i>screen</i> in terms of the number of dots per inch.</p>
<p>See also <a href="qx11info.html#setAppDpiY">setAppDpiY</a>() and <a href="qx11info.html#appDpiX">appDpiX</a>().</p>
<h3 class="fn"><a name="appRootWindow" />unsigned long QX11Info.appRootWindow (int&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns a handle for the applications root window on the given <i>screen</i>.</p>
<p>See also <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>See also <a href="qx11info.html#display">display</a>() and <a href="qx11info.html#screen">screen</a>().</p>
<h3 class="fn"><a name="appTime" />unsigned long QX11Info.appTime ()</h3><p>Returns the X11 time.</p>
<p>See also <a href="qx11info.html#setAppTime">setAppTime</a>() and <a href="qx11info.html#appUserTime">appUserTime</a>().</p>
<h3 class="fn"><a name="appUserTime" />unsigned long QX11Info.appUserTime ()</h3><p>Returns the X11 user time.</p>
<p>See also <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&#160;<i>screen</i>&#160;=&#160;-1)</h3><p>Returns the current visual used by the application on the given <i>screen</i>.</p>
<p>See also <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>See also <a href="qx11info.html#appCells">appCells</a>().</p>
<h3 class="fn"><a name="colormap" />unsigned long QX11Info.colormap (<i>self</i>)</h3><p>Returns a handle for the color map.</p>
<p>See also <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>See also <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>See also <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>See also <a href="qx11info.html#appDepth">appDepth</a>().</p>
<h3 class="fn"><a name="display" />sip.voidptr QX11Info.display ()</h3><p>Returns the default display for the application.</p>
<p>See also <a href="qx11info.html#appScreen">appScreen</a>().</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>See also <a href="qx11info.html#appScreen">appScreen</a>().</p>
<h3 class="fn"><a name="setAppDpiX" />QX11Info.setAppDpiX (int&#160;<i>screen</i>, int&#160;<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>See also <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&#160;<i>screen</i>, int&#160;<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>See also <a href="qx11info.html#appDpiY">appDpiY</a>() and <a href="qx11info.html#setAppDpiX">setAppDpiX</a>().</p>
<h3 class="fn"><a name="setAppTime" />QX11Info.setAppTime (unsigned long&#160;<i>time</i>)</h3><p>Sets the X11 time to the value specified by <i>time</i>.</p>
<p>See also <a href="qx11info.html#appTime">appTime</a>() and <a href="qx11info.html#setAppUserTime">setAppUserTime</a>().</p>
<h3 class="fn"><a name="setAppUserTime" />QX11Info.setAppUserTime (unsigned long&#160;<i>time</i>)</h3><p>Sets the X11 user time as specified by <i>time</i>.</p>
<p>See also <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>See also <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 width="25%">PyQt&#160;4.0.1 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.trolltech.com">Trolltech&#160;AS</a> 2006</td><td align="right" width="25%">Qt&#160;4.1.4</td></tr></table></div></address></body></html>