equal
deleted
inserted
replaced
60 |
60 |
61 QT_BEGIN_NAMESPACE |
61 QT_BEGIN_NAMESPACE |
62 |
62 |
63 class QX11PaintEngine; |
63 class QX11PaintEngine; |
64 |
64 |
|
65 struct QXImageWrapper; |
|
66 |
65 class Q_GUI_EXPORT QX11PixmapData : public QPixmapData |
67 class Q_GUI_EXPORT QX11PixmapData : public QPixmapData |
66 { |
68 { |
67 public: |
69 public: |
68 QX11PixmapData(PixelType type); |
70 QX11PixmapData(PixelType type); |
69 // QX11PixmapData(PixelType type, int width, int height); |
71 // QX11PixmapData(PixelType type, int width, int height); |
85 void setAlphaChannel(const QPixmap &alphaChannel); |
87 void setAlphaChannel(const QPixmap &alphaChannel); |
86 QPixmap alphaChannel() const; |
88 QPixmap alphaChannel() const; |
87 QPixmap transformed(const QTransform &transform, |
89 QPixmap transformed(const QTransform &transform, |
88 Qt::TransformationMode mode) const; |
90 Qt::TransformationMode mode) const; |
89 QImage toImage() const; |
91 QImage toImage() const; |
|
92 QImage toImage(const QRect &rect) const; |
90 QPaintEngine* paintEngine() const; |
93 QPaintEngine* paintEngine() const; |
91 |
94 |
92 Qt::HANDLE handle() const { return hd; } |
95 Qt::HANDLE handle() const { return hd; } |
93 Qt::HANDLE x11ConvertToDefaultDepth(); |
96 Qt::HANDLE x11ConvertToDefaultDepth(); |
94 |
97 |
114 friend class QX11GLPixmapData; // Needs gl_surface |
117 friend class QX11GLPixmapData; // Needs gl_surface |
115 friend bool qt_createEGLSurfaceForPixmap(QPixmapData*, bool); // Needs gl_surface |
118 friend bool qt_createEGLSurfaceForPixmap(QPixmapData*, bool); // Needs gl_surface |
116 |
119 |
117 void release(); |
120 void release(); |
118 |
121 |
|
122 QImage toImage(const QXImageWrapper &xi, const QRect &rect) const; |
|
123 |
119 QBitmap mask_to_bitmap(int screen) const; |
124 QBitmap mask_to_bitmap(int screen) const; |
120 static Qt::HANDLE bitmap_to_mask(const QBitmap &, int screen); |
125 static Qt::HANDLE bitmap_to_mask(const QBitmap &, int screen); |
121 void bitmapFromImage(const QImage &image); |
126 void bitmapFromImage(const QImage &image); |
|
127 |
|
128 bool canTakeQImageFromXImage(const QXImageWrapper &xi) const; |
|
129 QImage takeQImageFromXImage(const QXImageWrapper &xi) const; |
122 |
130 |
123 Qt::HANDLE hd; |
131 Qt::HANDLE hd; |
124 |
132 |
125 enum Flag { |
133 enum Flag { |
126 NoFlags = 0x0, |
134 NoFlags = 0x0, |