93    void setRect(
const QRectF &) 
override;
 
   94    QRectF rect()
 const override { 
return m_rect; }
 
   95    void setRadius(qreal radius);
 
   96    void setColor(
const QColor &color) 
override;
 
   97    QColor color()
 const override { 
return m_color; }
 
   98    void setMakTexture(QSGTexture *texture);
 
   99    void setCorners(DQuickRectangle::Corners);
 
  103    void updateGeometry();
 
  106    const QSGGeometry::AttributeSet &ColoredCornerAttributes()
 
  108        static QSGGeometry::Attribute data[] = {
 
  109            QSGGeometry::Attribute::create(0, 2, GL_FLOAT, 
true),
 
  110            QSGGeometry::Attribute::create(1, 2, GL_FLOAT),
 
  111            QSGGeometry::Attribute::create(2, 4, GL_UNSIGNED_BYTE)
 
  118    QSGVertexColorMaterial m_material;
 
  119    QSGGeometry m_geometry;
 
  122    QSGGeometry m_cornerGeometry { ColoredCornerAttributes(), 0 };
 
  123    QSGGeometryNode m_cornerNode;
 
  126    bool m_geometryChanged = 
false;
 
  127    DQuickRectangle::Corners m_coners = DQuickRectangle::NoneCorner;
 
  129    QColor m_color = QColor::Invalid;
 
  130    QSGTexture *m_maskTexture = 
nullptr;