/usr/share/doc/libjuce/apiref/classDesktop.html is in libjuce-doc 4.3.0~repack-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JUCE: Desktop Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">JUCE
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#pub-types">Public Types</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="classDesktop-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Desktop Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Describes and controls aspects of the computer's desktop.
<a href="classDesktop.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for Desktop:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center">
<img src="classDesktop.png" usemap="#Desktop_map" alt=""/>
<map id="Desktop_map" name="Desktop_map">
<area href="classDeletedAtShutdown.html" title="Classes derived from this will be automatically deleted when the application exits. " alt="DeletedAtShutdown" shape="rect" coords="0,0,122,24"/>
<area href="classTimer.html" title="Makes repeated callbacks to a virtual method at a specified time interval. " alt="Timer" shape="rect" coords="132,0,254,24"/>
<area href="classAsyncUpdater.html" title="Has a callback method that is triggered asynchronously. " alt="AsyncUpdater" shape="rect" coords="264,0,386,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop_1_1Displays.html">Displays</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a5e06947d2d1295bdb6f5c4fab7beb98a"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a5e06947d2d1295bdb6f5c4fab7beb98a">DisplayOrientation</a> { <br />
  <a class="el" href="classDesktop.html#a5e06947d2d1295bdb6f5c4fab7beb98aaced7253546b0f2e73e4dd08bcb60c9f8">upright</a> = 1,
<a class="el" href="classDesktop.html#a5e06947d2d1295bdb6f5c4fab7beb98aa5820a6ffe2f7f012a16a1bd57e304b91">upsideDown</a> = 2,
<a class="el" href="classDesktop.html#a5e06947d2d1295bdb6f5c4fab7beb98aae1e0629de1668ef16f700b7278fd0f04">rotatedClockwise</a> = 4,
<a class="el" href="classDesktop.html#a5e06947d2d1295bdb6f5c4fab7beb98aab48176789b5764aae6aae6a393916712">rotatedAntiClockwise</a> = 8,
<br />
  <a class="el" href="classDesktop.html#a5e06947d2d1295bdb6f5c4fab7beb98aacb260a5600c352a166edd836a2305a06">allOrientations</a> = 1 + 2 + 4 + 8
<br />
}<tr class="memdesc:a5e06947d2d1295bdb6f5c4fab7beb98a"><td class="mdescLeft"> </td><td class="mdescRight">In a tablet device which can be turned around, this is used to inidicate the orientation. <a href="classDesktop.html#a5e06947d2d1295bdb6f5c4fab7beb98a">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:a5e06947d2d1295bdb6f5c4fab7beb98a"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aedc0ee3a5d19297c0163bc5a160b2ee4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#aedc0ee3a5d19297c0163bc5a160b2ee4">getMouseButtonClickCounter</a> () const noexcept</td></tr>
<tr class="memdesc:aedc0ee3a5d19297c0163bc5a160b2ee4"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of times the mouse button has been clicked since the app started. <a href="#aedc0ee3a5d19297c0163bc5a160b2ee4">More...</a><br /></td></tr>
<tr class="separator:aedc0ee3a5d19297c0163bc5a160b2ee4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aca2d34fe675f71a0ba3a7335fd169e0e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#aca2d34fe675f71a0ba3a7335fd169e0e">getMouseWheelMoveCounter</a> () const noexcept</td></tr>
<tr class="memdesc:aca2d34fe675f71a0ba3a7335fd169e0e"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of times the mouse wheel has been moved since the app started. <a href="#aca2d34fe675f71a0ba3a7335fd169e0e">More...</a><br /></td></tr>
<tr class="separator:aca2d34fe675f71a0ba3a7335fd169e0e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:add528b1597a432f2e4cb9b10314fc210"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#add528b1597a432f2e4cb9b10314fc210">addGlobalMouseListener</a> (<a class="el" href="classMouseListener.html">MouseListener</a> *listener)</td></tr>
<tr class="memdesc:add528b1597a432f2e4cb9b10314fc210"><td class="mdescLeft"> </td><td class="mdescRight">Registers a <a class="el" href="classMouseListener.html" title="A MouseListener can be registered with a component to receive callbacks about mouse events that happe...">MouseListener</a> that will receive all mouse events that occur on any component. <a href="#add528b1597a432f2e4cb9b10314fc210">More...</a><br /></td></tr>
<tr class="separator:add528b1597a432f2e4cb9b10314fc210"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6051a5203c21377974a1f65c0acd4acc"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a6051a5203c21377974a1f65c0acd4acc">removeGlobalMouseListener</a> (<a class="el" href="classMouseListener.html">MouseListener</a> *listener)</td></tr>
<tr class="memdesc:a6051a5203c21377974a1f65c0acd4acc"><td class="mdescLeft"> </td><td class="mdescRight">Unregisters a <a class="el" href="classMouseListener.html" title="A MouseListener can be registered with a component to receive callbacks about mouse events that happe...">MouseListener</a> that was added with the <a class="el" href="classDesktop.html#add528b1597a432f2e4cb9b10314fc210" title="Registers a MouseListener that will receive all mouse events that occur on any component. ">addGlobalMouseListener()</a> method. <a href="#a6051a5203c21377974a1f65c0acd4acc">More...</a><br /></td></tr>
<tr class="separator:a6051a5203c21377974a1f65c0acd4acc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0db6055049b8268af05e51e55f377586"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a0db6055049b8268af05e51e55f377586">addFocusChangeListener</a> (<a class="el" href="classFocusChangeListener.html">FocusChangeListener</a> *listener)</td></tr>
<tr class="memdesc:a0db6055049b8268af05e51e55f377586"><td class="mdescLeft"> </td><td class="mdescRight">Registers a <a class="el" href="classMouseListener.html" title="A MouseListener can be registered with a component to receive callbacks about mouse events that happe...">MouseListener</a> that will receive a callback whenever the focused component changes. <a href="#a0db6055049b8268af05e51e55f377586">More...</a><br /></td></tr>
<tr class="separator:a0db6055049b8268af05e51e55f377586"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af428140675315bed1cec0494ec70007a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#af428140675315bed1cec0494ec70007a">removeFocusChangeListener</a> (<a class="el" href="classFocusChangeListener.html">FocusChangeListener</a> *listener)</td></tr>
<tr class="memdesc:af428140675315bed1cec0494ec70007a"><td class="mdescLeft"> </td><td class="mdescRight">Unregisters a listener that was added with <a class="el" href="classDesktop.html#a0db6055049b8268af05e51e55f377586" title="Registers a MouseListener that will receive a callback whenever the focused component changes...">addFocusChangeListener()</a>. <a href="#af428140675315bed1cec0494ec70007a">More...</a><br /></td></tr>
<tr class="separator:af428140675315bed1cec0494ec70007a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8fa4033714b5a9cd0714c9b9633b3366"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a8fa4033714b5a9cd0714c9b9633b3366">setKioskModeComponent</a> (<a class="el" href="classComponent.html">Component</a> *componentToUse, bool allowMenusAndBars=true)</td></tr>
<tr class="memdesc:a8fa4033714b5a9cd0714c9b9633b3366"><td class="mdescLeft"> </td><td class="mdescRight">Takes a component and makes it full-screen, removing the taskbar, dock, etc. <a href="#a8fa4033714b5a9cd0714c9b9633b3366">More...</a><br /></td></tr>
<tr class="separator:a8fa4033714b5a9cd0714c9b9633b3366"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3f09558177477a50a1fa092871f4aab1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classComponent.html">Component</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a3f09558177477a50a1fa092871f4aab1">getKioskModeComponent</a> () const noexcept</td></tr>
<tr class="memdesc:a3f09558177477a50a1fa092871f4aab1"><td class="mdescLeft"> </td><td class="mdescRight">Returns the component that is currently being used in kiosk-mode. <a href="#a3f09558177477a50a1fa092871f4aab1">More...</a><br /></td></tr>
<tr class="separator:a3f09558177477a50a1fa092871f4aab1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a74081737d1c862fdcce6bb2eb24901f3"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a74081737d1c862fdcce6bb2eb24901f3">getNumComponents</a> () const noexcept</td></tr>
<tr class="memdesc:a74081737d1c862fdcce6bb2eb24901f3"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of components that are currently active as top-level desktop windows. <a href="#a74081737d1c862fdcce6bb2eb24901f3">More...</a><br /></td></tr>
<tr class="separator:a74081737d1c862fdcce6bb2eb24901f3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1ad83bce07a7197742d334e204c4c194"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classComponent.html">Component</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a1ad83bce07a7197742d334e204c4c194">getComponent</a> (int index) const noexcept</td></tr>
<tr class="memdesc:a1ad83bce07a7197742d334e204c4c194"><td class="mdescLeft"> </td><td class="mdescRight">Returns one of the top-level desktop window components. <a href="#a1ad83bce07a7197742d334e204c4c194">More...</a><br /></td></tr>
<tr class="separator:a1ad83bce07a7197742d334e204c4c194"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab8695d705a461020361e51abb428132c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classComponent.html">Component</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#ab8695d705a461020361e51abb428132c">findComponentAt</a> (<a class="el" href="classPoint.html">Point</a>< int > screenPosition) const</td></tr>
<tr class="memdesc:ab8695d705a461020361e51abb428132c"><td class="mdescLeft"> </td><td class="mdescRight">Finds the component at a given screen location. <a href="#ab8695d705a461020361e51abb428132c">More...</a><br /></td></tr>
<tr class="separator:ab8695d705a461020361e51abb428132c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a80aea7a339408d22a84d447d3cd95755"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classComponentAnimator.html">ComponentAnimator</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a80aea7a339408d22a84d447d3cd95755">getAnimator</a> () noexcept</td></tr>
<tr class="memdesc:a80aea7a339408d22a84d447d3cd95755"><td class="mdescLeft"> </td><td class="mdescRight">The <a class="el" href="classDesktop.html" title="Describes and controls aspects of the computer's desktop. ">Desktop</a> object has a <a class="el" href="classComponentAnimator.html" title="Animates a set of components, moving them to a new position and/or fading their alpha levels...">ComponentAnimator</a> instance which can be used for performing your animations. <a href="#a80aea7a339408d22a84d447d3cd95755">More...</a><br /></td></tr>
<tr class="separator:a80aea7a339408d22a84d447d3cd95755"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad88ac93bb8d5b101d6cb63c268d66e1b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classLookAndFeel.html">LookAndFeel</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#ad88ac93bb8d5b101d6cb63c268d66e1b">getDefaultLookAndFeel</a> () noexcept</td></tr>
<tr class="memdesc:ad88ac93bb8d5b101d6cb63c268d66e1b"><td class="mdescLeft"> </td><td class="mdescRight">Returns the current default look-and-feel for components which don't have one explicitly set. <a href="#ad88ac93bb8d5b101d6cb63c268d66e1b">More...</a><br /></td></tr>
<tr class="separator:ad88ac93bb8d5b101d6cb63c268d66e1b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a726a6fd8120c6b64a85ca382a9208c67"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a726a6fd8120c6b64a85ca382a9208c67">setDefaultLookAndFeel</a> (<a class="el" href="classLookAndFeel.html">LookAndFeel</a> *newDefaultLookAndFeel)</td></tr>
<tr class="memdesc:a726a6fd8120c6b64a85ca382a9208c67"><td class="mdescLeft"> </td><td class="mdescRight">Changes the default look-and-feel. <a href="#a726a6fd8120c6b64a85ca382a9208c67">More...</a><br /></td></tr>
<tr class="separator:a726a6fd8120c6b64a85ca382a9208c67"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae7fe79c5fa5ffc7d06354fdbea1e5bde"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classArray.html">Array</a>< <a class="el" href="classMouseInputSource.html">MouseInputSource</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#ae7fe79c5fa5ffc7d06354fdbea1e5bde">getMouseSources</a> () const noexcept</td></tr>
<tr class="memdesc:ae7fe79c5fa5ffc7d06354fdbea1e5bde"><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the array of mouse sources, for iteration. <a href="#ae7fe79c5fa5ffc7d06354fdbea1e5bde">More...</a><br /></td></tr>
<tr class="separator:ae7fe79c5fa5ffc7d06354fdbea1e5bde"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7dc6e7f8c3c94ffa20584305d51133d2"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a7dc6e7f8c3c94ffa20584305d51133d2">getNumMouseSources</a> () const noexcept</td></tr>
<tr class="memdesc:a7dc6e7f8c3c94ffa20584305d51133d2"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of <a class="el" href="classMouseInputSource.html" title="Represents a linear source of mouse events from a mouse device or individual finger in a multi-touch ...">MouseInputSource</a> objects the system has at its disposal. <a href="#a7dc6e7f8c3c94ffa20584305d51133d2">More...</a><br /></td></tr>
<tr class="separator:a7dc6e7f8c3c94ffa20584305d51133d2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acab109fe14b5337c5a3129c746ba17e5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMouseInputSource.html">MouseInputSource</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#acab109fe14b5337c5a3129c746ba17e5">getMouseSource</a> (int index) const noexcept</td></tr>
<tr class="memdesc:acab109fe14b5337c5a3129c746ba17e5"><td class="mdescLeft"> </td><td class="mdescRight">Returns one of the system's <a class="el" href="classMouseInputSource.html" title="Represents a linear source of mouse events from a mouse device or individual finger in a multi-touch ...">MouseInputSource</a> objects. <a href="#acab109fe14b5337c5a3129c746ba17e5">More...</a><br /></td></tr>
<tr class="separator:acab109fe14b5337c5a3129c746ba17e5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a56b73809a55ec618201661f163ff00dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMouseInputSource.html">MouseInputSource</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a56b73809a55ec618201661f163ff00dc">getMainMouseSource</a> () const noexcept</td></tr>
<tr class="memdesc:a56b73809a55ec618201661f163ff00dc"><td class="mdescLeft"> </td><td class="mdescRight">Returns the main mouse input device that the system is using. <a href="#a56b73809a55ec618201661f163ff00dc">More...</a><br /></td></tr>
<tr class="separator:a56b73809a55ec618201661f163ff00dc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab58864358ece4bdfea451efc7a308379"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#ab58864358ece4bdfea451efc7a308379">getNumDraggingMouseSources</a> () const noexcept</td></tr>
<tr class="memdesc:ab58864358ece4bdfea451efc7a308379"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of mouse-sources that are currently being dragged. <a href="#ab58864358ece4bdfea451efc7a308379">More...</a><br /></td></tr>
<tr class="separator:ab58864358ece4bdfea451efc7a308379"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac2c86b073c213abc4380a8abbbf33379"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMouseInputSource.html">MouseInputSource</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#ac2c86b073c213abc4380a8abbbf33379">getDraggingMouseSource</a> (int index) const noexcept</td></tr>
<tr class="memdesc:ac2c86b073c213abc4380a8abbbf33379"><td class="mdescLeft"> </td><td class="mdescRight">Returns one of the mouse sources that's currently being dragged. <a href="#ac2c86b073c213abc4380a8abbbf33379">More...</a><br /></td></tr>
<tr class="separator:ac2c86b073c213abc4380a8abbbf33379"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a484c8460c95255150aef4dbe1909ae9f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a484c8460c95255150aef4dbe1909ae9f">beginDragAutoRepeat</a> (int millisecondsBetweenCallbacks)</td></tr>
<tr class="memdesc:a484c8460c95255150aef4dbe1909ae9f"><td class="mdescLeft"> </td><td class="mdescRight">Ensures that a non-stop stream of mouse-drag events will be sent during the current mouse-drag operation. <a href="#a484c8460c95255150aef4dbe1909ae9f">More...</a><br /></td></tr>
<tr class="separator:a484c8460c95255150aef4dbe1909ae9f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a02ae21e312faf1715e8311f1f53e5e00"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classDesktop.html#a5e06947d2d1295bdb6f5c4fab7beb98a">DisplayOrientation</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a02ae21e312faf1715e8311f1f53e5e00">getCurrentOrientation</a> () const</td></tr>
<tr class="memdesc:a02ae21e312faf1715e8311f1f53e5e00"><td class="mdescLeft"> </td><td class="mdescRight">In a tablet device which can be turned around, this returns the current orientation. <a href="#a02ae21e312faf1715e8311f1f53e5e00">More...</a><br /></td></tr>
<tr class="separator:a02ae21e312faf1715e8311f1f53e5e00"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4c4e91683ca8ffef6724650b90b17293"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a4c4e91683ca8ffef6724650b90b17293">setOrientationsEnabled</a> (int allowedOrientations)</td></tr>
<tr class="memdesc:a4c4e91683ca8ffef6724650b90b17293"><td class="mdescLeft"> </td><td class="mdescRight">Sets which orientations the display is allowed to auto-rotate to. <a href="#a4c4e91683ca8ffef6724650b90b17293">More...</a><br /></td></tr>
<tr class="separator:a4c4e91683ca8ffef6724650b90b17293"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a501649988905cfa81e1a5798b2bc5572"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a501649988905cfa81e1a5798b2bc5572">isOrientationEnabled</a> (<a class="el" href="classDesktop.html#a5e06947d2d1295bdb6f5c4fab7beb98a">DisplayOrientation</a> orientation) const noexcept</td></tr>
<tr class="memdesc:a501649988905cfa81e1a5798b2bc5572"><td class="mdescLeft"> </td><td class="mdescRight">Returns whether the display is allowed to auto-rotate to the given orientation. <a href="#a501649988905cfa81e1a5798b2bc5572">More...</a><br /></td></tr>
<tr class="separator:a501649988905cfa81e1a5798b2bc5572"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaf44cad873d28c06e2d22c9ee05387c3"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classDesktop_1_1Displays.html">Displays</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#aaf44cad873d28c06e2d22c9ee05387c3">getDisplays</a> () const noexcept</td></tr>
<tr class="separator:aaf44cad873d28c06e2d22c9ee05387c3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1a10b63e1495aac17b5848335c6ea4cf"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a1a10b63e1495aac17b5848335c6ea4cf">setGlobalScaleFactor</a> (float newScaleFactor) noexcept</td></tr>
<tr class="memdesc:a1a10b63e1495aac17b5848335c6ea4cf"><td class="mdescLeft"> </td><td class="mdescRight">Sets a global scale factor to be used for all desktop windows. <a href="#a1a10b63e1495aac17b5848335c6ea4cf">More...</a><br /></td></tr>
<tr class="separator:a1a10b63e1495aac17b5848335c6ea4cf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9d3762d46b652cd0249e6845229f3b4c"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a9d3762d46b652cd0249e6845229f3b4c">getGlobalScaleFactor</a> () const noexcept</td></tr>
<tr class="memdesc:a9d3762d46b652cd0249e6845229f3b4c"><td class="mdescLeft"> </td><td class="mdescRight">Returns the current global scale factor, as set by <a class="el" href="classDesktop.html#a1a10b63e1495aac17b5848335c6ea4cf" title="Sets a global scale factor to be used for all desktop windows. ">setGlobalScaleFactor()</a>. <a href="#a9d3762d46b652cd0249e6845229f3b4c">More...</a><br /></td></tr>
<tr class="separator:a9d3762d46b652cd0249e6845229f3b4c"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a15ebe474aab368cff35578b8f7bec6c1"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classDesktop.html">Desktop</a> &<a class="el" href="juce__PlatformDefs_8h.html#af0b3f78ca801d88a7912f4c6bbf50e58">JUCE_CALLTYPE</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a15ebe474aab368cff35578b8f7bec6c1">getInstance</a> ()</td></tr>
<tr class="memdesc:a15ebe474aab368cff35578b8f7bec6c1"><td class="mdescLeft"> </td><td class="mdescRight">There's only one desktop object, and this method will return it. <a href="#a15ebe474aab368cff35578b8f7bec6c1">More...</a><br /></td></tr>
<tr class="separator:a15ebe474aab368cff35578b8f7bec6c1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3a0aecaa5e9ec284dbe1f7108f51eb0b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classPoint.html">Point</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a3a0aecaa5e9ec284dbe1f7108f51eb0b">getMousePosition</a> ()</td></tr>
<tr class="memdesc:a3a0aecaa5e9ec284dbe1f7108f51eb0b"><td class="mdescLeft"> </td><td class="mdescRight">Returns the mouse position. <a href="#a3a0aecaa5e9ec284dbe1f7108f51eb0b">More...</a><br /></td></tr>
<tr class="separator:a3a0aecaa5e9ec284dbe1f7108f51eb0b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab8561129265571ab55b2b5a50faecf19"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#ab8561129265571ab55b2b5a50faecf19">setMousePosition</a> (<a class="el" href="classPoint.html">Point</a>< int > newPosition)</td></tr>
<tr class="memdesc:ab8561129265571ab55b2b5a50faecf19"><td class="mdescLeft"> </td><td class="mdescRight">Makes the mouse pointer jump to a given location. <a href="#ab8561129265571ab55b2b5a50faecf19">More...</a><br /></td></tr>
<tr class="separator:ab8561129265571ab55b2b5a50faecf19"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a876e731f99d9a6646c7fc5722e421baf"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classPoint.html">Point</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a876e731f99d9a6646c7fc5722e421baf">getLastMouseDownPosition</a> ()</td></tr>
<tr class="memdesc:a876e731f99d9a6646c7fc5722e421baf"><td class="mdescLeft"> </td><td class="mdescRight">Returns the last position at which a mouse button was pressed. <a href="#a876e731f99d9a6646c7fc5722e421baf">More...</a><br /></td></tr>
<tr class="separator:a876e731f99d9a6646c7fc5722e421baf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a12b63736985b72fc78bebe7bf9903597"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a12b63736985b72fc78bebe7bf9903597">setScreenSaverEnabled</a> (bool isEnabled)</td></tr>
<tr class="memdesc:a12b63736985b72fc78bebe7bf9903597"><td class="mdescLeft"> </td><td class="mdescRight">This lets you prevent the screensaver from becoming active. <a href="#a12b63736985b72fc78bebe7bf9903597">More...</a><br /></td></tr>
<tr class="separator:a12b63736985b72fc78bebe7bf9903597"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac49ada613f5989b8fe36c22cf19bf517"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#ac49ada613f5989b8fe36c22cf19bf517">isScreenSaverEnabled</a> ()</td></tr>
<tr class="memdesc:ac49ada613f5989b8fe36c22cf19bf517"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the screensaver has not been turned off. <a href="#ac49ada613f5989b8fe36c22cf19bf517">More...</a><br /></td></tr>
<tr class="separator:ac49ada613f5989b8fe36c22cf19bf517"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af15bdf2abd33c022d88f9335a5b5d098"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#af15bdf2abd33c022d88f9335a5b5d098">canUseSemiTransparentWindows</a> () noexcept</td></tr>
<tr class="memdesc:af15bdf2abd33c022d88f9335a5b5d098"><td class="mdescLeft"> </td><td class="mdescRight">True if the OS supports semitransparent windows. <a href="#af15bdf2abd33c022d88f9335a5b5d098">More...</a><br /></td></tr>
<tr class="separator:af15bdf2abd33c022d88f9335a5b5d098"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a97962db3a6f6fd50252428bb58a63eb6"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classDesktop.html#a97962db3a6f6fd50252428bb58a63eb6">isOSXDarkModeActive</a> ()</td></tr>
<tr class="memdesc:a97962db3a6f6fd50252428bb58a63eb6"><td class="mdescLeft"> </td><td class="mdescRight">OSX-specific function to check for the "dark" title-bar and menu mode. <a href="#a97962db3a6f6fd50252428bb58a63eb6">More...</a><br /></td></tr>
<tr class="separator:a97962db3a6f6fd50252428bb58a63eb6"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Describes and controls aspects of the computer's desktop. </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a5e06947d2d1295bdb6f5c4fab7beb98a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e06947d2d1295bdb6f5c4fab7beb98a">§ </a></span>DisplayOrientation</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classDesktop.html#a5e06947d2d1295bdb6f5c4fab7beb98a">Desktop::DisplayOrientation</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>In a tablet device which can be turned around, this is used to inidicate the orientation. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a5e06947d2d1295bdb6f5c4fab7beb98aaced7253546b0f2e73e4dd08bcb60c9f8"></a>upright </td><td class="fielddoc"><p>Indicates that the display is the normal way up. </p>
</td></tr>
<tr><td class="fieldname"><a id="a5e06947d2d1295bdb6f5c4fab7beb98aa5820a6ffe2f7f012a16a1bd57e304b91"></a>upsideDown </td><td class="fielddoc"><p>Indicates that the display is upside-down. </p>
</td></tr>
<tr><td class="fieldname"><a id="a5e06947d2d1295bdb6f5c4fab7beb98aae1e0629de1668ef16f700b7278fd0f04"></a>rotatedClockwise </td><td class="fielddoc"><p>Indicates that the display is turned 90 degrees clockwise from its upright position. </p>
</td></tr>
<tr><td class="fieldname"><a id="a5e06947d2d1295bdb6f5c4fab7beb98aab48176789b5764aae6aae6a393916712"></a>rotatedAntiClockwise </td><td class="fielddoc"><p>Indicates that the display is turned 90 degrees anti-clockwise from its upright position. </p>
</td></tr>
<tr><td class="fieldname"><a id="a5e06947d2d1295bdb6f5c4fab7beb98aacb260a5600c352a166edd836a2305a06"></a>allOrientations </td><td class="fielddoc"><p>A combination of all the orientation values. </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a15ebe474aab368cff35578b8f7bec6c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15ebe474aab368cff35578b8f7bec6c1">§ </a></span>getInstance()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classDesktop.html">Desktop</a>& <a class="el" href="juce__PlatformDefs_8h.html#af0b3f78ca801d88a7912f4c6bbf50e58">JUCE_CALLTYPE</a> Desktop::getInstance </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>There's only one desktop object, and this method will return it. </p>
<p>Referenced by <a class="el" href="classFakeMouseMoveGenerator.html#a9b66aec9e060556136c605f018f01786">FakeMouseMoveGenerator::timerCallback()</a>.</p>
</div>
</div>
<a id="a3a0aecaa5e9ec284dbe1f7108f51eb0b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a0aecaa5e9ec284dbe1f7108f51eb0b">§ </a></span>getMousePosition()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classPoint.html">Point</a><int> Desktop::getMousePosition </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the mouse position. </p>
<p>The coordinates are relative to the top-left of the main monitor.</p>
<p>Note that this is just a shortcut for calling <a class="el" href="classDesktop.html#a56b73809a55ec618201661f163ff00dc" title="Returns the main mouse input device that the system is using. ">getMainMouseSource()</a>.getScreenPosition(), and you should only resort to grabbing the global mouse position if there's really no way to get the coordinates via a mouse event callback instead. </p>
</div>
</div>
<a id="ab8561129265571ab55b2b5a50faecf19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8561129265571ab55b2b5a50faecf19">§ </a></span>setMousePosition()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void Desktop::setMousePosition </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPoint.html">Point</a>< int > </td>
<td class="paramname"><em>newPosition</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Makes the mouse pointer jump to a given location. </p>
<p>The coordinates are relative to the top-left of the main monitor. </p>
</div>
</div>
<a id="a876e731f99d9a6646c7fc5722e421baf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a876e731f99d9a6646c7fc5722e421baf">§ </a></span>getLastMouseDownPosition()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classPoint.html">Point</a><int> Desktop::getLastMouseDownPosition </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the last position at which a mouse button was pressed. </p>
<p>Note that this is just a shortcut for calling <a class="el" href="classDesktop.html#a56b73809a55ec618201661f163ff00dc" title="Returns the main mouse input device that the system is using. ">getMainMouseSource()</a>.<a class="el" href="classDesktop.html#a876e731f99d9a6646c7fc5722e421baf" title="Returns the last position at which a mouse button was pressed. ">getLastMouseDownPosition()</a>, and in a multi-touch environment, it doesn't make much sense. ALWAYS prefer to get this information via other means, such as <a class="el" href="classMouseEvent.html#abe80c6b55dd49df15cf51fbfcc9aa44a" title="Returns the coordinates at which the mouse button was last pressed. ">MouseEvent::getMouseDownScreenPosition()</a> if possible, and only ever call this as a last resort. </p>
</div>
</div>
<a id="aedc0ee3a5d19297c0163bc5a160b2ee4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedc0ee3a5d19297c0163bc5a160b2ee4">§ </a></span>getMouseButtonClickCounter()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int Desktop::getMouseButtonClickCounter </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the number of times the mouse button has been clicked since the app started. </p>
<p>Each mouse-down event increments this number by 1. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classDesktop.html#aca2d34fe675f71a0ba3a7335fd169e0e" title="Returns the number of times the mouse wheel has been moved since the app started. ...">getMouseWheelMoveCounter</a> </dd></dl>
</div>
</div>
<a id="aca2d34fe675f71a0ba3a7335fd169e0e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca2d34fe675f71a0ba3a7335fd169e0e">§ </a></span>getMouseWheelMoveCounter()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int Desktop::getMouseWheelMoveCounter </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the number of times the mouse wheel has been moved since the app started. </p>
<p>Each mouse-wheel event increments this number by 1. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classDesktop.html#aedc0ee3a5d19297c0163bc5a160b2ee4" title="Returns the number of times the mouse button has been clicked since the app started. ">getMouseButtonClickCounter</a> </dd></dl>
</div>
</div>
<a id="a12b63736985b72fc78bebe7bf9903597"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12b63736985b72fc78bebe7bf9903597">§ </a></span>setScreenSaverEnabled()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void Desktop::setScreenSaverEnabled </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"><em>isEnabled</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This lets you prevent the screensaver from becoming active. </p>
<p>Handy if you're running some sort of presentation app where having a screensaver appear would be annoying.</p>
<p>Pass false to disable the screensaver, and true to re-enable it. (Note that this won't enable a screensaver unless the user has actually set one up).</p>
<p>The disablement will only happen while the Juce application is the foreground process - if another task is running in front of it, then the screensaver will be unaffected.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classDesktop.html#ac49ada613f5989b8fe36c22cf19bf517" title="Returns true if the screensaver has not been turned off. ">isScreenSaverEnabled</a> </dd></dl>
</div>
</div>
<a id="ac49ada613f5989b8fe36c22cf19bf517"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac49ada613f5989b8fe36c22cf19bf517">§ </a></span>isScreenSaverEnabled()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static bool Desktop::isScreenSaverEnabled </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns true if the screensaver has not been turned off. </p>
<p>This will return the last value passed into <a class="el" href="classDesktop.html#a12b63736985b72fc78bebe7bf9903597" title="This lets you prevent the screensaver from becoming active. ">setScreenSaverEnabled()</a>. Note that it won't tell you whether the user is actually using a screen saver, just whether this app is deliberately preventing one from running.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classDesktop.html#a12b63736985b72fc78bebe7bf9903597" title="This lets you prevent the screensaver from becoming active. ">setScreenSaverEnabled</a> </dd></dl>
</div>
</div>
<a id="add528b1597a432f2e4cb9b10314fc210"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add528b1597a432f2e4cb9b10314fc210">§ </a></span>addGlobalMouseListener()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Desktop::addGlobalMouseListener </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classMouseListener.html">MouseListener</a> * </td>
<td class="paramname"><em>listener</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Registers a <a class="el" href="classMouseListener.html" title="A MouseListener can be registered with a component to receive callbacks about mouse events that happe...">MouseListener</a> that will receive all mouse events that occur on any component. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classDesktop.html#a6051a5203c21377974a1f65c0acd4acc" title="Unregisters a MouseListener that was added with the addGlobalMouseListener() method. ">removeGlobalMouseListener</a> </dd></dl>
</div>
</div>
<a id="a6051a5203c21377974a1f65c0acd4acc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6051a5203c21377974a1f65c0acd4acc">§ </a></span>removeGlobalMouseListener()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Desktop::removeGlobalMouseListener </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classMouseListener.html">MouseListener</a> * </td>
<td class="paramname"><em>listener</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Unregisters a <a class="el" href="classMouseListener.html" title="A MouseListener can be registered with a component to receive callbacks about mouse events that happe...">MouseListener</a> that was added with the <a class="el" href="classDesktop.html#add528b1597a432f2e4cb9b10314fc210" title="Registers a MouseListener that will receive all mouse events that occur on any component. ">addGlobalMouseListener()</a> method. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classDesktop.html#add528b1597a432f2e4cb9b10314fc210" title="Registers a MouseListener that will receive all mouse events that occur on any component. ">addGlobalMouseListener</a> </dd></dl>
</div>
</div>
<a id="a0db6055049b8268af05e51e55f377586"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0db6055049b8268af05e51e55f377586">§ </a></span>addFocusChangeListener()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Desktop::addFocusChangeListener </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classFocusChangeListener.html">FocusChangeListener</a> * </td>
<td class="paramname"><em>listener</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Registers a <a class="el" href="classMouseListener.html" title="A MouseListener can be registered with a component to receive callbacks about mouse events that happe...">MouseListener</a> that will receive a callback whenever the focused component changes. </p>
</div>
</div>
<a id="af428140675315bed1cec0494ec70007a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af428140675315bed1cec0494ec70007a">§ </a></span>removeFocusChangeListener()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Desktop::removeFocusChangeListener </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classFocusChangeListener.html">FocusChangeListener</a> * </td>
<td class="paramname"><em>listener</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Unregisters a listener that was added with <a class="el" href="classDesktop.html#a0db6055049b8268af05e51e55f377586" title="Registers a MouseListener that will receive a callback whenever the focused component changes...">addFocusChangeListener()</a>. </p>
</div>
</div>
<a id="a8fa4033714b5a9cd0714c9b9633b3366"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8fa4033714b5a9cd0714c9b9633b3366">§ </a></span>setKioskModeComponent()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Desktop::setKioskModeComponent </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classComponent.html">Component</a> * </td>
<td class="paramname"><em>componentToUse</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>allowMenusAndBars</em> = <code>true</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Takes a component and makes it full-screen, removing the taskbar, dock, etc. </p>
<p>The component must already be on the desktop for this method to work. It will be resized to completely fill the screen and any extraneous taskbars, menu bars, etc will be hidden.</p>
<p>To exit kiosk mode, just call setKioskModeComponent (nullptr). When this is called, the component that's currently being used will be resized back to the size and position it was in before being put into this mode.</p>
<p>If allowMenusAndBars is true, things like the menu and dock (on mac) are still allowed to pop up when the mouse moves onto them. If this is false, it'll try to hide as much on-screen paraphernalia as possible. </p>
</div>
</div>
<a id="a3f09558177477a50a1fa092871f4aab1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f09558177477a50a1fa092871f4aab1">§ </a></span>getKioskModeComponent()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classComponent.html">Component</a>* Desktop::getKioskModeComponent </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the component that is currently being used in kiosk-mode. </p>
<p>This is the component that was last set by <a class="el" href="classDesktop.html#a8fa4033714b5a9cd0714c9b9633b3366" title="Takes a component and makes it full-screen, removing the taskbar, dock, etc. ">setKioskModeComponent()</a>. If none has been set, this returns nullptr. </p>
</div>
</div>
<a id="a74081737d1c862fdcce6bb2eb24901f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74081737d1c862fdcce6bb2eb24901f3">§ </a></span>getNumComponents()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int Desktop::getNumComponents </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the number of components that are currently active as top-level desktop windows. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classDesktop.html#a1ad83bce07a7197742d334e204c4c194" title="Returns one of the top-level desktop window components. ">getComponent</a>, <a class="el" href="classComponent.html#ad717da76012d971197fd8cf943f3e721" title="Makes this component appear as a window on the desktop. ">Component::addToDesktop</a> </dd></dl>
</div>
</div>
<a id="a1ad83bce07a7197742d334e204c4c194"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ad83bce07a7197742d334e204c4c194">§ </a></span>getComponent()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classComponent.html">Component</a>* Desktop::getComponent </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns one of the top-level desktop window components. </p>
<p>The index is from 0 to <a class="el" href="classDesktop.html#a74081737d1c862fdcce6bb2eb24901f3" title="Returns the number of components that are currently active as top-level desktop windows. ">getNumComponents()</a> - 1. This could return 0 if the index is out-of-range.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classDesktop.html#a74081737d1c862fdcce6bb2eb24901f3" title="Returns the number of components that are currently active as top-level desktop windows. ">getNumComponents</a>, <a class="el" href="classComponent.html#ad717da76012d971197fd8cf943f3e721" title="Makes this component appear as a window on the desktop. ">Component::addToDesktop</a> </dd></dl>
</div>
</div>
<a id="ab8695d705a461020361e51abb428132c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8695d705a461020361e51abb428132c">§ </a></span>findComponentAt()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classComponent.html">Component</a>* Desktop::findComponentAt </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPoint.html">Point</a>< int > </td>
<td class="paramname"><em>screenPosition</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Finds the component at a given screen location. </p>
<p>This will drill down into top-level windows to find the child component at the given position.</p>
<p>Returns nullptr if the coordinates are inside a non-Juce window. </p>
<p>Referenced by <a class="el" href="classFakeMouseMoveGenerator.html#a9b66aec9e060556136c605f018f01786">FakeMouseMoveGenerator::timerCallback()</a>.</p>
</div>
</div>
<a id="a80aea7a339408d22a84d447d3cd95755"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80aea7a339408d22a84d447d3cd95755">§ </a></span>getAnimator()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classComponentAnimator.html">ComponentAnimator</a>& Desktop::getAnimator </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The <a class="el" href="classDesktop.html" title="Describes and controls aspects of the computer's desktop. ">Desktop</a> object has a <a class="el" href="classComponentAnimator.html" title="Animates a set of components, moving them to a new position and/or fading their alpha levels...">ComponentAnimator</a> instance which can be used for performing your animations. </p>
<p>Having a single shared <a class="el" href="classComponentAnimator.html" title="Animates a set of components, moving them to a new position and/or fading their alpha levels...">ComponentAnimator</a> object makes it more efficient when multiple components are being moved around simultaneously. It's also more convenient than having to manage your own instance of one.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classComponentAnimator.html" title="Animates a set of components, moving them to a new position and/or fading their alpha levels...">ComponentAnimator</a> </dd></dl>
</div>
</div>
<a id="ad88ac93bb8d5b101d6cb63c268d66e1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad88ac93bb8d5b101d6cb63c268d66e1b">§ </a></span>getDefaultLookAndFeel()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classLookAndFeel.html">LookAndFeel</a>& Desktop::getDefaultLookAndFeel </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the current default look-and-feel for components which don't have one explicitly set. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classDesktop.html#a726a6fd8120c6b64a85ca382a9208c67" title="Changes the default look-and-feel. ">setDefaultLookAndFeel</a> </dd></dl>
</div>
</div>
<a id="a726a6fd8120c6b64a85ca382a9208c67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a726a6fd8120c6b64a85ca382a9208c67">§ </a></span>setDefaultLookAndFeel()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Desktop::setDefaultLookAndFeel </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classLookAndFeel.html">LookAndFeel</a> * </td>
<td class="paramname"><em>newDefaultLookAndFeel</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Changes the default look-and-feel. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">newDefaultLookAndFeel</td><td>the new look-and-feel object to use - if this is set to nullptr, it will revert to using the system's default one. The object passed-in must be deleted by the caller when it's no longer needed. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classDesktop.html#ad88ac93bb8d5b101d6cb63c268d66e1b" title="Returns the current default look-and-feel for components which don't have one explicitly set...">getDefaultLookAndFeel</a> </dd></dl>
</div>
</div>
<a id="ae7fe79c5fa5ffc7d06354fdbea1e5bde"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7fe79c5fa5ffc7d06354fdbea1e5bde">§ </a></span>getMouseSources()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classArray.html">Array</a><<a class="el" href="classMouseInputSource.html">MouseInputSource</a>>& Desktop::getMouseSources </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Provides access to the array of mouse sources, for iteration. </p>
<p>In a traditional single-mouse system, there might be only one <a class="el" href="classMouseInputSource.html" title="Represents a linear source of mouse events from a mouse device or individual finger in a multi-touch ...">MouseInputSource</a>. On a multi-touch system, there could be one input source per potential finger. The number of mouse sources returned here may increase dynamically as the program runs. To find out how many mouse events are currently happening, use <a class="el" href="classDesktop.html#ab58864358ece4bdfea451efc7a308379" title="Returns the number of mouse-sources that are currently being dragged. ">getNumDraggingMouseSources()</a>. </p>
</div>
</div>
<a id="a7dc6e7f8c3c94ffa20584305d51133d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7dc6e7f8c3c94ffa20584305d51133d2">§ </a></span>getNumMouseSources()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int Desktop::getNumMouseSources </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the number of <a class="el" href="classMouseInputSource.html" title="Represents a linear source of mouse events from a mouse device or individual finger in a multi-touch ...">MouseInputSource</a> objects the system has at its disposal. </p>
<p>In a traditional single-mouse system, there might be only one <a class="el" href="classMouseInputSource.html" title="Represents a linear source of mouse events from a mouse device or individual finger in a multi-touch ...">MouseInputSource</a>. On a multi-touch system, there could be one input source per potential finger. The number of mouse sources returned here may increase dynamically as the program runs. To find out how many mouse events are currently happening, use <a class="el" href="classDesktop.html#ab58864358ece4bdfea451efc7a308379" title="Returns the number of mouse-sources that are currently being dragged. ">getNumDraggingMouseSources()</a>. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classDesktop.html#acab109fe14b5337c5a3129c746ba17e5" title="Returns one of the system's MouseInputSource objects. ">getMouseSource</a> </dd></dl>
</div>
</div>
<a id="acab109fe14b5337c5a3129c746ba17e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acab109fe14b5337c5a3129c746ba17e5">§ </a></span>getMouseSource()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classMouseInputSource.html">MouseInputSource</a>* Desktop::getMouseSource </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns one of the system's <a class="el" href="classMouseInputSource.html" title="Represents a linear source of mouse events from a mouse device or individual finger in a multi-touch ...">MouseInputSource</a> objects. </p>
<p>The index should be from 0 to <a class="el" href="classDesktop.html#a7dc6e7f8c3c94ffa20584305d51133d2" title="Returns the number of MouseInputSource objects the system has at its disposal. ">getNumMouseSources()</a> - 1. Out-of-range indexes will return a null pointer. In a traditional single-mouse system, there might be only one object. On a multi-touch system, there could be one input source per potential finger. </p>
</div>
</div>
<a id="a56b73809a55ec618201661f163ff00dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a56b73809a55ec618201661f163ff00dc">§ </a></span>getMainMouseSource()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classMouseInputSource.html">MouseInputSource</a> Desktop::getMainMouseSource </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the main mouse input device that the system is using. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classDesktop.html#a7dc6e7f8c3c94ffa20584305d51133d2" title="Returns the number of MouseInputSource objects the system has at its disposal. ">getNumMouseSources()</a> </dd></dl>
</div>
</div>
<a id="ab58864358ece4bdfea451efc7a308379"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab58864358ece4bdfea451efc7a308379">§ </a></span>getNumDraggingMouseSources()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int Desktop::getNumDraggingMouseSources </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the number of mouse-sources that are currently being dragged. </p>
<p>In a traditional single-mouse system, this will be 0 or 1, depending on whether a juce component has the button down on it. In a multi-touch system, this could be any number from 0 to the number of simultaneous touches that can be detected. </p>
</div>
</div>
<a id="ac2c86b073c213abc4380a8abbbf33379"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2c86b073c213abc4380a8abbbf33379">§ </a></span>getDraggingMouseSource()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classMouseInputSource.html">MouseInputSource</a>* Desktop::getDraggingMouseSource </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns one of the mouse sources that's currently being dragged. </p>
<p>The index should be between 0 and <a class="el" href="classDesktop.html#ab58864358ece4bdfea451efc7a308379" title="Returns the number of mouse-sources that are currently being dragged. ">getNumDraggingMouseSources()</a> - 1. If the index is out of range, or if no mice or fingers are down, this will return a null pointer. </p>
</div>
</div>
<a id="a484c8460c95255150aef4dbe1909ae9f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a484c8460c95255150aef4dbe1909ae9f">§ </a></span>beginDragAutoRepeat()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Desktop::beginDragAutoRepeat </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>millisecondsBetweenCallbacks</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Ensures that a non-stop stream of mouse-drag events will be sent during the current mouse-drag operation. </p>
<p>This allows you to make sure that mouseDrag() events are sent continuously, even when the mouse isn't moving. This can be useful for things like auto-scrolling components when the mouse is near an edge.</p>
<p>Call this method during a mouseDown() or mouseDrag() callback, specifying the minimum interval between consecutive mouse drag callbacks. The callbacks will continue until the mouse is released, and then the interval will be reset, so you need to make sure it's called every time you begin a drag event. Passing an interval of 0 or less will cancel the auto-repeat.</p>
<dl class="section see"><dt>See also</dt><dd>mouseDrag </dd></dl>
</div>
</div>
<a id="a02ae21e312faf1715e8311f1f53e5e00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a02ae21e312faf1715e8311f1f53e5e00">§ </a></span>getCurrentOrientation()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classDesktop.html#a5e06947d2d1295bdb6f5c4fab7beb98a">DisplayOrientation</a> Desktop::getCurrentOrientation </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>In a tablet device which can be turned around, this returns the current orientation. </p>
</div>
</div>
<a id="a4c4e91683ca8ffef6724650b90b17293"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c4e91683ca8ffef6724650b90b17293">§ </a></span>setOrientationsEnabled()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Desktop::setOrientationsEnabled </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>allowedOrientations</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets which orientations the display is allowed to auto-rotate to. </p>
<p>For devices that support rotating desktops, this lets you specify which of the orientations your app can use.</p>
<p>The parameter is a bitwise or-ed combination of the values in DisplayOrientation, and must contain at least one set bit. </p>
</div>
</div>
<a id="a501649988905cfa81e1a5798b2bc5572"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a501649988905cfa81e1a5798b2bc5572">§ </a></span>isOrientationEnabled()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool Desktop::isOrientationEnabled </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classDesktop.html#a5e06947d2d1295bdb6f5c4fab7beb98a">DisplayOrientation</a> </td>
<td class="paramname"><em>orientation</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns whether the display is allowed to auto-rotate to the given orientation. </p>
<p>Each orientation can be enabled using setOrientationEnabled(). By default, all orientations are allowed. </p>
</div>
</div>
<a id="aaf44cad873d28c06e2d22c9ee05387c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf44cad873d28c06e2d22c9ee05387c3">§ </a></span>getDisplays()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classDesktop_1_1Displays.html">Displays</a>& Desktop::getDisplays </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a1a10b63e1495aac17b5848335c6ea4cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a10b63e1495aac17b5848335c6ea4cf">§ </a></span>setGlobalScaleFactor()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Desktop::setGlobalScaleFactor </td>
<td>(</td>
<td class="paramtype">float </td>
<td class="paramname"><em>newScaleFactor</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets a global scale factor to be used for all desktop windows. </p>
<p>Setting this will also scale the monitor sizes that are returned by <a class="el" href="classDesktop.html#aaf44cad873d28c06e2d22c9ee05387c3">getDisplays()</a>. </p>
</div>
</div>
<a id="a9d3762d46b652cd0249e6845229f3b4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d3762d46b652cd0249e6845229f3b4c">§ </a></span>getGlobalScaleFactor()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">float Desktop::getGlobalScaleFactor </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the current global scale factor, as set by <a class="el" href="classDesktop.html#a1a10b63e1495aac17b5848335c6ea4cf" title="Sets a global scale factor to be used for all desktop windows. ">setGlobalScaleFactor()</a>. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classDesktop.html#a1a10b63e1495aac17b5848335c6ea4cf" title="Sets a global scale factor to be used for all desktop windows. ">setGlobalScaleFactor</a> </dd></dl>
</div>
</div>
<a id="af15bdf2abd33c022d88f9335a5b5d098"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af15bdf2abd33c022d88f9335a5b5d098">§ </a></span>canUseSemiTransparentWindows()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static bool Desktop::canUseSemiTransparentWindows </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>True if the OS supports semitransparent windows. </p>
</div>
</div>
<a id="a97962db3a6f6fd50252428bb58a63eb6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97962db3a6f6fd50252428bb58a63eb6">§ </a></span>isOSXDarkModeActive()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static bool Desktop::isOSXDarkModeActive </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>OSX-specific function to check for the "dark" title-bar and menu mode. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__Desktop_8h.html">juce_Desktop.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content © ROLI Ltd.</small></address><br/>
</body>
</html>
|