125 xd = static_cast<const QWidget *>(fromDevice)->x11Info().x11data;
127 xd = static_cast<const QPixmap *>(fromDevice)->x11Info().x11data;
147 xd =
static_cast<const QWidget *
>(fromDevice)->x11Info().x11data;
150 xd =
static_cast<const QPixmap *
>(fromDevice)->x11Info().x11data;
226 screen =
X11->defaultScreen;
227 if (screen >
X11->screenCount)
249 screen =
X11->defaultScreen;
250 if (screen >
X11->screenCount)
272 screen =
X11->defaultScreen;
273 if (screen >
X11->screenCount)
294 screen =
X11->defaultScreen;
295 if (screen >
X11->screenCount)
307 return X11 ?
X11->time : 0;
329 return X11 ?
X11->userTime : 0;
340 X11->userTime = time;
361 return X11 ?
X11->display : 0;
372 return X11 ?
X11->defaultScreen : 0;
387 return X11 ?
X11->screens[screen == -1 ?
X11->defaultScreen :
screen].colormap : 0;
404 return X11 ?
X11->screens[screen == -1 ?
X11->defaultScreen :
screen].visual : 0;
419 return X11 ? RootWindow(
X11->display, screen == -1 ?
X11->defaultScreen : screen) : 0;
436 return X11 ?
X11->screens[screen == -1 ?
X11->defaultScreen :
screen].depth : 32;
451 {
return X11 ?
X11->screens[screen == -1 ?
X11->defaultScreen :
screen].cells : 0; }
463 {
return X11 ?
X11->screens[screen == -1 ?
X11->defaultScreen :
screen].defaultColormap :
true; }
475 {
return X11 ?
X11->screens[screen == -1 ?
X11->defaultScreen :
screen].defaultVisual :
true; }
555 return X11 ?
X11->compositingManagerRunning :
false;
int depth() const
Returns the color depth (bits per pixel) of the X display.
#define QT_END_NAMESPACE
This macro expands to.
static int appScreen()
Returns the number of the screen where the application is being displayed.
static unsigned long appUserTime()
Returns the X11 user time.
int cells() const
Returns the number of cells.
static int appDepth(int screen=-1)
Returns the color depth (bits per pixel) used by the application on the given screen.
static void setAppTime(unsigned long time)
Sets the X11 time to the value specified by time.
static bool appDefaultVisual(int screen=-1)
Returns true if the application has a default visual on the given screen; otherwise returns false...
static Qt::HANDLE appRootWindow(int screen=-1)
Returns a handle for the applications root window on the given screen.
virtual int devType() const
static unsigned long appTime()
Returns the X11 time.
static bool isCompositingManagerRunning()
Returns true if there is a compositing manager running.
void cloneX11Data(const QPaintDevice *)
Makes a deep copy of the X11-specific data of fromDevice, if it is not null.
QX11InfoData * getX11Data(bool def=false) const
#define QT_BEGIN_NAMESPACE
This macro expands to.
~QX11Info()
Destroys the QX11Info object.
static int appDpiX(int screen=-1)
Returns the horizontal resolution of the given screen in terms of the number of dots per inch...
static void setAppDpiY(int screen, int dpi)
Sets the vertical resolution of the given screen to the number of dots per inch specified by ydpi...
static bool appDefaultColormap(int screen=-1)
Returns true if the application has a default color map on the given screen; otherwise returns false...
bool defaultVisual() const
Returns true if there is a default visual; otherwise returns false.
static void setAppUserTime(unsigned long time)
Sets the X11 user time as specified by time.
Qt::HANDLE colormap() const
Returns a handle for the color map.
void * visual() const
Returns the current visual.
static Qt::HANDLE appColormap(int screen=-1)
Returns a handle for the application's color map on the given screen.
QX11Info()
Constructs an empty QX11Info object.
void copyX11Data(const QPaintDevice *)
Makes a shallow copy of the X11-specific data of fromDevice, if it is not null.
The QX11Info class provides information about the X display configuration.
static void * appVisual(int screen=-1)
Returns the current visual used by the application on the given screen.
bool defaultColormap() const
Returns true if there is a default color map; otherwise returns false.
The QPixmap class is an off-screen image representation that can be used as a paint device...
QX11Info & operator=(const QX11Info &other)
Assigns other to this object and returns a reference to this object.
void setX11Data(const QX11InfoData *)
Makes a shallow copy of the X11-specific data d and assigns it to this class.
static int appCells(int screen=-1)
Returns the number of cells used by the application on the given screen.
static void setAppDpiX(int screen, int dpi)
Sets the horizontal resolution of the given screen to the number of dots per inch specified by xdpi...
static Display * display()
Returns the default display for the application.
int screen() const
Returns the number of the screen currently in use.
static int appDpiY(int screen=-1)
Returns the vertical resolution of the given screen in terms of the number of dots per inch...