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
/// C++ type: <span style='color: green;'>```QScreen```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>The <a href="http://doc.qt.io/qt-5/qscreen.html">QScreen</a> class is used to query screen properties.</p>
/// <p>A note on logical vs physical dots per inch: physical DPI is based on the actual physical pixel sizes when available, and is useful for print preview and other cases where it's desirable to know the exact physical dimensions of screen displayed contents.</p>
/// <p>Logical dots per inch are used to convert font and user interface elements from point sizes to pixel sizes, and might be different from the physical dots per inch. The logical dots per inch are sometimes user-settable in the desktop environment's settings panel, to let the user globally control UI and font sizes in different applications.</p></div>
#[repr(C)]
pub struct Screen(u8);
impl Screen {
/// C++ method: <span style='color: green;'>```int QScreen::angleBetween(Qt::ScreenOrientation a, Qt::ScreenOrientation b) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#angleBetween">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Convenience function to compute the angle of rotation to get from rotation <i>a</i> to rotation <i>b</i>.</p>
/// <p>The result will be 0, 90, 180, or 270.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt.html#ScreenOrientation-enum">Qt::PrimaryOrientation</a> is interpreted as the screen's <a href="http://doc.qt.io/qt-5/qscreen.html#primaryOrientation-prop">primaryOrientation</a>().</p></div>
pub fn angle_between(&self,
a: ::qt_core::qt::ScreenOrientation,
b: ::qt_core::qt::ScreenOrientation)
-> ::libc::c_int {
unsafe { ::ffi::qt_gui_c_QScreen_angleBetween(self as *const ::screen::Screen, a, b) }
}
/// C++ method: <span style='color: green;'>```QRect QScreen::availableGeometry() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#availableGeometry-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the screen's available geometry in pixels.</p>
/// <p>The available geometry is the geometry excluding window manager reserved areas such as task bars and system menus.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QRect </td><td class="memItemRight bottomAlign"><span class="name"><b>availableGeometry</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#availableGeometryChanged">availableGeometryChanged</a></b></span>(const QRect &<i>geometry</i>)</td></tr>
/// </tbody></table></div></div>
pub fn available_geometry(&self) -> ::qt_core::rect::Rect {
{
let mut object: ::qt_core::rect::Rect =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QScreen_availableGeometry_to_output(self as *const ::screen::Screen, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```QSize QScreen::availableSize() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#availableSize-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the screen's available size in pixels.</p>
/// <p>The available size is the size excluding window manager reserved areas such as task bars and system menus.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>availableSize</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#availableGeometryChanged">availableGeometryChanged</a></b></span>(const QRect &<i>geometry</i>)</td></tr>
/// </tbody></table></div></div>
pub fn available_size(&self) -> ::qt_core::size::Size {
{
let mut object: ::qt_core::size::Size =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QScreen_availableSize_to_output(self as *const ::screen::Screen, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```QRect QScreen::availableVirtualGeometry() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#availableVirtualGeometry-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the available geometry of the virtual desktop to which this screen belongs.</p>
/// <p>Returns the available geometry of the virtual desktop corresponding to this screen.</p>
/// <p>This is the union of the virtual siblings' individual available geometries.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QRect </td><td class="memItemRight bottomAlign"><span class="name"><b>availableVirtualGeometry</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#virtualGeometryChanged">virtualGeometryChanged</a></b></span>(const QRect &<i>rect</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qscreen.html#availableGeometry-prop">availableGeometry</a>() and <a href="http://doc.qt.io/qt-5/qscreen.html#virtualSiblings">virtualSiblings</a>().</p></div>
pub fn available_virtual_geometry(&self) -> ::qt_core::rect::Rect {
{
let mut object: ::qt_core::rect::Rect =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QScreen_availableVirtualGeometry_to_output(self as *const ::screen::Screen, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```QSize QScreen::availableVirtualSize() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#availableVirtualSize-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the available size of the virtual desktop to which this screen belongs.</p>
/// <p>Returns the available pixel size of the virtual desktop corresponding to this screen.</p>
/// <p>This is the combined size of the virtual siblings' individual available geometries.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>availableVirtualSize</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#virtualGeometryChanged">virtualGeometryChanged</a></b></span>(const QRect &<i>rect</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qscreen.html#availableSize-prop">availableSize</a>() and <a href="http://doc.qt.io/qt-5/qscreen.html#virtualSiblings">virtualSiblings</a>().</p></div>
pub fn available_virtual_size(&self) -> ::qt_core::size::Size {
{
let mut object: ::qt_core::size::Size =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QScreen_availableVirtualSize_to_output(self as *const ::screen::Screen, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```int QScreen::depth() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#depth-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the color depth of the screen.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>depth</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub fn depth(&self) -> ::libc::c_int {
unsafe { ::ffi::qt_gui_c_QScreen_depth(self as *const ::screen::Screen) }
}
/// C++ method: <span style='color: green;'>```double QScreen::devicePixelRatio() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#devicePixelRatio-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the screen's ratio between physical pixels and device-independent pixels.</p>
/// <p>Returns the ratio between physical pixels and device-independent pixels for the screen.</p>
/// <p>Common values are 1.0 on normal displays and 2.0 on "retina" displays. Higher values are also possible.</p>
/// <p>This property was introduced in Qt 5.5.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>devicePixelRatio</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#physicalDotsPerInchChanged">physicalDotsPerInchChanged</a></b></span>(qreal <i>dpi</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qwindow.html#devicePixelRatio">QWindow::devicePixelRatio</a>() and <a href="http://doc.qt.io/qt-5/qguiapplication.html#devicePixelRatio">QGuiApplication::devicePixelRatio</a>().</p></div>
pub fn device_pixel_ratio(&self) -> ::libc::c_double {
unsafe { ::ffi::qt_gui_c_QScreen_devicePixelRatio(self as *const ::screen::Screen) }
}
/// C++ method: <span style='color: green;'>```QRect QScreen::geometry() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#geometry-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the screen's geometry in pixels.</p>
/// <p>As an example this might return <a href="http://doc.qt.io/qt-5/qrect.html">QRect</a>(0, 0, 1280, 1024), or in a virtual desktop setting <a href="http://doc.qt.io/qt-5/qrect.html">QRect</a>(1280, 0, 1280, 1024).</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QRect </td><td class="memItemRight bottomAlign"><span class="name"><b>geometry</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#geometryChanged">geometryChanged</a></b></span>(const QRect &<i>geometry</i>)</td></tr>
/// </tbody></table></div></div>
pub fn geometry(&self) -> ::qt_core::rect::Rect {
{
let mut object: ::qt_core::rect::Rect =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QScreen_geometry_to_output(self as *const ::screen::Screen, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```QScreen::grabWindow```</span>
///
/// This is an overloaded function. Available variants:
///
///
///
/// ## Variant 1
///
/// Rust arguments: ```fn grab_window(&mut self, ::libc::c_ulonglong) -> ::cpp_utils::CppBox<::pixmap::Pixmap>```<br>
/// C++ method: <span style='color: green;'>```QPixmap QScreen::grabWindow(unsigned long long window)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#grabWindow">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates and returns a pixmap constructed by grabbing the contents of the given <i>window</i> restricted by <a href="http://doc.qt.io/qt-5/qrect.html">QRect</a>(<i>x</i>, <i>y</i>, <i>width</i>, <i>height</i>).</p>
/// <p>The arguments (<i>x</i>, <i>y</i>) specify the offset in the window, whereas (<i>width</i>, <i>height</i>) specify the area to be copied. If <i>width</i> is negative, the function copies everything to the right border of the window. If <i>height</i> is negative, the function copies everything to the bottom of the window.</p>
/// <p>The window system identifier (<code>WId</code>) can be retrieved using the <a href="http://doc.qt.io/qt-5/qwidget.html#winId">QWidget::winId</a>() function. The rationale for using a window identifier and not a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a>, is to enable grabbing of windows that are not part of the application, window system frames, and so on.</p>
/// <p><b>Warning:</b> Grabbing windows that are not part of the application is not supported on systems such as iOS, where sandboxing/security prevents reading pixels of windows not owned by the application.</p>
/// <p>The grabWindow() function grabs pixels from the screen, not from the window, i.e. if there is another window partially or entirely over the one you grab, you get pixels from the overlying window, too. The mouse cursor is generally not grabbed.</p>
/// <p>Note on X11 that if the given <i>window</i> doesn't have the same depth as the root window, and another window partially or entirely obscures the one you grab, you will <i>not</i> get pixels from the overlying window. The contents of the obscured areas in the pixmap will be undefined and uninitialized.</p>
/// <p>On Windows Vista and above grabbing a layered window, which is created by setting the <a href="http://doc.qt.io/qt-5/qt.html#WidgetAttribute-enum">Qt::WA_TranslucentBackground</a> attribute, will not work. Instead grabbing the desktop widget should work.</p>
/// <p><b>Warning:</b> In general, grabbing an area outside the screen is not safe. This depends on the underlying window system.</p></div>
///
/// ## Variant 2
///
/// Rust arguments: ```fn grab_window(&mut self, (::libc::c_ulonglong, ::libc::c_int)) -> ::cpp_utils::CppBox<::pixmap::Pixmap>```<br>
/// C++ method: <span style='color: green;'>```QPixmap QScreen::grabWindow(unsigned long long window, int x = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#grabWindow">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates and returns a pixmap constructed by grabbing the contents of the given <i>window</i> restricted by <a href="http://doc.qt.io/qt-5/qrect.html">QRect</a>(<i>x</i>, <i>y</i>, <i>width</i>, <i>height</i>).</p>
/// <p>The arguments (<i>x</i>, <i>y</i>) specify the offset in the window, whereas (<i>width</i>, <i>height</i>) specify the area to be copied. If <i>width</i> is negative, the function copies everything to the right border of the window. If <i>height</i> is negative, the function copies everything to the bottom of the window.</p>
/// <p>The window system identifier (<code>WId</code>) can be retrieved using the <a href="http://doc.qt.io/qt-5/qwidget.html#winId">QWidget::winId</a>() function. The rationale for using a window identifier and not a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a>, is to enable grabbing of windows that are not part of the application, window system frames, and so on.</p>
/// <p><b>Warning:</b> Grabbing windows that are not part of the application is not supported on systems such as iOS, where sandboxing/security prevents reading pixels of windows not owned by the application.</p>
/// <p>The grabWindow() function grabs pixels from the screen, not from the window, i.e. if there is another window partially or entirely over the one you grab, you get pixels from the overlying window, too. The mouse cursor is generally not grabbed.</p>
/// <p>Note on X11 that if the given <i>window</i> doesn't have the same depth as the root window, and another window partially or entirely obscures the one you grab, you will <i>not</i> get pixels from the overlying window. The contents of the obscured areas in the pixmap will be undefined and uninitialized.</p>
/// <p>On Windows Vista and above grabbing a layered window, which is created by setting the <a href="http://doc.qt.io/qt-5/qt.html#WidgetAttribute-enum">Qt::WA_TranslucentBackground</a> attribute, will not work. Instead grabbing the desktop widget should work.</p>
/// <p><b>Warning:</b> In general, grabbing an area outside the screen is not safe. This depends on the underlying window system.</p></div>
///
/// ## Variant 3
///
/// Rust arguments: ```fn grab_window(&mut self, (::libc::c_ulonglong, ::libc::c_int, ::libc::c_int)) -> ::cpp_utils::CppBox<::pixmap::Pixmap>```<br>
/// C++ method: <span style='color: green;'>```QPixmap QScreen::grabWindow(unsigned long long window, int x = ?, int y = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#grabWindow">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates and returns a pixmap constructed by grabbing the contents of the given <i>window</i> restricted by <a href="http://doc.qt.io/qt-5/qrect.html">QRect</a>(<i>x</i>, <i>y</i>, <i>width</i>, <i>height</i>).</p>
/// <p>The arguments (<i>x</i>, <i>y</i>) specify the offset in the window, whereas (<i>width</i>, <i>height</i>) specify the area to be copied. If <i>width</i> is negative, the function copies everything to the right border of the window. If <i>height</i> is negative, the function copies everything to the bottom of the window.</p>
/// <p>The window system identifier (<code>WId</code>) can be retrieved using the <a href="http://doc.qt.io/qt-5/qwidget.html#winId">QWidget::winId</a>() function. The rationale for using a window identifier and not a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a>, is to enable grabbing of windows that are not part of the application, window system frames, and so on.</p>
/// <p><b>Warning:</b> Grabbing windows that are not part of the application is not supported on systems such as iOS, where sandboxing/security prevents reading pixels of windows not owned by the application.</p>
/// <p>The grabWindow() function grabs pixels from the screen, not from the window, i.e. if there is another window partially or entirely over the one you grab, you get pixels from the overlying window, too. The mouse cursor is generally not grabbed.</p>
/// <p>Note on X11 that if the given <i>window</i> doesn't have the same depth as the root window, and another window partially or entirely obscures the one you grab, you will <i>not</i> get pixels from the overlying window. The contents of the obscured areas in the pixmap will be undefined and uninitialized.</p>
/// <p>On Windows Vista and above grabbing a layered window, which is created by setting the <a href="http://doc.qt.io/qt-5/qt.html#WidgetAttribute-enum">Qt::WA_TranslucentBackground</a> attribute, will not work. Instead grabbing the desktop widget should work.</p>
/// <p><b>Warning:</b> In general, grabbing an area outside the screen is not safe. This depends on the underlying window system.</p></div>
///
/// ## Variant 4
///
/// Rust arguments: ```fn grab_window(&mut self, (::libc::c_ulonglong, ::libc::c_int, ::libc::c_int, ::libc::c_int)) -> ::cpp_utils::CppBox<::pixmap::Pixmap>```<br>
/// C++ method: <span style='color: green;'>```QPixmap QScreen::grabWindow(unsigned long long window, int x = ?, int y = ?, int w = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#grabWindow">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates and returns a pixmap constructed by grabbing the contents of the given <i>window</i> restricted by <a href="http://doc.qt.io/qt-5/qrect.html">QRect</a>(<i>x</i>, <i>y</i>, <i>width</i>, <i>height</i>).</p>
/// <p>The arguments (<i>x</i>, <i>y</i>) specify the offset in the window, whereas (<i>width</i>, <i>height</i>) specify the area to be copied. If <i>width</i> is negative, the function copies everything to the right border of the window. If <i>height</i> is negative, the function copies everything to the bottom of the window.</p>
/// <p>The window system identifier (<code>WId</code>) can be retrieved using the <a href="http://doc.qt.io/qt-5/qwidget.html#winId">QWidget::winId</a>() function. The rationale for using a window identifier and not a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a>, is to enable grabbing of windows that are not part of the application, window system frames, and so on.</p>
/// <p><b>Warning:</b> Grabbing windows that are not part of the application is not supported on systems such as iOS, where sandboxing/security prevents reading pixels of windows not owned by the application.</p>
/// <p>The grabWindow() function grabs pixels from the screen, not from the window, i.e. if there is another window partially or entirely over the one you grab, you get pixels from the overlying window, too. The mouse cursor is generally not grabbed.</p>
/// <p>Note on X11 that if the given <i>window</i> doesn't have the same depth as the root window, and another window partially or entirely obscures the one you grab, you will <i>not</i> get pixels from the overlying window. The contents of the obscured areas in the pixmap will be undefined and uninitialized.</p>
/// <p>On Windows Vista and above grabbing a layered window, which is created by setting the <a href="http://doc.qt.io/qt-5/qt.html#WidgetAttribute-enum">Qt::WA_TranslucentBackground</a> attribute, will not work. Instead grabbing the desktop widget should work.</p>
/// <p><b>Warning:</b> In general, grabbing an area outside the screen is not safe. This depends on the underlying window system.</p></div>
///
/// ## Variant 5
///
/// Rust arguments: ```fn grab_window(&mut self, (::libc::c_ulonglong, ::libc::c_int, ::libc::c_int, ::libc::c_int, ::libc::c_int)) -> ::cpp_utils::CppBox<::pixmap::Pixmap>```<br>
/// C++ method: <span style='color: green;'>```QPixmap QScreen::grabWindow(unsigned long long window, int x = ?, int y = ?, int w = ?, int h = ?)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#grabWindow">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Creates and returns a pixmap constructed by grabbing the contents of the given <i>window</i> restricted by <a href="http://doc.qt.io/qt-5/qrect.html">QRect</a>(<i>x</i>, <i>y</i>, <i>width</i>, <i>height</i>).</p>
/// <p>The arguments (<i>x</i>, <i>y</i>) specify the offset in the window, whereas (<i>width</i>, <i>height</i>) specify the area to be copied. If <i>width</i> is negative, the function copies everything to the right border of the window. If <i>height</i> is negative, the function copies everything to the bottom of the window.</p>
/// <p>The window system identifier (<code>WId</code>) can be retrieved using the <a href="http://doc.qt.io/qt-5/qwidget.html#winId">QWidget::winId</a>() function. The rationale for using a window identifier and not a <a href="http://doc.qt.io/qt-5/qwidget.html">QWidget</a>, is to enable grabbing of windows that are not part of the application, window system frames, and so on.</p>
/// <p><b>Warning:</b> Grabbing windows that are not part of the application is not supported on systems such as iOS, where sandboxing/security prevents reading pixels of windows not owned by the application.</p>
/// <p>The grabWindow() function grabs pixels from the screen, not from the window, i.e. if there is another window partially or entirely over the one you grab, you get pixels from the overlying window, too. The mouse cursor is generally not grabbed.</p>
/// <p>Note on X11 that if the given <i>window</i> doesn't have the same depth as the root window, and another window partially or entirely obscures the one you grab, you will <i>not</i> get pixels from the overlying window. The contents of the obscured areas in the pixmap will be undefined and uninitialized.</p>
/// <p>On Windows Vista and above grabbing a layered window, which is created by setting the <a href="http://doc.qt.io/qt-5/qt.html#WidgetAttribute-enum">Qt::WA_TranslucentBackground</a> attribute, will not work. Instead grabbing the desktop widget should work.</p>
/// <p><b>Warning:</b> In general, grabbing an area outside the screen is not safe. This depends on the underlying window system.</p></div>
pub fn grab_window<'largs, Args>(&'largs mut self, args: Args) -> ::cpp_utils::CppBox<::pixmap::Pixmap>
where Args: overloading::ScreenGrabWindowArgs<'largs>
{
args.exec(self)
}
/// C++ method: <span style='color: green;'>```bool QScreen::isLandscape(Qt::ScreenOrientation orientation) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#isLandscape">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Convenience function that returns <code>true</code> if <i>o</i> is either landscape or inverted landscape; otherwise returns <code>false</code>.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt.html#ScreenOrientation-enum">Qt::PrimaryOrientation</a> is interpreted as the screen's <a href="http://doc.qt.io/qt-5/qscreen.html#primaryOrientation-prop">primaryOrientation</a>().</p></div>
pub fn is_landscape(&self, orientation: ::qt_core::qt::ScreenOrientation) -> bool {
unsafe { ::ffi::qt_gui_c_QScreen_isLandscape(self as *const ::screen::Screen, orientation) }
}
/// C++ method: <span style='color: green;'>```bool QScreen::isPortrait(Qt::ScreenOrientation orientation) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#isPortrait">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Convenience function that returns <code>true</code> if <i>o</i> is either portrait or inverted portrait; otherwise returns <code>false</code>.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt.html#ScreenOrientation-enum">Qt::PrimaryOrientation</a> is interpreted as the screen's <a href="http://doc.qt.io/qt-5/qscreen.html#primaryOrientation-prop">primaryOrientation</a>().</p></div>
pub fn is_portrait(&self, orientation: ::qt_core::qt::ScreenOrientation) -> bool {
unsafe { ::ffi::qt_gui_c_QScreen_isPortrait(self as *const ::screen::Screen, orientation) }
}
/// C++ method: <span style='color: green;'>```double QScreen::logicalDotsPerInch() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#logicalDotsPerInch-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the number of logical dots or pixels per inch.</p>
/// <p>This value can be used to convert font point sizes to pixel sizes.</p>
/// <p>This is a convenience property that's simply the average of the <a href="http://doc.qt.io/qt-5/qscreen.html#logicalDotsPerInchX-prop">logicalDotsPerInchX</a> and <a href="http://doc.qt.io/qt-5/qscreen.html#logicalDotsPerInchY-prop">logicalDotsPerInchY</a> properties.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>logicalDotsPerInch</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#logicalDotsPerInchChanged">logicalDotsPerInchChanged</a></b></span>(qreal <i>dpi</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qscreen.html#logicalDotsPerInchX-prop">logicalDotsPerInchX</a>() and <a href="http://doc.qt.io/qt-5/qscreen.html#logicalDotsPerInchY-prop">logicalDotsPerInchY</a>().</p></div>
pub fn logical_dots_per_inch(&self) -> ::libc::c_double {
unsafe { ::ffi::qt_gui_c_QScreen_logicalDotsPerInch(self as *const ::screen::Screen) }
}
/// C++ method: <span style='color: green;'>```double QScreen::logicalDotsPerInchX() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#logicalDotsPerInchX-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the number of logical dots or pixels per inch in the horizontal direction.</p>
/// <p>This value is used to convert font point sizes to pixel sizes.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>logicalDotsPerInchX</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#logicalDotsPerInchChanged">logicalDotsPerInchChanged</a></b></span>(qreal <i>dpi</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qscreen.html#logicalDotsPerInchY-prop">logicalDotsPerInchY</a>().</p></div>
pub fn logical_dots_per_inch_x(&self) -> ::libc::c_double {
unsafe { ::ffi::qt_gui_c_QScreen_logicalDotsPerInchX(self as *const ::screen::Screen) }
}
/// C++ method: <span style='color: green;'>```double QScreen::logicalDotsPerInchY() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#logicalDotsPerInchY-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the number of logical dots or pixels per inch in the vertical direction.</p>
/// <p>This value is used to convert font point sizes to pixel sizes.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>logicalDotsPerInchY</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#logicalDotsPerInchChanged">logicalDotsPerInchChanged</a></b></span>(qreal <i>dpi</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qscreen.html#logicalDotsPerInchX-prop">logicalDotsPerInchX</a>().</p></div>
pub fn logical_dots_per_inch_y(&self) -> ::libc::c_double {
unsafe { ::ffi::qt_gui_c_QScreen_logicalDotsPerInchY(self as *const ::screen::Screen) }
}
/// C++ method: <span style='color: green;'>```QRect QScreen::mapBetween(Qt::ScreenOrientation a, Qt::ScreenOrientation b, const QRect& rect) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#mapBetween">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Maps the rect between two screen orientations.</p>
/// <p>This will flip the x and y dimensions of the rectangle <i>rect</i> if the orientation <i>a</i> is <a href="http://doc.qt.io/qt-5/qt.html#ScreenOrientation-enum">Qt::PortraitOrientation</a> or <a href="http://doc.qt.io/qt-5/qt.html#ScreenOrientation-enum">Qt::InvertedPortraitOrientation</a> and orientation <i>b</i> is <a href="http://doc.qt.io/qt-5/qt.html#ScreenOrientation-enum">Qt::LandscapeOrientation</a> or <a href="http://doc.qt.io/qt-5/qt.html#ScreenOrientation-enum">Qt::InvertedLandscapeOrientation</a>, or vice versa.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt.html#ScreenOrientation-enum">Qt::PrimaryOrientation</a> is interpreted as the screen's <a href="http://doc.qt.io/qt-5/qscreen.html#primaryOrientation-prop">primaryOrientation</a>().</p></div>
pub fn map_between(&self,
a: ::qt_core::qt::ScreenOrientation,
b: ::qt_core::qt::ScreenOrientation,
rect: &::qt_core::rect::Rect)
-> ::qt_core::rect::Rect {
{
let mut object: ::qt_core::rect::Rect =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QScreen_mapBetween_to_output(self as *const ::screen::Screen,
a,
b,
rect as *const ::qt_core::rect::Rect,
&mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```virtual const QMetaObject* QScreen::metaObject() const```</span>
///
///
pub fn meta_object(&self) -> *const ::qt_core::meta_object::MetaObject {
unsafe { ::ffi::qt_gui_c_QScreen_metaObject(self as *const ::screen::Screen) }
}
/// C++ method: <span style='color: green;'>```QString QScreen::name() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#name-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds a user presentable string representing the screen.</p>
/// <p>For example, on X11 these correspond to the XRandr screen names, typically "VGA1", "HDMI1", etc.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>name</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub fn name(&self) -> ::qt_core::string::String {
{
let mut object: ::qt_core::string::String =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QScreen_name_to_output(self as *const ::screen::Screen, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```Qt::ScreenOrientation QScreen::nativeOrientation() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#nativeOrientation-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the native screen orientation.</p>
/// <p>The native orientation of the screen is the orientation where the logo sticker of the device appears the right way up, or <a href="http://doc.qt.io/qt-5/qt.html#ScreenOrientation-enum">Qt::PrimaryOrientation</a> if the platform does not support this functionality.</p>
/// <p>The native orientation is a property of the hardware, and does not change.</p>
/// <p>This property was introduced in Qt 5.2.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt::ScreenOrientation </td><td class="memItemRight bottomAlign"><span class="name"><b>nativeOrientation</b></span>() const</td></tr>
/// </tbody></table></div></div>
pub fn native_orientation(&self) -> ::qt_core::qt::ScreenOrientation {
unsafe { ::ffi::qt_gui_c_QScreen_nativeOrientation(self as *const ::screen::Screen) }
}
/// C++ method: <span style='color: green;'>```Qt::ScreenOrientation QScreen::orientation() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#orientation-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the screen orientation.</p>
/// <p>The screen orientation represents the physical orientation of the display. For example, the screen orientation of a mobile device will change based on how it is being held. A change to the orientation might or might not trigger a change to the primary orientation of the screen.</p>
/// <p>Changes to this property will be filtered by <a href="http://doc.qt.io/qt-5/qscreen.html#orientationUpdateMask">orientationUpdateMask</a>(), so in order to receive orientation updates the application must first call <a href="http://doc.qt.io/qt-5/qscreen.html#setOrientationUpdateMask">setOrientationUpdateMask</a>() with a mask of the orientations it wants to receive.</p>
/// <p><a href="http://doc.qt.io/qt-5/qt.html#ScreenOrientation-enum">Qt::PrimaryOrientation</a> is never returned.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt::ScreenOrientation </td><td class="memItemRight bottomAlign"><span class="name"><b>orientation</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#orientationChanged">orientationChanged</a></b></span>(Qt::ScreenOrientation <i>orientation</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qscreen.html#primaryOrientation-prop">primaryOrientation</a>().</p></div>
pub fn orientation(&self) -> ::qt_core::qt::ScreenOrientation {
unsafe { ::ffi::qt_gui_c_QScreen_orientation(self as *const ::screen::Screen) }
}
/// C++ method: <span style='color: green;'>```QFlags<Qt::ScreenOrientation> QScreen::orientationUpdateMask() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#orientationUpdateMask">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Returns the currently set orientation update mask.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qscreen.html#setOrientationUpdateMask">setOrientationUpdateMask</a>().</p></div>
pub fn orientation_update_mask(&self) -> ::qt_core::flags::Flags<::qt_core::qt::ScreenOrientation> {
let ffi_result = unsafe { ::ffi::qt_gui_c_QScreen_orientationUpdateMask(self as *const ::screen::Screen) };
::qt_core::flags::Flags::from_int(ffi_result as i32)
}
/// C++ method: <span style='color: green;'>```double QScreen::physicalDotsPerInch() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#physicalDotsPerInch-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the number of physical dots or pixels per inch.</p>
/// <p>This value represents the pixel density on the screen's display. Depending on what information the underlying system provides the value might not be entirely accurate.</p>
/// <p>This is a convenience property that's simply the average of the <a href="http://doc.qt.io/qt-5/qscreen.html#physicalDotsPerInchX-prop">physicalDotsPerInchX</a> and <a href="http://doc.qt.io/qt-5/qscreen.html#physicalDotsPerInchY-prop">physicalDotsPerInchY</a> properties.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>physicalDotsPerInch</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#physicalDotsPerInchChanged">physicalDotsPerInchChanged</a></b></span>(qreal <i>dpi</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qscreen.html#physicalDotsPerInchX-prop">physicalDotsPerInchX</a>() and <a href="http://doc.qt.io/qt-5/qscreen.html#physicalDotsPerInchY-prop">physicalDotsPerInchY</a>().</p></div>
pub fn physical_dots_per_inch(&self) -> ::libc::c_double {
unsafe { ::ffi::qt_gui_c_QScreen_physicalDotsPerInch(self as *const ::screen::Screen) }
}
/// C++ method: <span style='color: green;'>```double QScreen::physicalDotsPerInchX() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#physicalDotsPerInchX-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the number of physical dots or pixels per inch in the horizontal direction.</p>
/// <p>This value represents the actual horizontal pixel density on the screen's display. Depending on what information the underlying system provides the value might not be entirely accurate.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>physicalDotsPerInchX</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#physicalDotsPerInchChanged">physicalDotsPerInchChanged</a></b></span>(qreal <i>dpi</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qscreen.html#physicalDotsPerInchY-prop">physicalDotsPerInchY</a>().</p></div>
pub fn physical_dots_per_inch_x(&self) -> ::libc::c_double {
unsafe { ::ffi::qt_gui_c_QScreen_physicalDotsPerInchX(self as *const ::screen::Screen) }
}
/// C++ method: <span style='color: green;'>```double QScreen::physicalDotsPerInchY() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#physicalDotsPerInchY-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the number of physical dots or pixels per inch in the vertical direction.</p>
/// <p>This value represents the actual vertical pixel density on the screen's display. Depending on what information the underlying system provides the value might not be entirely accurate.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>physicalDotsPerInchY</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#physicalDotsPerInchChanged">physicalDotsPerInchChanged</a></b></span>(qreal <i>dpi</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qscreen.html#physicalDotsPerInchX-prop">physicalDotsPerInchX</a>().</p></div>
pub fn physical_dots_per_inch_y(&self) -> ::libc::c_double {
unsafe { ::ffi::qt_gui_c_QScreen_physicalDotsPerInchY(self as *const ::screen::Screen) }
}
/// C++ method: <span style='color: green;'>```QSizeF QScreen::physicalSize() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#physicalSize-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the screen's physical size (in millimeters).</p>
/// <p>The physical size represents the actual physical dimensions of the screen's display.</p>
/// <p>Depending on what information the underlying system provides the value might not be entirely accurate.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSizeF </td><td class="memItemRight bottomAlign"><span class="name"><b>physicalSize</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>physicalSizeChanged</b></span>(const QSizeF &<i>size</i>)</td></tr>
/// </tbody></table></div></div>
pub fn physical_size(&self) -> ::qt_core::size_f::SizeF {
{
let mut object: ::qt_core::size_f::SizeF =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QScreen_physicalSize_to_output(self as *const ::screen::Screen, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```Qt::ScreenOrientation QScreen::primaryOrientation() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#primaryOrientation-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the primary screen orientation.</p>
/// <p>The primary screen orientation is <a href="http://doc.qt.io/qt-5/qt.html#ScreenOrientation-enum">Qt::LandscapeOrientation</a> if the screen geometry's width is greater than or equal to its height, or <a href="http://doc.qt.io/qt-5/qt.html#ScreenOrientation-enum">Qt::PortraitOrientation</a> otherwise. This property might change when the screen orientation was changed (i.e. when the display is rotated). The behavior is however platform dependent and can often be specified in an application manifest file.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> Qt::ScreenOrientation </td><td class="memItemRight bottomAlign"><span class="name"><b>primaryOrientation</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#primaryOrientationChanged">primaryOrientationChanged</a></b></span>(Qt::ScreenOrientation <i>orientation</i>)</td></tr>
/// </tbody></table></div></div>
pub fn primary_orientation(&self) -> ::qt_core::qt::ScreenOrientation {
unsafe { ::ffi::qt_gui_c_QScreen_primaryOrientation(self as *const ::screen::Screen) }
}
/// C++ method: <span style='color: green;'>```virtual int QScreen::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)```</span>
///
///
pub unsafe fn qt_metacall(&mut self,
arg1: ::qt_core::meta_object::Call,
arg2: ::libc::c_int,
arg3: *mut *mut ::libc::c_void)
-> ::libc::c_int {
::ffi::qt_gui_c_QScreen_qt_metacall(self as *mut ::screen::Screen, arg1, arg2, arg3)
}
/// C++ method: <span style='color: green;'>```virtual void* QScreen::qt_metacast(const char* arg1)```</span>
///
///
pub unsafe fn qt_metacast(&mut self, arg1: *const ::libc::c_char) -> *mut ::libc::c_void {
::ffi::qt_gui_c_QScreen_qt_metacast(self as *mut ::screen::Screen, arg1)
}
/// C++ method: <span style='color: green;'>```double QScreen::refreshRate() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#refreshRate-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the approximate vertical refresh rate of the screen in Hz.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>refreshRate</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>refreshRateChanged</b></span>(qreal <i>refreshRate</i>)</td></tr>
/// </tbody></table></div></div>
pub fn refresh_rate(&self) -> ::libc::c_double {
unsafe { ::ffi::qt_gui_c_QScreen_refreshRate(self as *const ::screen::Screen) }
}
/// C++ method: <span style='color: green;'>```void QScreen::setOrientationUpdateMask(QFlags<Qt::ScreenOrientation> mask)```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#setOrientationUpdateMask">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Sets the orientations that the application is interested in receiving updates for in conjunction with this screen.</p>
/// <p>For example, to receive <a href="http://doc.qt.io/qt-5/qscreen.html#orientation-prop">orientation</a>() updates and thus have <a href="http://doc.qt.io/qt-5/qscreen.html#orientationChanged">orientationChanged</a>() signals being emitted for LandscapeOrientation and InvertedLandscapeOrientation, call setOrientationUpdateMask() with <i>mask</i> set to <a href="http://doc.qt.io/qt-5/qt.html#ScreenOrientation-enum">Qt::LandscapeOrientation</a> | <a href="http://doc.qt.io/qt-5/qt.html#ScreenOrientation-enum">Qt::InvertedLandscapeOrientation</a>.</p>
/// <p>The default, 0, means no <a href="http://doc.qt.io/qt-5/qscreen.html#orientationChanged">orientationChanged</a>() signals are fired.</p>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qscreen.html#orientationUpdateMask">orientationUpdateMask</a>().</p></div>
pub fn set_orientation_update_mask(&mut self, mask: ::qt_core::flags::Flags<::qt_core::qt::ScreenOrientation>) {
unsafe {
::ffi::qt_gui_c_QScreen_setOrientationUpdateMask(self as *mut ::screen::Screen,
mask.to_int() as ::libc::c_uint)
}
}
/// C++ method: <span style='color: green;'>```QSize QScreen::size() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#size-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the pixel resolution of the screen.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>size</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#geometryChanged">geometryChanged</a></b></span>(const QRect &<i>geometry</i>)</td></tr>
/// </tbody></table></div></div>
pub fn size(&self) -> ::qt_core::size::Size {
{
let mut object: ::qt_core::size::Size =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QScreen_size_to_output(self as *const ::screen::Screen, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```static QString QScreen::tr(const char* s, const char* c, int n)```</span>
///
///
pub unsafe fn tr(s: *const ::libc::c_char, c: *const ::libc::c_char, n: ::libc::c_int) -> ::qt_core::string::String {
{
let mut object: ::qt_core::string::String =
::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
::ffi::qt_gui_c_QScreen_tr_to_output(s, c, n, &mut object);
object
}
}
/// C++ method: <span style='color: green;'>```static QString QScreen::trUtf8(const char* s, const char* c, int n)```</span>
///
///
pub unsafe fn tr_utf8(s: *const ::libc::c_char,
c: *const ::libc::c_char,
n: ::libc::c_int)
-> ::qt_core::string::String {
{
let mut object: ::qt_core::string::String =
::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
::ffi::qt_gui_c_QScreen_trUtf8_to_output(s, c, n, &mut object);
object
}
}
/// C++ method: <span style='color: green;'>```QTransform QScreen::transformBetween(Qt::ScreenOrientation a, Qt::ScreenOrientation b, const QRect& target) const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#transformBetween">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Convenience function to compute a transform that maps from the coordinate system defined by orientation <i>a</i> into the coordinate system defined by orientation <i>b</i> and target dimensions <i>target</i>.</p>
/// <p>Example, <i>a</i> is Qt::Landscape, <i>b</i> is Qt::Portrait, and <i>target</i> is <a href="http://doc.qt.io/qt-5/qrect.html">QRect</a>(0, 0, w, h) the resulting transform will be such that the point <a href="http://doc.qt.io/qt-5/qpoint.html">QPoint</a>(0, 0) is mapped to <a href="http://doc.qt.io/qt-5/qpoint.html">QPoint</a>(0, w), and <a href="http://doc.qt.io/qt-5/qpoint.html">QPoint</a>(h, w) is mapped to <a href="http://doc.qt.io/qt-5/qpoint.html">QPoint</a>(0, h). Thus, the landscape coordinate system <a href="http://doc.qt.io/qt-5/qrect.html">QRect</a>(0, 0, h, w) is mapped (with a 90 degree rotation) into the portrait coordinate system <a href="http://doc.qt.io/qt-5/qrect.html">QRect</a>(0, 0, w, h).</p>
/// <p><a href="http://doc.qt.io/qt-5/qt.html#ScreenOrientation-enum">Qt::PrimaryOrientation</a> is interpreted as the screen's <a href="http://doc.qt.io/qt-5/qscreen.html#primaryOrientation-prop">primaryOrientation</a>().</p></div>
pub fn transform_between(&self,
a: ::qt_core::qt::ScreenOrientation,
b: ::qt_core::qt::ScreenOrientation,
target: &::qt_core::rect::Rect)
-> ::transform::Transform {
{
let mut object: ::transform::Transform =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QScreen_transformBetween_to_output(self as *const ::screen::Screen,
a,
b,
target as *const ::qt_core::rect::Rect,
&mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```QRect QScreen::virtualGeometry() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#virtualGeometry-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the pixel geometry of the virtual desktop to which this screen belongs.</p>
/// <p>Returns the pixel geometry of the virtual desktop corresponding to this screen.</p>
/// <p>This is the union of the virtual siblings' individual geometries.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QRect </td><td class="memItemRight bottomAlign"><span class="name"><b>virtualGeometry</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#virtualGeometryChanged">virtualGeometryChanged</a></b></span>(const QRect &<i>rect</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qscreen.html#virtualSiblings">virtualSiblings</a>().</p></div>
pub fn virtual_geometry(&self) -> ::qt_core::rect::Rect {
{
let mut object: ::qt_core::rect::Rect =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QScreen_virtualGeometry_to_output(self as *const ::screen::Screen, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```QList<QScreen*> QScreen::virtualSiblings() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#virtualSiblings">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Get the screen's virtual siblings.</p>
/// <p>The virtual siblings are the screen instances sharing the same virtual desktop. They share a common coordinate system, and windows can freely be moved or positioned across them without having to be re-created.</p></div>
pub fn virtual_siblings(&self) -> ::list::ListScreenMutPtr {
{
let mut object: ::list::ListScreenMutPtr =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QScreen_virtualSiblings_to_output(self as *const ::screen::Screen, &mut object);
}
object
}
}
/// C++ method: <span style='color: green;'>```QSize QScreen::virtualSize() const```</span>
///
/// <a href="http://doc.qt.io/qt-5/qscreen.html#virtualSize-prop">C++ documentation:</a> <div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>This property holds the pixel size of the virtual desktop to which this screen belongs.</p>
/// <p>Returns the pixel size of the virtual desktop corresponding to this screen.</p>
/// <p>This is the combined size of the virtual siblings' individual geometries.</p>
/// <p><b>Access functions:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>virtualSize</b></span>() const</td></tr>
/// </tbody></table></div>
/// <p><b>Notifier signal:</b></p>
/// <div class="table"><table class="alignedsummary">
/// <tbody><tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="http://doc.qt.io/qt-5/qscreen.html#virtualGeometryChanged">virtualGeometryChanged</a></b></span>(const QRect &<i>rect</i>)</td></tr>
/// </tbody></table></div>
/// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qscreen.html#virtualSiblings">virtualSiblings</a>().</p></div>
pub fn virtual_size(&self) -> ::qt_core::size::Size {
{
let mut object: ::qt_core::size::Size =
unsafe { ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized() };
unsafe {
::ffi::qt_gui_c_QScreen_virtualSize_to_output(self as *const ::screen::Screen, &mut object);
}
object
}
}
}
impl ::cpp_utils::CppDeletable for ::screen::Screen {
fn deleter() -> ::cpp_utils::Deleter<Self> {
::ffi::qt_gui_c_QScreen_delete
}
}
/// Types for accessing built-in Qt signals and slots present in this module
pub mod connection {
use ::cpp_utils::StaticCast;
/// Provides access to built-in Qt signals of `Screen`.
pub struct Signals<'a>(&'a ::screen::Screen);
/// Represents a built-in Qt signal `QScreen::geometryChanged`.
///
/// An object of this type can be created from `Screen` with `object.signals().geometry_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `Screen` object.
pub struct GeometryChanged<'a>(&'a ::screen::Screen);
impl<'a> ::qt_core::connection::Receiver for GeometryChanged<'a> {
type Arguments = (&'static ::qt_core::rect::Rect,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2geometryChanged(const QRect&)\0"
}
}
impl<'a> ::qt_core::connection::Signal for GeometryChanged<'a> {}
/// Represents a built-in Qt signal `QScreen::orientationChanged`.
///
/// An object of this type can be created from `Screen` with `object.signals().orientation_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `Screen` object.
pub struct OrientationChanged<'a>(&'a ::screen::Screen);
impl<'a> ::qt_core::connection::Receiver for OrientationChanged<'a> {
type Arguments = (::qt_core::qt::ScreenOrientation,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2orientationChanged(Qt::ScreenOrientation)\0"
}
}
impl<'a> ::qt_core::connection::Signal for OrientationChanged<'a> {}
/// Represents a built-in Qt signal `QScreen::physicalDotsPerInchChanged`.
///
/// An object of this type can be created from `Screen` with `object.signals().physical_dots_per_inch_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `Screen` object.
pub struct PhysicalDotsPerInchChanged<'a>(&'a ::screen::Screen);
impl<'a> ::qt_core::connection::Receiver for PhysicalDotsPerInchChanged<'a> {
type Arguments = (::libc::c_double,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2physicalDotsPerInchChanged(double)\0"
}
}
impl<'a> ::qt_core::connection::Signal for PhysicalDotsPerInchChanged<'a> {}
/// Represents a built-in Qt signal `QScreen::virtualGeometryChanged`.
///
/// An object of this type can be created from `Screen` with `object.signals().virtual_geometry_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `Screen` object.
pub struct VirtualGeometryChanged<'a>(&'a ::screen::Screen);
impl<'a> ::qt_core::connection::Receiver for VirtualGeometryChanged<'a> {
type Arguments = (&'static ::qt_core::rect::Rect,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2virtualGeometryChanged(const QRect&)\0"
}
}
impl<'a> ::qt_core::connection::Signal for VirtualGeometryChanged<'a> {}
/// Represents a built-in Qt signal `QScreen::physicalSizeChanged`.
///
/// An object of this type can be created from `Screen` with `object.signals().physical_size_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `Screen` object.
pub struct PhysicalSizeChanged<'a>(&'a ::screen::Screen);
impl<'a> ::qt_core::connection::Receiver for PhysicalSizeChanged<'a> {
type Arguments = (&'static ::qt_core::size_f::SizeF,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2physicalSizeChanged(const QSizeF&)\0"
}
}
impl<'a> ::qt_core::connection::Signal for PhysicalSizeChanged<'a> {}
/// Represents a built-in Qt signal `QScreen::refreshRateChanged`.
///
/// An object of this type can be created from `Screen` with `object.signals().refresh_rate_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `Screen` object.
pub struct RefreshRateChanged<'a>(&'a ::screen::Screen);
impl<'a> ::qt_core::connection::Receiver for RefreshRateChanged<'a> {
type Arguments = (::libc::c_double,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2refreshRateChanged(double)\0"
}
}
impl<'a> ::qt_core::connection::Signal for RefreshRateChanged<'a> {}
/// Represents a built-in Qt signal `QScreen::logicalDotsPerInchChanged`.
///
/// An object of this type can be created from `Screen` with `object.signals().logical_dots_per_inch_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `Screen` object.
pub struct LogicalDotsPerInchChanged<'a>(&'a ::screen::Screen);
impl<'a> ::qt_core::connection::Receiver for LogicalDotsPerInchChanged<'a> {
type Arguments = (::libc::c_double,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2logicalDotsPerInchChanged(double)\0"
}
}
impl<'a> ::qt_core::connection::Signal for LogicalDotsPerInchChanged<'a> {}
/// Represents a built-in Qt signal `QScreen::availableGeometryChanged`.
///
/// An object of this type can be created from `Screen` with `object.signals().available_geometry_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `Screen` object.
pub struct AvailableGeometryChanged<'a>(&'a ::screen::Screen);
impl<'a> ::qt_core::connection::Receiver for AvailableGeometryChanged<'a> {
type Arguments = (&'static ::qt_core::rect::Rect,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2availableGeometryChanged(const QRect&)\0"
}
}
impl<'a> ::qt_core::connection::Signal for AvailableGeometryChanged<'a> {}
/// Represents a built-in Qt signal `QScreen::primaryOrientationChanged`.
///
/// An object of this type can be created from `Screen` with `object.signals().primary_orientation_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `Screen` object.
pub struct PrimaryOrientationChanged<'a>(&'a ::screen::Screen);
impl<'a> ::qt_core::connection::Receiver for PrimaryOrientationChanged<'a> {
type Arguments = (::qt_core::qt::ScreenOrientation,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2primaryOrientationChanged(Qt::ScreenOrientation)\0"
}
}
impl<'a> ::qt_core::connection::Signal for PrimaryOrientationChanged<'a> {}
/// Represents a built-in Qt signal `QScreen::objectNameChanged`.
///
/// An object of this type can be created from `Screen` with `object.signals().object_name_changed()` and used for creating Qt connections using `qt_core::connection` API. After the connection is made, the object can (should) be dropped. The connection will remain active until sender or receiver are destroyed or until a manual disconnection is made.
///
/// An object of this type contains a reference to the original `Screen` object.
pub struct ObjectNameChanged<'a>(&'a ::screen::Screen);
impl<'a> ::qt_core::connection::Receiver for ObjectNameChanged<'a> {
type Arguments = (&'static ::qt_core::string::String,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2objectNameChanged(const QString&)\0"
}
}
impl<'a> ::qt_core::connection::Signal for ObjectNameChanged<'a> {}
impl<'a> Signals<'a> {
/// Returns an object representing a built-in Qt signal `QScreen::geometryChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn geometry_changed(&self) -> GeometryChanged {
GeometryChanged(self.0)
}
/// Returns an object representing a built-in Qt signal `QScreen::orientationChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn orientation_changed(&self) -> OrientationChanged {
OrientationChanged(self.0)
}
/// Returns an object representing a built-in Qt signal `QScreen::physicalDotsPerInchChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn physical_dots_per_inch_changed(&self) -> PhysicalDotsPerInchChanged {
PhysicalDotsPerInchChanged(self.0)
}
/// Returns an object representing a built-in Qt signal `QScreen::virtualGeometryChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn virtual_geometry_changed(&self) -> VirtualGeometryChanged {
VirtualGeometryChanged(self.0)
}
/// Returns an object representing a built-in Qt signal `QScreen::physicalSizeChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn physical_size_changed(&self) -> PhysicalSizeChanged {
PhysicalSizeChanged(self.0)
}
/// Returns an object representing a built-in Qt signal `QScreen::refreshRateChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn refresh_rate_changed(&self) -> RefreshRateChanged {
RefreshRateChanged(self.0)
}
/// Returns an object representing a built-in Qt signal `QScreen::logicalDotsPerInchChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn logical_dots_per_inch_changed(&self) -> LogicalDotsPerInchChanged {
LogicalDotsPerInchChanged(self.0)
}
/// Returns an object representing a built-in Qt signal `QScreen::availableGeometryChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn available_geometry_changed(&self) -> AvailableGeometryChanged {
AvailableGeometryChanged(self.0)
}
/// Returns an object representing a built-in Qt signal `QScreen::primaryOrientationChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn primary_orientation_changed(&self) -> PrimaryOrientationChanged {
PrimaryOrientationChanged(self.0)
}
/// Returns an object representing a built-in Qt signal `QScreen::objectNameChanged`.
///
/// Return value of this function can be used for creating Qt connections using `qt_core::connection` API.
pub fn object_name_changed(&self) -> ObjectNameChanged {
ObjectNameChanged(self.0)
}
}
impl ::screen::Screen {
/// Provides access to built-in Qt signals of this type
pub fn signals(&self) -> Signals {
Signals(self)
}
}
}
/// C++ method: <span style='color: green;'>```QDebug operator<<(QDebug arg1, const QScreen* 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 unsafe fn op_shl(arg1: &::qt_core::debug::Debug, arg2: *const ::screen::Screen) -> ::qt_core::debug::Debug {
{
let mut object: ::qt_core::debug::Debug = ::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
::ffi::qt_gui_c_QScreen_G_operator_shl_to_output(arg1 as *const ::qt_core::debug::Debug, arg2, &mut object);
object
}
}
impl ::cpp_utils::StaticCast<::qt_core::object::Object> for ::screen::Screen {
fn static_cast_mut(&mut self) -> &mut ::qt_core::object::Object {
let ffi_result = unsafe { ::ffi::qt_gui_c_QScreen_G_static_cast_QObject_ptr(self as *mut ::screen::Screen) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
fn static_cast(&self) -> &::qt_core::object::Object {
let ffi_result =
unsafe {
::ffi::qt_gui_c_QScreen_G_static_cast_QObject_ptr(self as *const ::screen::Screen as *mut ::screen::Screen)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::UnsafeStaticCast<::screen::Screen> for ::qt_core::object::Object {
unsafe fn static_cast_mut(&mut self) -> &mut ::screen::Screen {
let ffi_result = ::ffi::qt_gui_c_QScreen_G_static_cast_QScreen_ptr(self as *mut ::qt_core::object::Object);
ffi_result.as_mut().expect("Attempted to convert null pointer to reference")
}
unsafe fn static_cast(&self) -> &::screen::Screen {
let ffi_result = ::ffi::qt_gui_c_QScreen_G_static_cast_QScreen_ptr(self as *const ::qt_core::object::Object as *mut ::qt_core::object::Object);
ffi_result.as_ref().expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::Deref for ::screen::Screen {
type Target = ::qt_core::object::Object;
fn deref(&self) -> &::qt_core::object::Object {
let ffi_result =
unsafe {
::ffi::qt_gui_c_QScreen_G_static_cast_QObject_ptr(self as *const ::screen::Screen as *mut ::screen::Screen)
};
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for ::screen::Screen {
fn deref_mut(&mut self) -> &mut ::qt_core::object::Object {
let ffi_result = unsafe { ::ffi::qt_gui_c_QScreen_G_static_cast_QObject_ptr(self as *mut ::screen::Screen) };
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 [Screen::grab_window](../struct.Screen.html#method.grab_window) method.
pub trait ScreenGrabWindowArgs<'largs> {
fn exec(self, original_self: &'largs mut ::screen::Screen) -> ::cpp_utils::CppBox<::pixmap::Pixmap>;
}
impl<'largs> ScreenGrabWindowArgs<'largs> for ::libc::c_ulonglong {
fn exec(self, original_self: &'largs mut ::screen::Screen) -> ::cpp_utils::CppBox<::pixmap::Pixmap> {
let window = self;
let ffi_result =
unsafe { ::ffi::qt_gui_c_QScreen_grabWindow_as_ptr_window(original_self as *mut ::screen::Screen, window) };
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
}
impl<'largs> ScreenGrabWindowArgs<'largs> for (::libc::c_ulonglong, ::libc::c_int) {
fn exec(self, original_self: &'largs mut ::screen::Screen) -> ::cpp_utils::CppBox<::pixmap::Pixmap> {
let window = self.0;
let x = self.1;
let ffi_result = unsafe {
::ffi::qt_gui_c_QScreen_grabWindow_as_ptr_window_x(original_self as *mut ::screen::Screen, window, x)
};
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
}
impl<'largs> ScreenGrabWindowArgs<'largs> for (::libc::c_ulonglong, ::libc::c_int, ::libc::c_int) {
fn exec(self, original_self: &'largs mut ::screen::Screen) -> ::cpp_utils::CppBox<::pixmap::Pixmap> {
let window = self.0;
let x = self.1;
let y = self.2;
let ffi_result = unsafe {
::ffi::qt_gui_c_QScreen_grabWindow_as_ptr_window_x_y(original_self as *mut ::screen::Screen, window, x, y)
};
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
}
impl<'largs> ScreenGrabWindowArgs<'largs> for (::libc::c_ulonglong, ::libc::c_int, ::libc::c_int, ::libc::c_int) {
fn exec(self, original_self: &'largs mut ::screen::Screen) -> ::cpp_utils::CppBox<::pixmap::Pixmap> {
let window = self.0;
let x = self.1;
let y = self.2;
let w = self.3;
let ffi_result = unsafe {
::ffi::qt_gui_c_QScreen_grabWindow_as_ptr_window_x_y_w(original_self as *mut ::screen::Screen, window, x, y, w)
};
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
}
impl<'largs> ScreenGrabWindowArgs<'largs>
for (::libc::c_ulonglong, ::libc::c_int, ::libc::c_int, ::libc::c_int, ::libc::c_int) {
fn exec(self, original_self: &'largs mut ::screen::Screen) -> ::cpp_utils::CppBox<::pixmap::Pixmap> {
let window = self.0;
let x = self.1;
let y = self.2;
let w = self.3;
let h = self.4;
let ffi_result =
unsafe {
::ffi::qt_gui_c_QScreen_grabWindow_as_ptr_window_x_y_w_h(original_self as *mut ::screen::Screen,
window,
x,
y,
w,
h)
};
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
}
}