OpenCoverage

qsgsoftwarerenderablenode_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderablenode_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5class QSGSimpleRectNode;-
6class QSGSimpleTextureNode;-
7class QSGSoftwareInternalImageNode;-
8class QSGSoftwarePainterNode;-
9class QSGSoftwareInternalRectangleNode;-
10class QSGSoftwareGlyphNode;-
11class QSGSoftwareNinePatchNode;-
12class QSGSoftwareSpriteNode;-
13class QSGRenderNode;-
14-
15class __attribute__((visibility("default"))) QSGSoftwareRenderableNode-
16{-
17public:-
18 enum NodeType {-
19 Invalid = -1,-
20 SimpleRect,-
21 SimpleTexture,-
22 Image,-
23 Painter,-
24 Rectangle,-
25 Glyph,-
26 NinePatch,-
27 SimpleRectangle,-
28 SimpleImage,-
29-
30 SpriteNode,-
31-
32 RenderNode-
33 };-
34-
35 QSGSoftwareRenderableNode(NodeType type, QSGNode *node);-
36 ~QSGSoftwareRenderableNode();-
37-
38 void update();-
39-
40 QRegion renderNode(QPainter *painter, bool forceOpaquePainting = false);-
41 QRect boundingRectMin() const { return
executed 32 times by 1 test: return m_boundingRectMin;
Executed by:
  • tst_qquickshape
m_boundingRectMin;
executed 32 times by 1 test: return m_boundingRectMin;
Executed by:
  • tst_qquickshape
}
32
42 QRect boundingRectMax() const { return
executed 16 times by 1 test: return m_boundingRectMax;
Executed by:
  • tst_qquickshape
m_boundingRectMax;
executed 16 times by 1 test: return m_boundingRectMax;
Executed by:
  • tst_qquickshape
}
16
43 NodeType type() const { return
never executed: return m_nodeType;
m_nodeType;
never executed: return m_nodeType;
}
0
44 bool isOpaque() const { return
executed 112 times by 1 test: return m_isOpaque;
Executed by:
  • tst_qquickshape
m_isOpaque;
executed 112 times by 1 test: return m_isOpaque;
Executed by:
  • tst_qquickshape
}
112
45 bool isDirty() const { return
executed 48 times by 1 test: return m_isDirty;
Executed by:
  • tst_qquickshape
m_isDirty;
executed 48 times by 1 test: return m_isDirty;
Executed by:
  • tst_qquickshape
}
48
46 bool isDirtyRegionEmpty() const;-
47 QSGNode *handle() const { return
never executed: return m_handle.node;
m_handle.node;
never executed: return m_handle.node;
}
0
48-
49 void setTransform(const QTransform &transform);-
50 void setClipRegion(const QRegion &clipRegion, bool hasClipRegion = true);-
51 void setOpacity(float opacity);-
52 QTransform transform() const { return
never executed: return m_transform;
m_transform;
never executed: return m_transform;
}
0
53 QRegion clipRegion() const { return
never executed: return m_clipRegion;
m_clipRegion;
never executed: return m_clipRegion;
}
0
54 float opacity() const { return
never executed: return m_opacity;
m_opacity;
never executed: return m_opacity;
}
0
55-
56 void markGeometryDirty();-
57 void markMaterialDirty();-
58-
59 void addDirtyRegion(const QRegion &dirtyRegion, bool forceDirty = true);-
60 void subtractDirtyRegion(const QRegion &dirtyRegion);-
61-
62 QRegion previousDirtyRegion(bool wasRemoved = false) const;-
63 QRegion dirtyRegion() const;-
64-
65private:-
66 union RenderableNodeHandle {-
67 QSGNode *node;-
68 QSGSimpleRectNode *simpleRectNode;-
69 QSGSimpleTextureNode *simpleTextureNode;-
70 QSGSoftwareInternalImageNode *imageNode;-
71 QSGSoftwarePainterNode *painterNode;-
72 QSGSoftwareInternalRectangleNode *rectangleNode;-
73 QSGSoftwareGlyphNode *glpyhNode;-
74 QSGSoftwareNinePatchNode *ninePatchNode;-
75 QSGRectangleNode *simpleRectangleNode;-
76 QSGImageNode *simpleImageNode;-
77 QSGSoftwareSpriteNode *spriteNode;-
78 QSGRenderNode *renderNode;-
79 };-
80-
81 const NodeType m_nodeType;-
82 RenderableNodeHandle m_handle;-
83-
84 bool m_isOpaque;-
85-
86 bool m_isDirty;-
87 QRegion m_dirtyRegion;-
88 QRegion m_previousDirtyRegion;-
89-
90 QTransform m_transform;-
91 QRegion m_clipRegion;-
92 bool m_hasClipRegion;-
93 float m_opacity;-
94-
95 QRect m_boundingRectMin;-
96 QRect m_boundingRectMax;-
97};-
98-
99-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0