42 #ifndef QDECLARATIVEPARTICLES_H 43 #define QDECLARATIVEPARTICLES_H 45 #include <QtDeclarative/qdeclarativeitem.h> 88 void setXAttractor(
qreal x);
91 void setYAttractor(
qreal y);
94 void setAcceleration(
qreal accel);
99 void xattractorChanged();
100 void yattractorChanged();
101 void accelerationChanged();
131 void setXVariance(
qreal var);
135 void setYVariance(
qreal var);
139 void setPace(
qreal pace);
142 void xvarianceChanged();
143 void yvarianceChanged();
178 void setSource(const
QUrl &);
181 void setCount(
int cnt);
183 int emissionRate() const;
184 void setEmissionRate(
int);
186 qreal emissionVariance() const;
187 void setEmissionVariance(
qreal);
189 int lifeSpan() const;
190 void setLifeSpan(
int);
192 int lifeSpanDeviation() const;
193 void setLifeSpanDeviation(
int);
195 int fadeInDuration() const;
196 void setFadeInDuration(
int);
198 int fadeOutDuration() const;
199 void setFadeOutDuration(
int);
202 void setAngle(qreal);
204 qreal angleDeviation() const;
205 void setAngleDeviation(qreal);
207 qreal velocity() const;
208 void setVelocity(qreal);
210 qreal velocityDeviation() const;
211 void setVelocityDeviation(qreal);
219 void burst(
int count,
int emissionRate=-1);
222 virtual
void componentComplete();
225 void sourceChanged();
227 void emissionRateChanged();
228 void emissionVarianceChanged();
229 void lifeSpanChanged();
230 void lifeSpanDeviationChanged();
231 void fadeInDurationChanged();
232 void fadeOutDurationChanged();
234 void angleDeviationChanged();
235 void velocityChanged();
236 void velocityDeviationChanged();
237 void emittingChanged();
238 void motionChanged();
QDeclarativeParticleMotion(QObject *parent=0)
Constructs a QDeclarativeParticleMotion with parent object parent.
int count
the maximum number of particles
The QPainter class performs low-level painting on widgets and other paint devices.
QUrl source
the URL of the particle image.
#define Q_CLASSINFO(name, value)
This macro associates extra information to the class, which is available using QObject::metaObject()...
#define QT_END_NAMESPACE
This macro expands to.
The QDeclarativeParticleMotion class is the base class for particle motion.
int fadeOutDuration
the time taken to fade out the particles.
#define QML_DECLARE_TYPE(TYPE)
qreal emissionVariance
how much the particle emission amounts vary per tick
int fadeInDuration
the time taken to fade in the particles.
qreal acceleration
the acceleration to apply to the particles.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
int lifeSpan
the life span of each particle.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QUrl class provides a convenient interface for working with URLs.
qreal velocity
the initial velocity of the particles.
The QObject class is the base class of all Qt objects.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QDeclarativeParticleMotion * motion
sets the type of motion to apply to the particles.
qreal xattractor
the x coordinate of the point attracting the particles.
The QDeclarativeItem class provides the most basic of all visual items in QML.
qreal acceleration() const
QDeclarativeParticleMotionWander()
static const char * data(const QByteArray &arr)
qreal angleDeviation
the maximum possible deviation from the set angle.
virtual void destroy(QDeclarativeParticle &)
The particle is about to be destroyed.
qreal velocityDeviation
the maximum possible deviation from the set velocity.
QDeclarativeParticleMotionGravity(QObject *parent=0)
#define Q_DECLARE_PRIVATE_D(Dptr, Class)
QDeclarativeParticles * particles
int emissionRate
the emission rate of particles
virtual void created(QDeclarativeParticle &)
The particle has just been created.
QObject * parent() const
Returns a pointer to the parent object.
int lifeSpanDeviation
the maximum possible deviation from the set lifeSpan.
qreal angle
the initial angle of direction.
QScopedPointer< QObjectData > d_ptr
virtual void advance(QDeclarativeParticle &, int interval)
Move the particle to its new position.
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem...
QDeclarativeParticleMotionLinear(QObject *parent=0)
qreal yattractor
the y coordinate of the point attracting the particles.