| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | | - |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | | - |
| 25 | | - |
| 26 | | - |
| 27 | | - |
| 28 | | - |
| 29 | | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | | - |
| 35 | | - |
| 36 | | - |
| 37 | | - |
| 38 | | - |
| 39 | | - |
| 40 | #ifndef QSGSOFTWAREINTERNALIMAGENODE_H | - |
| 41 | #define QSGSOFTWAREINTERNALIMAGENODE_H | - |
| 42 | | - |
| 43 | | - |
| 44 | | - |
| 45 | | - |
| 46 | | - |
| 47 | | - |
| 48 | | - |
| 49 | | - |
| 50 | | - |
| 51 | | - |
| 52 | | - |
| 53 | | - |
| 54 | #include <private/qsgadaptationlayer_p.h> | - |
| 55 | #include <private/qsgtexturematerial_p.h> | - |
| 56 | | - |
| 57 | QT_BEGIN_NAMESPACE | - |
| 58 | | - |
| 59 | namespace QSGSoftwareHelpers { | - |
| 60 | | - |
| 61 | typedef QVarLengthArray<QPainter::PixmapFragment, 16> QPixmapFragmentsArray; | - |
| 62 | | - |
| 63 | struct QTileRules | - |
| 64 | { | - |
| 65 | inline QTileRules(Qt::TileRule horizontalRule, Qt::TileRule verticalRule) | - |
| 66 | : horizontal(horizontalRule), vertical(verticalRule) {} never executed: end of block | 0 |
| 67 | inline QTileRules(Qt::TileRule rule = Qt::StretchTile) | - |
| 68 | : horizontal(rule), vertical(rule) {} never executed: end of block | 0 |
| 69 | Qt::TileRule horizontal; | - |
| 70 | Qt::TileRule vertical; | - |
| 71 | }; | - |
| 72 | | - |
| 73 | #ifndef Q_QDOC | - |
| 74 | | - |
| 75 | namespace QDrawBorderPixmap | - |
| 76 | { | - |
| 77 | enum DrawingHint | - |
| 78 | { | - |
| 79 | OpaqueTopLeft = 0x0001, | - |
| 80 | OpaqueTop = 0x0002, | - |
| 81 | OpaqueTopRight = 0x0004, | - |
| 82 | OpaqueLeft = 0x0008, | - |
| 83 | OpaqueCenter = 0x0010, | - |
| 84 | OpaqueRight = 0x0020, | - |
| 85 | OpaqueBottomLeft = 0x0040, | - |
| 86 | OpaqueBottom = 0x0080, | - |
| 87 | OpaqueBottomRight = 0x0100, | - |
| 88 | OpaqueCorners = OpaqueTopLeft | OpaqueTopRight | OpaqueBottomLeft | OpaqueBottomRight, | - |
| 89 | OpaqueEdges = OpaqueTop | OpaqueLeft | OpaqueRight | OpaqueBottom, | - |
| 90 | OpaqueFrame = OpaqueCorners | OpaqueEdges, | - |
| 91 | OpaqueAll = OpaqueCenter | OpaqueFrame | - |
| 92 | }; | - |
| 93 | | - |
| 94 | Q_DECLARE_FLAGS(DrawingHints, DrawingHint) | - |
| 95 | } | - |
| 96 | #endif | - |
| 97 | | - |
| 98 | void qDrawBorderPixmap(QPainter *painter, const QRect &targetRect, const QMargins &targetMargins, | - |
| 99 | const QPixmap &pixmap, const QRect &sourceRect,const QMargins &sourceMargins, | - |
| 100 | const QTileRules &rules, QDrawBorderPixmap::DrawingHints hints); | - |
| 101 | | - |
| 102 | } | - |
| 103 | | - |
| 104 | class QSGSoftwareInternalImageNode : public QSGInternalImageNode | - |
| 105 | { | - |
| 106 | public: | - |
| 107 | QSGSoftwareInternalImageNode(); | - |
| 108 | | - |
| 109 | void setTargetRect(const QRectF &rect) override; | - |
| 110 | void setInnerTargetRect(const QRectF &rect) override; | - |
| 111 | void setInnerSourceRect(const QRectF &rect) override; | - |
| 112 | void setSubSourceRect(const QRectF &rect) override; | - |
| 113 | void setTexture(QSGTexture *texture) override; | - |
| 114 | void setMirror(bool mirror) override; | - |
| 115 | void setMipmapFiltering(QSGTexture::Filtering filtering) override; | - |
| 116 | void setFiltering(QSGTexture::Filtering filtering) override; | - |
| 117 | void setHorizontalWrapMode(QSGTexture::WrapMode wrapMode) override; | - |
| 118 | void setVerticalWrapMode(QSGTexture::WrapMode wrapMode) override; | - |
| 119 | void update() override; | - |
| 120 | | - |
| 121 | void preprocess() override; | - |
| 122 | | - |
| 123 | void paint(QPainter *painter); | - |
| 124 | | - |
| 125 | QRectF rect() const; | - |
| 126 | | - |
| 127 | const QPixmap &pixmap() const; | - |
| 128 | private: | - |
| 129 | | - |
| 130 | QRectF m_targetRect; | - |
| 131 | QRectF m_innerTargetRect; | - |
| 132 | QRectF m_innerSourceRect; | - |
| 133 | QRectF m_subSourceRect; | - |
| 134 | | - |
| 135 | QSGTexture *m_texture; | - |
| 136 | QPixmap m_cachedMirroredPixmap; | - |
| 137 | | - |
| 138 | bool m_mirror; | - |
| 139 | bool m_textureIsLayer; | - |
| 140 | bool m_smooth; | - |
| 141 | bool m_tileHorizontal; | - |
| 142 | bool m_tileVertical; | - |
| 143 | bool m_cachedMirroredPixmapIsDirty; | - |
| 144 | }; | - |
| 145 | | - |
| 146 | QT_END_NAMESPACE | - |
| 147 | | - |
| 148 | #endif // QSGSOFTWAREINTERNALIMAGENODE_H | - |
| | |