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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230
/// C++ type: <span style='color: green;'>```QMatrix4x4```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> class represents a 4x4 transformation matrix in 3D space.</p>
/// <p>The <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> class in general is treated as a row-major matrix, in that the constructors and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#operator-28-29">operator</a>() functions take data in row-major format, as is familiar in C-style usage.</p>
/// <p>Internally the data is stored as column-major format, so as to be optimal for passing to OpenGL functions, which expect column-major data.</p>
/// <p>When using these functions be aware that they return data in <b>column-major</b> format:</p>
/// <ul>
/// <li><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#data">data</a>()</li>
/// <li><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#constData">constData</a>()</li>
/// </ul></div>
#[repr(C)]
pub struct Matrix4X4(u8);
impl Matrix4X4 {
/// C++ method: <span style='color: green;'>```QVariant QMatrix4x4::operator QVariant() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#operator-QVariant">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the matrix as a <a href="http://doc.qt.io/qt-5/qvariant.html">QVariant</a>.</p></div>
pub fn as_q_variant(&self) -> ::qt_core::variant::Variant {
{
let mut object: ::qt_core::variant::Variant =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QMatrix4x4_convert_to_QVariant_to_output(self as *const ::matrix_4x4::Matrix4X4, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```QVector4D QMatrix4x4::column(int index) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#column">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the elements of column <i>index</i> as a 4D vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#setColumn">setColumn</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#row">row</a>().</p></div>
pub fn column(&self, index: ::libc::c_int) -> ::cpp_utils::CppBox<::vector_4d::Vector4D> {
let ffi_result = unsafe { ::ffi::qt_gui_c_QMatrix4x4_column_as_ptr(self as *const ::matrix_4x4::Matrix4X4, index) };
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
/// C++ method: <span style='color: green;'>```const float* QMatrix4x4::constData() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#constData">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a constant pointer to the raw data of this matrix. This raw data is stored in column-major format.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#data">data</a>().</p></div>
pub fn const_data(&self) -> *const ::libc::c_float {
unsafe { ::ffi::qt_gui_c_QMatrix4x4_constData(self as *const ::matrix_4x4::Matrix4X4) }
}
/// C++ method: <span style='color: green;'>```void QMatrix4x4::copyDataTo(float* values) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#copyDataTo">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Retrieves the 16 items in this matrix and copies them to <i>values</i> in row-major order.</p></div>
pub unsafe fn copy_data_to(&self, values: *mut ::libc::c_float) {
::ffi::qt_gui_c_QMatrix4x4_copyDataTo(self as *const ::matrix_4x4::Matrix4X4, values)
}
/// C++ method: <span style='color: green;'>```const float* QMatrix4x4::data() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#data-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a constant pointer to the raw data of this matrix. This raw data is stored in column-major format.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#constData">constData</a>().</p></div>
pub fn data(&self) -> *const ::libc::c_float {
unsafe { ::ffi::qt_gui_c_QMatrix4x4_data_const(self as *const ::matrix_4x4::Matrix4X4) }
}
/// C++ method: <span style='color: green;'>```float* QMatrix4x4::data()```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#data">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a pointer to the raw data of this matrix.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#constData">constData</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#optimize">optimize</a>().</p></div>
pub fn data_mut(&mut self) -> *mut ::libc::c_float {
unsafe { ::ffi::qt_gui_c_QMatrix4x4_data(self as *mut ::matrix_4x4::Matrix4X4) }
}
/// C++ method: <span style='color: green;'>```double QMatrix4x4::determinant() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#determinant">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the determinant of this matrix.</p></div>
pub fn determinant(&self) -> ::libc::c_double {
unsafe { ::ffi::qt_gui_c_QMatrix4x4_determinant(self as *const ::matrix_4x4::Matrix4X4) }
}
/// C++ method: <span style='color: green;'>```void QMatrix4x4::fill(float value)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#fill">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Fills all elements of this matrx with <i>value</i>.</p></div>
pub fn fill(&mut self, value: ::libc::c_float) {
unsafe { ::ffi::qt_gui_c_QMatrix4x4_fill(self as *mut ::matrix_4x4::Matrix4X4, value) }
}
/// C++ method: <span style='color: green;'>```void QMatrix4x4::flipCoordinates()```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4-obsolete.html#flipCoordinates">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Flips between right-handed and left-handed coordinate systems by multiplying the y and z co-ordinates by -1. This is normally used to create a left-handed orthographic view without scaling the viewport as <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#ortho">ortho</a>() does.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#ortho">ortho</a>().</p>
///
/// <h2>Related Non-Members</h2></div>
pub fn flip_coordinates(&mut self) {
unsafe { ::ffi::qt_gui_c_QMatrix4x4_flipCoordinates(self as *mut ::matrix_4x4::Matrix4X4) }
}
/// C++ method: <span style='color: green;'>```void QMatrix4x4::frustum(float left, float right, float bottom, float top, float nearPlane, float farPlane)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#frustum">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Multiplies this matrix by another that applies a perspective frustum projection for a window with lower-left corner (<i>left</i>, <i>bottom</i>), upper-right corner (<i>right</i>, <i>top</i>), and the specified <i>nearPlane</i> and <i>farPlane</i> clipping planes.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#ortho">ortho</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#perspective">perspective</a>().</p></div>
pub fn frustum(&mut self,
left: ::libc::c_float,
right: ::libc::c_float,
bottom: ::libc::c_float,
top: ::libc::c_float,
near_plane: ::libc::c_float,
far_plane: ::libc::c_float) {
unsafe {
::ffi::qt_gui_c_QMatrix4x4_frustum(self as *mut ::matrix_4x4::Matrix4X4,
left,
right,
bottom,
top,
near_plane,
far_plane)
}
}
/// C++ method: <span style='color: green;'>```QMatrix4x4 QMatrix4x4::inverted() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#inverted">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the inverse of this matrix. Returns the identity if this matrix cannot be inverted; i.e. <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#determinant">determinant</a>() is zero. If <i>invertible</i> is not null, then true will be written to that location if the matrix can be inverted; false otherwise.</p>
/// <p>If the matrix is recognized as the identity or an orthonormal matrix, then this function will quickly invert the matrix using optimized routines.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#determinant">determinant</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#normalMatrix">normalMatrix</a>().</p></div>
pub fn inverted(&self) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4> {
let ffi_result =
unsafe { ::ffi::qt_gui_c_QMatrix4x4_inverted_as_ptr_no_args(self as *const ::matrix_4x4::Matrix4X4) };
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
/// C++ method: <span style='color: green;'>```QMatrix4x4 QMatrix4x4::inverted(bool* invertible = ?) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#inverted">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the inverse of this matrix. Returns the identity if this matrix cannot be inverted; i.e. <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#determinant">determinant</a>() is zero. If <i>invertible</i> is not null, then true will be written to that location if the matrix can be inverted; false otherwise.</p>
/// <p>If the matrix is recognized as the identity or an orthonormal matrix, then this function will quickly invert the matrix using optimized routines.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#determinant">determinant</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#normalMatrix">normalMatrix</a>().</p></div>
pub unsafe fn inverted_unsafe(&self, invertible: *mut bool) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4> {
let ffi_result = ::ffi::qt_gui_c_QMatrix4x4_inverted_as_ptr_invertible(self as *const ::matrix_4x4::Matrix4X4,
invertible);
::cpp_utils::CppBox::new(ffi_result)
}
/// C++ method: <span style='color: green;'>```bool QMatrix4x4::isAffine() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#isAffine">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if this matrix is affine matrix; false otherwise.</p>
/// <p>An affine matrix is a 4x4 matrix with row 3 equal to (0, 0, 0, 1), e.g. no projective coefficients.</p>
/// <p>This function was introduced in Qt 5.5.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#isIdentity">isIdentity</a>().</p></div>
pub fn is_affine(&self) -> bool {
unsafe { ::ffi::qt_gui_c_QMatrix4x4_isAffine(self as *const ::matrix_4x4::Matrix4X4) }
}
/// C++ method: <span style='color: green;'>```bool QMatrix4x4::isIdentity() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#isIdentity">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if this matrix is the identity; false otherwise.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#setToIdentity">setToIdentity</a>().</p></div>
pub fn is_identity(&self) -> bool {
unsafe { ::ffi::qt_gui_c_QMatrix4x4_isIdentity(self as *const ::matrix_4x4::Matrix4X4) }
}
/// C++ method: <span style='color: green;'>```void QMatrix4x4::lookAt(const QVector3D& eye, const QVector3D& center, const QVector3D& up)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#lookAt">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Multiplies this matrix by a viewing matrix derived from an eye point. The <i>center</i> value indicates the center of the view that the <i>eye</i> is looking at. The <i>up</i> value indicates which direction should be considered up with respect to the <i>eye</i>.</p>
/// <p><b>Note: </b>The <i>up</i> vector must not be parallel to the line of sight from <i>eye</i> to <i>center</i>.</p></div>
pub fn look_at(&mut self, eye: &::vector_3d::Vector3D, center: &::vector_3d::Vector3D, up: &::vector_3d::Vector3D) {
unsafe {
::ffi::qt_gui_c_QMatrix4x4_lookAt(self as *mut ::matrix_4x4::Matrix4X4,
eye as *const ::vector_3d::Vector3D,
center as *const ::vector_3d::Vector3D,
up as *const ::vector_3d::Vector3D)
}
}
/// C++ method: <span style='color: green;'>```QMatrix4x4::map```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn map(&self, &::qt_core::point::Point) -> ::qt_core::point::Point```<br>
/// C++ method: <span style='color: green;'>```QPoint QMatrix4x4::map(const QPoint& point) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#map">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Maps <i>point</i> by multiplying this matrix by <i>point</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#mapRect">mapRect</a>().</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn map(&self, &::qt_core::point_f::PointF) -> ::qt_core::point_f::PointF```<br>
/// C++ method: <span style='color: green;'>```QPointF QMatrix4x4::map(const QPointF& point) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#map-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Maps <i>point</i> by multiplying this matrix by <i>point</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#mapRect">mapRect</a>().</p></div>
///
/// ## Variant 3
///
/// Rust arguments: ```fn map(&self, &::vector_3d::Vector3D) -> ::cpp_utils::CppBox<::vector_3d::Vector3D>```<br>
/// C++ method: <span style='color: green;'>```QVector3D QMatrix4x4::map(const QVector3D& point) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#map-2">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Maps <i>point</i> by multiplying this matrix by <i>point</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#mapRect">mapRect</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#mapVector">mapVector</a>().</p></div>
///
/// ## Variant 4
///
/// Rust arguments: ```fn map(&self, &::vector_4d::Vector4D) -> ::cpp_utils::CppBox<::vector_4d::Vector4D>```<br>
/// C++ method: <span style='color: green;'>```QVector4D QMatrix4x4::map(const QVector4D& point) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#map-3">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Maps <i>point</i> by multiplying this matrix by <i>point</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#mapRect">mapRect</a>().</p></div>
pub fn map<'largs, Args>(&'largs self, args: Args) -> Args::ReturnType
where Args: overloading::Matrix4X4MapArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```QMatrix4x4::mapRect```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn map_rect(&self, &::qt_core::rect::Rect) -> ::qt_core::rect::Rect```<br>
/// C++ method: <span style='color: green;'>```QRect QMatrix4x4::mapRect(const QRect& rect) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#mapRect">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Maps <i>rect</i> by multiplying this matrix by the corners of <i>rect</i> and then forming a new rectangle from the results. The returned rectangle will be an ordinary 2D rectangle with sides parallel to the horizontal and vertical axes.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#map">map</a>().</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn map_rect(&self, &::qt_core::rect_f::RectF) -> ::qt_core::rect_f::RectF```<br>
/// C++ method: <span style='color: green;'>```QRectF QMatrix4x4::mapRect(const QRectF& rect) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#mapRect-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Maps <i>rect</i> by multiplying this matrix by the corners of <i>rect</i> and then forming a new rectangle from the results. The returned rectangle will be an ordinary 2D rectangle with sides parallel to the horizontal and vertical axes.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#map">map</a>().</p></div>
pub fn map_rect<'largs, Args>(&'largs self, args: Args) -> Args::ReturnType
where Args: overloading::Matrix4X4MapRectArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```QVector3D QMatrix4x4::mapVector(const QVector3D& vector) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#mapVector">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Maps <i>vector</i> by multiplying the top 3x3 portion of this matrix by <i>vector</i>. The translation and projection components of this matrix are ignored.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#map">map</a>().</p></div>
pub fn map_vector(&self, vector: &::vector_3d::Vector3D) -> ::cpp_utils::CppBox<::vector_3d::Vector3D> {
let ffi_result = unsafe {
::ffi::qt_gui_c_QMatrix4x4_mapVector_as_ptr(self as *const ::matrix_4x4::Matrix4X4,
vector as *const ::vector_3d::Vector3D)
};
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
/// C++ method: <span style='color: green;'>```QMatrix4x4::QMatrix4x4```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn new(()) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4>```<br>
/// C++ method: <span style='color: green;'>```[constructor] void QMatrix4x4::QMatrix4x4()```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#QMatrix4x4">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs an identity matrix.</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn new(&::matrix::Matrix) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4>```<br>
/// C++ method: <span style='color: green;'>```[constructor] void QMatrix4x4::QMatrix4x4(const QMatrix& matrix)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#QMatrix4x4-7">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a 4x4 matrix from a conventional Qt 2D affine transformation <i>matrix</i>.</p>
/// <p>If <i>matrix</i> has a special type (identity, translate, scale, etc), the programmer should follow this constructor with a call to <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#optimize">optimize</a>() if they wish <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> to optimize further calls to <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate">translate</a>(), <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale">scale</a>(), etc.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#toAffine">toAffine</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#optimize">optimize</a>().</p></div>
///
/// ## Variant 3
///
/// Rust arguments: ```fn new(&::transform::Transform) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4>```<br>
/// C++ method: <span style='color: green;'>```[constructor] void QMatrix4x4::QMatrix4x4(const QTransform& transform)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#QMatrix4x4-6">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a 4x4 matrix from the conventional Qt 2D transformation matrix <i>transform</i>.</p>
/// <p>If <i>transform</i> has a special type (identity, translate, scale, etc), the programmer should follow this constructor with a call to <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#optimize">optimize</a>() if they wish <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> to optimize further calls to <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate">translate</a>(), <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale">scale</a>(), etc.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#toTransform">toTransform</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#optimize">optimize</a>().</p></div>
///
/// ## Variant 4
///
/// Rust arguments: ```fn new((::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float)) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4>```<br>
/// C++ method: <span style='color: green;'>```[constructor] void QMatrix4x4::QMatrix4x4(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#QMatrix4x4-3">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a matrix from the 16 elements <i>m11</i>, <i>m12</i>, <i>m13</i>, <i>m14</i>, <i>m21</i>, <i>m22</i>, <i>m23</i>, <i>m24</i>, <i>m31</i>, <i>m32</i>, <i>m33</i>, <i>m34</i>, <i>m41</i>, <i>m42</i>, <i>m43</i>, and <i>m44</i>. The elements are specified in row-major order.</p>
/// <p>If the matrix has a special type (identity, translate, scale, etc), the programmer should follow this constructor with a call to <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#optimize">optimize</a>() if they wish <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> to optimize further calls to <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate">translate</a>(), <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale">scale</a>(), etc.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#optimize">optimize</a>().</p></div>
pub fn new<Args>(args: Args) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4>
where Args: overloading::Matrix4X4NewArgs
{
args.exec()
}
/// C++ method: <span style='color: green;'>```QMatrix4x4::QMatrix4x4```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn new_unsafe(*const ::libc::c_float) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4>```<br>
/// C++ method: <span style='color: green;'>```[constructor] void QMatrix4x4::QMatrix4x4(const float* values)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#QMatrix4x4-2">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Constructs a matrix from the given 16 floating-point <i>values</i>. The contents of the array <i>values</i> is assumed to be in row-major order.</p>
/// <p>If the matrix has a special type (identity, translate, scale, etc), the programmer should follow this constructor with a call to <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#optimize">optimize</a>() if they wish <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> to optimize further calls to <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate">translate</a>(), <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale">scale</a>(), etc.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#copyDataTo">copyDataTo</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#optimize">optimize</a>().</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn new_unsafe((*const ::libc::c_float, ::libc::c_int, ::libc::c_int)) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4>```<br>
/// C++ method: <span style='color: green;'>```[constructor] void QMatrix4x4::QMatrix4x4(const float* values, int cols, int rows)```</span>
///
///
pub unsafe fn new_unsafe<Args>(args: Args) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4>
where Args: overloading::Matrix4X4NewUnsafeArgs
{
args.exec()
}
/// C++ method: <span style='color: green;'>```QMatrix4x4& QMatrix4x4::operator+=(const QMatrix4x4& other)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#operator-2b-eq">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Adds the contents of <i>other</i> to this matrix.</p></div>
pub fn op_add_assign<'l0, 'l1>(&'l0 mut self,
other: &'l1 ::matrix_4x4::Matrix4X4)
-> &'l0 mut ::matrix_4x4::Matrix4X4 {
let ffi_result = unsafe {
::ffi::qt_gui_c_QMatrix4x4_operator_add_assign(self as *mut ::matrix_4x4::Matrix4X4,
other as *const ::matrix_4x4::Matrix4X4)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
/// C++ method: <span style='color: green;'>```const float& QMatrix4x4::operator()(int row, int column) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#operator-28-29">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a constant reference to the element at position (<i>row</i>, <i>column</i>) in this matrix.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#column">column</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#row">row</a>().</p></div>
pub fn op_call<'l0>(&'l0 self, row: ::libc::c_int, column: ::libc::c_int) -> &'l0 ::libc::c_float {
let ffi_result =
unsafe { ::ffi::qt_gui_c_QMatrix4x4_operator_call_const(self as *const ::matrix_4x4::Matrix4X4, row, column) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
/// C++ method: <span style='color: green;'>```float& QMatrix4x4::operator()(int row, int column)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#operator-28-29-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns a reference to the element at position (<i>row</i>, <i>column</i>) in this matrix so that the element can be assigned to.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#optimize">optimize</a>(), <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#setColumn">setColumn</a>(), and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#setRow">setRow</a>().</p></div>
pub fn op_call_mut<'l0>(&'l0 mut self, row: ::libc::c_int, column: ::libc::c_int) -> &'l0 mut ::libc::c_float {
let ffi_result =
unsafe { ::ffi::qt_gui_c_QMatrix4x4_operator_call(self as *mut ::matrix_4x4::Matrix4X4, row, column) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
/// C++ method: <span style='color: green;'>```QMatrix4x4& QMatrix4x4::operator/=(float divisor)```</span>
///
///
pub fn op_div_assign<'l0>(&'l0 mut self, divisor: ::libc::c_float) -> &'l0 mut ::matrix_4x4::Matrix4X4 {
let ffi_result =
unsafe { ::ffi::qt_gui_c_QMatrix4x4_operator_div_assign(self as *mut ::matrix_4x4::Matrix4X4, divisor) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
/// C++ method: <span style='color: green;'>```bool QMatrix4x4::operator==(const QMatrix4x4& other) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#operator-eq-eq">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if this matrix is identical to <i>other</i>; false otherwise. This operator uses an exact floating-point comparison.</p></div>
pub fn op_eq(&self, other: &::matrix_4x4::Matrix4X4) -> bool {
unsafe {
::ffi::qt_gui_c_QMatrix4x4_operator_eq(self as *const ::matrix_4x4::Matrix4X4,
other as *const ::matrix_4x4::Matrix4X4)
}
}
/// C++ method: <span style='color: green;'>```QMatrix4x4::operator*=```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn op_mul_assign(&mut self, &'l1 ::matrix_4x4::Matrix4X4) -> &'l0 mut ::matrix_4x4::Matrix4X4```<br>
/// C++ method: <span style='color: green;'>```QMatrix4x4& QMatrix4x4::operator*=(const QMatrix4x4& other)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#operator-2a-eq">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Multiplies the contents of <i>other</i> by this matrix.</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn op_mul_assign(&mut self, ::libc::c_float) -> &'l0 mut ::matrix_4x4::Matrix4X4```<br>
/// C++ method: <span style='color: green;'>```QMatrix4x4& QMatrix4x4::operator*=(float factor)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#operator-2a-eq-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Multiplies all elements of this matrix by <i>factor</i>.</p></div>
pub fn op_mul_assign<'largs, Args>(&'largs mut self, args: Args) -> &'largs mut ::matrix_4x4::Matrix4X4
where Args: overloading::Matrix4X4OpMulAssignArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```bool QMatrix4x4::operator!=(const QMatrix4x4& other) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#operator-not-eq">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns <code>true</code> if this matrix is not identical to <i>other</i>; false otherwise. This operator uses an exact floating-point comparison.</p></div>
pub fn op_neq(&self, other: &::matrix_4x4::Matrix4X4) -> bool {
unsafe {
::ffi::qt_gui_c_QMatrix4x4_operator_neq(self as *const ::matrix_4x4::Matrix4X4,
other as *const ::matrix_4x4::Matrix4X4)
}
}
/// C++ method: <span style='color: green;'>```QMatrix4x4& QMatrix4x4::operator-=(const QMatrix4x4& other)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#operator--eq">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Subtracts the contents of <i>other</i> from this matrix.</p></div>
pub fn op_sub_assign<'l0, 'l1>(&'l0 mut self,
other: &'l1 ::matrix_4x4::Matrix4X4)
-> &'l0 mut ::matrix_4x4::Matrix4X4 {
let ffi_result = unsafe {
::ffi::qt_gui_c_QMatrix4x4_operator_sub_assign(self as *mut ::matrix_4x4::Matrix4X4,
other as *const ::matrix_4x4::Matrix4X4)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
/// C++ method: <span style='color: green;'>```void QMatrix4x4::optimize()```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#optimize">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Optimize the usage of this matrix from its current elements.</p>
/// <p>Some operations such as <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate">translate</a>(), <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale">scale</a>(), and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#rotate">rotate</a>() can be performed more efficiently if the matrix being modified is already known to be the identity, a previous <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate">translate</a>(), a previous <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale">scale</a>(), etc.</p>
/// <p>Normally the <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> class keeps track of this special type internally as operations are performed. However, if the matrix is modified directly with <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#operator-28-29">operator</a>()() or <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#data">data</a>(), then <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> will lose track of the special type and will revert to the safest but least efficient operations thereafter.</p>
/// <p>By calling optimize() after directly modifying the matrix, the programmer can force <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a> to recover the special type if the elements appear to conform to one of the known optimized types.</p>
/// <p><b>See also </b>operator()(), <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#data">data</a>(), and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate">translate</a>().</p></div>
pub fn optimize(&mut self) {
unsafe { ::ffi::qt_gui_c_QMatrix4x4_optimize(self as *mut ::matrix_4x4::Matrix4X4) }
}
/// C++ method: <span style='color: green;'>```QMatrix4x4::ortho```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn ortho(&mut self, &::qt_core::rect::Rect) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::ortho(const QRect& rect)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#ortho-2">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Multiplies this matrix by another that applies an orthographic projection for a window with boundaries specified by <i>rect</i>. The near and far clipping planes will be -1 and 1 respectively.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#frustum">frustum</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#perspective">perspective</a>().</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn ortho(&mut self, &::qt_core::rect_f::RectF) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::ortho(const QRectF& rect)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#ortho-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Multiplies this matrix by another that applies an orthographic projection for a window with boundaries specified by <i>rect</i>. The near and far clipping planes will be -1 and 1 respectively.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#frustum">frustum</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#perspective">perspective</a>().</p></div>
///
/// ## Variant 3
///
/// Rust arguments: ```fn ortho(&mut self, (::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::ortho(float left, float right, float bottom, float top, float nearPlane, float farPlane)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#ortho">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Multiplies this matrix by another that applies an orthographic projection for a window with lower-left corner (<i>left</i>, <i>bottom</i>), upper-right corner (<i>right</i>, <i>top</i>), and the specified <i>nearPlane</i> and <i>farPlane</i> clipping planes.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#frustum">frustum</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#perspective">perspective</a>().</p></div>
pub fn ortho<'largs, Args>(&'largs mut self, args: Args) -> ()
where Args: overloading::Matrix4X4OrthoArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```void QMatrix4x4::perspective(float verticalAngle, float aspectRatio, float nearPlane, float farPlane)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#perspective">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Multiplies this matrix by another that applies a perspective projection. The vertical field of view will be <i>verticalAngle</i> degrees within a window with a given <i>aspectRatio</i> that determines the horizontal field of view. The projection will have the specified <i>nearPlane</i> and <i>farPlane</i> clipping planes which are the distances from the viewer to the corresponding planes.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#ortho">ortho</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#frustum">frustum</a>().</p></div>
pub fn perspective(&mut self,
vertical_angle: ::libc::c_float,
aspect_ratio: ::libc::c_float,
near_plane: ::libc::c_float,
far_plane: ::libc::c_float) {
unsafe {
::ffi::qt_gui_c_QMatrix4x4_perspective(self as *mut ::matrix_4x4::Matrix4X4,
vertical_angle,
aspect_ratio,
near_plane,
far_plane)
}
}
/// C++ method: <span style='color: green;'>```QMatrix4x4::rotate```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn rotate(&mut self, &::quaternion::Quaternion) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::rotate(const QQuaternion& quaternion)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#rotate-2">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Multiples this matrix by another that rotates coordinates according to a specified <i>quaternion</i>. The <i>quaternion</i> is assumed to have been normalized.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale">scale</a>(), <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate">translate</a>(), and <a href="http://doc.qt.io/qt-5/qquaternion.html">QQuaternion</a>.</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn rotate(&mut self, (::libc::c_float, &::vector_3d::Vector3D)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::rotate(float angle, const QVector3D& vector)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#rotate">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Multiples this matrix by another that rotates coordinates through <i>angle</i> degrees about <i>vector</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale">scale</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate">translate</a>().</p></div>
///
/// ## Variant 3
///
/// Rust arguments: ```fn rotate(&mut self, (::libc::c_float, ::libc::c_float, ::libc::c_float)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::rotate(float angle, float x, float y)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#rotate-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Multiplies this matrix by another that rotates coordinates through <i>angle</i> degrees about the vector (<i>x</i>, <i>y</i>, <i>z</i>).</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale">scale</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate">translate</a>().</p></div>
///
/// ## Variant 4
///
/// Rust arguments: ```fn rotate(&mut self, (::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::rotate(float angle, float x, float y, float z = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#rotate-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Multiplies this matrix by another that rotates coordinates through <i>angle</i> degrees about the vector (<i>x</i>, <i>y</i>, <i>z</i>).</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale">scale</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate">translate</a>().</p></div>
pub fn rotate<'largs, Args>(&'largs mut self, args: Args) -> ()
where Args: overloading::Matrix4X4RotateArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```QVector4D QMatrix4x4::row(int index) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#row">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the elements of row <i>index</i> as a 4D vector.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#setRow">setRow</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#column">column</a>().</p></div>
pub fn row(&self, index: ::libc::c_int) -> ::cpp_utils::CppBox<::vector_4d::Vector4D> {
let ffi_result = unsafe { ::ffi::qt_gui_c_QMatrix4x4_row_as_ptr(self as *const ::matrix_4x4::Matrix4X4, index) };
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
/// C++ method: <span style='color: green;'>```QMatrix4x4::scale```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn scale(&mut self, &::vector_3d::Vector3D) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::scale(const QVector3D& vector)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Multiplies this matrix by another that scales coordinates by the components of <i>vector</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate">translate</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#rotate">rotate</a>().</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn scale(&mut self, ::libc::c_float) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::scale(float factor)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale-3">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Multiplies this matrix by another that scales coordinates by the given <i>factor</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate">translate</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#rotate">rotate</a>().</p></div>
///
/// ## Variant 3
///
/// Rust arguments: ```fn scale(&mut self, (::libc::c_float, ::libc::c_float)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::scale(float x, float y)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Multiplies this matrix by another that scales coordinates by the components <i>x</i>, and <i>y</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate">translate</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#rotate">rotate</a>().</p></div>
///
/// ## Variant 4
///
/// Rust arguments: ```fn scale(&mut self, (::libc::c_float, ::libc::c_float, ::libc::c_float)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::scale(float x, float y, float z)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale-2">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Multiplies this matrix by another that scales coordinates by the components <i>x</i>, <i>y</i>, and <i>z</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate">translate</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#rotate">rotate</a>().</p></div>
pub fn scale<'largs, Args>(&'largs mut self, args: Args) -> ()
where Args: overloading::Matrix4X4ScaleArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```void QMatrix4x4::setColumn(int index, const QVector4D& value)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#setColumn">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the elements of column <i>index</i> to the components of <i>value</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#column">column</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#setRow">setRow</a>().</p></div>
pub fn set_column(&mut self, index: ::libc::c_int, value: &::vector_4d::Vector4D) {
unsafe {
::ffi::qt_gui_c_QMatrix4x4_setColumn(self as *mut ::matrix_4x4::Matrix4X4,
index,
value as *const ::vector_4d::Vector4D)
}
}
/// C++ method: <span style='color: green;'>```void QMatrix4x4::setRow(int index, const QVector4D& value)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#setRow">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the elements of row <i>index</i> to the components of <i>value</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#row">row</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#setColumn">setColumn</a>().</p></div>
pub fn set_row(&mut self, index: ::libc::c_int, value: &::vector_4d::Vector4D) {
unsafe {
::ffi::qt_gui_c_QMatrix4x4_setRow(self as *mut ::matrix_4x4::Matrix4X4,
index,
value as *const ::vector_4d::Vector4D)
}
}
/// C++ method: <span style='color: green;'>```void QMatrix4x4::setToIdentity()```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#setToIdentity">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets this matrix to the identity.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#isIdentity">isIdentity</a>().</p></div>
pub fn set_to_identity(&mut self) {
unsafe { ::ffi::qt_gui_c_QMatrix4x4_setToIdentity(self as *mut ::matrix_4x4::Matrix4X4) }
}
/// C++ method: <span style='color: green;'>```QMatrix QMatrix4x4::toAffine() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#toAffine">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the conventional Qt 2D affine transformation matrix that corresponds to this matrix. It is assumed that this matrix only contains 2D affine transformation elements.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#toTransform">toTransform</a>().</p></div>
pub fn to_affine(&self) -> ::matrix::Matrix {
{
let mut object: ::matrix::Matrix =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QMatrix4x4_toAffine_to_output(self as *const ::matrix_4x4::Matrix4X4, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```QMatrix4x4::toTransform```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn to_transform(&self, ()) -> ::transform::Transform```<br>
/// C++ method: <span style='color: green;'>```QTransform QMatrix4x4::toTransform() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#toTransform">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the conventional Qt 2D transformation matrix that corresponds to this matrix.</p>
/// <p>The returned <a href="http://doc.qt.io/qt-5/qtransform.html">QTransform</a> is formed by simply dropping the third row and third column of the <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a>. This is suitable for implementing orthographic projections where the z co-ordinate should be dropped rather than projected.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#toAffine">toAffine</a>().</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn to_transform(&self, ::libc::c_float) -> ::transform::Transform```<br>
/// C++ method: <span style='color: green;'>```QTransform QMatrix4x4::toTransform(float distanceToPlane) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#toTransform-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the conventional Qt 2D transformation matrix that corresponds to this matrix.</p>
/// <p>If <i>distanceToPlane</i> is non-zero, it indicates a projection factor to use to adjust for the z co-ordinate. The value of 1024 corresponds to the projection factor used by <a href="http://doc.qt.io/qt-5/qtransform.html#rotate">QTransform::rotate</a>() for the x and y axes.</p>
/// <p>If <i>distanceToPlane</i> is zero, then the returned <a href="http://doc.qt.io/qt-5/qtransform.html">QTransform</a> is formed by simply dropping the third row and third column of the <a href="http://doc.qt.io/qt-5/qmatrix4x4.html">QMatrix4x4</a>. This is suitable for implementing orthographic projections where the z co-ordinate should be dropped rather than projected.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#toAffine">toAffine</a>().</p></div>
pub fn to_transform<'largs, Args>(&'largs self, args: Args) -> ::transform::Transform
where Args: overloading::Matrix4X4ToTransformArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```QMatrix4x4::translate```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn translate(&mut self, &::vector_3d::Vector3D) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::translate(const QVector3D& vector)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Multiplies this matrix by another that translates coordinates by the components of <i>vector</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale">scale</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#rotate">rotate</a>().</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn translate(&mut self, (::libc::c_float, ::libc::c_float)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::translate(float x, float y)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Multiplies this matrix by another that translates coordinates by the components <i>x</i>, and <i>y</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale">scale</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#rotate">rotate</a>().</p></div>
///
/// ## Variant 3
///
/// Rust arguments: ```fn translate(&mut self, (::libc::c_float, ::libc::c_float, ::libc::c_float)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::translate(float x, float y, float z)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#translate-2">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Multiplies this matrix by another that translates coordinates by the components <i>x</i>, <i>y</i>, and <i>z</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qmatrix4x4.html#scale">scale</a>() and <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#rotate">rotate</a>().</p></div>
pub fn translate<'largs, Args>(&'largs mut self, args: Args) -> ()
where Args: overloading::Matrix4X4TranslateArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```QMatrix4x4 QMatrix4x4::transposed() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#transposed">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns this matrix, transposed about its diagonal.</p></div>
pub fn transposed(&self) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4> {
let ffi_result = unsafe { ::ffi::qt_gui_c_QMatrix4x4_transposed_as_ptr(self as *const ::matrix_4x4::Matrix4X4) };
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
/// C++ method: <span style='color: green;'>```QMatrix4x4::viewport```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn viewport(&mut self, &::qt_core::rect_f::RectF) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::viewport(const QRectF& rect)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#viewport-1">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This is an overloaded function.</p>
/// <p>Sets up viewport transform for viewport bounded by <i>rect</i> and with near and far set to 0 and 1 respectively.</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn viewport(&mut self, (::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::viewport(float left, float bottom, float width, float height)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#viewport">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Multiplies this matrix by another that performs the scale and bias transformation used by OpenGL to transform from normalized device coordinates (NDC) to viewport (window) coordinates. That is it maps points from the cube ranging over [-1, 1] in each dimension to the viewport with it's near-lower-left corner at (<i>left</i>, <i>bottom</i>, <i>nearPlane</i>) and with size (<i>width</i>, <i>height</i>, <i>farPlane</i> - <i>nearPlane</i>).</p>
/// <p>This matches the transform used by the fixed function OpenGL viewport transform controlled by the functions glViewport() and glDepthRange().</p></div>
///
/// ## Variant 3
///
/// Rust arguments: ```fn viewport(&mut self, (::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::viewport(float left, float bottom, float width, float height, float nearPlane = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#viewport">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Multiplies this matrix by another that performs the scale and bias transformation used by OpenGL to transform from normalized device coordinates (NDC) to viewport (window) coordinates. That is it maps points from the cube ranging over [-1, 1] in each dimension to the viewport with it's near-lower-left corner at (<i>left</i>, <i>bottom</i>, <i>nearPlane</i>) and with size (<i>width</i>, <i>height</i>, <i>farPlane</i> - <i>nearPlane</i>).</p>
/// <p>This matches the transform used by the fixed function OpenGL viewport transform controlled by the functions glViewport() and glDepthRange().</p></div>
///
/// ## Variant 4
///
/// Rust arguments: ```fn viewport(&mut self, (::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float)) -> ()```<br>
/// C++ method: <span style='color: green;'>```void QMatrix4x4::viewport(float left, float bottom, float width, float height, float nearPlane = ?, float farPlane = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qmatrix4x4.html#viewport">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Multiplies this matrix by another that performs the scale and bias transformation used by OpenGL to transform from normalized device coordinates (NDC) to viewport (window) coordinates. That is it maps points from the cube ranging over [-1, 1] in each dimension to the viewport with it's near-lower-left corner at (<i>left</i>, <i>bottom</i>, <i>nearPlane</i>) and with size (<i>width</i>, <i>height</i>, <i>farPlane</i> - <i>nearPlane</i>).</p>
/// <p>This matches the transform used by the fixed function OpenGL viewport transform controlled by the functions glViewport() and glDepthRange().</p></div>
pub fn viewport<'largs, Args>(&'largs mut self, args: Args) -> ()
where Args: overloading::Matrix4X4ViewportArgs<'largs>
{
args.exec(self)
}
}
impl ::cpp_utils::CppDeletable for ::matrix_4x4::Matrix4X4 {
fn deleter() -> ::cpp_utils::Deleter<Self> {
::ffi::qt_gui_c_QMatrix4x4_delete
}
}
/// C++ method: <span style='color: green;'>```QDataStream& operator<<(QDataStream& arg1, const QMatrix4x4& arg2)```</span>
///
/// Warning: no exact match found in C++ documentation.Below is the <a href="http://doc.qt.io/qt-5/qbrush.html#operator-lt-lt">C++ documentation</a> for <code>QDataStream &operator<<(QDataStream &stream, const QBrush &brush)</code>: <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Writes the given <i>brush</i> to the given <i>stream</i> and returns a reference to the <i>stream</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/datastreamformat.html">Serializing Qt Data Types</a>.</p></div>
pub fn op_shl<'l0, 'l1>(arg1: &'l0 mut ::qt_core::data_stream::DataStream,
arg2: &'l1 ::matrix_4x4::Matrix4X4)
-> &'l0 mut ::qt_core::data_stream::DataStream {
let ffi_result = unsafe {
::ffi::qt_gui_c_QMatrix4x4_G_operator_shl(arg1 as *mut ::qt_core::data_stream::DataStream,
arg2 as *const ::matrix_4x4::Matrix4X4)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
/// C++ method: <span style='color: green;'>```QDataStream& operator>>(QDataStream& arg1, QMatrix4x4& arg2)```</span>
///
/// Warning: no exact match found in C++ documentation.Below is the <a href="http://doc.qt.io/qt-5/qbrush.html#operator-gt-gt">C++ documentation</a> for <code>QDataStream &operator>>(QDataStream &stream, QBrush &brush)</code>: <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Reads the given <i>brush</i> from the given <i>stream</i> and returns a reference to the <i>stream</i>.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/datastreamformat.html">Serializing Qt Data Types</a>.</p></div>
pub fn op_shr<'l0, 'l1>(arg1: &'l0 mut ::qt_core::data_stream::DataStream,
arg2: &'l1 mut ::matrix_4x4::Matrix4X4)
-> &'l0 mut ::qt_core::data_stream::DataStream {
let ffi_result = unsafe {
::ffi::qt_gui_c_QMatrix4x4_G_operator_shr(arg1 as *mut ::qt_core::data_stream::DataStream,
arg2 as *mut ::matrix_4x4::Matrix4X4)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
/// Types for emulating overloading for overloaded functions in this module
pub mod overloading {
/// This trait represents a set of arguments accepted by [Matrix4X4::map](../struct.Matrix4X4.html#method.map) method.
pub trait Matrix4X4MapArgs<'largs> {
type ReturnType;
fn exec(self, original_self: &'largs ::matrix_4x4::Matrix4X4) -> Self::ReturnType;
}
impl<'largs> Matrix4X4MapArgs<'largs> for &'largs ::vector_3d::Vector3D {
type ReturnType = ::cpp_utils::CppBox<::vector_3d::Vector3D>;
fn exec(self, original_self: &'largs ::matrix_4x4::Matrix4X4) -> ::cpp_utils::CppBox<::vector_3d::Vector3D> {
let point = self;
let ffi_result =
unsafe {
::ffi::qt_gui_c_QMatrix4x4_map_as_ptr_QVector3D(original_self as *const ::matrix_4x4::Matrix4X4,
point as *const ::vector_3d::Vector3D)
};
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
}
impl<'largs> Matrix4X4MapArgs<'largs> for &'largs ::vector_4d::Vector4D {
type ReturnType = ::cpp_utils::CppBox<::vector_4d::Vector4D>;
fn exec(self, original_self: &'largs ::matrix_4x4::Matrix4X4) -> ::cpp_utils::CppBox<::vector_4d::Vector4D> {
let point = self;
let ffi_result =
unsafe {
::ffi::qt_gui_c_QMatrix4x4_map_as_ptr_QVector4D(original_self as *const ::matrix_4x4::Matrix4X4,
point as *const ::vector_4d::Vector4D)
};
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
}
impl<'largs> Matrix4X4MapArgs<'largs> for &'largs ::qt_core::point::Point {
type ReturnType = ::qt_core::point::Point;
fn exec(self, original_self: &'largs ::matrix_4x4::Matrix4X4) -> ::qt_core::point::Point {
let point = self;
{
let mut object: ::qt_core::point::Point =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QMatrix4x4_map_to_output_QPoint(original_self as *const ::matrix_4x4::Matrix4X4,
point as *const ::qt_core::point::Point,
&mut object);
}
object
}
}
}
impl<'largs> Matrix4X4MapArgs<'largs> for &'largs ::qt_core::point_f::PointF {
type ReturnType = ::qt_core::point_f::PointF;
fn exec(self, original_self: &'largs ::matrix_4x4::Matrix4X4) -> ::qt_core::point_f::PointF {
let point = self;
{
let mut object: ::qt_core::point_f::PointF =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QMatrix4x4_map_to_output_QPointF(original_self as *const ::matrix_4x4::Matrix4X4,
point as *const ::qt_core::point_f::PointF,
&mut object);
}
object
}
}
}
/// This trait represents a set of arguments accepted by [Matrix4X4::map_rect](../struct.Matrix4X4.html#method.map_rect) method.
pub trait Matrix4X4MapRectArgs<'largs> {
type ReturnType;
fn exec(self, original_self: &'largs ::matrix_4x4::Matrix4X4) -> Self::ReturnType;
}
impl<'largs> Matrix4X4MapRectArgs<'largs> for &'largs ::qt_core::rect::Rect {
type ReturnType = ::qt_core::rect::Rect;
fn exec(self, original_self: &'largs ::matrix_4x4::Matrix4X4) -> ::qt_core::rect::Rect {
let rect = self;
{
let mut object: ::qt_core::rect::Rect =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QMatrix4x4_mapRect_to_output_QRect(original_self as *const ::matrix_4x4::Matrix4X4,
rect as *const ::qt_core::rect::Rect,
&mut object);
}
object
}
}
}
impl<'largs> Matrix4X4MapRectArgs<'largs> for &'largs ::qt_core::rect_f::RectF {
type ReturnType = ::qt_core::rect_f::RectF;
fn exec(self, original_self: &'largs ::matrix_4x4::Matrix4X4) -> ::qt_core::rect_f::RectF {
let rect = self;
{
let mut object: ::qt_core::rect_f::RectF =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QMatrix4x4_mapRect_to_output_QRectF(original_self as *const ::matrix_4x4::Matrix4X4,
rect as *const ::qt_core::rect_f::RectF,
&mut object);
}
object
}
}
}
/// This trait represents a set of arguments accepted by [Matrix4X4::new](../struct.Matrix4X4.html#method.new) method.
pub trait Matrix4X4NewArgs {
fn exec(self) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4>;
}
impl Matrix4X4NewArgs
for (::libc::c_float,
::libc::c_float,
::libc::c_float,
::libc::c_float,
::libc::c_float,
::libc::c_float,
::libc::c_float,
::libc::c_float,
::libc::c_float,
::libc::c_float,
::libc::c_float,
::libc::c_float,
::libc::c_float,
::libc::c_float,
::libc::c_float,
::libc::c_float) {
fn exec(self) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4> {
let m11 = self.0;
let m12 = self.1;
let m13 = self.2;
let m14 = self.3;
let m21 = self.4;
let m22 = self.5;
let m23 = self.6;
let m24 = self.7;
let m31 = self.8;
let m32 = self.9;
let m33 = self.10;
let m34 = self.11;
let m41 = self.12;
let m42 = self.13;
let m43 = self.14;
let m44 = self.15;
let ffi_result =
unsafe {
::ffi::qt_gui_c_QMatrix4x4_new_m11_m12_m13_m14_m21_m22_m23_m24_m31_m32_m33_m34_m41_m42_m43_m44(m11,
m12,
m13,
m14,
m21,
m22,
m23,
m24,
m31,
m32,
m33,
m34,
m41,
m42,
m43,
m44)
};
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
}
impl<'a> Matrix4X4NewArgs for &'a ::matrix::Matrix {
fn exec(self) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4> {
let matrix = self;
let ffi_result = unsafe { ::ffi::qt_gui_c_QMatrix4x4_new_matrix(matrix as *const ::matrix::Matrix) };
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
}
impl Matrix4X4NewArgs for () {
fn exec(self) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4> {
let ffi_result = unsafe { ::ffi::qt_gui_c_QMatrix4x4_new_no_args() };
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
}
impl<'a> Matrix4X4NewArgs for &'a ::transform::Transform {
fn exec(self) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4> {
let transform = self;
let ffi_result = unsafe { ::ffi::qt_gui_c_QMatrix4x4_new_transform(transform as *const ::transform::Transform) };
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
}
/// This trait represents a set of arguments accepted by [Matrix4X4::new_unsafe](../struct.Matrix4X4.html#method.new_unsafe) method.
pub trait Matrix4X4NewUnsafeArgs {
unsafe fn exec(self) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4>;
}
impl Matrix4X4NewUnsafeArgs for *const ::libc::c_float {
unsafe fn exec(self) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4> {
let values = self;
let ffi_result = ::ffi::qt_gui_c_QMatrix4x4_new_values(values);
::cpp_utils::CppBox::new(ffi_result)
}
}
impl Matrix4X4NewUnsafeArgs for (*const ::libc::c_float, ::libc::c_int, ::libc::c_int) {
unsafe fn exec(self) -> ::cpp_utils::CppBox<::matrix_4x4::Matrix4X4> {
let values = self.0;
let cols = self.1;
let rows = self.2;
let ffi_result = ::ffi::qt_gui_c_QMatrix4x4_new_values_cols_rows(values, cols, rows);
::cpp_utils::CppBox::new(ffi_result)
}
}
/// This trait represents a set of arguments accepted by [Matrix4X4::op_mul_assign](../struct.Matrix4X4.html#method.op_mul_assign) method.
pub trait Matrix4X4OpMulAssignArgs<'largs> {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> &'largs mut ::matrix_4x4::Matrix4X4;
}
impl<'largs> Matrix4X4OpMulAssignArgs<'largs> for ::libc::c_float {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> &'largs mut ::matrix_4x4::Matrix4X4 {
let factor = self;
let ffi_result =
unsafe {
::ffi::qt_gui_c_QMatrix4x4_operator_mul_assign_factor(original_self as *mut ::matrix_4x4::Matrix4X4, factor)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
impl<'largs> Matrix4X4OpMulAssignArgs<'largs> for &'largs ::matrix_4x4::Matrix4X4 {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> &'largs mut ::matrix_4x4::Matrix4X4 {
let other = self;
let ffi_result =
unsafe {
::ffi::qt_gui_c_QMatrix4x4_operator_mul_assign_other(original_self as *mut ::matrix_4x4::Matrix4X4,
other as *const ::matrix_4x4::Matrix4X4)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}
/// This trait represents a set of arguments accepted by [Matrix4X4::ortho](../struct.Matrix4X4.html#method.ortho) method.
pub trait Matrix4X4OrthoArgs<'largs> {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> ();
}
impl<'largs> Matrix4X4OrthoArgs<'largs> for &'largs ::qt_core::rect::Rect {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let rect = self;
unsafe {
::ffi::qt_gui_c_QMatrix4x4_ortho_QRect(original_self as *mut ::matrix_4x4::Matrix4X4,
rect as *const ::qt_core::rect::Rect)
}
}
}
impl<'largs> Matrix4X4OrthoArgs<'largs> for &'largs ::qt_core::rect_f::RectF {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let rect = self;
unsafe {
::ffi::qt_gui_c_QMatrix4x4_ortho_QRectF(original_self as *mut ::matrix_4x4::Matrix4X4,
rect as *const ::qt_core::rect_f::RectF)
}
}
}
impl<'largs> Matrix4X4OrthoArgs<'largs>
for (::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float) {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let left = self.0;
let right = self.1;
let bottom = self.2;
let top = self.3;
let near_plane = self.4;
let far_plane = self.5;
unsafe { ::ffi::qt_gui_c_QMatrix4x4_ortho_float_float_float_float_float_float(original_self as *mut ::matrix_4x4::Matrix4X4, left, right, bottom, top, near_plane, far_plane) }
}
}
/// This trait represents a set of arguments accepted by [Matrix4X4::rotate](../struct.Matrix4X4.html#method.rotate) method.
pub trait Matrix4X4RotateArgs<'largs> {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> ();
}
impl<'largs> Matrix4X4RotateArgs<'largs> for (::libc::c_float, &'largs ::vector_3d::Vector3D) {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let angle = self.0;
let vector = self.1;
unsafe {
::ffi::qt_gui_c_QMatrix4x4_rotate_angle_vector(original_self as *mut ::matrix_4x4::Matrix4X4,
angle,
vector as *const ::vector_3d::Vector3D)
}
}
}
impl<'largs> Matrix4X4RotateArgs<'largs> for (::libc::c_float, ::libc::c_float, ::libc::c_float) {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let angle = self.0;
let x = self.1;
let y = self.2;
unsafe { ::ffi::qt_gui_c_QMatrix4x4_rotate_angle_x_y(original_self as *mut ::matrix_4x4::Matrix4X4, angle, x, y) }
}
}
impl<'largs> Matrix4X4RotateArgs<'largs> for (::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float) {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let angle = self.0;
let x = self.1;
let y = self.2;
let z = self.3;
unsafe {
::ffi::qt_gui_c_QMatrix4x4_rotate_angle_x_y_z(original_self as *mut ::matrix_4x4::Matrix4X4,
angle,
x,
y,
z)
}
}
}
impl<'largs> Matrix4X4RotateArgs<'largs> for &'largs ::quaternion::Quaternion {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let quaternion = self;
unsafe {
::ffi::qt_gui_c_QMatrix4x4_rotate_quaternion(original_self as *mut ::matrix_4x4::Matrix4X4,
quaternion as *const ::quaternion::Quaternion)
}
}
}
/// This trait represents a set of arguments accepted by [Matrix4X4::scale](../struct.Matrix4X4.html#method.scale) method.
pub trait Matrix4X4ScaleArgs<'largs> {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> ();
}
impl<'largs> Matrix4X4ScaleArgs<'largs> for ::libc::c_float {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let factor = self;
unsafe { ::ffi::qt_gui_c_QMatrix4x4_scale_factor(original_self as *mut ::matrix_4x4::Matrix4X4, factor) }
}
}
impl<'largs> Matrix4X4ScaleArgs<'largs> for &'largs ::vector_3d::Vector3D {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let vector = self;
unsafe {
::ffi::qt_gui_c_QMatrix4x4_scale_vector(original_self as *mut ::matrix_4x4::Matrix4X4,
vector as *const ::vector_3d::Vector3D)
}
}
}
impl<'largs> Matrix4X4ScaleArgs<'largs> for (::libc::c_float, ::libc::c_float) {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let x = self.0;
let y = self.1;
unsafe { ::ffi::qt_gui_c_QMatrix4x4_scale_x_y(original_self as *mut ::matrix_4x4::Matrix4X4, x, y) }
}
}
impl<'largs> Matrix4X4ScaleArgs<'largs> for (::libc::c_float, ::libc::c_float, ::libc::c_float) {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let x = self.0;
let y = self.1;
let z = self.2;
unsafe { ::ffi::qt_gui_c_QMatrix4x4_scale_x_y_z(original_self as *mut ::matrix_4x4::Matrix4X4, x, y, z) }
}
}
/// This trait represents a set of arguments accepted by [Matrix4X4::to_transform](../struct.Matrix4X4.html#method.to_transform) method.
pub trait Matrix4X4ToTransformArgs<'largs> {
fn exec(self, original_self: &'largs ::matrix_4x4::Matrix4X4) -> ::transform::Transform;
}
impl<'largs> Matrix4X4ToTransformArgs<'largs> for ::libc::c_float {
fn exec(self, original_self: &'largs ::matrix_4x4::Matrix4X4) -> ::transform::Transform {
let distance_to_plane = self;
{
let mut object: ::transform::Transform =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QMatrix4x4_toTransform_to_output_distanceToPlane(original_self as *const ::matrix_4x4::Matrix4X4, distance_to_plane, &mut object);
}
object
}
}
}
impl<'largs> Matrix4X4ToTransformArgs<'largs> for () {
fn exec(self, original_self: &'largs ::matrix_4x4::Matrix4X4) -> ::transform::Transform {
{
let mut object: ::transform::Transform =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QMatrix4x4_toTransform_to_output_no_args(original_self as *const ::matrix_4x4::Matrix4X4,
&mut object);
}
object
}
}
}
/// This trait represents a set of arguments accepted by [Matrix4X4::translate](../struct.Matrix4X4.html#method.translate) method.
pub trait Matrix4X4TranslateArgs<'largs> {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> ();
}
impl<'largs> Matrix4X4TranslateArgs<'largs> for &'largs ::vector_3d::Vector3D {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let vector = self;
unsafe {
::ffi::qt_gui_c_QMatrix4x4_translate_vector(original_self as *mut ::matrix_4x4::Matrix4X4,
vector as *const ::vector_3d::Vector3D)
}
}
}
impl<'largs> Matrix4X4TranslateArgs<'largs> for (::libc::c_float, ::libc::c_float) {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let x = self.0;
let y = self.1;
unsafe { ::ffi::qt_gui_c_QMatrix4x4_translate_x_y(original_self as *mut ::matrix_4x4::Matrix4X4, x, y) }
}
}
impl<'largs> Matrix4X4TranslateArgs<'largs> for (::libc::c_float, ::libc::c_float, ::libc::c_float) {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let x = self.0;
let y = self.1;
let z = self.2;
unsafe { ::ffi::qt_gui_c_QMatrix4x4_translate_x_y_z(original_self as *mut ::matrix_4x4::Matrix4X4, x, y, z) }
}
}
/// This trait represents a set of arguments accepted by [Matrix4X4::viewport](../struct.Matrix4X4.html#method.viewport) method.
pub trait Matrix4X4ViewportArgs<'largs> {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> ();
}
impl<'largs> Matrix4X4ViewportArgs<'largs> for (::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float) {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let left = self.0;
let bottom = self.1;
let width = self.2;
let height = self.3;
unsafe {
::ffi::qt_gui_c_QMatrix4x4_viewport_left_bottom_width_height(original_self as *mut ::matrix_4x4::Matrix4X4,
left,
bottom,
width,
height)
}
}
}
impl<'largs> Matrix4X4ViewportArgs<'largs>
for (::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float) {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let left = self.0;
let bottom = self.1;
let width = self.2;
let height = self.3;
let near_plane = self.4;
unsafe { ::ffi::qt_gui_c_QMatrix4x4_viewport_left_bottom_width_height_nearPlane(original_self as *mut ::matrix_4x4::Matrix4X4, left, bottom, width, height, near_plane) }
}
}
impl<'largs> Matrix4X4ViewportArgs<'largs>
for (::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float, ::libc::c_float) {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let left = self.0;
let bottom = self.1;
let width = self.2;
let height = self.3;
let near_plane = self.4;
let far_plane = self.5;
unsafe { ::ffi::qt_gui_c_QMatrix4x4_viewport_left_bottom_width_height_nearPlane_farPlane(original_self as *mut ::matrix_4x4::Matrix4X4, left, bottom, width, height, near_plane, far_plane) }
}
}
impl<'largs> Matrix4X4ViewportArgs<'largs> for &'largs ::qt_core::rect_f::RectF {
fn exec(self, original_self: &'largs mut ::matrix_4x4::Matrix4X4) -> () {
let rect = self;
unsafe {
::ffi::qt_gui_c_QMatrix4x4_viewport_rect(original_self as *mut ::matrix_4x4::Matrix4X4,
rect as *const ::qt_core::rect_f::RectF)
}
}
}
}