QtGui/qpaintdevice.h Source File
Go to the documentation of this file.
42 #ifndef QPAINTDEVICE_H
43 #define QPAINTDEVICE_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); }
100 QT_DEPRECATED
int numColors()
const {
return metric(PdmNumColors); }
103 int depth()
const {
return metric(PdmDepth); }
107 virtual int metric(PaintDeviceMetric metric)
const;
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);
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);
141 friend class QFontEngineMac;
142 friend class QX11PaintEngine;
147 QT3_SUPPORT Q_GUI_EXPORT
150 bool ignoreMask=
false);
152 QT3_SUPPORT Q_GUI_EXPORT
154 const QImage *
src,
int sx=0,
int sy=0,
int sw=-1,
int sh=-1,
155 int conversion_flags=0);
157 QT3_SUPPORT Q_GUI_EXPORT
160 bool ignoreMask=
false);
171 {
return painters != 0; }
177 #endif // QPAINTDEVICE_H
typedefQT_END_NAMESPACE QT_END_HEADER struct _XDisplay Display
bool paintingActive() const
virtual int devType() const
#define QT_BEGIN_NAMESPACE