Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > c5a68a1bfbb41dd7ab32131d8bbca747 > files > 3659

qt4-doc-4.3.4-6mdv2008.1.x86_64.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /tmp/qt-4.3.4-qt-1203442408707/qt-x11-opensource-src-4.3.4/src/gui/kernel/qx11info_x11.cpp -->
<head>
  <title>Qt 4.3: QX11Info Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<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="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></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>
<pre> #include &lt;QX11Info&gt;</pre><ul>
<li><a href="qx11info-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"/><b><a href="qx11info.html#QX11Info">QX11Info</a></b> ()</li>
<li><div class="fn"/><b><a href="qx11info.html#QX11Info-2">QX11Info</a></b> ( const QX11Info &amp; <i>other</i> )</li>
<li><div class="fn"/><b><a href="qx11info.html#dtor.QX11Info">~QX11Info</a></b> ()</li>
<li><div class="fn"/>int <b><a href="qx11info.html#cells">cells</a></b> () const</li>
<li><div class="fn"/>Qt::HANDLE <b><a href="qx11info.html#colormap">colormap</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qx11info.html#defaultColormap">defaultColormap</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qx11info.html#defaultVisual">defaultVisual</a></b> () const</li>
<li><div class="fn"/>int <b><a href="qx11info.html#depth">depth</a></b> () const</li>
<li><div class="fn"/>int <b><a href="qx11info.html#screen">screen</a></b> () const</li>
<li><div class="fn"/>void * <b><a href="qx11info.html#visual">visual</a></b> () const</li>
<li><div class="fn"/>QX11Info &amp; <b><a href="qx11info.html#operator-eq">operator=</a></b> ( const QX11Info &amp; <i>other</i> )</li>
</ul>
<a name="static-public-members"></a>
<h3>Static Public Members</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"/>const char * <b><a href="qx11info.html#appClass">appClass</a></b> ()</li>
<li><div class="fn"/>Qt::HANDLE <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"/>Qt::HANDLE <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"/>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"/>void * <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"/>void <b><a href="qx11info.html#setAppDpiX">setAppDpiX</a></b> ( int <i>screen</i>, int <i>xdpi</i> )</li>
<li><div class="fn"/>void <b><a href="qx11info.html#setAppDpiY">setAppDpiY</a></b> ( int <i>screen</i>, int <i>ydpi</i> )</li>
<li><div class="fn"/>void <b><a href="qx11info.html#setAppTime">setAppTime</a></b> ( unsigned long <i>time</i> )</li>
<li><div class="fn"/>void <b><a href="qx11info.html#setAppUserTime">setAppUserTime</a></b> ( unsigned long <i>time</i> )</li>
</ul>
<a name="details"></a>
<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>
<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>Member Function Documentation</h2>
<h3 class="fn"><a name="QX11Info"></a>QX11Info::QX11Info ()</h3>
<p>Constructs an empty <a href="qx11info.html">QX11Info</a> object.</p>
<h3 class="fn"><a name="QX11Info-2"></a>QX11Info::QX11Info ( const QX11Info &amp; <i>other</i> )</h3>
<p>Constructs a copy of <i>other</i>.</p>
<h3 class="fn"><a name="dtor.QX11Info"></a>QX11Info::~QX11Info ()</h3>
<p>Destroys the <a href="qx11info.html">QX11Info</a> object.</p>
<h3 class="fn"><a name="appCells"></a>int QX11Info::appCells ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></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>See also <a href="qx11info.html#cells">cells</a>().</p>
<h3 class="fn"><a name="appClass"></a>const char * QX11Info::appClass ()&nbsp;&nbsp;<tt> [static]</tt></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"></a><a href="qt.html#HANDLE-typedef">Qt::HANDLE</a> QX11Info::appColormap ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></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>See also <a href="qx11info.html#colormap">colormap</a>() and <a href="qx11info.html#defaultColormap">defaultColormap</a>().</p>
<h3 class="fn"><a name="appDefaultColormap"></a>bool QX11Info::appDefaultColormap ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></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"></a>bool QX11Info::appDefaultVisual ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></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"></a>int QX11Info::appDepth ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></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>See also <a href="qx11info.html#depth">depth</a>().</p>
<h3 class="fn"><a name="appDpiX"></a>int QX11Info::appDpiX ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></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>See also <a href="qx11info.html#setAppDpiX">setAppDpiX</a>() and <a href="qx11info.html#appDpiY">appDpiY</a>().</p>
<h3 class="fn"><a name="appDpiY"></a>int QX11Info::appDpiY ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></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>See also <a href="qx11info.html#setAppDpiY">setAppDpiY</a>() and <a href="qx11info.html#appDpiX">appDpiX</a>().</p>
<h3 class="fn"><a name="appRootWindow"></a><a href="qt.html#HANDLE-typedef">Qt::HANDLE</a> QX11Info::appRootWindow ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></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>See also <a href="qapplication.html#desktop">QApplication::desktop</a>().</p>
<h3 class="fn"><a name="appScreen"></a>int QX11Info::appScreen ()&nbsp;&nbsp;<tt> [static]</tt></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"></a>unsigned long QX11Info::appTime ()&nbsp;&nbsp;<tt> [static]</tt></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"></a>unsigned long QX11Info::appUserTime ()&nbsp;&nbsp;<tt> [static]</tt></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"></a>void * QX11Info::appVisual ( int <i>screen</i> = -1 )&nbsp;&nbsp;<tt> [static]</tt></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>See also <a href="qx11info.html#visual">visual</a>() and <a href="qx11info.html#defaultVisual">defaultVisual</a>().</p>
<h3 class="fn"><a name="cells"></a>int QX11Info::cells () const</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"></a><a href="qt.html#HANDLE-typedef">Qt::HANDLE</a> QX11Info::colormap () const</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"></a>bool QX11Info::defaultColormap () const</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"></a>bool QX11Info::defaultVisual () const</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"></a>int QX11Info::depth () const</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"></a>Display * QX11Info::display ()&nbsp;&nbsp;<tt> [static]</tt></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"></a>int QX11Info::screen () const</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>See also <a href="qx11info.html#appScreen">appScreen</a>().</p>
<h3 class="fn"><a name="setAppDpiX"></a>void QX11Info::setAppDpiX ( int <i>screen</i>, int <i>xdpi</i> )&nbsp;&nbsp;<tt> [static]</tt></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>See also <a href="qx11info.html#appDpiX">appDpiX</a>() and <a href="qx11info.html#setAppDpiY">setAppDpiY</a>().</p>
<h3 class="fn"><a name="setAppDpiY"></a>void QX11Info::setAppDpiY ( int <i>screen</i>, int <i>ydpi</i> )&nbsp;&nbsp;<tt> [static]</tt></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>See also <a href="qx11info.html#appDpiY">appDpiY</a>() and <a href="qx11info.html#setAppDpiX">setAppDpiX</a>().</p>
<h3 class="fn"><a name="setAppTime"></a>void QX11Info::setAppTime ( unsigned long <i>time</i> )&nbsp;&nbsp;<tt> [static]</tt></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"></a>void QX11Info::setAppUserTime ( unsigned long <i>time</i> )&nbsp;&nbsp;<tt> [static]</tt></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"></a>void * QX11Info::visual () const</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>
<h3 class="fn"><a name="operator-eq"></a>QX11Info &amp; QX11Info::operator= ( const QX11Info &amp; <i>other</i> )</h3>
<p>Assigns <i>other</i> to this object and returns a reference to this object.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.4</div></td>
</tr></table></div></address></body>
</html>