| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquickvaluetypes_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | - | |
| 5 | namespace QQuickValueTypes { | - |
| 6 | - | |
| 7 | void registerValueTypes(); | - |
| 8 | - | |
| 9 | } | - |
| 10 | - | |
| 11 | class QQuickColorValueType | - |
| 12 | { | - |
| 13 | QColor v; | - |
| 14 | - | |
| 15 | - | |
| 16 | - | |
| 17 | - | |
| 18 | - | |
| 19 | - | |
| 20 | - | |
| 21 | - | |
| 22 | - | |
| 23 | - | |
| 24 | public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private: | - |
| 25 | #pragma GCC diagnostic push | - |
| 26 | - | |
| 27 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 28 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 29 | #pragma GCC diagnostic pop | - |
| 30 | - | |
| 31 | public: | - |
| 32 | QString toString() const; | - |
| 33 | - | |
| 34 | qreal r() const; | - |
| 35 | qreal g() const; | - |
| 36 | qreal b() const; | - |
| 37 | qreal a() const; | - |
| 38 | qreal hsvHue() const; | - |
| 39 | qreal hsvSaturation() const; | - |
| 40 | qreal hsvValue() const; | - |
| 41 | qreal hslHue() const; | - |
| 42 | qreal hslSaturation() const; | - |
| 43 | qreal hslLightness() const; | - |
| 44 | void setR(qreal); | - |
| 45 | void setG(qreal); | - |
| 46 | void setB(qreal); | - |
| 47 | void setA(qreal); | - |
| 48 | void setHsvHue(qreal); | - |
| 49 | void setHsvSaturation(qreal); | - |
| 50 | void setHsvValue(qreal); | - |
| 51 | void setHslHue(qreal); | - |
| 52 | void setHslSaturation(qreal); | - |
| 53 | void setHslLightness(qreal); | - |
| 54 | }; | - |
| 55 | - | |
| 56 | class QQuickVector2DValueType | - |
| 57 | { | - |
| 58 | QVector2D v; | - |
| 59 | - | |
| 60 | - | |
| 61 | public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private: | - |
| 62 | #pragma GCC diagnostic push | - |
| 63 | - | |
| 64 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 65 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 66 | #pragma GCC diagnostic pop | - |
| 67 | - | |
| 68 | public: | - |
| 69 | QString toString() const; | - |
| 70 | - | |
| 71 | qreal x() const; | - |
| 72 | qreal y() const; | - |
| 73 | void setX(qreal); | - |
| 74 | void setY(qreal); | - |
| 75 | - | |
| 76 | qreal dotProduct(const QVector2D &vec) const; | - |
| 77 | QVector2D times(const QVector2D &vec) const; | - |
| 78 | QVector2D times(qreal scalar) const; | - |
| 79 | QVector2D plus(const QVector2D &vec) const; | - |
| 80 | QVector2D minus(const QVector2D &vec) const; | - |
| 81 | QVector2D normalized() const; | - |
| 82 | qreal length() const; | - |
| 83 | QVector3D toVector3d() const; | - |
| 84 | QVector4D toVector4d() const; | - |
| 85 | bool fuzzyEquals(const QVector2D &vec, qreal epsilon) const; | - |
| 86 | bool fuzzyEquals(const QVector2D &vec) const; | - |
| 87 | }; | - |
| 88 | - | |
| 89 | class QQuickVector3DValueType | - |
| 90 | { | - |
| 91 | QVector3D v; | - |
| 92 | - | |
| 93 | - | |
| 94 | - | |
| 95 | public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private: | - |
| 96 | #pragma GCC diagnostic push | - |
| 97 | - | |
| 98 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 99 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 100 | #pragma GCC diagnostic pop | - |
| 101 | - | |
| 102 | public: | - |
| 103 | QString toString() const; | - |
| 104 | - | |
| 105 | qreal x() const; | - |
| 106 | qreal y() const; | - |
| 107 | qreal z() const; | - |
| 108 | void setX(qreal); | - |
| 109 | void setY(qreal); | - |
| 110 | void setZ(qreal); | - |
| 111 | - | |
| 112 | QVector3D crossProduct(const QVector3D &vec) const; | - |
| 113 | qreal dotProduct(const QVector3D &vec) const; | - |
| 114 | QVector3D times(const QMatrix4x4 &m) const; | - |
| 115 | QVector3D times(const QVector3D &vec) const; | - |
| 116 | QVector3D times(qreal scalar) const; | - |
| 117 | QVector3D plus(const QVector3D &vec) const; | - |
| 118 | QVector3D minus(const QVector3D &vec) const; | - |
| 119 | QVector3D normalized() const; | - |
| 120 | qreal length() const; | - |
| 121 | QVector2D toVector2d() const; | - |
| 122 | QVector4D toVector4d() const; | - |
| 123 | bool fuzzyEquals(const QVector3D &vec, qreal epsilon) const; | - |
| 124 | bool fuzzyEquals(const QVector3D &vec) const; | - |
| 125 | }; | - |
| 126 | - | |
| 127 | class QQuickVector4DValueType | - |
| 128 | { | - |
| 129 | QVector4D v; | - |
| 130 | - | |
| 131 | - | |
| 132 | - | |
| 133 | - | |
| 134 | public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private: | - |
| 135 | #pragma GCC diagnostic push | - |
| 136 | - | |
| 137 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 138 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 139 | #pragma GCC diagnostic pop | - |
| 140 | - | |
| 141 | public: | - |
| 142 | QString toString() const; | - |
| 143 | - | |
| 144 | qreal x() const; | - |
| 145 | qreal y() const; | - |
| 146 | qreal z() const; | - |
| 147 | qreal w() const; | - |
| 148 | void setX(qreal); | - |
| 149 | void setY(qreal); | - |
| 150 | void setZ(qreal); | - |
| 151 | void setW(qreal); | - |
| 152 | - | |
| 153 | qreal dotProduct(const QVector4D &vec) const; | - |
| 154 | QVector4D times(const QVector4D &vec) const; | - |
| 155 | QVector4D times(const QMatrix4x4 &m) const; | - |
| 156 | QVector4D times(qreal scalar) const; | - |
| 157 | QVector4D plus(const QVector4D &vec) const; | - |
| 158 | QVector4D minus(const QVector4D &vec) const; | - |
| 159 | QVector4D normalized() const; | - |
| 160 | qreal length() const; | - |
| 161 | QVector2D toVector2d() const; | - |
| 162 | QVector3D toVector3d() const; | - |
| 163 | bool fuzzyEquals(const QVector4D &vec, qreal epsilon) const; | - |
| 164 | bool fuzzyEquals(const QVector4D &vec) const; | - |
| 165 | }; | - |
| 166 | - | |
| 167 | class QQuickQuaternionValueType | - |
| 168 | { | - |
| 169 | QQuaternion v; | - |
| 170 | - | |
| 171 | - | |
| 172 | - | |
| 173 | - | |
| 174 | public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private: | - |
| 175 | #pragma GCC diagnostic push | - |
| 176 | - | |
| 177 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 178 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 179 | #pragma GCC diagnostic pop | - |
| 180 | - | |
| 181 | public: | - |
| 182 | QString toString() const; | - |
| 183 | - | |
| 184 | qreal scalar() const; | - |
| 185 | qreal x() const; | - |
| 186 | qreal y() const; | - |
| 187 | qreal z() const; | - |
| 188 | void setScalar(qreal); | - |
| 189 | void setX(qreal); | - |
| 190 | void setY(qreal); | - |
| 191 | void setZ(qreal); | - |
| 192 | }; | - |
| 193 | - | |
| 194 | class QQuickMatrix4x4ValueType | - |
| 195 | { | - |
| 196 | QMatrix4x4 v; | - |
| 197 | - | |
| 198 | - | |
| 199 | - | |
| 200 | - | |
| 201 | - | |
| 202 | - | |
| 203 | - | |
| 204 | - | |
| 205 | - | |
| 206 | - | |
| 207 | - | |
| 208 | - | |
| 209 | - | |
| 210 | - | |
| 211 | - | |
| 212 | - | |
| 213 | public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private: | - |
| 214 | #pragma GCC diagnostic push | - |
| 215 | - | |
| 216 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 217 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 218 | #pragma GCC diagnostic pop | - |
| 219 | - | |
| 220 | public: | - |
| 221 | qreal m11() const { return executed 10 times by 2 tests: v(0, 0);return v(0, 0);Executed by:
executed 10 times by 2 tests: }return v(0, 0);Executed by:
| 10 |
| 222 | qreal m12() const { return executed 10 times by 2 tests: v(0, 1);return v(0, 1);Executed by:
executed 10 times by 2 tests: }return v(0, 1);Executed by:
| 10 |
| 223 | qreal m13() const { return executed 10 times by 2 tests: v(0, 2);return v(0, 2);Executed by:
executed 10 times by 2 tests: }return v(0, 2);Executed by:
| 10 |
| 224 | qreal m14() const { return executed 10 times by 2 tests: v(0, 3);return v(0, 3);Executed by:
executed 10 times by 2 tests: }return v(0, 3);Executed by:
| 10 |
| 225 | qreal m21() const { return executed 10 times by 2 tests: v(1, 0);return v(1, 0);Executed by:
executed 10 times by 2 tests: }return v(1, 0);Executed by:
| 10 |
| 226 | qreal m22() const { return executed 10 times by 2 tests: v(1, 1);return v(1, 1);Executed by:
executed 10 times by 2 tests: }return v(1, 1);Executed by:
| 10 |
| 227 | qreal m23() const { return executed 10 times by 2 tests: v(1, 2);return v(1, 2);Executed by:
executed 10 times by 2 tests: }return v(1, 2);Executed by:
| 10 |
| 228 | qreal m24() const { return executed 10 times by 2 tests: v(1, 3);return v(1, 3);Executed by:
executed 10 times by 2 tests: }return v(1, 3);Executed by:
| 10 |
| 229 | qreal m31() const { return executed 10 times by 2 tests: v(2, 0);return v(2, 0);Executed by:
executed 10 times by 2 tests: }return v(2, 0);Executed by:
| 10 |
| 230 | qreal m32() const { return executed 10 times by 2 tests: v(2, 1);return v(2, 1);Executed by:
executed 10 times by 2 tests: }return v(2, 1);Executed by:
| 10 |
| 231 | qreal m33() const { return executed 10 times by 2 tests: v(2, 2);return v(2, 2);Executed by:
executed 10 times by 2 tests: }return v(2, 2);Executed by:
| 10 |
| 232 | qreal m34() const { return executed 10 times by 2 tests: v(2, 3);return v(2, 3);Executed by:
executed 10 times by 2 tests: }return v(2, 3);Executed by:
| 10 |
| 233 | qreal m41() const { return executed 10 times by 2 tests: v(3, 0);return v(3, 0);Executed by:
executed 10 times by 2 tests: }return v(3, 0);Executed by:
| 10 |
| 234 | qreal m42() const { return executed 10 times by 2 tests: v(3, 1);return v(3, 1);Executed by:
executed 10 times by 2 tests: }return v(3, 1);Executed by:
| 10 |
| 235 | qreal m43() const { return executed 10 times by 2 tests: v(3, 2);return v(3, 2);Executed by:
executed 10 times by 2 tests: }return v(3, 2);Executed by:
| 10 |
| 236 | qreal m44() const { return executed 10 times by 2 tests: v(3, 3);return v(3, 3);Executed by:
executed 10 times by 2 tests: }return v(3, 3);Executed by:
| 10 |
| 237 | - | |
| 238 | void setM11(qreal value) { v(0, 0) = value; } executed 2 times by 1 test: end of blockExecuted by:
| 2 |
| 239 | void setM12(qreal value) { v(0, 1) = value; } executed 2 times by 1 test: end of blockExecuted by:
| 2 |
| 240 | void setM13(qreal value) { v(0, 2) = value; } executed 2 times by 1 test: end of blockExecuted by:
| 2 |
| 241 | void setM14(qreal value) { v(0, 3) = value; } executed 2 times by 1 test: end of blockExecuted by:
| 2 |
| 242 | void setM21(qreal value) { v(1, 0) = value; } executed 2 times by 1 test: end of blockExecuted by:
| 2 |
| 243 | void setM22(qreal value) { v(1, 1) = value; } executed 2 times by 1 test: end of blockExecuted by:
| 2 |
| 244 | void setM23(qreal value) { v(1, 2) = value; } executed 2 times by 1 test: end of blockExecuted by:
| 2 |
| 245 | void setM24(qreal value) { v(1, 3) = value; } executed 2 times by 1 test: end of blockExecuted by:
| 2 |
| 246 | void setM31(qreal value) { v(2, 0) = value; } executed 2 times by 1 test: end of blockExecuted by:
| 2 |
| 247 | void setM32(qreal value) { v(2, 1) = value; } executed 2 times by 1 test: end of blockExecuted by:
| 2 |
| 248 | void setM33(qreal value) { v(2, 2) = value; } executed 2 times by 1 test: end of blockExecuted by:
| 2 |
| 249 | void setM34(qreal value) { v(2, 3) = value; } executed 2 times by 1 test: end of blockExecuted by:
| 2 |
| 250 | void setM41(qreal value) { v(3, 0) = value; } executed 2 times by 1 test: end of blockExecuted by:
| 2 |
| 251 | void setM42(qreal value) { v(3, 1) = value; } executed 2 times by 1 test: end of blockExecuted by:
| 2 |
| 252 | void setM43(qreal value) { v(3, 2) = value; } executed 2 times by 1 test: end of blockExecuted by:
| 2 |
| 253 | void setM44(qreal value) { v(3, 3) = value; } executed 2 times by 1 test: end of blockExecuted by:
| 2 |
| 254 | - | |
| 255 | void translate(const QVector3D &t) { v.translate(t); } never executed: end of block | 0 |
| 256 | void rotate(float angle, const QVector3D &axis) { v.rotate(angle, axis); } never executed: end of block | 0 |
| 257 | void scale(float s) { v.scale(s); } never executed: end of block | 0 |
| 258 | void scale(float sx, float sy, float sz) { v.scale(sx, sy, sz); } never executed: end of block | 0 |
| 259 | void scale(const QVector3D &s) { v.scale(s); } never executed: end of block | 0 |
| 260 | void lookAt(const QVector3D &eye, const QVector3D ¢er, const QVector3D &up) { v.lookAt(eye, center, up); } never executed: end of block | 0 |
| 261 | - | |
| 262 | QMatrix4x4 times(const QMatrix4x4 &m) const; | - |
| 263 | QVector4D times(const QVector4D &vec) const; | - |
| 264 | QVector3D times(const QVector3D &vec) const; | - |
| 265 | QMatrix4x4 times(qreal factor) const; | - |
| 266 | QMatrix4x4 plus(const QMatrix4x4 &m) const; | - |
| 267 | QMatrix4x4 minus(const QMatrix4x4 &m) const; | - |
| 268 | - | |
| 269 | QVector4D row(int n) const; | - |
| 270 | QVector4D column(int m) const; | - |
| 271 | - | |
| 272 | qreal determinant() const; | - |
| 273 | QMatrix4x4 inverted() const; | - |
| 274 | QMatrix4x4 transposed() const; | - |
| 275 | - | |
| 276 | bool fuzzyEquals(const QMatrix4x4 &m, qreal epsilon) const; | - |
| 277 | bool fuzzyEquals(const QMatrix4x4 &m) const; | - |
| 278 | }; | - |
| 279 | - | |
| 280 | class QQuickFontValueType | - |
| 281 | { | - |
| 282 | QFont v; | - |
| 283 | public: static const QMetaObject staticMetaObject; void qt_check_for_QGADGET_macro(); typedef void QtGadgetHelper; private: | - |
| 284 | #pragma GCC diagnostic push | - |
| 285 | - | |
| 286 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 287 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 288 | #pragma GCC diagnostic pop | - |
| 289 | - | |
| 290 | - | |
| 291 | - | |
| 292 | - | |
| 293 | - | |
| 294 | - | |
| 295 | - | |
| 296 | - | |
| 297 | - | |
| 298 | - | |
| 299 | - | |
| 300 | - | |
| 301 | - | |
| 302 | - | |
| 303 | - | |
| 304 | - | |
| 305 | - | |
| 306 | - | |
| 307 | - | |
| 308 | public: | - |
| 309 | enum FontWeight { Thin = QFont::Thin, | - |
| 310 | ExtraLight = QFont::ExtraLight, | - |
| 311 | Light = QFont::Light, | - |
| 312 | Normal = QFont::Normal, | - |
| 313 | Medium = QFont::Medium, | - |
| 314 | DemiBold = QFont::DemiBold, | - |
| 315 | Bold = QFont::Bold, | - |
| 316 | ExtraBold = QFont::ExtraBold, | - |
| 317 | Black = QFont::Black }; | - |
| 318 | friend constexpr const QMetaObject *qt_getEnumMetaObject(FontWeight) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(FontWeight) noexcept { return "FontWeight"; } | - |
| 319 | enum Capitalization { MixedCase = QFont::MixedCase, | - |
| 320 | AllUppercase = QFont::AllUppercase, | - |
| 321 | AllLowercase = QFont::AllLowercase, | - |
| 322 | SmallCaps = QFont::SmallCaps, | - |
| 323 | Capitalize = QFont::Capitalize }; | - |
| 324 | friend constexpr const QMetaObject *qt_getEnumMetaObject(Capitalization) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(Capitalization) noexcept { return "Capitalization"; } | - |
| 325 | - | |
| 326 | enum HintingPreference { | - |
| 327 | PreferDefaultHinting = QFont::PreferDefaultHinting, | - |
| 328 | PreferNoHinting = QFont::PreferNoHinting, | - |
| 329 | PreferVerticalHinting = QFont::PreferVerticalHinting, | - |
| 330 | PreferFullHinting = QFont::PreferFullHinting | - |
| 331 | }; | - |
| 332 | friend constexpr const QMetaObject *qt_getEnumMetaObject(HintingPreference) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(HintingPreference) noexcept { return "HintingPreference"; } | - |
| 333 | - | |
| 334 | QString toString() const; | - |
| 335 | - | |
| 336 | QString family() const; | - |
| 337 | void setFamily(const QString &); | - |
| 338 | - | |
| 339 | QString styleName() const; | - |
| 340 | void setStyleName(const QString &); | - |
| 341 | - | |
| 342 | bool bold() const; | - |
| 343 | void setBold(bool b); | - |
| 344 | - | |
| 345 | FontWeight weight() const; | - |
| 346 | void setWeight(FontWeight); | - |
| 347 | - | |
| 348 | bool italic() const; | - |
| 349 | void setItalic(bool b); | - |
| 350 | - | |
| 351 | bool underline() const; | - |
| 352 | void setUnderline(bool b); | - |
| 353 | - | |
| 354 | bool overline() const; | - |
| 355 | void setOverline(bool b); | - |
| 356 | - | |
| 357 | bool strikeout() const; | - |
| 358 | void setStrikeout(bool b); | - |
| 359 | - | |
| 360 | qreal pointSize() const; | - |
| 361 | void setPointSize(qreal size); | - |
| 362 | - | |
| 363 | int pixelSize() const; | - |
| 364 | void setPixelSize(int size); | - |
| 365 | - | |
| 366 | Capitalization capitalization() const; | - |
| 367 | void setCapitalization(Capitalization); | - |
| 368 | - | |
| 369 | qreal letterSpacing() const; | - |
| 370 | void setLetterSpacing(qreal spacing); | - |
| 371 | - | |
| 372 | qreal wordSpacing() const; | - |
| 373 | void setWordSpacing(qreal spacing); | - |
| 374 | - | |
| 375 | HintingPreference hintingPreference() const; | - |
| 376 | void setHintingPreference(HintingPreference); | - |
| 377 | - | |
| 378 | bool kerning() const; | - |
| 379 | void setKerning(bool b); | - |
| 380 | - | |
| 381 | bool preferShaping() const; | - |
| 382 | void setPreferShaping(bool b); | - |
| 383 | }; | - |
| 384 | - | |
| 385 | - | |
| Switch to Source code | Preprocessed file |