Changeset 561 for trunk/src/gui/image/qpixmap.h
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/gui/image/qpixmap.h
r342 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the QtGui module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you have questions regarding the use of this file, please contact 37 ** Nokia at qt-info@nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 47 47 #include <QtCore/qnamespace.h> 48 48 #include <QtCore/qstring.h> // char*->QString conversion 49 #include <QtCore/qsharedpointer.h> 49 50 #include <QtGui/qimage.h> 50 51 #include <QtGui/qtransform.h> 51 52 52 53 QT_BEGIN_HEADER 54 55 #if defined(Q_OS_SYMBIAN) 56 class CFbsBitmap; 57 class RSgImage; 58 #endif 53 59 54 60 QT_BEGIN_NAMESPACE … … 60 66 class QVariant; 61 67 class QX11Info; 68 69 #if defined(Q_WS_PM) 62 70 class QIcon; 71 #endif 63 72 64 73 class QPixmapData; … … 81 90 operator QVariant() const; 82 91 83 bool isNull() const; 92 bool isNull() const; // ### Qt 5: make inline 84 93 int devType() const; 85 94 86 int width() const; 87 int height() const; 95 int width() const; // ### Qt 5: make inline 96 int height() const; // ### Qt 5: make inline 88 97 QSize size() const; 89 98 QRect rect() const; … … 146 155 147 156 HBITMAP toWinHBITMAP(HBitmapFormat format = NoAlpha) const; 157 HICON toWinHICON() const; 158 148 159 static QPixmap fromWinHBITMAP(HBITMAP hbitmap, HBitmapFormat format = NoAlpha); 160 static QPixmap fromWinHICON(HICON hicon); 149 161 #endif 150 162 … … 162 174 #endif 163 175 176 #if defined(Q_OS_SYMBIAN) 177 CFbsBitmap *toSymbianCFbsBitmap() const; 178 static QPixmap fromSymbianCFbsBitmap(CFbsBitmap *bitmap); 179 RSgImage* toSymbianRSgImage() const; 180 static QPixmap fromSymbianRSgImage(RSgImage *sgImage); 181 #endif 182 164 183 inline QPixmap copy(int x, int y, int width, int height) const; 165 184 QPixmap copy(const QRect &rect = QRect()) const; 185 186 inline void scroll(int dx, int dy, int x, int y, int width, int height, QRegion *exposed = 0); 187 void scroll(int dx, int dy, const QRect &rect, QRegion *exposed = 0); 166 188 167 189 int serialNumber() const; … … 177 199 int qwsBytesPerLine() const; 178 200 QRgb *clut() const; 179 int numCols() const; 201 #ifdef QT_DEPRECATED 202 QT_DEPRECATED int numCols() const; 203 #endif 204 int colorCount() const; 180 205 #elif defined(Q_WS_MAC) 181 206 Qt::HANDLE macQDHandle() const; … … 226 251 227 252 private: 228 Q PixmapData *data;253 QExplicitlySharedDataPointer<QPixmapData> data; 229 254 230 255 bool doImageIO(QImageWriter *io, int quality) const; … … 252 277 friend class QX11PixmapData; 253 278 friend class QMacPixmapData; 279 friend class QS60PixmapData; 254 280 friend class QBitmap; 255 281 friend class QPaintDevice; … … 261 287 friend class QRasterPaintEngine; 262 288 friend class QRasterBuffer; 263 friend class QDirect3DPaintEngine; 264 friend class QDirect3DPaintEnginePrivate; 265 friend class QDetachedPixmap; 289 friend class QPixmapCacheEntry; 266 290 #if !defined(QT_NO_DATASTREAM) 267 291 friend Q_GUI_EXPORT QDataStream &operator>>(QDataStream &, QPixmap &); … … 273 297 274 298 public: 275 typedef Q PixmapData *DataPtr;299 typedef QExplicitlySharedDataPointer<QPixmapData> DataPtr; 276 300 inline DataPtr &data_ptr() { return data; } 277 301 }; … … 282 306 { 283 307 return copy(QRect(ax, ay, awidth, aheight)); 308 } 309 310 inline void QPixmap::scroll(int dx, int dy, int ax, int ay, int awidth, int aheight, QRegion *exposed) 311 { 312 scroll(dx, dy, QRect(ax, ay, awidth, aheight), exposed); 284 313 } 285 314
Note:
See TracChangeset
for help on using the changeset viewer.