40 #ifndef QGRAPHICSEFFECT_H
41 #define QGRAPHICSEFFECT_H
43 #include <QtWidgets/qtwidgetsglobal.h>
44 #include <QtCore/qobject.h>
45 #include <QtCore/qpoint.h>
46 #include <QtCore/qrect.h>
47 #include <QtGui/qcolor.h>
48 #include <QtGui/qbrush.h>
70 SourceBoundingRectChanged = 0x4,
71 SourceInvalidated = 0x8
79 PadToEffectiveBoundingRect
85 virtual QRectF boundingRectFor(
const QRectF &sourceRect)
const;
86 QRectF boundingRect()
const;
88 bool isEnabled()
const;
91 void setEnabled(
bool enable);
100 virtual void sourceChanged(ChangeFlags
flags);
101 void updateBoundingRect();
103 bool sourceIsPixmap()
const;
130 Q_PROPERTY(
qreal strength READ strength WRITE setStrength NOTIFY strengthChanged)
136 qreal strength()
const;
140 void setStrength(
qreal strength);
158 Q_PROPERTY(
qreal blurRadius READ blurRadius WRITE setBlurRadius NOTIFY blurRadiusChanged)
159 Q_PROPERTY(BlurHints blurHints READ blurHints WRITE setBlurHints NOTIFY blurHintsChanged)
162 PerformanceHint = 0x00,
174 qreal blurRadius()
const;
175 BlurHints blurHints()
const;
178 void setBlurRadius(
qreal blurRadius);
179 void setBlurHints(BlurHints hints);
200 Q_PROPERTY(
qreal xOffset READ xOffset WRITE setXOffset NOTIFY offsetChanged)
201 Q_PROPERTY(
qreal yOffset READ yOffset WRITE setYOffset NOTIFY offsetChanged)
202 Q_PROPERTY(
qreal blurRadius READ blurRadius WRITE setBlurRadius NOTIFY blurRadiusChanged)
217 qreal blurRadius()
const;
221 void setOffset(
const QPointF &ofs);
224 { setOffset(
QPointF(dx, dy)); }
230 { setOffset(
QPointF(dx, yOffset())); }
233 { setOffset(
QPointF(xOffset(), dy)); }
235 void setBlurRadius(
qreal blurRadius);
255 Q_PROPERTY(
qreal opacity READ opacity WRITE setOpacity NOTIFY opacityChanged)
261 qreal opacity()
const;
262 QBrush opacityMask()
const;
265 void setOpacity(
qreal opacity);
The QBrush class defines the fill pattern of shapes drawn by QPainter.
The QColor class provides colors based on RGB, HSV or CMYK values.
The QGraphicsBlurEffect class provides a blur effect.
void blurHintsChanged(BlurHints hints)
void blurRadiusChanged(qreal blurRadius)
The QGraphicsColorizeEffect class provides a colorize effect.
void strengthChanged(qreal strength)
void colorChanged(const QColor &color)
The QGraphicsDropShadowEffect class provides a drop shadow effect.
void colorChanged(const QColor &color)
void blurRadiusChanged(qreal blurRadius)
void offsetChanged(const QPointF &offset)
void setXOffset(qreal dx)
void setYOffset(qreal dy)
void setOffset(qreal dx, qreal dy)
The QGraphicsEffect class is the base class for all graphics effects.
void enabledChanged(bool enabled)
virtual void draw(QPainter *painter)=0
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
The QGraphicsOpacityEffect class provides an opacity effect.
void opacityMaskChanged(const QBrush &mask)
void opacityChanged(qreal opacity)
The QObject class is the base class of all Qt objects.
The QPainter class performs low-level painting on widgets and other paint devices.
The QPixmap class is an off-screen image representation that can be used as a paint device.
The QPointF class defines a point in the plane using floating point precision.
The QPoint class defines a point in the plane using integer precision.
The QRectF class defines a finite rectangle in the plane using floating point precision.
The QStyleOption class stores the parameters used by QStyle functions.
auto it unsigned count const
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
QT_END_INCLUDE_NAMESPACE typedef double qreal
#define Q_DISABLE_COPY(Class)
QT_REQUIRE_CONFIG(graphicseffect)
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLenum GLuint GLintptr offset
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
GLsizei GLsizei GLchar * source
effect setOpacityMask(alphaGradient)
myFilter setColor(QColor(128, 0, 0))
myFilter draw(painter, QPoint(0, 0), originalPixmap)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent