aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/particles/qsgellipseextruder.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-07-11 11:20:58 +1000
committerQt by Nokia <qt-info@nokia.com>2011-07-20 06:57:44 +0200
commit963e769c01237265a403e2d28c1b2691cb45bf99 (patch)
tree89e874d035fc37348552f6ed8fc05bede181d9c8 /src/declarative/particles/qsgellipseextruder.cpp
parent12ebf79f3a92646ae7d5671d8ba4147055d203c2 (diff)
Initial stab at docs for QtQuick.Particles 2.0
Change-Id: I3c53f7998dff95616a994edf19094fa4007d74ab Reviewed-on: http://codereview.qt.nokia.com/1388 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/declarative/particles/qsgellipseextruder.cpp')
-rw-r--r--src/declarative/particles/qsgellipseextruder.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/declarative/particles/qsgellipseextruder.cpp b/src/declarative/particles/qsgellipseextruder.cpp
index e43023324e..59e8803b28 100644
--- a/src/declarative/particles/qsgellipseextruder.cpp
+++ b/src/declarative/particles/qsgellipseextruder.cpp
@@ -42,12 +42,29 @@
#include "qsgellipseextruder_p.h"
#include <cmath>
QT_BEGIN_NAMESPACE
+/*!
+ \qmlclass EllipseShape QSGEllipseExtruder
+ \inqmlmodule QtQuick.Particles 2
+ \since QtQuick.Particles 2.0
+ \inherits Shape
+ \brief The EllipseShape represents an ellipse to other particle system elements
+
+ This shape can be used by Emitter subclasses and Affector subclasses to have
+ them act upon an ellipse shaped area.
+*/
QSGEllipseExtruder::QSGEllipseExtruder(QObject *parent) :
QSGParticleExtruder(parent)
, m_fill(true)
{
}
+/*!
+ \qmlproperty bool QtQuick.Particles2::EllipseShape::fill
+ If fill is true the ellipse is filled; otherwise it is just a border.
+
+ Default is true.
+*/
+
QPointF QSGEllipseExtruder::extrude(const QRectF & r)
{
qreal theta = ((qreal)rand()/RAND_MAX) * 6.2831853071795862;