47 #include <private/qt_x11_p.h> 65 return static_cast<const QWidget *>(pd)->handle();
67 return static_cast<const QPixmap *>(pd)->handle();
84 return &static_cast<const QWidget *>(pd)->x11Info();
86 return &static_cast<const QPixmap *>(pd)->x11Info();
94 Display *QPaintDevice::x11Display()
const 99 int QPaintDevice::x11Screen()
const 107 void *QPaintDevice::x11Visual()
const 115 int QPaintDevice::x11Depth()
const 119 return info->
depth();
123 int QPaintDevice::x11Cells()
const 127 return info->
cells();
139 bool QPaintDevice::x11DefaultColormap()
const 147 bool QPaintDevice::x11DefaultVisual()
const 155 void *QPaintDevice::x11AppVisual(
int screen)
158 Qt::HANDLE QPaintDevice::x11AppColormap(
int screen)
161 Display *QPaintDevice::x11AppDisplay()
164 int QPaintDevice::x11AppScreen()
167 int QPaintDevice::x11AppDepth(
int screen)
170 int QPaintDevice::x11AppCells(
int screen)
173 Qt::HANDLE QPaintDevice::x11AppRootWindow(
int screen)
176 bool QPaintDevice::x11AppDefaultColormap(
int screen)
179 bool QPaintDevice::x11AppDefaultVisual(
int screen)
182 void QPaintDevice::x11SetAppDpiX(
int dpi,
int screen)
187 void QPaintDevice::x11SetAppDpiY(
int dpi,
int screen)
192 int QPaintDevice::x11AppDpiX(
int screen)
197 int QPaintDevice::x11AppDpiY(
int screen)
int depth() const
Returns the color depth (bits per pixel) of the X display.
static mach_timebase_info_data_t info
#define QT_END_NAMESPACE
This macro expands to.
static int appScreen()
Returns the number of the screen where the application is being displayed.
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 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
const Q_GUI_EXPORT QX11Info * qt_x11Info(const QPaintDevice *pd)
Returns the QX11Info structure for the pd paint device.
#define QT_BEGIN_NAMESPACE
This macro expands to.
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.
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.
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.
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.
Drawable Q_GUI_EXPORT qt_x11Handle(const QPaintDevice *pd)
Returns the X11 Drawable of the paint device.
static int appDpiY(int screen=-1)
Returns the vertical resolution of the given screen in terms of the number of dots per inch...