OpenCoverage

qsgdefaultninepatchnode.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/util/qsgdefaultninepatchnode.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4QSGDefaultNinePatchNode::QSGDefaultNinePatchNode()-
5 : m_geometry(QSGGeometry::defaultAttributes_TexturedPoint2D(), 4)-
6{-
7 m_geometry.setDrawingMode(QSGGeometry::DrawTriangleStrip);-
8 setGeometry(&m_geometry);-
9 setMaterial(&m_material);-
10}
never executed: end of block
0
11-
12QSGDefaultNinePatchNode::~QSGDefaultNinePatchNode()-
13{-
14 delete m_material.texture();-
15}
never executed: end of block
0
16-
17void QSGDefaultNinePatchNode::setTexture(QSGTexture *texture)-
18{-
19 delete m_material.texture();-
20 m_material.setTexture(texture);-
21}
never executed: end of block
0
22-
23void QSGDefaultNinePatchNode::setBounds(const QRectF &bounds)-
24{-
25 m_bounds = bounds;-
26}
never executed: end of block
0
27-
28void QSGDefaultNinePatchNode::setDevicePixelRatio(qreal ratio)-
29{-
30 m_devicePixelRatio = ratio;-
31}
never executed: end of block
0
32-
33void QSGDefaultNinePatchNode::setPadding(qreal left, qreal top, qreal right, qreal bottom)-
34{-
35 m_padding = QVector4D(left, top, right, bottom);-
36}
never executed: end of block
0
37-
38void QSGDefaultNinePatchNode::update()-
39{-
40 rebuildGeometry(m_material.texture(), &m_geometry, m_padding, m_bounds, m_devicePixelRatio);-
41 markDirty(QSGNode::DirtyGeometry | QSGNode::DirtyMaterial);-
42}
never executed: end of block
0
43-
44-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0