44 #include <QtGui/private/qpixmap_raster_p.h> 45 #include <QtCore/qdebug.h> 54 #if !defined(QT_NO_OPENGL) 55 #if !defined(QT_OPENGL_ES_2) 60 #include <private/qwindowsurface_gl_p.h> 61 #include <private/qpixmapdata_gl_p.h> 67 : mUseOpenGL(useOpenGL)
117 image = screen->
grabWindow(window,x,y,width,height);
122 image = screen->
grabWindow(window,x,y,width,height);
151 #if !defined(QT_NO_OPENGL) 152 #if !defined(QT_OPENGL_ES_2) 156 static bool eglHasbeenInitialized =
false;
157 static bool wasEglInitialized =
false;
158 if (!eglHasbeenInitialized) {
159 eglHasbeenInitialized =
true;
162 eglBindAPI(EGL_OPENGL_ES_API);
164 wasEglInitialized = eglInitialize(disp,&major,&minor);
165 screen->setEglDisplay(disp);
167 return wasEglInitialized;
QPlatformNativeInterface * nativeInterface() const
static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Converts the given image to a pixmap using the specified flags to control the conversion.
QPixmapData * createPixmapData(QPixmapData::PixelType type) const
Factory function for QPixmapData.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
QXlibScreen * mPrimaryScreen
QPixmap grabWindow(WId window, int x, int y, int width, int height) const
This function is called when Qt needs to be able to grab the content of a window. ...
QPlatformWindow * createPlatformWindow(QWidget *widget, WId winId) const
Factory function for QPlatformWindow.
QPlatformFontDatabase * mFontDb
Display * nativeDisplay() const
QImage grabWindow(Window window, int x, int y, int w, int h)
QPlatformClipboard * mClipboard
QPlatformNativeInterface * mNativeInterface
QList< QPlatformScreen * > mScreens
static QXlibScreen * testLiteScreenForWidget(QWidget *widget)
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
const T & at(int i) const
Returns the item at index position i in the list.
QPlatformFontDatabase * fontDatabase() const
Accessor for the platform integrations fontdatabase.
The QImage class provides a hardware-independent image representation that allows direct access to th...
The QWindowSurface class provides the drawing area for top-level windows.
QPlatformClipboard * clipboard() const
Accessor for the platform integrations clipboard.
QXlibIntegration(bool useOpenGL=false)
defined(QT_OPENGL_ES_2)
bool hasCapability(Capability cap) const
QWindowSurface * createWindowSurface(QWidget *widget, WId winId) const
Factory function for QWindowSurface.
int size() const
Returns the number of items in the list.
The QPixmap class is an off-screen image representation that can be used as a paint device...
QXlibDisplay * display() const