src/opengl/qpixmapdata_x11gl_p.h
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
    57 #include <private/qpixmap_x11_p.h>
    57 #include <private/qpixmap_x11_p.h>
    58 #include <private/qglpaintdevice_p.h>
    58 #include <private/qglpaintdevice_p.h>
    59 
    59 
    60 #include <qgl.h>
    60 #include <qgl.h>
    61 
    61 
       
    62 #ifndef QT_NO_EGL
       
    63 #include <QtGui/private/qeglcontext_p.h>
       
    64 #endif
       
    65 
    62 QT_BEGIN_NAMESPACE
    66 QT_BEGIN_NAMESPACE
       
    67 
       
    68 class QX11GLSharedContexts;
    63 
    69 
    64 class QX11GLPixmapData : public QX11PixmapData, public QGLPaintDevice
    70 class QX11GLPixmapData : public QX11PixmapData, public QGLPaintDevice
    65 {
    71 {
    66 public:
    72 public:
    67     QX11GLPixmapData();
    73     QX11GLPixmapData();
    68     virtual ~QX11GLPixmapData();
    74     virtual ~QX11GLPixmapData();
    69 
    75 
       
    76     // Re-implemented from QX11PixmapData:
       
    77     void fill(const QColor &color);
       
    78     void copy(const QPixmapData *data, const QRect &rect);
       
    79     bool scroll(int dx, int dy, const QRect &rect);
       
    80 
    70     // Re-implemented from QGLPaintDevice
    81     // Re-implemented from QGLPaintDevice
    71     QPaintEngine* paintEngine() const; // Also re-implements QX11PixmapData::paintEngine
    82     QPaintEngine* paintEngine() const; // Also re-implements QX11PixmapData::paintEngine
    72     void beginPaint();
    83     void beginPaint();
    73     void endPaint();
       
    74     QGLContext* context() const;
    84     QGLContext* context() const;
    75     QSize size() const;
    85     QSize size() const;
    76 
    86 
    77     static bool hasX11GLPixmaps();
    87     static bool hasX11GLPixmaps();
    78     static QGLFormat glFormat();
    88     static QGLFormat glFormat();
       
    89     static QX11GLSharedContexts* sharedContexts();
       
    90 
    79 private:
    91 private:
    80     mutable QGLContext* ctx;
    92     mutable QGLContext* ctx;
    81 };
    93 };
    82 
    94 
    83 
    95