Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsgrectanglenode.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5
7
8/*!
9 \class QSGRectangleNode
10
11 \brief The QSGRectangleNode class is a convenience class for drawing
12 solid filled rectangles using scenegraph.
13 \inmodule QtQuick
14 \since 5.8
15 */
16
17/*!
18 \fn void QSGRectangleNode::setRect(const QRectF &rect)
19
20 Sets the rectangle of this rect node to \a rect.
21 */
22
23/*!
24 \fn void QSGRectangleNode::setRect(qreal x, qreal y, qreal w, qreal h)
25 \overload
26
27 Sets the rectangle of this rect node to begin at (\a x, \a y) and have
28 width \a w and height \a h.
29 */
30
31/*!
32 \fn QRectF QSGRectangleNode::rect() const
33
34 Returns the rectangle that this rect node covers.
35 */
36
37/*!
38 \fn void QSGRectangleNode::setColor(const QColor &color)
39
40 Sets the color of this rectangle to \a color. The default color will be
41 white.
42 */
43
44/*!
45 \fn QColor QSGRectangleNode::color() const
46
47 Returns the color of this rectangle.
48 */
49
50QT_END_NAMESPACE