/usr/share/doc/libjuce/apiref/classComponentBoundsConstrainer.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 | <!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: ComponentBoundsConstrainer 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="classComponentBoundsConstrainer-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">ComponentBoundsConstrainer Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>A class that imposes restrictions on a <a class="el" href="classComponent.html" title="The base class for all JUCE user-interface objects. ">Component</a>'s size or position.
<a href="classComponentBoundsConstrainer.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:af45eadfc4f8fd8a33578ea00f49a1c0e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#af45eadfc4f8fd8a33578ea00f49a1c0e">ComponentBoundsConstrainer</a> () noexcept</td></tr>
<tr class="memdesc:af45eadfc4f8fd8a33578ea00f49a1c0e"><td class="mdescLeft"> </td><td class="mdescRight">When first created, the object will not impose any restrictions on the components. <a href="#af45eadfc4f8fd8a33578ea00f49a1c0e">More...</a><br /></td></tr>
<tr class="separator:af45eadfc4f8fd8a33578ea00f49a1c0e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae4a71b7679b7a8a97365b4756f1be737"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#ae4a71b7679b7a8a97365b4756f1be737">~ComponentBoundsConstrainer</a> ()</td></tr>
<tr class="memdesc:ae4a71b7679b7a8a97365b4756f1be737"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ae4a71b7679b7a8a97365b4756f1be737">More...</a><br /></td></tr>
<tr class="separator:ae4a71b7679b7a8a97365b4756f1be737"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a74e8916739dc8782adc0cca2eb95bef3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#a74e8916739dc8782adc0cca2eb95bef3">setMinimumWidth</a> (int minimumWidth) noexcept</td></tr>
<tr class="memdesc:a74e8916739dc8782adc0cca2eb95bef3"><td class="mdescLeft"> </td><td class="mdescRight">Imposes a minimum width limit. <a href="#a74e8916739dc8782adc0cca2eb95bef3">More...</a><br /></td></tr>
<tr class="separator:a74e8916739dc8782adc0cca2eb95bef3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a39e4ef743733614cd1cd2b2949e8d5f3"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#a39e4ef743733614cd1cd2b2949e8d5f3">getMinimumWidth</a> () const noexcept</td></tr>
<tr class="memdesc:a39e4ef743733614cd1cd2b2949e8d5f3"><td class="mdescLeft"> </td><td class="mdescRight">Returns the current minimum width. <a href="#a39e4ef743733614cd1cd2b2949e8d5f3">More...</a><br /></td></tr>
<tr class="separator:a39e4ef743733614cd1cd2b2949e8d5f3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a925ec5da22e0a6e6266b2428705d5d6d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#a925ec5da22e0a6e6266b2428705d5d6d">setMaximumWidth</a> (int maximumWidth) noexcept</td></tr>
<tr class="memdesc:a925ec5da22e0a6e6266b2428705d5d6d"><td class="mdescLeft"> </td><td class="mdescRight">Imposes a maximum width limit. <a href="#a925ec5da22e0a6e6266b2428705d5d6d">More...</a><br /></td></tr>
<tr class="separator:a925ec5da22e0a6e6266b2428705d5d6d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a953f95835e414252d900a72d3d5a9e76"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#a953f95835e414252d900a72d3d5a9e76">getMaximumWidth</a> () const noexcept</td></tr>
<tr class="memdesc:a953f95835e414252d900a72d3d5a9e76"><td class="mdescLeft"> </td><td class="mdescRight">Returns the current maximum width. <a href="#a953f95835e414252d900a72d3d5a9e76">More...</a><br /></td></tr>
<tr class="separator:a953f95835e414252d900a72d3d5a9e76"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0b46cbd472fe7f925732ce92f4dcdfb3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#a0b46cbd472fe7f925732ce92f4dcdfb3">setMinimumHeight</a> (int minimumHeight) noexcept</td></tr>
<tr class="memdesc:a0b46cbd472fe7f925732ce92f4dcdfb3"><td class="mdescLeft"> </td><td class="mdescRight">Imposes a minimum height limit. <a href="#a0b46cbd472fe7f925732ce92f4dcdfb3">More...</a><br /></td></tr>
<tr class="separator:a0b46cbd472fe7f925732ce92f4dcdfb3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a12a419edbb224adc7033ba8289f7da51"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#a12a419edbb224adc7033ba8289f7da51">getMinimumHeight</a> () const noexcept</td></tr>
<tr class="memdesc:a12a419edbb224adc7033ba8289f7da51"><td class="mdescLeft"> </td><td class="mdescRight">Returns the current minimum height. <a href="#a12a419edbb224adc7033ba8289f7da51">More...</a><br /></td></tr>
<tr class="separator:a12a419edbb224adc7033ba8289f7da51"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af2a07dca0015ea0955ed0ff1856e78ff"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#af2a07dca0015ea0955ed0ff1856e78ff">setMaximumHeight</a> (int maximumHeight) noexcept</td></tr>
<tr class="memdesc:af2a07dca0015ea0955ed0ff1856e78ff"><td class="mdescLeft"> </td><td class="mdescRight">Imposes a maximum height limit. <a href="#af2a07dca0015ea0955ed0ff1856e78ff">More...</a><br /></td></tr>
<tr class="separator:af2a07dca0015ea0955ed0ff1856e78ff"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a63b8def753269b32bab577eb0cf84e98"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#a63b8def753269b32bab577eb0cf84e98">getMaximumHeight</a> () const noexcept</td></tr>
<tr class="memdesc:a63b8def753269b32bab577eb0cf84e98"><td class="mdescLeft"> </td><td class="mdescRight">Returns the current maximum height. <a href="#a63b8def753269b32bab577eb0cf84e98">More...</a><br /></td></tr>
<tr class="separator:a63b8def753269b32bab577eb0cf84e98"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aea5a0319cabade466756b4f031b9329d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#aea5a0319cabade466756b4f031b9329d">setMinimumSize</a> (int minimumWidth, int minimumHeight) noexcept</td></tr>
<tr class="memdesc:aea5a0319cabade466756b4f031b9329d"><td class="mdescLeft"> </td><td class="mdescRight">Imposes a minimum width and height limit. <a href="#aea5a0319cabade466756b4f031b9329d">More...</a><br /></td></tr>
<tr class="separator:aea5a0319cabade466756b4f031b9329d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0e2b30774ced1284700b5abf361847d0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#a0e2b30774ced1284700b5abf361847d0">setMaximumSize</a> (int maximumWidth, int maximumHeight) noexcept</td></tr>
<tr class="memdesc:a0e2b30774ced1284700b5abf361847d0"><td class="mdescLeft"> </td><td class="mdescRight">Imposes a maximum width and height limit. <a href="#a0e2b30774ced1284700b5abf361847d0">More...</a><br /></td></tr>
<tr class="separator:a0e2b30774ced1284700b5abf361847d0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1a4b9c98a27720bf23bb5621af00d6a3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#a1a4b9c98a27720bf23bb5621af00d6a3">setSizeLimits</a> (int minimumWidth, int minimumHeight, int maximumWidth, int maximumHeight) noexcept</td></tr>
<tr class="memdesc:a1a4b9c98a27720bf23bb5621af00d6a3"><td class="mdescLeft"> </td><td class="mdescRight">Set all the maximum and minimum dimensions. <a href="#a1a4b9c98a27720bf23bb5621af00d6a3">More...</a><br /></td></tr>
<tr class="separator:a1a4b9c98a27720bf23bb5621af00d6a3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aff1abf331d36ac67df318f999beccc0a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#aff1abf331d36ac67df318f999beccc0a">setMinimumOnscreenAmounts</a> (int minimumWhenOffTheTop, int minimumWhenOffTheLeft, int minimumWhenOffTheBottom, int minimumWhenOffTheRight) noexcept</td></tr>
<tr class="memdesc:aff1abf331d36ac67df318f999beccc0a"><td class="mdescLeft"> </td><td class="mdescRight">Sets the amount by which the component is allowed to go off-screen. <a href="#aff1abf331d36ac67df318f999beccc0a">More...</a><br /></td></tr>
<tr class="separator:aff1abf331d36ac67df318f999beccc0a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a44c52db11cf8a141c9e8c562db59fad5"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#a44c52db11cf8a141c9e8c562db59fad5">getMinimumWhenOffTheTop</a> () const noexcept</td></tr>
<tr class="memdesc:a44c52db11cf8a141c9e8c562db59fad5"><td class="mdescLeft"> </td><td class="mdescRight">Returns the minimum distance the bounds can be off-screen. <a href="#a44c52db11cf8a141c9e8c562db59fad5">More...</a><br /></td></tr>
<tr class="separator:a44c52db11cf8a141c9e8c562db59fad5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2115c6e6732ac8d22a681126feaa0692"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#a2115c6e6732ac8d22a681126feaa0692">getMinimumWhenOffTheLeft</a> () const noexcept</td></tr>
<tr class="memdesc:a2115c6e6732ac8d22a681126feaa0692"><td class="mdescLeft"> </td><td class="mdescRight">Returns the minimum distance the bounds can be off-screen. <a href="#a2115c6e6732ac8d22a681126feaa0692">More...</a><br /></td></tr>
<tr class="separator:a2115c6e6732ac8d22a681126feaa0692"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aadafebd97fcd42ae595973abcd164244"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#aadafebd97fcd42ae595973abcd164244">getMinimumWhenOffTheBottom</a> () const noexcept</td></tr>
<tr class="memdesc:aadafebd97fcd42ae595973abcd164244"><td class="mdescLeft"> </td><td class="mdescRight">Returns the minimum distance the bounds can be off-screen. <a href="#aadafebd97fcd42ae595973abcd164244">More...</a><br /></td></tr>
<tr class="separator:aadafebd97fcd42ae595973abcd164244"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acc3d3e62dd2e533d86c38fb311287db0"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#acc3d3e62dd2e533d86c38fb311287db0">getMinimumWhenOffTheRight</a> () const noexcept</td></tr>
<tr class="memdesc:acc3d3e62dd2e533d86c38fb311287db0"><td class="mdescLeft"> </td><td class="mdescRight">Returns the minimum distance the bounds can be off-screen. <a href="#acc3d3e62dd2e533d86c38fb311287db0">More...</a><br /></td></tr>
<tr class="separator:acc3d3e62dd2e533d86c38fb311287db0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad2dc5063fde4f7eec915c29eb9a78d46"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#ad2dc5063fde4f7eec915c29eb9a78d46">setFixedAspectRatio</a> (double widthOverHeight) noexcept</td></tr>
<tr class="memdesc:ad2dc5063fde4f7eec915c29eb9a78d46"><td class="mdescLeft"> </td><td class="mdescRight">Specifies a width-to-height ratio that the resizer should always maintain. <a href="#ad2dc5063fde4f7eec915c29eb9a78d46">More...</a><br /></td></tr>
<tr class="separator:ad2dc5063fde4f7eec915c29eb9a78d46"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aef5a96ab24d00c21a5d350b2b242b8a8"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#aef5a96ab24d00c21a5d350b2b242b8a8">getFixedAspectRatio</a> () const noexcept</td></tr>
<tr class="memdesc:aef5a96ab24d00c21a5d350b2b242b8a8"><td class="mdescLeft"> </td><td class="mdescRight">Returns the aspect ratio that was set with <a class="el" href="classComponentBoundsConstrainer.html#ad2dc5063fde4f7eec915c29eb9a78d46" title="Specifies a width-to-height ratio that the resizer should always maintain. ">setFixedAspectRatio()</a>. <a href="#aef5a96ab24d00c21a5d350b2b242b8a8">More...</a><br /></td></tr>
<tr class="separator:aef5a96ab24d00c21a5d350b2b242b8a8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae5de4ca69f5f0a595ca51d9354a217ab"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#ae5de4ca69f5f0a595ca51d9354a217ab">checkBounds</a> (<a class="el" href="classRectangle.html">Rectangle</a>< int > &bounds, const <a class="el" href="classRectangle.html">Rectangle</a>< int > &previousBounds, const <a class="el" href="classRectangle.html">Rectangle</a>< int > &limits, bool isStretchingTop, bool isStretchingLeft, bool isStretchingBottom, bool isStretchingRight)</td></tr>
<tr class="memdesc:ae5de4ca69f5f0a595ca51d9354a217ab"><td class="mdescLeft"> </td><td class="mdescRight">This callback changes the given coordinates to impose whatever the current constraints are set to be. <a href="#ae5de4ca69f5f0a595ca51d9354a217ab">More...</a><br /></td></tr>
<tr class="separator:ae5de4ca69f5f0a595ca51d9354a217ab"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a93469c13206cd1f1a8662a4d031f6efc"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#a93469c13206cd1f1a8662a4d031f6efc">resizeStart</a> ()</td></tr>
<tr class="memdesc:a93469c13206cd1f1a8662a4d031f6efc"><td class="mdescLeft"> </td><td class="mdescRight">This callback happens when the resizer is about to start dragging. <a href="#a93469c13206cd1f1a8662a4d031f6efc">More...</a><br /></td></tr>
<tr class="separator:a93469c13206cd1f1a8662a4d031f6efc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8e97270a714a8e9df0bbe1359388c599"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#a8e97270a714a8e9df0bbe1359388c599">resizeEnd</a> ()</td></tr>
<tr class="memdesc:a8e97270a714a8e9df0bbe1359388c599"><td class="mdescLeft"> </td><td class="mdescRight">This callback happens when the resizer has finished dragging. <a href="#a8e97270a714a8e9df0bbe1359388c599">More...</a><br /></td></tr>
<tr class="separator:a8e97270a714a8e9df0bbe1359388c599"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afaf4fe2f6d2002463fce84ebdefc8db1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#afaf4fe2f6d2002463fce84ebdefc8db1">setBoundsForComponent</a> (<a class="el" href="classComponent.html">Component</a> *component, const <a class="el" href="classRectangle.html">Rectangle</a>< int > &bounds, bool isStretchingTop, bool isStretchingLeft, bool isStretchingBottom, bool isStretchingRight)</td></tr>
<tr class="memdesc:afaf4fe2f6d2002463fce84ebdefc8db1"><td class="mdescLeft"> </td><td class="mdescRight">Checks the given bounds, and then sets the component to the corrected size. <a href="#afaf4fe2f6d2002463fce84ebdefc8db1">More...</a><br /></td></tr>
<tr class="separator:afaf4fe2f6d2002463fce84ebdefc8db1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1f799af496b1658715dd34381043841b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#a1f799af496b1658715dd34381043841b">checkComponentBounds</a> (<a class="el" href="classComponent.html">Component</a> *component)</td></tr>
<tr class="memdesc:a1f799af496b1658715dd34381043841b"><td class="mdescLeft"> </td><td class="mdescRight">Performs a check on the current size of a component, and moves or resizes it if it fails the constraints. <a href="#a1f799af496b1658715dd34381043841b">More...</a><br /></td></tr>
<tr class="separator:a1f799af496b1658715dd34381043841b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a064cdd9798ea6a06c774fc9c554a8214"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classComponentBoundsConstrainer.html#a064cdd9798ea6a06c774fc9c554a8214">applyBoundsToComponent</a> (<a class="el" href="classComponent.html">Component</a> *component, const <a class="el" href="classRectangle.html">Rectangle</a>< int > &bounds)</td></tr>
<tr class="memdesc:a064cdd9798ea6a06c774fc9c554a8214"><td class="mdescLeft"> </td><td class="mdescRight">Called by <a class="el" href="classComponentBoundsConstrainer.html#afaf4fe2f6d2002463fce84ebdefc8db1" title="Checks the given bounds, and then sets the component to the corrected size. ">setBoundsForComponent()</a> to apply a new constrained size to a component. <a href="#a064cdd9798ea6a06c774fc9c554a8214">More...</a><br /></td></tr>
<tr class="separator:a064cdd9798ea6a06c774fc9c554a8214"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A class that imposes restrictions on a <a class="el" href="classComponent.html" title="The base class for all JUCE user-interface objects. ">Component</a>'s size or position. </p>
<p>This is used by classes such as <a class="el" href="classResizableCornerComponent.html" title="A component that resizes a parent component when dragged. ">ResizableCornerComponent</a>, <a class="el" href="classResizableBorderComponent.html" title="A component that resizes its parent component when dragged. ">ResizableBorderComponent</a> and <a class="el" href="classResizableWindow.html" title="A base class for top-level windows that can be dragged around and resized. ">ResizableWindow</a>.</p>
<p>The base class can impose some basic size and position limits, but you can also subclass this for custom uses.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classResizableCornerComponent.html" title="A component that resizes a parent component when dragged. ">ResizableCornerComponent</a>, <a class="el" href="classResizableBorderComponent.html" title="A component that resizes its parent component when dragged. ">ResizableBorderComponent</a>, <a class="el" href="classResizableWindow.html" title="A base class for top-level windows that can be dragged around and resized. ">ResizableWindow</a> </dd></dl>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="af45eadfc4f8fd8a33578ea00f49a1c0e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af45eadfc4f8fd8a33578ea00f49a1c0e">§ </a></span>ComponentBoundsConstrainer()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">ComponentBoundsConstrainer::ComponentBoundsConstrainer </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>When first created, the object will not impose any restrictions on the components. </p>
</div>
</div>
<a id="ae4a71b7679b7a8a97365b4756f1be737"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4a71b7679b7a8a97365b4756f1be737">§ </a></span>~ComponentBoundsConstrainer()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual ComponentBoundsConstrainer::~ComponentBoundsConstrainer </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Destructor. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a74e8916739dc8782adc0cca2eb95bef3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74e8916739dc8782adc0cca2eb95bef3">§ </a></span>setMinimumWidth()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ComponentBoundsConstrainer::setMinimumWidth </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>minimumWidth</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>Imposes a minimum width limit. </p>
</div>
</div>
<a id="a39e4ef743733614cd1cd2b2949e8d5f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39e4ef743733614cd1cd2b2949e8d5f3">§ </a></span>getMinimumWidth()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int ComponentBoundsConstrainer::getMinimumWidth </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 minimum width. </p>
</div>
</div>
<a id="a925ec5da22e0a6e6266b2428705d5d6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a925ec5da22e0a6e6266b2428705d5d6d">§ </a></span>setMaximumWidth()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ComponentBoundsConstrainer::setMaximumWidth </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>maximumWidth</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>Imposes a maximum width limit. </p>
</div>
</div>
<a id="a953f95835e414252d900a72d3d5a9e76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a953f95835e414252d900a72d3d5a9e76">§ </a></span>getMaximumWidth()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int ComponentBoundsConstrainer::getMaximumWidth </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 maximum width. </p>
</div>
</div>
<a id="a0b46cbd472fe7f925732ce92f4dcdfb3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b46cbd472fe7f925732ce92f4dcdfb3">§ </a></span>setMinimumHeight()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ComponentBoundsConstrainer::setMinimumHeight </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>minimumHeight</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>Imposes a minimum height limit. </p>
</div>
</div>
<a id="a12a419edbb224adc7033ba8289f7da51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12a419edbb224adc7033ba8289f7da51">§ </a></span>getMinimumHeight()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int ComponentBoundsConstrainer::getMinimumHeight </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 minimum height. </p>
</div>
</div>
<a id="af2a07dca0015ea0955ed0ff1856e78ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af2a07dca0015ea0955ed0ff1856e78ff">§ </a></span>setMaximumHeight()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ComponentBoundsConstrainer::setMaximumHeight </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>maximumHeight</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>Imposes a maximum height limit. </p>
</div>
</div>
<a id="a63b8def753269b32bab577eb0cf84e98"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a63b8def753269b32bab577eb0cf84e98">§ </a></span>getMaximumHeight()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int ComponentBoundsConstrainer::getMaximumHeight </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 maximum height. </p>
</div>
</div>
<a id="aea5a0319cabade466756b4f031b9329d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea5a0319cabade466756b4f031b9329d">§ </a></span>setMinimumSize()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ComponentBoundsConstrainer::setMinimumSize </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>minimumWidth</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>minimumHeight</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>Imposes a minimum width and height limit. </p>
</div>
</div>
<a id="a0e2b30774ced1284700b5abf361847d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e2b30774ced1284700b5abf361847d0">§ </a></span>setMaximumSize()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ComponentBoundsConstrainer::setMaximumSize </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>maximumWidth</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>maximumHeight</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>Imposes a maximum width and height limit. </p>
</div>
</div>
<a id="a1a4b9c98a27720bf23bb5621af00d6a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a4b9c98a27720bf23bb5621af00d6a3">§ </a></span>setSizeLimits()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ComponentBoundsConstrainer::setSizeLimits </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>minimumWidth</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>minimumHeight</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>maximumWidth</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>maximumHeight</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>Set all the maximum and minimum dimensions. </p>
</div>
</div>
<a id="aff1abf331d36ac67df318f999beccc0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff1abf331d36ac67df318f999beccc0a">§ </a></span>setMinimumOnscreenAmounts()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ComponentBoundsConstrainer::setMinimumOnscreenAmounts </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>minimumWhenOffTheTop</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>minimumWhenOffTheLeft</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>minimumWhenOffTheBottom</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>minimumWhenOffTheRight</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>Sets the amount by which the component is allowed to go off-screen. </p>
<p>The values indicate how many pixels must remain on-screen when dragged off one of its parent's edges, so e.g. if minimumWhenOffTheTop is set to 10, then when the component goes off the top of the screen, its y-position will be clipped so that there are always at least 10 pixels on-screen. In other words, the lowest y-position it can take would be (10 - the component's height).</p>
<p>If you pass 0 or less for one of these amounts, the component is allowed to move beyond that edge completely, with no restrictions at all.</p>
<p>If you pass a very large number (i.e. larger that the dimensions of the component itself), then the component won't be allowed to overlap that edge at all. So e.g. setting minimumWhenOffTheLeft to 0xffffff will mean that the component will bump into the left side of the screen and go no further. </p>
</div>
</div>
<a id="a44c52db11cf8a141c9e8c562db59fad5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44c52db11cf8a141c9e8c562db59fad5">§ </a></span>getMinimumWhenOffTheTop()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int ComponentBoundsConstrainer::getMinimumWhenOffTheTop </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 minimum distance the bounds can be off-screen. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classComponentBoundsConstrainer.html#aff1abf331d36ac67df318f999beccc0a" title="Sets the amount by which the component is allowed to go off-screen. ">setMinimumOnscreenAmounts</a> </dd></dl>
</div>
</div>
<a id="a2115c6e6732ac8d22a681126feaa0692"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2115c6e6732ac8d22a681126feaa0692">§ </a></span>getMinimumWhenOffTheLeft()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int ComponentBoundsConstrainer::getMinimumWhenOffTheLeft </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 minimum distance the bounds can be off-screen. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classComponentBoundsConstrainer.html#aff1abf331d36ac67df318f999beccc0a" title="Sets the amount by which the component is allowed to go off-screen. ">setMinimumOnscreenAmounts</a> </dd></dl>
</div>
</div>
<a id="aadafebd97fcd42ae595973abcd164244"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aadafebd97fcd42ae595973abcd164244">§ </a></span>getMinimumWhenOffTheBottom()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int ComponentBoundsConstrainer::getMinimumWhenOffTheBottom </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 minimum distance the bounds can be off-screen. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classComponentBoundsConstrainer.html#aff1abf331d36ac67df318f999beccc0a" title="Sets the amount by which the component is allowed to go off-screen. ">setMinimumOnscreenAmounts</a> </dd></dl>
</div>
</div>
<a id="acc3d3e62dd2e533d86c38fb311287db0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc3d3e62dd2e533d86c38fb311287db0">§ </a></span>getMinimumWhenOffTheRight()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int ComponentBoundsConstrainer::getMinimumWhenOffTheRight </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 minimum distance the bounds can be off-screen. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classComponentBoundsConstrainer.html#aff1abf331d36ac67df318f999beccc0a" title="Sets the amount by which the component is allowed to go off-screen. ">setMinimumOnscreenAmounts</a> </dd></dl>
<p>References <a class="el" href="juce__PlatformDefs_8h.html#a851b02724a8158a7f746c66b5758b3dd">JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR</a>.</p>
</div>
</div>
<a id="ad2dc5063fde4f7eec915c29eb9a78d46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2dc5063fde4f7eec915c29eb9a78d46">§ </a></span>setFixedAspectRatio()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ComponentBoundsConstrainer::setFixedAspectRatio </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>widthOverHeight</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>Specifies a width-to-height ratio that the resizer should always maintain. </p>
<p>If the value is 0, no aspect ratio is enforced. If it's non-zero, the width will always be maintained as this multiple of the height.</p>
<dl class="section see"><dt>See also</dt><dd>setResizeLimits </dd></dl>
</div>
</div>
<a id="aef5a96ab24d00c21a5d350b2b242b8a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef5a96ab24d00c21a5d350b2b242b8a8">§ </a></span>getFixedAspectRatio()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">double ComponentBoundsConstrainer::getFixedAspectRatio </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 aspect ratio that was set with <a class="el" href="classComponentBoundsConstrainer.html#ad2dc5063fde4f7eec915c29eb9a78d46" title="Specifies a width-to-height ratio that the resizer should always maintain. ">setFixedAspectRatio()</a>. </p>
<p>If no aspect ratio is being enforced, this will return 0. </p>
</div>
</div>
<a id="ae5de4ca69f5f0a595ca51d9354a217ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5de4ca69f5f0a595ca51d9354a217ab">§ </a></span>checkBounds()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void ComponentBoundsConstrainer::checkBounds </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>< int > & </td>
<td class="paramname"><em>bounds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classRectangle.html">Rectangle</a>< int > & </td>
<td class="paramname"><em>previousBounds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classRectangle.html">Rectangle</a>< int > & </td>
<td class="paramname"><em>limits</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>isStretchingTop</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>isStretchingLeft</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>isStretchingBottom</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>isStretchingRight</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">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This callback changes the given coordinates to impose whatever the current constraints are set to be. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bounds</td><td>the target position that should be examined and adjusted </td></tr>
<tr><td class="paramname">previousBounds</td><td>the component's current size </td></tr>
<tr><td class="paramname">limits</td><td>the region in which the component can be positioned </td></tr>
<tr><td class="paramname">isStretchingTop</td><td>whether the top edge of the component is being resized </td></tr>
<tr><td class="paramname">isStretchingLeft</td><td>whether the left edge of the component is being resized </td></tr>
<tr><td class="paramname">isStretchingBottom</td><td>whether the bottom edge of the component is being resized </td></tr>
<tr><td class="paramname">isStretchingRight</td><td>whether the right edge of the component is being resized </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a93469c13206cd1f1a8662a4d031f6efc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93469c13206cd1f1a8662a4d031f6efc">§ </a></span>resizeStart()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void ComponentBoundsConstrainer::resizeStart </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This callback happens when the resizer is about to start dragging. </p>
</div>
</div>
<a id="a8e97270a714a8e9df0bbe1359388c599"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e97270a714a8e9df0bbe1359388c599">§ </a></span>resizeEnd()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void ComponentBoundsConstrainer::resizeEnd </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This callback happens when the resizer has finished dragging. </p>
</div>
</div>
<a id="afaf4fe2f6d2002463fce84ebdefc8db1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afaf4fe2f6d2002463fce84ebdefc8db1">§ </a></span>setBoundsForComponent()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ComponentBoundsConstrainer::setBoundsForComponent </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classComponent.html">Component</a> * </td>
<td class="paramname"><em>component</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classRectangle.html">Rectangle</a>< int > & </td>
<td class="paramname"><em>bounds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>isStretchingTop</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>isStretchingLeft</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>isStretchingBottom</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>isStretchingRight</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Checks the given bounds, and then sets the component to the corrected size. </p>
</div>
</div>
<a id="a1f799af496b1658715dd34381043841b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f799af496b1658715dd34381043841b">§ </a></span>checkComponentBounds()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ComponentBoundsConstrainer::checkComponentBounds </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classComponent.html">Component</a> * </td>
<td class="paramname"><em>component</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Performs a check on the current size of a component, and moves or resizes it if it fails the constraints. </p>
</div>
</div>
<a id="a064cdd9798ea6a06c774fc9c554a8214"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a064cdd9798ea6a06c774fc9c554a8214">§ </a></span>applyBoundsToComponent()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void ComponentBoundsConstrainer::applyBoundsToComponent </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classComponent.html">Component</a> * </td>
<td class="paramname"><em>component</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classRectangle.html">Rectangle</a>< int > & </td>
<td class="paramname"><em>bounds</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">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Called by <a class="el" href="classComponentBoundsConstrainer.html#afaf4fe2f6d2002463fce84ebdefc8db1" title="Checks the given bounds, and then sets the component to the corrected size. ">setBoundsForComponent()</a> to apply a new constrained size to a component. </p>
<p>By default this just calls setBounds(), but is virtual in case it's needed for extremely cunning purposes. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__ComponentBoundsConstrainer_8h.html">juce_ComponentBoundsConstrainer.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content © ROLI Ltd.</small></address><br/>
</body>
</html>
|