The QX11Info class provides information about the X display configuration. More...
#include <QX11Info>
QX11Info () | |
QX11Info ( const QX11Info & other ) | |
~QX11Info () | |
int | cells () const |
Qt::HANDLE | colormap () const |
bool | defaultColormap () const |
bool | defaultVisual () const |
int | depth () const |
int | screen () const |
void * | visual () const |
QX11Info & | operator= ( const QX11Info & other ) |
int | appCells ( int screen = -1 ) |
const char * | appClass () |
Qt::HANDLE | appColormap ( int screen = -1 ) |
bool | appDefaultColormap ( int screen = -1 ) |
bool | appDefaultVisual ( int screen = -1 ) |
int | appDepth ( int screen = -1 ) |
int | appDpiX ( int screen = -1 ) |
int | appDpiY ( int screen = -1 ) |
Qt::HANDLE | appRootWindow ( int screen = -1 ) |
int | appScreen () |
unsigned long | appTime () |
unsigned long | appUserTime () |
void * | appVisual ( int screen = -1 ) |
Display * | display () |
bool | isCompositingManagerRunning () |
void | setAppDpiX ( int screen, int xdpi ) |
void | setAppDpiY ( int screen, int ydpi ) |
void | setAppTime ( unsigned long time ) |
void | setAppUserTime ( unsigned long time ) |
The QX11Info class provides information about the X display configuration.
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.
Warning: This class is only available on X11. For querying per-screen information in a portable way, use QDesktopWidget.
See also QWidget::x11Info(), QPixmap::x11Info(), and QDesktopWidget.
Constructs an empty QX11Info object.
Constructs a copy of other.
Destroys the QX11Info object.
Returns the number of cells used by the application on the given screen.
The screen 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 QDesktopWidget to query for information about Xinerama screens.
See also cells().
Returns the X11 application class.
See also display().
Returns a handle for the application's color map on the given screen.
The screen 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 QDesktopWidget to query for information about Xinerama screens.
See also colormap() and defaultColormap().
Returns true if the application has a default color map on the given screen; otherwise returns false.
The screen 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 QDesktopWidget to query for information about Xinerama screens.
Returns true if the application has a default visual on the given screen; otherwise returns false.
The screen 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 QDesktopWidget to query for information about Xinerama screens.
Returns the color depth (bits per pixel) used by the application on the given screen.
The screen 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 QDesktopWidget to query for information about Xinerama screens.
See also depth().
Returns the horizontal resolution of the given screen in terms of the number of dots per inch.
The screen 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 QDesktopWidget to query for information about Xinerama screens.
See also setAppDpiX() and appDpiY().
Returns the vertical resolution of the given screen in terms of the number of dots per inch.
The screen 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 QDesktopWidget to query for information about Xinerama screens.
See also setAppDpiY() and appDpiX().
Returns a handle for the applications root window on the given screen.
The screen 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 QDesktopWidget to query for information about Xinerama screens.
See also QApplication::desktop().
Returns the number of the screen where the application is being displayed.
See also display() and screen().
Returns the X11 time.
See also setAppTime() and appUserTime().
Returns the X11 user time.
See also setAppUserTime() and appTime().
Returns the current visual used by the application on the given screen.
The screen 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 QDesktopWidget to query for information about Xinerama screens.
See also visual() and defaultVisual().
Returns the number of cells.
See also appCells().
Returns a handle for the color map.
See also defaultColormap().
Returns true if there is a default color map; otherwise returns false.
See also colormap().
Returns true if there is a default visual; otherwise returns false.
See also visual() and appVisual().
Returns the color depth (bits per pixel) of the X display.
See also appDepth().
Returns the default display for the application.
See also appScreen().
Returns true if there is a compositing manager running.
This function was introduced in Qt 4.4.
Returns the number of the screen currently in use.
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 QDesktopWidget to query for information about Xinerama screens.
See also appScreen().
Sets the horizontal resolution of the given screen to the number of dots per inch specified by xdpi.
The screen 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 QDesktopWidget to query for information about Xinerama screens.
See also appDpiX() and setAppDpiY().
Sets the vertical resolution of the given screen to the number of dots per inch specified by ydpi.
The screen 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 QDesktopWidget to query for information about Xinerama screens.
See also appDpiY() and setAppDpiX().
Sets the X11 time to the value specified by time.
See also appTime() and setAppUserTime().
Sets the X11 user time as specified by time.
See also appUserTime() and setAppTime().
Returns the current visual.
See also appVisual() and defaultVisual().
Assigns other to this object and returns a reference to this object.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.