equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
8 ** |
8 ** |
127 virtual bool isPixmap() const = 0; |
127 virtual bool isPixmap() const = 0; |
128 virtual QPixmap pixmap(Qt::CoordinateSystem system, QPoint *offset = 0, |
128 virtual QPixmap pixmap(Qt::CoordinateSystem system, QPoint *offset = 0, |
129 QGraphicsEffect::PixmapPadMode mode = QGraphicsEffect::PadToTransparentBorder) const = 0; |
129 QGraphicsEffect::PixmapPadMode mode = QGraphicsEffect::PadToTransparentBorder) const = 0; |
130 virtual void effectBoundingRectChanged() = 0; |
130 virtual void effectBoundingRectChanged() = 0; |
131 |
131 |
|
132 void setCachedOffset(const QPoint &offset); |
132 void invalidateCache(InvalidateReason reason = SourceChanged) const; |
133 void invalidateCache(InvalidateReason reason = SourceChanged) const; |
133 Qt::CoordinateSystem currentCachedSystem() const { return m_cachedSystem; } |
134 Qt::CoordinateSystem currentCachedSystem() const { return m_cachedSystem; } |
|
135 QGraphicsEffect::PixmapPadMode currentCachedMode() const { return m_cachedMode; } |
134 |
136 |
135 friend class QGraphicsScenePrivate; |
137 friend class QGraphicsScenePrivate; |
136 friend class QGraphicsItem; |
138 friend class QGraphicsItem; |
137 friend class QGraphicsItemPrivate; |
139 friend class QGraphicsItemPrivate; |
138 |
140 |