42 #ifndef QGRAPHICSEFFECT_P_H 43 #define QGRAPHICSEFFECT_P_H 58 #include <QPixmapCache> 60 #include <private/qobject_p.h> 61 #include <private/qpixmapfilter_p.h> 63 #ifndef QT_NO_GRAPHICSEFFECT 76 bool isPixmap()
const;
81 QRect deviceRect()
const;
108 , m_cachedMode(QGraphicsEffect::PadToTransparentBorder)
119 virtual void detach() = 0;
121 virtual QRect deviceRect()
const = 0;
122 virtual const QGraphicsItem *graphicsItem()
const = 0;
123 virtual const QWidget *
widget()
const = 0;
126 virtual void update() = 0;
127 virtual bool isPixmap()
const = 0;
130 virtual void effectBoundingRectChanged() = 0;
132 void setCachedOffset(
const QPoint &offset);
137 friend class QGraphicsScenePrivate;
138 friend class QGraphicsItem;
139 friend class QGraphicsItemPrivate;
156 QGraphicsEffect::ChangeFlags flags;
159 source->d_func()->invalidateCache();
160 source->d_func()->detach();
166 q_func()->sourceChanged(flags);
217 : opacity(
qreal(0.7)), isFullyTransparent(0), isFullyOpaque(0), hasOpacityMask(0) {}
229 #endif //QT_NO_GRAPHICSEFFECT 230 #endif // QGRAPHICSEFFECT_P_H The QPainter class performs low-level painting on widgets and other paint devices.
#define QT_END_NAMESPACE
This macro expands to.
QGraphicsDropShadowEffectPrivate()
QPointer< QWidget > widget
QPixmapCache::Key m_cacheKey
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
The QGraphicsEffectSource class represents the source on which a QGraphicsEffect is installed on...
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QGraphicsDropShadowEffect class provides a drop shadow effect.
The QObject class is the base class of all Qt objects.
The QGraphicsBlurEffect class provides a blur effect.
QGraphicsOpacityEffectPrivate()
Qt::CoordinateSystem currentCachedSystem() const
static const QRectF boundingRect(const QPointF *points, int pointCount)
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
The QGraphicsColorizeEffect class provides a colorize effect.
The QPixmapColorizeFilter class provides colorizing filtering for pixmaps.
The QStyleOption class stores the parameters used by QStyle functions.
The QPixmapBlurFilter class provides blur filtering for pixmaps.
QPixmapDropShadowFilter * filter
PixmapPadMode
This enum describes how the pixmap returned from sourcePixmap should be padded.
QGraphicsEffectSource * source
The QBrush class defines the fill pattern of shapes drawn by QPainter.
The QGraphicsOpacityEffect class provides an opacity effect.
QGraphicsBlurEffectPrivate()
The QPixmapCache::Key class can be used for efficient access to the QPixmapCache. ...
#define Q_DECLARE_PUBLIC(Class)
~QGraphicsColorizeEffectPrivate()
The QPoint class defines a point in the plane using integer precision.
The QPixmapDropShadowFilter class is a convenience class for drawing pixmaps with drop shadows...
The QRect class defines a rectangle in the plane using integer precision.
QFuture< void > filter(Sequence &sequence, FilterFunction filterFunction)
Qt::CoordinateSystem m_cachedSystem
~QGraphicsDropShadowEffectPrivate()
The QPixmap class is an off-screen image representation that can be used as a paint device...
QPixmapBlurFilter * filter
~QGraphicsBlurEffectPrivate()
QGraphicsEffect::PixmapPadMode currentCachedMode() const
QGraphicsEffectSourcePrivate()
#define Q_DECLARE_PRIVATE(Class)
~QGraphicsOpacityEffectPrivate()
void setGraphicsEffectSource(QGraphicsEffectSource *newSource)
QGraphicsEffect::PixmapPadMode m_cachedMode
QPixmapColorizeFilter * filter
QGraphicsColorizeEffectPrivate()
The QGraphicsEffect class is the base class for all graphics effects.