7#include <QtGui/qvector2d.h>
8#include <QtCore/qmath.h>
15 , m_dirty_geometry(true)
16 , m_geometry(
QSGGeometry::defaultAttributes_Point2D(), 0)
26 m_dirty_geometry =
true;
32 m_dirty_geometry =
true;
38 if (m_dirty_geometry) {
40 m_dirty_geometry =
false;
44void QQuickDefaultClipNode::updateGeometry()
66 for (
int part = 0; part < 2; ++part) {
82#ifdef QSG_RUNTIME_DESCRIPTION
83#ifndef QT_NO_DEBUG_STREAM
89 dbg <<
"radius" << m_radius;
QQuickDefaultClipNode(const QRectF &)
void setRect(const QRectF &)
void setRadius(qreal radius)
\inmodule QtCore\reentrant
constexpr qreal bottom() const noexcept
Returns the y-coordinate of the rectangle's bottom edge.
constexpr qreal height() const noexcept
Returns the height of the rectangle.
constexpr qreal width() const noexcept
Returns the width of the rectangle.
constexpr qreal left() const noexcept
Returns the x-coordinate of the rectangle's left edge.
constexpr void adjust(qreal x1, qreal y1, qreal x2, qreal y2) noexcept
Adds dx1, dy1, dx2 and dy2 respectively to the existing coordinates of the rectangle.
constexpr qreal top() const noexcept
Returns the y-coordinate of the rectangle's top edge.
constexpr qreal right() const noexcept
Returns the x-coordinate of the rectangle's right edge.
const QSGGeometry * geometry() const
Returns this node's geometry.
void setGeometry(QSGGeometry *geometry)
Sets the geometry of this node to geometry.
void setClipRect(const QRectF &)
Sets the clip rect of this clip node to rect.
void setIsRectangular(bool rectHint)
Sets whether this clip node has a rectangular clip to rectHint.
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
static void updateRectGeometry(QSGGeometry *g, const QRectF &rect)
Updates the geometry g with the coordinates in rect.
void markDirty(DirtyState bits)
Notifies all connected renderers that the node has dirty bits.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QVector2D class represents a vector or vertex in 2D space.
Combined button and popup list for selecting options.
bool qFuzzyIsNull(qfloat16 f) noexcept
constexpr const T & qMin(const T &a, const T &b)
void qsgnode_set_description(QSGNode *node, const QString &description)