26 QSGBasicInternalRectangleNode();
28 void setRect(
const QRectF &rect) override;
29 void setColor(
const QColor &color) override;
30 void setPenColor(
const QColor &color) override;
31 void setPenWidth(qreal width) override;
32 void setGradientStops(
const QGradientStops &stops) override;
33 void setGradientVertical(
bool vertical) override;
34 void setRadius(qreal radius) override;
35 void setTopLeftRadius(qreal radius) override;
36 void setTopRightRadius(qreal radius) override;
37 void setBottomLeftRadius(qreal radius) override;
38 void setBottomRightRadius(qreal radius) override;
39 void resetTopLeftRadius() override;
40 void resetTopRightRadius() override;
41 void resetBottomLeftRadius() override;
42 void resetBottomRightRadius() override;
43 void setAntialiasing(
bool antialiasing) override;
44 void setAligned(
bool aligned) override;
45 void update() override;
48 virtual bool supportsAntialiasing()
const {
return true; }
49 virtual void updateMaterialAntialiasing() = 0;
50 virtual void updateMaterialBlending(QSGNode::DirtyState *state) = 0;
52 void updateGeometry();
53 void updateGradientTexture();
56 QGradientStops m_gradient_stops;
58 QColor m_border_color;
59 float m_radius = 0.0f;
60 float m_topLeftRadius = 0.0f;
61 float m_topRightRadius = 0.0f;
62 float m_bottomLeftRadius = 0.0f;
63 float m_bottomRightRadius = 0.0f;
64 float m_pen_width = 0.0f;
67 uint m_antialiasing : 1;
68 uint m_gradient_is_opaque : 1;
69 uint m_dirty_geometry : 1;
70 uint m_gradient_is_vertical : 1;
72 uint m_isTopLeftRadiusSet : 1;
73 uint m_isTopRightRadiusSet : 1;
74 uint m_isBottomLeftRadiusSet : 1;
75 uint m_isBottomRightRadiusSet : 1;
77 QSGGeometry m_geometry;