30 : m_geometry(
QSGGeometry::defaultAttributes_Point2D(), 4)
46 : m_geometry(
QSGGeometry::defaultAttributes_Point2D(), 4)
105 return m_material.
color();
The QColor class provides colors based on RGB, HSV or CMYK values.
\inmodule QtCore\reentrant
void setGeometry(QSGGeometry *geometry)
Sets the geometry of this node to geometry.
void setColor(const QColor &color)
Sets this flat color material's color to color.
const QColor & color() const
Returns this flat color material's color.
void setMaterial(QSGMaterial *material)
Sets the material of this geometry node to material.
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.
Point2D * vertexDataAsPoint2D()
Convenience function to access the vertex data as a mutable array of QSGGeometry::Point2D.
void markDirty(DirtyState bits)
Notifies all connected renderers that the node has dirty bits.
QRectF rect() const
Returns the rectangle that this rect node covers.
void setColor(const QColor &color)
Sets the color of this rectangle to color.
void setRect(const QRectF &rect)
Sets the rectangle of this rect node to rect.
QSGSimpleRectNode()
Constructs a QSGSimpleRectNode instance with an empty rectangle and white color.
QColor color() const
Returns the color of this rectangle.
Combined button and popup list for selecting options.
GLint GLint GLint GLint GLint x
[0]
The QSGGeometry::Point2D struct is a convenience struct for accessing 2D Points.