42 #ifndef QPAINTDEVICE_H 43 #define QPAINTDEVICE_H 45 #include <QtGui/qwindowdefs.h> 46 #include <QtCore/qrect.h> 78 virtual int devType()
const;
79 bool paintingActive()
const;
87 virtual HDC getDC()
const;
88 virtual void releaseDC(HDC hdc)
const;
91 int width()
const {
return metric(PdmWidth); }
92 int height()
const {
return metric(PdmHeight); }
93 int widthMM()
const {
return metric(PdmWidthMM); }
94 int heightMM()
const {
return metric(PdmHeightMM); }
103 int depth()
const {
return metric(PdmDepth); }
114 #if defined(Q_WS_X11) && defined(QT3_SUPPORT) 116 QT3_SUPPORT
Display *x11Display()
const;
117 QT3_SUPPORT
int x11Screen()
const;
118 QT3_SUPPORT
int x11Depth()
const;
119 QT3_SUPPORT
int x11Cells()
const;
121 QT3_SUPPORT
bool x11DefaultColormap()
const;
122 QT3_SUPPORT
void *x11Visual()
const;
123 QT3_SUPPORT
bool x11DefaultVisual()
const;
125 static QT3_SUPPORT
Display *x11AppDisplay();
126 static QT3_SUPPORT
int x11AppScreen();
127 static QT3_SUPPORT
int x11AppDepth(
int screen = -1);
128 static QT3_SUPPORT
int x11AppCells(
int screen = -1);
129 static QT3_SUPPORT
Qt::HANDLE x11AppRootWindow(
int screen = -1);
130 static QT3_SUPPORT
Qt::HANDLE x11AppColormap(
int screen = -1);
131 static QT3_SUPPORT
void *x11AppVisual(
int screen = -1);
132 static QT3_SUPPORT
bool x11AppDefaultColormap(
int screen =-1);
133 static QT3_SUPPORT
bool x11AppDefaultVisual(
int screen =-1);
134 static QT3_SUPPORT
int x11AppDpiX(
int screen = -1);
135 static QT3_SUPPORT
int x11AppDpiY(
int screen = -1);
136 static QT3_SUPPORT
void x11SetAppDpiX(
int,
int);
137 static QT3_SUPPORT
void x11SetAppDpiY(
int,
int);
149 const QPaintDevice *src,
int sx=0,
int sy=0,
int sw=-1,
int sh=-1,
150 bool ignoreMask=
false);
154 const QImage *src,
int sx=0,
int sy=0,
int sw=-1,
int sh=-1,
155 int conversion_flags=0);
160 bool ignoreMask=
false);
171 {
return painters != 0; }
177 #endif // QPAINTDEVICE_H The QPainter class performs low-level painting on widgets and other paint devices.
The QWSDisplay class provides a display for QWS; it is an internal class.
#define QT_END_NAMESPACE
This macro expands to.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
virtual int devType() const
bool paintingActive() const
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QImage class provides a hardware-independent image representation that allows direct access to th...
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
QT_DEPRECATED int numColors() const
The QPoint class defines a point in the plane using integer precision.
The QRect class defines a rectangle in the plane using integer precision.
Q_GUI_EXPORT int qt_paint_device_metric(const QPaintDevice *device, QPaintDevice::PaintDeviceMetric metric)