/*! Creates an empty QQuickTextNode */ QQuickTextNode::QQuickTextNode(QQuickItem *ownerElement) : m_cursorNode(0), m_ownerElement(ownerElement), m_useNativeRenderer(false) { #ifdef QSG_RUNTIME_DESCRIPTION qsgnode_set_description(this, QLatin1String("text")); #endif }
QSGPainterNode::QSGPainterNode(QQuickPaintedItem *item) : QSGGeometryNode() , m_preferredRenderTarget(QQuickPaintedItem::Image) , m_actualRenderTarget(QQuickPaintedItem::Image) , m_item(item) , m_fbo(0) , m_multisampledFbo(0) , m_geometry(QSGGeometry::defaultAttributes_TexturedPoint2D(), 4) , m_texture(0) , m_gl_device(0) , m_dirtyContents(false) , m_opaquePainting(false) , m_linear_filtering(false) , m_mipmapping(false) , m_smoothPainting(false) , m_extensionsChecked(false) , m_multisamplingSupported(false) , m_fastFBOResizing(false) , m_fillColor(Qt::transparent) , m_contentsScale(1.0) , m_dirtyGeometry(false) , m_dirtyRenderTarget(false) , m_dirtyTexture(false) { m_context = static_cast<QQuickPaintedItemPrivate *>(QObjectPrivate::get(item))->sceneGraphRenderContext(); setMaterial(&m_materialO); setOpaqueMaterial(&m_material); setGeometry(&m_geometry); #ifdef QSG_RUNTIME_DESCRIPTION qsgnode_set_description(this, QString::fromLatin1("QQuickPaintedItem(%1):%2").arg(QString::fromLatin1(item->metaObject()->className())).arg(item->objectName())); #endif }
QQuickShapeGenericStrokeFillNode::QQuickShapeGenericStrokeFillNode(QQuickWindow *window) : m_material(nullptr) { setFlag(QSGNode::OwnsGeometry, true); setGeometry(new QSGGeometry(QSGGeometry::defaultAttributes_ColoredPoint2D(), 0, 0)); activateMaterial(window, MatSolidColor); #ifdef QSG_RUNTIME_DESCRIPTION qsgnode_set_description(this, QLatin1String("stroke-fill")); #endif }
void QSGDefaultGlyphNode::setGlyphs(const QPointF &position, const QGlyphRun &glyphs) { if (m_material != 0) delete m_material; m_position = position; m_glyphs = glyphs; #ifdef QSG_RUNTIME_DESCRIPTION qsgnode_set_description(this, QLatin1String("glyphs")); #endif }
/*! Constructs a new simple texture node */ QSGSimpleTextureNode::QSGSimpleTextureNode() : QSGGeometryNode(*new QSGSimpleTextureNodePrivate) , m_geometry(QSGGeometry::defaultAttributes_TexturedPoint2D(), 4) { setGeometry(&m_geometry); setMaterial(&m_material); setOpaqueMaterial(&m_opaque_material); m_material.setMipmapFiltering(QSGTexture::None); m_opaque_material.setMipmapFiltering(QSGTexture::None); #ifdef QSG_RUNTIME_DESCRIPTION qsgnode_set_description(this, QLatin1String("simpletexture")); #endif }
QSGBasicInternalImageNode::QSGBasicInternalImageNode() : m_innerSourceRect(0, 0, 1, 1) , m_subSourceRect(0, 0, 1, 1) , m_antialiasing(false) , m_mirror(false) , m_dirtyGeometry(false) , m_geometry(QSGGeometry::defaultAttributes_TexturedPoint2D(), 4) , m_dynamicTexture(nullptr) { setGeometry(&m_geometry); #ifdef QSG_RUNTIME_DESCRIPTION qsgnode_set_description(this, QLatin1String("internalimage")); #endif }
QSGNode *QQuickAndroid9Patch::updatePaintNode(QSGNode *node, UpdatePaintNodeData *data) { Q_UNUSED(data); if (m_image.isNull()) { delete node; return 0; } QQuickAndroid9PatchNode *patchNode = static_cast<QQuickAndroid9PatchNode *>(node); if (!patchNode) patchNode = new QQuickAndroid9PatchNode; #ifdef QSG_RUNTIME_DESCRIPTION qsgnode_set_description(patchNode, QString::fromLatin1("Android9Patch: '%1'").arg(m_source.toString())); #endif QSGTexture *texture = window()->createTextureFromImage(m_image); patchNode->initialize(texture, boundingRect(), m_image.size(), m_xDivs, m_yDivs); return patchNode; }
QQuickCanvasNode() { qsgnode_set_description(this, QStringLiteral("canvasnode")); setOwnsTexture(false); }