QSGRectangleNode Class
The QSGRectangleNode class is a convenience class for drawing solid filled rectangles using scenegraph. 更多...
头文件: | #include <QSGRectangleNode> |
qmake: | QT += quick |
开始支持版本: | Qt 5.8 |
基类: | QSGGeometryNode |
公有函数
virtual | ~QSGRectangleNode() |
virtual QColor | color() const = 0 |
virtual QRectF | rect() const = 0 |
virtual void | setColor(const QColor &color) = 0 |
virtual void | setRect(const QRectF &rect) = 0 |
void | setRect(qreal x, qreal y, qreal w, qreal h) |
- 4 个公有函数继承自 QSGGeometryNode
- 3 个公有函数继承自 QSGBasicGeometryNode
- 20 个公有函数继承自 QSGNode
详细描述
The QSGRectangleNode class is a convenience class for drawing solid filled rectangles using scenegraph.
成员函数
[virtual]
QSGRectangleNode::~QSGRectangleNode()
Destroys the instance of QSGRectangleNode. The destructor is virtual.
[pure virtual]
QColor QSGRectangleNode::color() const
Returns the color of this rectangle.
参见 setColor().
[pure virtual]
QRectF QSGRectangleNode::rect() const
Returns the rectangle that this rect node covers.
参见 setRect().
[pure virtual]
void QSGRectangleNode::setColor(const QColor &color)
Sets the color of this rectangle to color. The default color will be white.
参见 color().
[pure virtual]
void QSGRectangleNode::setRect(const QRectF &rect)
Sets the rectangle of this rect node to rect.
参见 rect().
void QSGRectangleNode::setRect(qreal x, qreal y, qreal w, qreal h)
This is an overloaded function.
Sets the rectangle of this rect node to begin at (x, y) and have width w and height h.