QSGRectangleNode Class
QSGRectangleNodeクラスは、scenegraphを使用して塗りつぶされた矩形を描画するための便利なクラスです。詳細...
ヘッダー | #include <QSGRectangleNode> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
qmake: | QT += quick |
継承: | QSGGeometryNode |
パブリック関数
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) |
メンバ関数の説明
[pure virtual]
QColor QSGRectangleNode::color() const
この矩形の色を返します。
setColor()も参照 。
[pure virtual]
QRectF QSGRectangleNode::rect() const
この rect ノードがカバーする矩形を返します。
setRect()も参照してください 。
[pure virtual]
void QSGRectangleNode::setColor(const QColor &color)
この矩形の色をcolor に設定します。 デフォルトの色は白です。
color()も参照してください 。
[pure virtual]
void QSGRectangleNode::setRect(const QRectF &rect)
この rect ノードの矩形をrect に設定します。
rect()も参照 。
void QSGRectangleNode::setRect(qreal x, qreal y, qreal w, qreal h)
これはオーバーロードされた関数です。
この rect ノードの矩形を、 (x,y) を始点とし、幅w と高さh を持つように設定します。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.