/usr/share/doc/libjuce/apiref/classMouseEvent.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 | <!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: MouseEvent 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="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="#pub-attribs">Public Attributes</a> |
<a href="classMouseEvent-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">MouseEvent Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Contains position and status information about a mouse event.
<a href="classMouseEvent.html#details">More...</a></p>
<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:ab69c782d7a8bd5611a65da9bcf9a4cd8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#ab69c782d7a8bd5611a65da9bcf9a4cd8">MouseEvent</a> (<a class="el" href="classMouseInputSource.html">MouseInputSource</a> <a class="el" href="classMouseEvent.html#a4f70eb92a29dc0acfa9f782388e254bc">source</a>, <a class="el" href="classPoint.html">Point</a>< float > <a class="el" href="classMouseEvent.html#a93aec07d19ecbd1b31093689bab7b46e">position</a>, <a class="el" href="classModifierKeys.html">ModifierKeys</a> modifiers, float <a class="el" href="classMouseEvent.html#a88b142ee1a340d8ad5f092b083ddbcf7">pressure</a>, <a class="el" href="classComponent.html">Component</a> *<a class="el" href="classMouseEvent.html#a33c37dc970ab4c24e9e5b2c33e568d9e">eventComponent</a>, <a class="el" href="classComponent.html">Component</a> *originator, <a class="el" href="classTime.html">Time</a> <a class="el" href="classMouseEvent.html#ad2980025e848cebfad0d6ad43f61c648">eventTime</a>, <a class="el" href="classPoint.html">Point</a>< float > mouseDownPos, <a class="el" href="classTime.html">Time</a> <a class="el" href="classMouseEvent.html#a0636f798ed2f13b00d9927a275016c3e">mouseDownTime</a>, int numberOfClicks, bool mouseWasDragged) noexcept</td></tr>
<tr class="memdesc:ab69c782d7a8bd5611a65da9bcf9a4cd8"><td class="mdescLeft"> </td><td class="mdescRight">Creates a <a class="el" href="classMouseEvent.html" title="Contains position and status information about a mouse event. ">MouseEvent</a>. <a href="#ab69c782d7a8bd5611a65da9bcf9a4cd8">More...</a><br /></td></tr>
<tr class="separator:ab69c782d7a8bd5611a65da9bcf9a4cd8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2fb97aee455a770a0bbd916c1504d02c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a2fb97aee455a770a0bbd916c1504d02c">~MouseEvent</a> () noexcept</td></tr>
<tr class="memdesc:a2fb97aee455a770a0bbd916c1504d02c"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a2fb97aee455a770a0bbd916c1504d02c">More...</a><br /></td></tr>
<tr class="separator:a2fb97aee455a770a0bbd916c1504d02c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a77f87c7cebd5fbc719a9e2c89ef6b262"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a77f87c7cebd5fbc719a9e2c89ef6b262">getMouseDownX</a> () const noexcept</td></tr>
<tr class="memdesc:a77f87c7cebd5fbc719a9e2c89ef6b262"><td class="mdescLeft"> </td><td class="mdescRight">Returns the x coordinate of the last place that a mouse was pressed. <a href="#a77f87c7cebd5fbc719a9e2c89ef6b262">More...</a><br /></td></tr>
<tr class="separator:a77f87c7cebd5fbc719a9e2c89ef6b262"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5a05bcd49bb3a9c6506f18f6dba16137"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a5a05bcd49bb3a9c6506f18f6dba16137">getMouseDownY</a> () const noexcept</td></tr>
<tr class="memdesc:a5a05bcd49bb3a9c6506f18f6dba16137"><td class="mdescLeft"> </td><td class="mdescRight">Returns the y coordinate of the last place that a mouse was pressed. <a href="#a5a05bcd49bb3a9c6506f18f6dba16137">More...</a><br /></td></tr>
<tr class="separator:a5a05bcd49bb3a9c6506f18f6dba16137"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa253a71e1086586ade374a16c146c7c4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classPoint.html">Point</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#aa253a71e1086586ade374a16c146c7c4">getMouseDownPosition</a> () const noexcept</td></tr>
<tr class="memdesc:aa253a71e1086586ade374a16c146c7c4"><td class="mdescLeft"> </td><td class="mdescRight">Returns the coordinates of the last place that a mouse was pressed. <a href="#aa253a71e1086586ade374a16c146c7c4">More...</a><br /></td></tr>
<tr class="separator:aa253a71e1086586ade374a16c146c7c4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afff96c10c810ab1cf5bc21b4e1b232c4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#afff96c10c810ab1cf5bc21b4e1b232c4">getDistanceFromDragStart</a> () const noexcept</td></tr>
<tr class="memdesc:afff96c10c810ab1cf5bc21b4e1b232c4"><td class="mdescLeft"> </td><td class="mdescRight">Returns the straight-line distance between where the mouse is now and where it was the last time the button was pressed. <a href="#afff96c10c810ab1cf5bc21b4e1b232c4">More...</a><br /></td></tr>
<tr class="separator:afff96c10c810ab1cf5bc21b4e1b232c4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae6d2098fdcf0c124ebd68fdcdb926c33"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#ae6d2098fdcf0c124ebd68fdcdb926c33">getDistanceFromDragStartX</a> () const noexcept</td></tr>
<tr class="memdesc:ae6d2098fdcf0c124ebd68fdcdb926c33"><td class="mdescLeft"> </td><td class="mdescRight">Returns the difference between the mouse's current x postion and where it was when the button was last pressed. <a href="#ae6d2098fdcf0c124ebd68fdcdb926c33">More...</a><br /></td></tr>
<tr class="separator:ae6d2098fdcf0c124ebd68fdcdb926c33"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a07c2f2d292f919a6d8f3e31c69c5ebb3"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a07c2f2d292f919a6d8f3e31c69c5ebb3">getDistanceFromDragStartY</a> () const noexcept</td></tr>
<tr class="memdesc:a07c2f2d292f919a6d8f3e31c69c5ebb3"><td class="mdescLeft"> </td><td class="mdescRight">Returns the difference between the mouse's current y postion and where it was when the button was last pressed. <a href="#a07c2f2d292f919a6d8f3e31c69c5ebb3">More...</a><br /></td></tr>
<tr class="separator:a07c2f2d292f919a6d8f3e31c69c5ebb3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae7914aff9654e82aa14c2881f0f651fa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classPoint.html">Point</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#ae7914aff9654e82aa14c2881f0f651fa">getOffsetFromDragStart</a> () const noexcept</td></tr>
<tr class="memdesc:ae7914aff9654e82aa14c2881f0f651fa"><td class="mdescLeft"> </td><td class="mdescRight">Returns the difference between the mouse's current postion and where it was when the button was last pressed. <a href="#ae7914aff9654e82aa14c2881f0f651fa">More...</a><br /></td></tr>
<tr class="separator:ae7914aff9654e82aa14c2881f0f651fa"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a969a94328cd97f0ffdaf04e6f0d8301d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a969a94328cd97f0ffdaf04e6f0d8301d">mouseWasDraggedSinceMouseDown</a> () const noexcept</td></tr>
<tr class="memdesc:a969a94328cd97f0ffdaf04e6f0d8301d"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the user seems to be performing a drag gesture. <a href="#a969a94328cd97f0ffdaf04e6f0d8301d">More...</a><br /></td></tr>
<tr class="separator:a969a94328cd97f0ffdaf04e6f0d8301d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a134d8c300344a66d9a831f29270ec2e9"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a134d8c300344a66d9a831f29270ec2e9">mouseWasClicked</a> () const noexcept</td></tr>
<tr class="memdesc:a134d8c300344a66d9a831f29270ec2e9"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the mouse event is part of a click gesture rather than a drag. <a href="#a134d8c300344a66d9a831f29270ec2e9">More...</a><br /></td></tr>
<tr class="separator:a134d8c300344a66d9a831f29270ec2e9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a94f8d29018a8dcd1238f9e321944b118"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a94f8d29018a8dcd1238f9e321944b118">getNumberOfClicks</a> () const noexcept</td></tr>
<tr class="memdesc:a94f8d29018a8dcd1238f9e321944b118"><td class="mdescLeft"> </td><td class="mdescRight">For a click event, the number of times the mouse was clicked in succession. <a href="#a94f8d29018a8dcd1238f9e321944b118">More...</a><br /></td></tr>
<tr class="separator:a94f8d29018a8dcd1238f9e321944b118"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8f67d78e40437aa67368f08c2fd8a581"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a8f67d78e40437aa67368f08c2fd8a581">getLengthOfMousePress</a> () const noexcept</td></tr>
<tr class="memdesc:a8f67d78e40437aa67368f08c2fd8a581"><td class="mdescLeft"> </td><td class="mdescRight">Returns the time that the mouse button has been held down for. <a href="#a8f67d78e40437aa67368f08c2fd8a581">More...</a><br /></td></tr>
<tr class="separator:a8f67d78e40437aa67368f08c2fd8a581"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae036a5d7ae699cb1a26f0701329fe51f"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#ae036a5d7ae699cb1a26f0701329fe51f">isPressureValid</a> () const noexcept</td></tr>
<tr class="memdesc:ae036a5d7ae699cb1a26f0701329fe51f"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the pressure value for this event is meaningful. <a href="#ae036a5d7ae699cb1a26f0701329fe51f">More...</a><br /></td></tr>
<tr class="separator:ae036a5d7ae699cb1a26f0701329fe51f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af475e6f7ef2e702a72bff90f166c8161"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classPoint.html">Point</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#af475e6f7ef2e702a72bff90f166c8161">getPosition</a> () const noexcept</td></tr>
<tr class="memdesc:af475e6f7ef2e702a72bff90f166c8161"><td class="mdescLeft"> </td><td class="mdescRight">The position of the mouse when the event occurred. <a href="#af475e6f7ef2e702a72bff90f166c8161">More...</a><br /></td></tr>
<tr class="separator:af475e6f7ef2e702a72bff90f166c8161"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a579dfef18edbe4b4a8d6984a6d81831e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a579dfef18edbe4b4a8d6984a6d81831e">getScreenX</a> () const</td></tr>
<tr class="memdesc:a579dfef18edbe4b4a8d6984a6d81831e"><td class="mdescLeft"> </td><td class="mdescRight">Returns the mouse x position of this event, in global screen coordinates. <a href="#a579dfef18edbe4b4a8d6984a6d81831e">More...</a><br /></td></tr>
<tr class="separator:a579dfef18edbe4b4a8d6984a6d81831e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a998253af38eaeab29c779f4aa169bc44"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a998253af38eaeab29c779f4aa169bc44">getScreenY</a> () const</td></tr>
<tr class="memdesc:a998253af38eaeab29c779f4aa169bc44"><td class="mdescLeft"> </td><td class="mdescRight">Returns the mouse y position of this event, in global screen coordinates. <a href="#a998253af38eaeab29c779f4aa169bc44">More...</a><br /></td></tr>
<tr class="separator:a998253af38eaeab29c779f4aa169bc44"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aca1423bcecbb7e5723e4d7fce58a8884"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classPoint.html">Point</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#aca1423bcecbb7e5723e4d7fce58a8884">getScreenPosition</a> () const</td></tr>
<tr class="memdesc:aca1423bcecbb7e5723e4d7fce58a8884"><td class="mdescLeft"> </td><td class="mdescRight">Returns the mouse position of this event, in global screen coordinates. <a href="#aca1423bcecbb7e5723e4d7fce58a8884">More...</a><br /></td></tr>
<tr class="separator:aca1423bcecbb7e5723e4d7fce58a8884"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a04805da80f30bff717ee7dd2cafd2286"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a04805da80f30bff717ee7dd2cafd2286">getMouseDownScreenX</a> () const</td></tr>
<tr class="memdesc:a04805da80f30bff717ee7dd2cafd2286"><td class="mdescLeft"> </td><td class="mdescRight">Returns the x coordinate at which the mouse button was last pressed. <a href="#a04805da80f30bff717ee7dd2cafd2286">More...</a><br /></td></tr>
<tr class="separator:a04805da80f30bff717ee7dd2cafd2286"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac11db8b404af0a29d61e88b7b238e83b"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#ac11db8b404af0a29d61e88b7b238e83b">getMouseDownScreenY</a> () const</td></tr>
<tr class="memdesc:ac11db8b404af0a29d61e88b7b238e83b"><td class="mdescLeft"> </td><td class="mdescRight">Returns the y coordinate at which the mouse button was last pressed. <a href="#ac11db8b404af0a29d61e88b7b238e83b">More...</a><br /></td></tr>
<tr class="separator:ac11db8b404af0a29d61e88b7b238e83b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abe80c6b55dd49df15cf51fbfcc9aa44a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classPoint.html">Point</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#abe80c6b55dd49df15cf51fbfcc9aa44a">getMouseDownScreenPosition</a> () const</td></tr>
<tr class="memdesc:abe80c6b55dd49df15cf51fbfcc9aa44a"><td class="mdescLeft"> </td><td class="mdescRight">Returns the coordinates at which the mouse button was last pressed. <a href="#abe80c6b55dd49df15cf51fbfcc9aa44a">More...</a><br /></td></tr>
<tr class="separator:abe80c6b55dd49df15cf51fbfcc9aa44a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a83759659994ba50b9b857a44ba51cff8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMouseEvent.html">MouseEvent</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a83759659994ba50b9b857a44ba51cff8">getEventRelativeTo</a> (<a class="el" href="classComponent.html">Component</a> *newComponent) const noexcept</td></tr>
<tr class="memdesc:a83759659994ba50b9b857a44ba51cff8"><td class="mdescLeft"> </td><td class="mdescRight">Creates a version of this event that is relative to a different component. <a href="#a83759659994ba50b9b857a44ba51cff8">More...</a><br /></td></tr>
<tr class="separator:a83759659994ba50b9b857a44ba51cff8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2cf47a94c48f5374aa026faff5e5ef9c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMouseEvent.html">MouseEvent</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a2cf47a94c48f5374aa026faff5e5ef9c">withNewPosition</a> (<a class="el" href="classPoint.html">Point</a>< float > newPosition) const noexcept</td></tr>
<tr class="memdesc:a2cf47a94c48f5374aa026faff5e5ef9c"><td class="mdescLeft"> </td><td class="mdescRight">Creates a copy of this event with a different position. <a href="#a2cf47a94c48f5374aa026faff5e5ef9c">More...</a><br /></td></tr>
<tr class="separator:a2cf47a94c48f5374aa026faff5e5ef9c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4c554b08557c5962d28ca8cc22ea48a2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMouseEvent.html">MouseEvent</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a4c554b08557c5962d28ca8cc22ea48a2">withNewPosition</a> (<a class="el" href="classPoint.html">Point</a>< int > newPosition) const noexcept</td></tr>
<tr class="memdesc:a4c554b08557c5962d28ca8cc22ea48a2"><td class="mdescLeft"> </td><td class="mdescRight">Creates a copy of this event with a different position. <a href="#a4c554b08557c5962d28ca8cc22ea48a2">More...</a><br /></td></tr>
<tr class="separator:a4c554b08557c5962d28ca8cc22ea48a2"><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:a61131d747c89f4781a69619f5e07c535"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a61131d747c89f4781a69619f5e07c535">setDoubleClickTimeout</a> (int timeOutMilliseconds) noexcept</td></tr>
<tr class="memdesc:a61131d747c89f4781a69619f5e07c535"><td class="mdescLeft"> </td><td class="mdescRight">Changes the application-wide setting for the double-click time limit. <a href="#a61131d747c89f4781a69619f5e07c535">More...</a><br /></td></tr>
<tr class="separator:a61131d747c89f4781a69619f5e07c535"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6f5b93fb2511b810505a1e47a670ca26"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a6f5b93fb2511b810505a1e47a670ca26">getDoubleClickTimeout</a> () noexcept</td></tr>
<tr class="memdesc:a6f5b93fb2511b810505a1e47a670ca26"><td class="mdescLeft"> </td><td class="mdescRight">Returns the application-wide setting for the double-click time limit. <a href="#a6f5b93fb2511b810505a1e47a670ca26">More...</a><br /></td></tr>
<tr class="separator:a6f5b93fb2511b810505a1e47a670ca26"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a93aec07d19ecbd1b31093689bab7b46e"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classPoint.html">Point</a>< float > </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a93aec07d19ecbd1b31093689bab7b46e">position</a></td></tr>
<tr class="memdesc:a93aec07d19ecbd1b31093689bab7b46e"><td class="mdescLeft"> </td><td class="mdescRight">The position of the mouse when the event occurred. <a href="#a93aec07d19ecbd1b31093689bab7b46e">More...</a><br /></td></tr>
<tr class="separator:a93aec07d19ecbd1b31093689bab7b46e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af3127333fe067df8158c9bb3da36ec84"><td class="memItemLeft" align="right" valign="top">const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#af3127333fe067df8158c9bb3da36ec84">x</a></td></tr>
<tr class="memdesc:af3127333fe067df8158c9bb3da36ec84"><td class="mdescLeft"> </td><td class="mdescRight">The x-position of the mouse when the event occurred. <a href="#af3127333fe067df8158c9bb3da36ec84">More...</a><br /></td></tr>
<tr class="separator:af3127333fe067df8158c9bb3da36ec84"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad5c3872ed713f0d237898aa7307ece23"><td class="memItemLeft" align="right" valign="top">const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#ad5c3872ed713f0d237898aa7307ece23">y</a></td></tr>
<tr class="memdesc:ad5c3872ed713f0d237898aa7307ece23"><td class="mdescLeft"> </td><td class="mdescRight">The y-position of the mouse when the event occurred. <a href="#ad5c3872ed713f0d237898aa7307ece23">More...</a><br /></td></tr>
<tr class="separator:ad5c3872ed713f0d237898aa7307ece23"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaabc365b704e243b193b41113d4e50de"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classModifierKeys.html">ModifierKeys</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#aaabc365b704e243b193b41113d4e50de">mods</a></td></tr>
<tr class="memdesc:aaabc365b704e243b193b41113d4e50de"><td class="mdescLeft"> </td><td class="mdescRight">The key modifiers associated with the event. <a href="#aaabc365b704e243b193b41113d4e50de">More...</a><br /></td></tr>
<tr class="separator:aaabc365b704e243b193b41113d4e50de"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a88b142ee1a340d8ad5f092b083ddbcf7"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a88b142ee1a340d8ad5f092b083ddbcf7">pressure</a></td></tr>
<tr class="memdesc:a88b142ee1a340d8ad5f092b083ddbcf7"><td class="mdescLeft"> </td><td class="mdescRight">The pressure of the touch or stylus for this event. <a href="#a88b142ee1a340d8ad5f092b083ddbcf7">More...</a><br /></td></tr>
<tr class="separator:a88b142ee1a340d8ad5f092b083ddbcf7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a33c37dc970ab4c24e9e5b2c33e568d9e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classComponent.html">Component</a> *const </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a33c37dc970ab4c24e9e5b2c33e568d9e">eventComponent</a></td></tr>
<tr class="memdesc:a33c37dc970ab4c24e9e5b2c33e568d9e"><td class="mdescLeft"> </td><td class="mdescRight">The component that this event applies to. <a href="#a33c37dc970ab4c24e9e5b2c33e568d9e">More...</a><br /></td></tr>
<tr class="separator:a33c37dc970ab4c24e9e5b2c33e568d9e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abe6b50fe43981f161200d99e6d235953"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classComponent.html">Component</a> *const </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#abe6b50fe43981f161200d99e6d235953">originalComponent</a></td></tr>
<tr class="memdesc:abe6b50fe43981f161200d99e6d235953"><td class="mdescLeft"> </td><td class="mdescRight">The component that the event first occurred on. <a href="#abe6b50fe43981f161200d99e6d235953">More...</a><br /></td></tr>
<tr class="separator:abe6b50fe43981f161200d99e6d235953"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad2980025e848cebfad0d6ad43f61c648"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classTime.html">Time</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#ad2980025e848cebfad0d6ad43f61c648">eventTime</a></td></tr>
<tr class="memdesc:ad2980025e848cebfad0d6ad43f61c648"><td class="mdescLeft"> </td><td class="mdescRight">The time that this mouse-event occurred. <a href="#ad2980025e848cebfad0d6ad43f61c648">More...</a><br /></td></tr>
<tr class="separator:ad2980025e848cebfad0d6ad43f61c648"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0636f798ed2f13b00d9927a275016c3e"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classTime.html">Time</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMouseEvent.html#a0636f798ed2f13b00d9927a275016c3e">mouseDownTime</a></td></tr>
<tr class="memdesc:a0636f798ed2f13b00d9927a275016c3e"><td class="mdescLeft"> </td><td class="mdescRight">The time that the corresponding mouse-down event occurred. <a href="#a0636f798ed2f13b00d9927a275016c3e">More...</a><br /></td></tr>
<tr class="separator:a0636f798ed2f13b00d9927a275016c3e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4f70eb92a29dc0acfa9f782388e254bc"><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="classMouseEvent.html#a4f70eb92a29dc0acfa9f782388e254bc">source</a></td></tr>
<tr class="memdesc:a4f70eb92a29dc0acfa9f782388e254bc"><td class="mdescLeft"> </td><td class="mdescRight">The source device that generated this event. <a href="#a4f70eb92a29dc0acfa9f782388e254bc">More...</a><br /></td></tr>
<tr class="separator:a4f70eb92a29dc0acfa9f782388e254bc"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Contains position and status information about a mouse event. </p>
<dl class="section see"><dt>See also</dt><dd><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>, <a class="el" href="classComponent.html#ad2cfbadc42d5c2124f67ae181de1234e" title="Called when the mouse moves inside a component. ">Component::mouseMove</a>, <a class="el" href="classComponent.html#a525b16845ffacc71c7c37a72f68feccc" title="Called when the mouse first enters a component. ">Component::mouseEnter</a>, <a class="el" href="classComponent.html#a16a0c88e82e5b71ed8cc7c7b3de37cb2" title="Called when the mouse moves out of a component. ">Component::mouseExit</a>, <a class="el" href="classComponent.html#a8504490979c2b4a6fdf02471b03a78f6" title="Called when a mouse button is pressed. ">Component::mouseDown</a>, <a class="el" href="classComponent.html#a9ef1d5efbd2b9c581c59ad75fb574fd4" title="Called when a mouse button is released. ">Component::mouseUp</a>, <a class="el" href="classComponent.html#a32ebd26be9c9bc56dd942071227d799d" title="Called when the mouse is moved while a button is held down. ">Component::mouseDrag</a> </dd></dl>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="ab69c782d7a8bd5611a65da9bcf9a4cd8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab69c782d7a8bd5611a65da9bcf9a4cd8">§ </a></span>MouseEvent()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">MouseEvent::MouseEvent </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classMouseInputSource.html">MouseInputSource</a> </td>
<td class="paramname"><em>source</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classPoint.html">Point</a>< float > </td>
<td class="paramname"><em>position</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classModifierKeys.html">ModifierKeys</a> </td>
<td class="paramname"><em>modifiers</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float </td>
<td class="paramname"><em>pressure</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classComponent.html">Component</a> * </td>
<td class="paramname"><em>eventComponent</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classComponent.html">Component</a> * </td>
<td class="paramname"><em>originator</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classTime.html">Time</a> </td>
<td class="paramname"><em>eventTime</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classPoint.html">Point</a>< float > </td>
<td class="paramname"><em>mouseDownPos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classTime.html">Time</a> </td>
<td class="paramname"><em>mouseDownTime</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>numberOfClicks</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>mouseWasDragged</em> </td>
</tr>
<tr>
<td></td>
<td>)</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>Creates a <a class="el" href="classMouseEvent.html" title="Contains position and status information about a mouse event. ">MouseEvent</a>. </p>
<p>Normally an application will never need to use this.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">source</td><td>the source that's invoking the event </td></tr>
<tr><td class="paramname">position</td><td>the position of the mouse, relative to the component that is passed-in </td></tr>
<tr><td class="paramname">modifiers</td><td>the key modifiers at the time of the event </td></tr>
<tr><td class="paramname">pressure</td><td>the pressure of the touch or stylus, in the range 0 to 1. Devices that do not support force information may return 0.0, 1.0, or a negative value, depending on the platform </td></tr>
<tr><td class="paramname">eventComponent</td><td>the component that the mouse event applies to </td></tr>
<tr><td class="paramname">originator</td><td>the component that originally received the event </td></tr>
<tr><td class="paramname">eventTime</td><td>the time the event happened </td></tr>
<tr><td class="paramname">mouseDownPos</td><td>the position of the corresponding mouse-down event (relative to the component that is passed-in). If there isn't a corresponding mouse-down (e.g. for a mouse-move), this will just be the same as the current mouse-x position. </td></tr>
<tr><td class="paramname">mouseDownTime</td><td>the time at which the corresponding mouse-down event happened If there isn't a corresponding mouse-down (e.g. for a mouse-move), this will just be the same as the current mouse-event time. </td></tr>
<tr><td class="paramname">numberOfClicks</td><td>how many clicks, e.g. a double-click event will be 2, a triple-click will be 3, etc </td></tr>
<tr><td class="paramname">mouseWasDragged</td><td>whether the mouse has been dragged significantly since the previous mouse-down </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a2fb97aee455a770a0bbd916c1504d02c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2fb97aee455a770a0bbd916c1504d02c">§ </a></span>~MouseEvent()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">MouseEvent::~MouseEvent </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>Destructor. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a77f87c7cebd5fbc719a9e2c89ef6b262"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77f87c7cebd5fbc719a9e2c89ef6b262">§ </a></span>getMouseDownX()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int MouseEvent::getMouseDownX </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 x coordinate of the last place that a mouse was pressed. </p>
<p>The coordinate is relative to the component specified in MouseEvent::component. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#afff96c10c810ab1cf5bc21b4e1b232c4" title="Returns the straight-line distance between where the mouse is now and where it was the last time the ...">getDistanceFromDragStart</a>, <a class="el" href="classMouseEvent.html#ae6d2098fdcf0c124ebd68fdcdb926c33" title="Returns the difference between the mouse's current x postion and where it was when the button was las...">getDistanceFromDragStartX</a>, <a class="el" href="classMouseEvent.html#a969a94328cd97f0ffdaf04e6f0d8301d" title="Returns true if the user seems to be performing a drag gesture. ">mouseWasDraggedSinceMouseDown</a> </dd></dl>
</div>
</div>
<a id="a5a05bcd49bb3a9c6506f18f6dba16137"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a05bcd49bb3a9c6506f18f6dba16137">§ </a></span>getMouseDownY()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int MouseEvent::getMouseDownY </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 y coordinate of the last place that a mouse was pressed. </p>
<p>The coordinate is relative to the component specified in MouseEvent::component. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#afff96c10c810ab1cf5bc21b4e1b232c4" title="Returns the straight-line distance between where the mouse is now and where it was the last time the ...">getDistanceFromDragStart</a>, <a class="el" href="classMouseEvent.html#ae6d2098fdcf0c124ebd68fdcdb926c33" title="Returns the difference between the mouse's current x postion and where it was when the button was las...">getDistanceFromDragStartX</a>, <a class="el" href="classMouseEvent.html#a969a94328cd97f0ffdaf04e6f0d8301d" title="Returns true if the user seems to be performing a drag gesture. ">mouseWasDraggedSinceMouseDown</a> </dd></dl>
</div>
</div>
<a id="aa253a71e1086586ade374a16c146c7c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa253a71e1086586ade374a16c146c7c4">§ </a></span>getMouseDownPosition()</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="classPoint.html">Point</a><int> MouseEvent::getMouseDownPosition </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 coordinates of the last place that a mouse was pressed. </p>
<p>The coordinates are relative to the component specified in MouseEvent::component. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#afff96c10c810ab1cf5bc21b4e1b232c4" title="Returns the straight-line distance between where the mouse is now and where it was the last time the ...">getDistanceFromDragStart</a>, <a class="el" href="classMouseEvent.html#ae6d2098fdcf0c124ebd68fdcdb926c33" title="Returns the difference between the mouse's current x postion and where it was when the button was las...">getDistanceFromDragStartX</a>, <a class="el" href="classMouseEvent.html#a969a94328cd97f0ffdaf04e6f0d8301d" title="Returns true if the user seems to be performing a drag gesture. ">mouseWasDraggedSinceMouseDown</a> </dd></dl>
<p>Referenced by <a class="el" href="classLassoComponent.html#af9d043865ee8f7db2989e7200d13dfd2">LassoComponent< SelectableItemType >::beginLasso()</a>.</p>
</div>
</div>
<a id="afff96c10c810ab1cf5bc21b4e1b232c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afff96c10c810ab1cf5bc21b4e1b232c4">§ </a></span>getDistanceFromDragStart()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int MouseEvent::getDistanceFromDragStart </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 straight-line distance between where the mouse is now and where it was the last time the button was pressed. </p>
<p>This is quite handy for things like deciding whether the user has moved far enough for it to be considered a drag operation.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#ae6d2098fdcf0c124ebd68fdcdb926c33" title="Returns the difference between the mouse's current x postion and where it was when the button was las...">getDistanceFromDragStartX</a> </dd></dl>
</div>
</div>
<a id="ae6d2098fdcf0c124ebd68fdcdb926c33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6d2098fdcf0c124ebd68fdcdb926c33">§ </a></span>getDistanceFromDragStartX()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int MouseEvent::getDistanceFromDragStartX </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 difference between the mouse's current x postion and where it was when the button was last pressed. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#afff96c10c810ab1cf5bc21b4e1b232c4" title="Returns the straight-line distance between where the mouse is now and where it was the last time the ...">getDistanceFromDragStart</a> </dd></dl>
</div>
</div>
<a id="a07c2f2d292f919a6d8f3e31c69c5ebb3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07c2f2d292f919a6d8f3e31c69c5ebb3">§ </a></span>getDistanceFromDragStartY()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int MouseEvent::getDistanceFromDragStartY </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 difference between the mouse's current y postion and where it was when the button was last pressed. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#afff96c10c810ab1cf5bc21b4e1b232c4" title="Returns the straight-line distance between where the mouse is now and where it was the last time the ...">getDistanceFromDragStart</a> </dd></dl>
</div>
</div>
<a id="ae7914aff9654e82aa14c2881f0f651fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7914aff9654e82aa14c2881f0f651fa">§ </a></span>getOffsetFromDragStart()</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="classPoint.html">Point</a><int> MouseEvent::getOffsetFromDragStart </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 difference between the mouse's current postion and where it was when the button was last pressed. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#afff96c10c810ab1cf5bc21b4e1b232c4" title="Returns the straight-line distance between where the mouse is now and where it was the last time the ...">getDistanceFromDragStart</a> </dd></dl>
</div>
</div>
<a id="a969a94328cd97f0ffdaf04e6f0d8301d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a969a94328cd97f0ffdaf04e6f0d8301d">§ </a></span>mouseWasDraggedSinceMouseDown()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool MouseEvent::mouseWasDraggedSinceMouseDown </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 true if the user seems to be performing a drag gesture. </p>
<p>This is only meaningful if called in either a mouseUp() or mouseDrag() method.</p>
<p>It will return true if the user has dragged the mouse more than a few pixels from the place where the mouse-down occurred.</p>
<p>Once they have dragged it far enough for this method to return true, it will continue to return true until the mouse-up, even if they move the mouse back to the same location at which the mouse-down happened. This means that it's very handy for objects that can either be clicked on or dragged, as you can use it in the mouseDrag() callback to ignore small movements they might make while trying to click. </p>
</div>
</div>
<a id="a134d8c300344a66d9a831f29270ec2e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a134d8c300344a66d9a831f29270ec2e9">§ </a></span>mouseWasClicked()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool MouseEvent::mouseWasClicked </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 true if the mouse event is part of a click gesture rather than a drag. </p>
<p>This is effectively the opposite of <a class="el" href="classMouseEvent.html#a969a94328cd97f0ffdaf04e6f0d8301d" title="Returns true if the user seems to be performing a drag gesture. ">mouseWasDraggedSinceMouseDown()</a> </p>
</div>
</div>
<a id="a94f8d29018a8dcd1238f9e321944b118"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94f8d29018a8dcd1238f9e321944b118">§ </a></span>getNumberOfClicks()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int MouseEvent::getNumberOfClicks </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>For a click event, the number of times the mouse was clicked in succession. </p>
<p>So for example a double-click event will return 2, a triple-click 3, etc. </p>
</div>
</div>
<a id="a8f67d78e40437aa67368f08c2fd8a581"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f67d78e40437aa67368f08c2fd8a581">§ </a></span>getLengthOfMousePress()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int MouseEvent::getLengthOfMousePress </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 time that the mouse button has been held down for. </p>
<p>If called from a mouseDrag or mouseUp callback, this will return the number of milliseconds since the corresponding mouseDown event occurred. If called in other contexts, e.g. a mouseMove, then the returned value may be 0 or an undefined value. </p>
</div>
</div>
<a id="ae036a5d7ae699cb1a26f0701329fe51f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae036a5d7ae699cb1a26f0701329fe51f">§ </a></span>isPressureValid()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool MouseEvent::isPressureValid </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 true if the pressure value for this event is meaningful. </p>
</div>
</div>
<a id="af475e6f7ef2e702a72bff90f166c8161"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af475e6f7ef2e702a72bff90f166c8161">§ </a></span>getPosition()</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="classPoint.html">Point</a><int> MouseEvent::getPosition </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>The position of the mouse when the event occurred. </p>
<p>This position is relative to the top-left of the component to which the event applies (as indicated by the <a class="el" href="classMouseEvent.html#a33c37dc970ab4c24e9e5b2c33e568d9e" title="The component that this event applies to. ">MouseEvent::eventComponent</a> field).</p>
<p>For a floating-point position, see <a class="el" href="classMouseEvent.html#a93aec07d19ecbd1b31093689bab7b46e" title="The position of the mouse when the event occurred. ">MouseEvent::position</a> </p>
<p>Referenced by <a class="el" href="classLassoComponent.html#a4aca7f9f28ecef2834bfabe648ba6959">LassoComponent< SelectableItemType >::dragLasso()</a>.</p>
</div>
</div>
<a id="a579dfef18edbe4b4a8d6984a6d81831e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a579dfef18edbe4b4a8d6984a6d81831e">§ </a></span>getScreenX()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int MouseEvent::getScreenX </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the mouse x position of this event, in global screen coordinates. </p>
<p>The coordinates are relative to the top-left of the main monitor. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#aca1423bcecbb7e5723e4d7fce58a8884" title="Returns the mouse position of this event, in global screen coordinates. ">getScreenPosition</a> </dd></dl>
</div>
</div>
<a id="a998253af38eaeab29c779f4aa169bc44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a998253af38eaeab29c779f4aa169bc44">§ </a></span>getScreenY()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int MouseEvent::getScreenY </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the mouse y position of this event, in global screen coordinates. </p>
<p>The coordinates are relative to the top-left of the main monitor. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#aca1423bcecbb7e5723e4d7fce58a8884" title="Returns the mouse position of this event, in global screen coordinates. ">getScreenPosition</a> </dd></dl>
</div>
</div>
<a id="aca1423bcecbb7e5723e4d7fce58a8884"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca1423bcecbb7e5723e4d7fce58a8884">§ </a></span>getScreenPosition()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classPoint.html">Point</a><int> MouseEvent::getScreenPosition </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the mouse position of this event, in global screen coordinates. </p>
<p>The coordinates are relative to the top-left of the main monitor. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#abe80c6b55dd49df15cf51fbfcc9aa44a" title="Returns the coordinates at which the mouse button was last pressed. ">getMouseDownScreenPosition</a> </dd></dl>
</div>
</div>
<a id="a04805da80f30bff717ee7dd2cafd2286"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04805da80f30bff717ee7dd2cafd2286">§ </a></span>getMouseDownScreenX()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int MouseEvent::getMouseDownScreenX </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the x coordinate at which the mouse button was last pressed. </p>
<p>The coordinates are relative to the top-left of the main monitor. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#abe80c6b55dd49df15cf51fbfcc9aa44a" title="Returns the coordinates at which the mouse button was last pressed. ">getMouseDownScreenPosition</a> </dd></dl>
</div>
</div>
<a id="ac11db8b404af0a29d61e88b7b238e83b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac11db8b404af0a29d61e88b7b238e83b">§ </a></span>getMouseDownScreenY()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int MouseEvent::getMouseDownScreenY </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the y coordinate at which the mouse button was last pressed. </p>
<p>The coordinates are relative to the top-left of the main monitor. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#abe80c6b55dd49df15cf51fbfcc9aa44a" title="Returns the coordinates at which the mouse button was last pressed. ">getMouseDownScreenPosition</a> </dd></dl>
</div>
</div>
<a id="abe80c6b55dd49df15cf51fbfcc9aa44a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe80c6b55dd49df15cf51fbfcc9aa44a">§ </a></span>getMouseDownScreenPosition()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classPoint.html">Point</a><int> MouseEvent::getMouseDownScreenPosition </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the coordinates at which the mouse button was last pressed. </p>
<p>The coordinates are relative to the top-left of the main monitor. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#aca1423bcecbb7e5723e4d7fce58a8884" title="Returns the mouse position of this event, in global screen coordinates. ">getScreenPosition</a> </dd></dl>
</div>
</div>
<a id="a83759659994ba50b9b857a44ba51cff8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83759659994ba50b9b857a44ba51cff8">§ </a></span>getEventRelativeTo()</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="classMouseEvent.html">MouseEvent</a> MouseEvent::getEventRelativeTo </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classComponent.html">Component</a> * </td>
<td class="paramname"><em>newComponent</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>Creates a version of this event that is relative to a different component. </p>
<p>The x and y positions of the event that is returned will have been adjusted to be relative to the new component. The component pointer that is passed-in must not be null. </p>
</div>
</div>
<a id="a2cf47a94c48f5374aa026faff5e5ef9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2cf47a94c48f5374aa026faff5e5ef9c">§ </a></span>withNewPosition() <span class="overload">[1/2]</span></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="classMouseEvent.html">MouseEvent</a> MouseEvent::withNewPosition </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPoint.html">Point</a>< float > </td>
<td class="paramname"><em>newPosition</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>Creates a copy of this event with a different position. </p>
<p>All other members of the event object are the same, but the x and y are replaced with these new values. </p>
</div>
</div>
<a id="a4c554b08557c5962d28ca8cc22ea48a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c554b08557c5962d28ca8cc22ea48a2">§ </a></span>withNewPosition() <span class="overload">[2/2]</span></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="classMouseEvent.html">MouseEvent</a> MouseEvent::withNewPosition </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> 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>Creates a copy of this event with a different position. </p>
<p>All other members of the event object are the same, but the x and y are replaced with these new values. </p>
</div>
</div>
<a id="a61131d747c89f4781a69619f5e07c535"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61131d747c89f4781a69619f5e07c535">§ </a></span>setDoubleClickTimeout()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void MouseEvent::setDoubleClickTimeout </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>timeOutMilliseconds</em></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>Changes the application-wide setting for the double-click time limit. </p>
<p>This is the maximum length of time between mouse-clicks for it to be considered a double-click. It's used by the <a class="el" href="classComponent.html" title="The base class for all JUCE user-interface objects. ">Component</a> class.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#a6f5b93fb2511b810505a1e47a670ca26" title="Returns the application-wide setting for the double-click time limit. ">getDoubleClickTimeout</a>, <a class="el" href="classMouseListener.html#a7ef5d0993f3036233f458fc88f71462c" title="Called when a mouse button has been double-clicked on a component. ">MouseListener::mouseDoubleClick</a> </dd></dl>
</div>
</div>
<a id="a6f5b93fb2511b810505a1e47a670ca26"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f5b93fb2511b810505a1e47a670ca26">§ </a></span>getDoubleClickTimeout()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static int MouseEvent::getDoubleClickTimeout </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>Returns the application-wide setting for the double-click time limit. </p>
<p>This is the maximum length of time between mouse-clicks for it to be considered a double-click. It's used by the <a class="el" href="classComponent.html" title="The base class for all JUCE user-interface objects. ">Component</a> class.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#a61131d747c89f4781a69619f5e07c535" title="Changes the application-wide setting for the double-click time limit. ">setDoubleClickTimeout</a>, <a class="el" href="classMouseListener.html#a7ef5d0993f3036233f458fc88f71462c" title="Called when a mouse button has been double-clicked on a component. ">MouseListener::mouseDoubleClick</a> </dd></dl>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a93aec07d19ecbd1b31093689bab7b46e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93aec07d19ecbd1b31093689bab7b46e">§ </a></span>position</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classPoint.html">Point</a><float> MouseEvent::position</td>
</tr>
</table>
</div><div class="memdoc">
<p>The position of the mouse when the event occurred. </p>
<p>This value is relative to the top-left of the component to which the event applies (as indicated by the <a class="el" href="classMouseEvent.html#a33c37dc970ab4c24e9e5b2c33e568d9e" title="The component that this event applies to. ">MouseEvent::eventComponent</a> field).</p>
<p>This is a more accurate floating-point version of the position returned by <a class="el" href="classMouseEvent.html#af475e6f7ef2e702a72bff90f166c8161" title="The position of the mouse when the event occurred. ">getPosition()</a> and the integer x and y member variables. </p>
</div>
</div>
<a id="af3127333fe067df8158c9bb3da36ec84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3127333fe067df8158c9bb3da36ec84">§ </a></span>x</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const int MouseEvent::x</td>
</tr>
</table>
</div><div class="memdoc">
<p>The x-position of the mouse when the event occurred. </p>
<p>This value is relative to the top-left of the component to which the event applies (as indicated by the <a class="el" href="classMouseEvent.html#a33c37dc970ab4c24e9e5b2c33e568d9e" title="The component that this event applies to. ">MouseEvent::eventComponent</a> field).</p>
<p>For a floating-point coordinate, see <a class="el" href="classMouseEvent.html#a93aec07d19ecbd1b31093689bab7b46e" title="The position of the mouse when the event occurred. ">MouseEvent::position</a> </p>
</div>
</div>
<a id="ad5c3872ed713f0d237898aa7307ece23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5c3872ed713f0d237898aa7307ece23">§ </a></span>y</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const int MouseEvent::y</td>
</tr>
</table>
</div><div class="memdoc">
<p>The y-position of the mouse when the event occurred. </p>
<p>This value is relative to the top-left of the component to which the event applies (as indicated by the <a class="el" href="classMouseEvent.html#a33c37dc970ab4c24e9e5b2c33e568d9e" title="The component that this event applies to. ">MouseEvent::eventComponent</a> field).</p>
<p>For a floating-point coordinate, see <a class="el" href="classMouseEvent.html#a93aec07d19ecbd1b31093689bab7b46e" title="The position of the mouse when the event occurred. ">MouseEvent::position</a> </p>
</div>
</div>
<a id="aaabc365b704e243b193b41113d4e50de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaabc365b704e243b193b41113d4e50de">§ </a></span>mods</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classModifierKeys.html">ModifierKeys</a> MouseEvent::mods</td>
</tr>
</table>
</div><div class="memdoc">
<p>The key modifiers associated with the event. </p>
<p>This will let you find out which mouse buttons were down, as well as which modifier keys were held down.</p>
<p>When used for mouse-up events, this will indicate the state of the mouse buttons just before they were released, so that you can tell which button they let go of. </p>
<p>Referenced by <a class="el" href="classLassoComponent.html#a4aca7f9f28ecef2834bfabe648ba6959">LassoComponent< SelectableItemType >::dragLasso()</a>.</p>
</div>
</div>
<a id="a88b142ee1a340d8ad5f092b083ddbcf7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88b142ee1a340d8ad5f092b083ddbcf7">§ </a></span>pressure</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float MouseEvent::pressure</td>
</tr>
</table>
</div><div class="memdoc">
<p>The pressure of the touch or stylus for this event. </p>
<p>The range is 0 (soft) to 1 (hard). If the input device doesn't provide any pressure data, it may return a negative value here, or 0.0 or 1.0, depending on the platform. </p>
</div>
</div>
<a id="a33c37dc970ab4c24e9e5b2c33e568d9e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33c37dc970ab4c24e9e5b2c33e568d9e">§ </a></span>eventComponent</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classComponent.html">Component</a>* const MouseEvent::eventComponent</td>
</tr>
</table>
</div><div class="memdoc">
<p>The component that this event applies to. </p>
<p>This is usually the component that the mouse was over at the time, but for mouse-drag events the mouse could actually be over a different component and the events are still sent to the component that the button was originally pressed on.</p>
<p>The x and y member variables are relative to this component's position.</p>
<p>If you use <a class="el" href="classMouseEvent.html#a83759659994ba50b9b857a44ba51cff8" title="Creates a version of this event that is relative to a different component. ">getEventRelativeTo()</a> to retarget this object to be relative to a different component, this pointer will be updated, but originalComponent remains unchanged.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#abe6b50fe43981f161200d99e6d235953" title="The component that the event first occurred on. ">originalComponent</a> </dd></dl>
</div>
</div>
<a id="abe6b50fe43981f161200d99e6d235953"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe6b50fe43981f161200d99e6d235953">§ </a></span>originalComponent</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classComponent.html">Component</a>* const MouseEvent::originalComponent</td>
</tr>
</table>
</div><div class="memdoc">
<p>The component that the event first occurred on. </p>
<p>If you use <a class="el" href="classMouseEvent.html#a83759659994ba50b9b857a44ba51cff8" title="Creates a version of this event that is relative to a different component. ">getEventRelativeTo()</a> to retarget this object to be relative to a different component, this value remains unchanged to indicate the first component that received it.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMouseEvent.html#a33c37dc970ab4c24e9e5b2c33e568d9e" title="The component that this event applies to. ">eventComponent</a> </dd></dl>
</div>
</div>
<a id="ad2980025e848cebfad0d6ad43f61c648"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2980025e848cebfad0d6ad43f61c648">§ </a></span>eventTime</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classTime.html">Time</a> MouseEvent::eventTime</td>
</tr>
</table>
</div><div class="memdoc">
<p>The time that this mouse-event occurred. </p>
</div>
</div>
<a id="a0636f798ed2f13b00d9927a275016c3e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0636f798ed2f13b00d9927a275016c3e">§ </a></span>mouseDownTime</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classTime.html">Time</a> MouseEvent::mouseDownTime</td>
</tr>
</table>
</div><div class="memdoc">
<p>The time that the corresponding mouse-down event occurred. </p>
</div>
</div>
<a id="a4f70eb92a29dc0acfa9f782388e254bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f70eb92a29dc0acfa9f782388e254bc">§ </a></span>source</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classMouseInputSource.html">MouseInputSource</a> MouseEvent::source</td>
</tr>
</table>
</div><div class="memdoc">
<p>The source device that generated this event. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__MouseEvent_8h.html">juce_MouseEvent.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content © ROLI Ltd.</small></address><br/>
</body>
</html>
|