6#include <QtCore/qmath.h>
7#include <QtCore/qeasingcurve.h>
8#include <QtGui/qpainter.h>
9#include <QtQuick/qsgimagenode.h>
10#include <QtQuick/qquickwindow.h>
11#include <QtQuickControls2Impl/private/qquickanimatednode_p.h>
47 int m_lastStartAngle = 0;
48 int m_lastEndAngle = 0;
51 qreal m_devicePixelRatio = 1;
99 if (iteration % 2 == 0) {
104 startAngle = m_lastStartAngle;
108 m_lastEndAngle = endAngle;
114 endAngle = m_lastEndAngle;
115 m_lastStartAngle = startAngle;
118 const int halfPen = pen.
width() / 2;
121 m_devicePixelRatio *
size - pen.
width());
124 startAngle -= rotation;
125 endAngle -= rotation;
126 const int angleSpan = endAngle - startAngle;
137 m_color = indicator->
color();
138 m_width = indicator->
width();
139 m_height = indicator->
height();
140 m_devicePixelRatio = indicator->
window()->effectiveDevicePixelRatio();
156 if (m_color ==
color)
214#include "moc_qquickmaterialbusyindicator_p.cpp"
The QColor class provides colors based on RGB, HSV or CMYK values.
qreal valueForProgress(qreal progress) const
Return the effective progress for the easing curve at progress.
QGraphicsWidget * window() const
@ Format_ARGB32_Premultiplied
void fill(uint pixel)
Fills the entire image with the given pixelValue.
The QPainter class performs low-level painting on widgets and other paint devices.
void setPen(const QColor &color)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void drawArc(const QRectF &rect, int a, int alen)
Draws the arc defined by the given rectangle, startAngle and spanAngle.
void setRenderHint(RenderHint hint, bool on=true)
Sets the given render hint on the painter if on is true; otherwise clears the render hint.
void setWidth(int width)
Sets the pen width to the given width in pixels with integer precision.
int width() const
Returns the pen width with integer precision.
void setColor(const QColor &color)
Sets the color of this pen's brush to the given color.
QQuickWindow * window() const
void setLoopCount(int count)
void setCurrentTime(int time)
void setDuration(int duration)
void start(int duration=0)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
void setFlag(Flag flag, bool enabled=true)
Enables the specified flag for this item if enabled is true; if enabled is false, the flag is disable...
QQuickWindow * window() const
Returns the window in which this item is rendered.
qreal width
This property holds the width of this item.
virtual void itemChange(ItemChange, const ItemChangeData &)
Called when change occurs for this item.
qreal height
This property holds the height of this item.
ItemChange
Used in conjunction with QQuickItem::itemChange() to notify the item about certain types of changes.
void update()
Schedules a call to updatePaintNode() for this item.
void updateCurrentTime(int time) override
QQuickMaterialBusyIndicatorNode(QQuickMaterialBusyIndicator *item)
void sync(QQuickItem *item) override
QSGNode * updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) override
Called on the render thread when it is time to sync the state of the item with the scene graph.
QQuickMaterialBusyIndicator(QQuickItem *parent=nullptr)
void itemChange(ItemChange change, const ItemChangeData &data) override
Called when change occurs for this item.
void setColor(const QColor &color)
void setRunning(bool running)
\inmodule QtCore\reentrant
The QSGImageNode class is provided for convenience to easily draw textured content using the QML scen...
virtual void setOwnsTexture(bool owns)=0
Sets whether the node takes ownership of the texture to owns.
virtual void setRect(const QRectF &rect)=0
Sets the target rect of this image node to rect.
virtual void setTexture(QSGTexture *texture)=0
Sets the texture of this image node to texture.
\group qtquick-scenegraph-nodes \title Qt Quick Scene Graph Node classes
void appendChildNode(QSGNode *node)
Appends node to this node's list of children.
QSGNode * firstChild() const
Returns the first child of this node.
Combined button and popup list for selecting options.
static Q_CONSTINIT QBasicAtomicInt running
bool qFuzzyIsNull(qfloat16 f) noexcept
constexpr const T & qMin(const T &a, const T &b)
GLfloat GLfloat GLfloat w
[0]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLfloat GLfloat GLfloat GLfloat h
static const int OneDegree
static QT_BEGIN_NAMESPACE const int SpanAnimationDuration
static const int TargetRotation
static const qreal MaxSweepSpan
static const int RotationAnimationDuration
static const qreal MinSweepSpan
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent