IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QSGSimpleRectNode Class

The QSGSimpleRectNode class is a convenience class for drawing solid filled rectangles using scenegraph.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QSGSimpleRectNode Class

This class is deprecated. We strongly advise against using it in new code.

Detailed Description

This utility class is only functional when running with the OpenGL or software backends of the Qt Quick scenegraph. For a proper cross-platform alternative prefer using QSGRectangleNode via QQuickWindow::createRectangleNode() or QSGEngine::createRectangleNode().

Member Function Documentation

 

QSGSimpleRectNode::QSGSimpleRectNode(const QRectF &rect, const QColor &color)

Constructs a QSGSimpleRectNode instance which is spanning rect with the color color.

QSGSimpleRectNode::QSGSimpleRectNode()

Constructs a QSGSimpleRectNode instance with an empty rectangle and white color.

QColor QSGSimpleRectNode::color() const

Returns the color of this rectangle.

See Also

See also setColor()

QRectF QSGSimpleRectNode::rect() const

Returns the rectangle that this rect node covers.

See Also

See also setRect()

void QSGSimpleRectNode::setColor(const QColor &color)

Sets the color of this rectangle to color. The default color will be white.

See Also

See also color()

void QSGSimpleRectNode::setRect(const QRectF &rect)

Sets the rectangle of this rect node to rect.

See Also

See also rect()

void QSGSimpleRectNode::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.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+