/usr/share/doc/libjuce/apiref/classJUCEApplicationBase.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 | <!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: JUCEApplicationBase 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="#pro-methods">Protected Member Functions</a> |
<a href="classJUCEApplicationBase-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">JUCEApplicationBase Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
</div><!--header-->
<div class="contents">
<p>Abstract base class for application classes.
<a href="classJUCEApplicationBase.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for JUCEApplicationBase:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center">
<img src="classJUCEApplicationBase.png" usemap="#JUCEApplicationBase_map" alt=""/>
<map id="JUCEApplicationBase_map" name="JUCEApplicationBase_map">
<area href="classJUCEApplication.html" title="An instance of this class is used to specify initialisation and shutdown code for the application..." alt="JUCEApplication" shape="rect" coords="0,56,135,80"/>
</map>
</div></div>
<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:a98ba445960e64ae6314626cd14659bd5"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#a98ba445960e64ae6314626cd14659bd5">~JUCEApplicationBase</a> ()</td></tr>
<tr class="memdesc:a98ba445960e64ae6314626cd14659bd5"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a98ba445960e64ae6314626cd14659bd5">More...</a><br /></td></tr>
<tr class="separator:a98ba445960e64ae6314626cd14659bd5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afa035ff6f164652542e7084f56f940fe"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classString.html">String</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#afa035ff6f164652542e7084f56f940fe">getApplicationName</a> ()=0</td></tr>
<tr class="memdesc:afa035ff6f164652542e7084f56f940fe"><td class="mdescLeft"> </td><td class="mdescRight">Returns the application's name. <a href="#afa035ff6f164652542e7084f56f940fe">More...</a><br /></td></tr>
<tr class="separator:afa035ff6f164652542e7084f56f940fe"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a364c4e6df0c1b21f38a95be61589978c"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classString.html">String</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#a364c4e6df0c1b21f38a95be61589978c">getApplicationVersion</a> ()=0</td></tr>
<tr class="memdesc:a364c4e6df0c1b21f38a95be61589978c"><td class="mdescLeft"> </td><td class="mdescRight">Returns the application's version number. <a href="#a364c4e6df0c1b21f38a95be61589978c">More...</a><br /></td></tr>
<tr class="separator:a364c4e6df0c1b21f38a95be61589978c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8b0b428b93e6972f3efae78bdda0fac6"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#a8b0b428b93e6972f3efae78bdda0fac6">moreThanOneInstanceAllowed</a> ()=0</td></tr>
<tr class="memdesc:a8b0b428b93e6972f3efae78bdda0fac6"><td class="mdescLeft"> </td><td class="mdescRight">Checks whether multiple instances of the app are allowed. <a href="#a8b0b428b93e6972f3efae78bdda0fac6">More...</a><br /></td></tr>
<tr class="separator:a8b0b428b93e6972f3efae78bdda0fac6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad584bed05116674a1e68f60a1ac546f5"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#ad584bed05116674a1e68f60a1ac546f5">initialise</a> (const <a class="el" href="classString.html">String</a> &commandLineParameters)=0</td></tr>
<tr class="memdesc:ad584bed05116674a1e68f60a1ac546f5"><td class="mdescLeft"> </td><td class="mdescRight">Called when the application starts. <a href="#ad584bed05116674a1e68f60a1ac546f5">More...</a><br /></td></tr>
<tr class="separator:ad584bed05116674a1e68f60a1ac546f5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a318021f86bf379caeb4cb27c32f0f229"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#a318021f86bf379caeb4cb27c32f0f229">shutdown</a> ()=0</td></tr>
<tr class="separator:a318021f86bf379caeb4cb27c32f0f229"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a77dc328a5400d0866b03a96684c0d9c4"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#a77dc328a5400d0866b03a96684c0d9c4">anotherInstanceStarted</a> (const <a class="el" href="classString.html">String</a> &commandLine)=0</td></tr>
<tr class="memdesc:a77dc328a5400d0866b03a96684c0d9c4"><td class="mdescLeft"> </td><td class="mdescRight">Indicates that the user has tried to start up another instance of the app. <a href="#a77dc328a5400d0866b03a96684c0d9c4">More...</a><br /></td></tr>
<tr class="separator:a77dc328a5400d0866b03a96684c0d9c4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa4ae0dcc3467f4927d8365b4814b1396"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#aa4ae0dcc3467f4927d8365b4814b1396">systemRequestedQuit</a> ()=0</td></tr>
<tr class="memdesc:aa4ae0dcc3467f4927d8365b4814b1396"><td class="mdescLeft"> </td><td class="mdescRight">Called when the operating system is trying to close the application. <a href="#aa4ae0dcc3467f4927d8365b4814b1396">More...</a><br /></td></tr>
<tr class="separator:aa4ae0dcc3467f4927d8365b4814b1396"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac641cfe5fd77b0f7ffb7b21e0d30f114"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#ac641cfe5fd77b0f7ffb7b21e0d30f114">suspended</a> ()=0</td></tr>
<tr class="memdesc:ac641cfe5fd77b0f7ffb7b21e0d30f114"><td class="mdescLeft"> </td><td class="mdescRight">This method is called when the application is being put into background mode by the operating system. <a href="#ac641cfe5fd77b0f7ffb7b21e0d30f114">More...</a><br /></td></tr>
<tr class="separator:ac641cfe5fd77b0f7ffb7b21e0d30f114"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3d6b5a8c46caa068a61fa775df38d014"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#a3d6b5a8c46caa068a61fa775df38d014">resumed</a> ()=0</td></tr>
<tr class="memdesc:a3d6b5a8c46caa068a61fa775df38d014"><td class="mdescLeft"> </td><td class="mdescRight">This method is called when the application is being woken from background mode by the operating system. <a href="#a3d6b5a8c46caa068a61fa775df38d014">More...</a><br /></td></tr>
<tr class="separator:a3d6b5a8c46caa068a61fa775df38d014"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adb182f77016ee90f8d5443abcb0bb3f0"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#adb182f77016ee90f8d5443abcb0bb3f0">unhandledException</a> (const std::exception *, const <a class="el" href="classString.html">String</a> &sourceFilename, int lineNumber)=0</td></tr>
<tr class="memdesc:adb182f77016ee90f8d5443abcb0bb3f0"><td class="mdescLeft"> </td><td class="mdescRight">If any unhandled exceptions make it through to the message dispatch loop, this callback will be triggered, in case you want to log them or do some other type of error-handling. <a href="#adb182f77016ee90f8d5443abcb0bb3f0">More...</a><br /></td></tr>
<tr class="separator:adb182f77016ee90f8d5443abcb0bb3f0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa8eff5c3954a4a4f09153cc10165a588"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#aa8eff5c3954a4a4f09153cc10165a588">setApplicationReturnValue</a> (int newReturnValue) noexcept</td></tr>
<tr class="memdesc:aa8eff5c3954a4a4f09153cc10165a588"><td class="mdescLeft"> </td><td class="mdescRight">Sets the value that should be returned as the application's exit code when the app quits. <a href="#aa8eff5c3954a4a4f09153cc10165a588">More...</a><br /></td></tr>
<tr class="separator:aa8eff5c3954a4a4f09153cc10165a588"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7f483c8b97ddec5a4dcdf7ae7b4b0088"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#a7f483c8b97ddec5a4dcdf7ae7b4b0088">getApplicationReturnValue</a> () const noexcept</td></tr>
<tr class="memdesc:a7f483c8b97ddec5a4dcdf7ae7b4b0088"><td class="mdescLeft"> </td><td class="mdescRight">Returns the value that has been set as the application's exit code. <a href="#a7f483c8b97ddec5a4dcdf7ae7b4b0088">More...</a><br /></td></tr>
<tr class="separator:a7f483c8b97ddec5a4dcdf7ae7b4b0088"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a50aeb95b30fa9f4859777ca5474dce09"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#a50aeb95b30fa9f4859777ca5474dce09">isInitialising</a> () const noexcept</td></tr>
<tr class="memdesc:a50aeb95b30fa9f4859777ca5474dce09"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the application hasn't yet completed its <a class="el" href="classJUCEApplicationBase.html#ad584bed05116674a1e68f60a1ac546f5" title="Called when the application starts. ">initialise()</a> method and entered the main event loop. <a href="#a50aeb95b30fa9f4859777ca5474dce09">More...</a><br /></td></tr>
<tr class="separator:a50aeb95b30fa9f4859777ca5474dce09"><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:a7beddd11441f0657d771d897ca864005"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classJUCEApplicationBase.html">JUCEApplicationBase</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#a7beddd11441f0657d771d897ca864005">getInstance</a> () noexcept</td></tr>
<tr class="memdesc:a7beddd11441f0657d771d897ca864005"><td class="mdescLeft"> </td><td class="mdescRight">Returns the global instance of the application object that's running. <a href="#a7beddd11441f0657d771d897ca864005">More...</a><br /></td></tr>
<tr class="separator:a7beddd11441f0657d771d897ca864005"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a542e212605f0aa693f687d8798998615"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#a542e212605f0aa693f687d8798998615">quit</a> ()</td></tr>
<tr class="memdesc:a542e212605f0aa693f687d8798998615"><td class="mdescLeft"> </td><td class="mdescRight">Signals that the main message loop should stop and the application should terminate. <a href="#a542e212605f0aa693f687d8798998615">More...</a><br /></td></tr>
<tr class="separator:a542e212605f0aa693f687d8798998615"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a61eedb3499aba883c3e4822a6c2c8973"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classStringArray.html">StringArray</a> <a class="el" href="juce__PlatformDefs_8h.html#af0b3f78ca801d88a7912f4c6bbf50e58">JUCE_CALLTYPE</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#a61eedb3499aba883c3e4822a6c2c8973">getCommandLineParameterArray</a> ()</td></tr>
<tr class="memdesc:a61eedb3499aba883c3e4822a6c2c8973"><td class="mdescLeft"> </td><td class="mdescRight">Returns the application's command line parameters as a set of strings. <a href="#a61eedb3499aba883c3e4822a6c2c8973">More...</a><br /></td></tr>
<tr class="separator:a61eedb3499aba883c3e4822a6c2c8973"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adee64be174cace396ba05ce3bbb6a280"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classString.html">String</a> <a class="el" href="juce__PlatformDefs_8h.html#af0b3f78ca801d88a7912f4c6bbf50e58">JUCE_CALLTYPE</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#adee64be174cace396ba05ce3bbb6a280">getCommandLineParameters</a> ()</td></tr>
<tr class="memdesc:adee64be174cace396ba05ce3bbb6a280"><td class="mdescLeft"> </td><td class="mdescRight">Returns the application's command line parameters as a single string. <a href="#adee64be174cace396ba05ce3bbb6a280">More...</a><br /></td></tr>
<tr class="separator:adee64be174cace396ba05ce3bbb6a280"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab37b7899d09c4bd2b6f38a3ae13dcb33"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#ab37b7899d09c4bd2b6f38a3ae13dcb33">isStandaloneApp</a> () noexcept</td></tr>
<tr class="memdesc:ab37b7899d09c4bd2b6f38a3ae13dcb33"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if this executable is running as an app (as opposed to being a plugin or other kind of shared library. <a href="#ab37b7899d09c4bd2b6f38a3ae13dcb33">More...</a><br /></td></tr>
<tr class="separator:ab37b7899d09c4bd2b6f38a3ae13dcb33"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a3b64c47474ca9bf96c4ad7c0ee8cb3f5"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classJUCEApplicationBase.html#a3b64c47474ca9bf96c4ad7c0ee8cb3f5">JUCEApplicationBase</a> ()</td></tr>
<tr class="separator:a3b64c47474ca9bf96c4ad7c0ee8cb3f5"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Abstract base class for application classes. </p>
<p>Note that in the juce_gui_basics module, there's a utility class <a class="el" href="classJUCEApplication.html" title="An instance of this class is used to specify initialisation and shutdown code for the application...">JUCEApplication</a> which derives from <a class="el" href="classJUCEApplicationBase.html" title="Abstract base class for application classes. ">JUCEApplicationBase</a>, and takes care of a few chores. Most of the time you'll want to derive your class from <a class="el" href="classJUCEApplication.html" title="An instance of this class is used to specify initialisation and shutdown code for the application...">JUCEApplication</a> rather than using <a class="el" href="classJUCEApplicationBase.html" title="Abstract base class for application classes. ">JUCEApplicationBase</a> directly, but if you're not using the juce_gui_basics module then you might need to go straight to this base class.</p>
<p>Any application that wants to run an event loop must declare a subclass of <a class="el" href="classJUCEApplicationBase.html" title="Abstract base class for application classes. ">JUCEApplicationBase</a>, and implement its various pure virtual methods.</p>
<p>It then needs to use the START_JUCE_APPLICATION macro somewhere in a CPP file to declare an instance of this class and generate suitable platform-specific boilerplate code to launch the app.</p>
<p>e.g.</p><div class="fragment"><div class="line"><span class="keyword">class </span>MyJUCEApp : <span class="keyword">public</span> <a class="code" href="classJUCEApplication.html">JUCEApplication</a></div><div class="line">{</div><div class="line"><span class="keyword">public</span>:</div><div class="line"> MyJUCEApp() {}</div><div class="line"> ~MyJUCEApp() {}</div><div class="line"></div><div class="line"> <span class="keywordtype">void</span> <a class="code" href="classJUCEApplicationBase.html#ad584bed05116674a1e68f60a1ac546f5">initialise</a> (<span class="keyword">const</span> <a class="code" href="classString.html">String</a>& commandLine)<span class="keyword"> override</span></div><div class="line"><span class="keyword"> </span>{</div><div class="line"> myMainWindow = <span class="keyword">new</span> MyApplicationWindow();</div><div class="line"> myMainWindow->setBounds (100, 100, 400, 500);</div><div class="line"> myMainWindow->setVisible (<span class="keyword">true</span>);</div><div class="line"> }</div><div class="line"></div><div class="line"> <span class="keywordtype">void</span> <a class="code" href="classJUCEApplicationBase.html#a318021f86bf379caeb4cb27c32f0f229">shutdown</a>()<span class="keyword"> override</span></div><div class="line"><span class="keyword"> </span>{</div><div class="line"> myMainWindow = <span class="keyword">nullptr</span>;</div><div class="line"> }</div><div class="line"></div><div class="line"> <span class="keyword">const</span> <a class="code" href="classString.html">String</a> <a class="code" href="classJUCEApplicationBase.html#afa035ff6f164652542e7084f56f940fe">getApplicationName</a>()<span class="keyword"> override</span></div><div class="line"><span class="keyword"> </span>{</div><div class="line"> <span class="keywordflow">return</span> <span class="stringliteral">"Super JUCE-o-matic"</span>;</div><div class="line"> }</div><div class="line"></div><div class="line"> <span class="keyword">const</span> <a class="code" href="classString.html">String</a> <a class="code" href="classJUCEApplicationBase.html#a364c4e6df0c1b21f38a95be61589978c">getApplicationVersion</a>()<span class="keyword"> override</span></div><div class="line"><span class="keyword"> </span>{</div><div class="line"> <span class="keywordflow">return</span> <span class="stringliteral">"1.0"</span>;</div><div class="line"> }</div><div class="line"></div><div class="line"><span class="keyword">private</span>:</div><div class="line"> <a class="code" href="classScopedPointer.html">ScopedPointer<MyApplicationWindow></a> myMainWindow;</div><div class="line">};</div><div class="line"></div><div class="line"><span class="comment">// this generates boilerplate code to launch our app class:</span></div><div class="line"><a class="code" href="juce__Initialisation_8h.html#a10c79cf9cafd40244a741e5945878e79">START_JUCE_APPLICATION</a> (MyJUCEApp)</div></div><!-- fragment --><dl class="section see"><dt>See also</dt><dd><a class="el" href="classJUCEApplication.html" title="An instance of this class is used to specify initialisation and shutdown code for the application...">JUCEApplication</a>, <a class="el" href="juce__Initialisation_8h.html#a10c79cf9cafd40244a741e5945878e79" title="To start a JUCE app, use this macro: START_JUCE_APPLICATION (AppSubClass) where AppSubClass is the na...">START_JUCE_APPLICATION</a> </dd></dl>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="a3b64c47474ca9bf96c4ad7c0ee8cb3f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b64c47474ca9bf96c4ad7c0ee8cb3f5">§ </a></span>JUCEApplicationBase()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">JUCEApplicationBase::JUCEApplicationBase </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a98ba445960e64ae6314626cd14659bd5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98ba445960e64ae6314626cd14659bd5">§ </a></span>~JUCEApplicationBase()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual JUCEApplicationBase::~JUCEApplicationBase </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="a7beddd11441f0657d771d897ca864005"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7beddd11441f0657d771d897ca864005">§ </a></span>getInstance()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classJUCEApplicationBase.html">JUCEApplicationBase</a>* JUCEApplicationBase::getInstance </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the global instance of the application object that's running. </p>
<p>References <a class="el" href="juce__PlatformDefs_8h.html#af0b3f78ca801d88a7912f4c6bbf50e58">JUCE_CALLTYPE</a>, and <a class="el" href="namespaceStandardApplicationCommandIDs.html#ad348cc9beaaea88093769e2da468320aa0e06bba45d6039ddc74f0b437d982fba">StandardApplicationCommandIDs::quit</a>.</p>
</div>
</div>
<a id="afa035ff6f164652542e7084f56f940fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa035ff6f164652542e7084f56f940fe">§ </a></span>getApplicationName()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual const <a class="el" href="classString.html">String</a> JUCEApplicationBase::getApplicationName </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the application's name. </p>
<p>Implemented in <a class="el" href="classJUCEApplication.html#a6d0ce92edbfcc864e69faeed9bde92bd">JUCEApplication</a>.</p>
</div>
</div>
<a id="a364c4e6df0c1b21f38a95be61589978c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a364c4e6df0c1b21f38a95be61589978c">§ </a></span>getApplicationVersion()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual const <a class="el" href="classString.html">String</a> JUCEApplicationBase::getApplicationVersion </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the application's version number. </p>
<p>Implemented in <a class="el" href="classJUCEApplication.html#a4d429c838740667370e1439bc0905471">JUCEApplication</a>.</p>
</div>
</div>
<a id="a8b0b428b93e6972f3efae78bdda0fac6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b0b428b93e6972f3efae78bdda0fac6">§ </a></span>moreThanOneInstanceAllowed()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool JUCEApplicationBase::moreThanOneInstanceAllowed </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Checks whether multiple instances of the app are allowed. </p>
<p>If you application class returns true for this, more than one instance is permitted to run (except on the Mac where this isn't possible).</p>
<p>If it's false, the second instance won't start, but it you will still get a callback to <a class="el" href="classJUCEApplicationBase.html#a77dc328a5400d0866b03a96684c0d9c4" title="Indicates that the user has tried to start up another instance of the app. ">anotherInstanceStarted()</a> to tell you about this - which gives you a chance to react to what the user was trying to do. </p>
<p>Implemented in <a class="el" href="classJUCEApplication.html#ae7f9d8176003e18a1b6f4c30a63fdbf6">JUCEApplication</a>.</p>
</div>
</div>
<a id="ad584bed05116674a1e68f60a1ac546f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad584bed05116674a1e68f60a1ac546f5">§ </a></span>initialise()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void JUCEApplicationBase::initialise </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classString.html">String</a> & </td>
<td class="paramname"><em>commandLineParameters</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Called when the application starts. </p>
<p>This will be called once to let the application do whatever initialisation it needs, create its windows, etc.</p>
<p>After the method returns, the normal event-dispatch loop will be run, until the <a class="el" href="classJUCEApplicationBase.html#a542e212605f0aa693f687d8798998615" title="Signals that the main message loop should stop and the application should terminate. ">quit()</a> method is called, at which point the <a class="el" href="classJUCEApplicationBase.html#a318021f86bf379caeb4cb27c32f0f229">shutdown()</a> method will be called to let the application clear up anything it needs to delete.</p>
<p>If during the <a class="el" href="classJUCEApplicationBase.html#ad584bed05116674a1e68f60a1ac546f5" title="Called when the application starts. ">initialise()</a> method, the application decides not to start-up after all, it can just call the <a class="el" href="classJUCEApplicationBase.html#a542e212605f0aa693f687d8798998615" title="Signals that the main message loop should stop and the application should terminate. ">quit()</a> method and the event loop won't be run.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">commandLineParameters</td><td>the line passed in does not include the name of the executable, just the parameter list. To get the parameters as an array, you can call <a class="el" href="classJUCEApplicationBase.html#adee64be174cace396ba05ce3bbb6a280" title="Returns the application's command line parameters as a single string. ">JUCEApplication::getCommandLineParameters()</a> </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classJUCEApplicationBase.html#a318021f86bf379caeb4cb27c32f0f229">shutdown</a>, <a class="el" href="classJUCEApplicationBase.html#a542e212605f0aa693f687d8798998615" title="Signals that the main message loop should stop and the application should terminate. ">quit</a> </dd></dl>
</div>
</div>
<a id="a318021f86bf379caeb4cb27c32f0f229"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a318021f86bf379caeb4cb27c32f0f229">§ </a></span>shutdown()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void JUCEApplicationBase::shutdown </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a77dc328a5400d0866b03a96684c0d9c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77dc328a5400d0866b03a96684c0d9c4">§ </a></span>anotherInstanceStarted()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void JUCEApplicationBase::anotherInstanceStarted </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classString.html">String</a> & </td>
<td class="paramname"><em>commandLine</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Indicates that the user has tried to start up another instance of the app. </p>
<p>This will get called even if <a class="el" href="classJUCEApplicationBase.html#a8b0b428b93e6972f3efae78bdda0fac6" title="Checks whether multiple instances of the app are allowed. ">moreThanOneInstanceAllowed()</a> is false. </p>
<p>Implemented in <a class="el" href="classJUCEApplication.html#adf79c71599bd3848e3d676ed4d95424e">JUCEApplication</a>.</p>
</div>
</div>
<a id="aa4ae0dcc3467f4927d8365b4814b1396"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4ae0dcc3467f4927d8365b4814b1396">§ </a></span>systemRequestedQuit()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void JUCEApplicationBase::systemRequestedQuit </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Called when the operating system is trying to close the application. </p>
<p>The default implementation of this method is to call <a class="el" href="classJUCEApplicationBase.html#a542e212605f0aa693f687d8798998615" title="Signals that the main message loop should stop and the application should terminate. ">quit()</a>, but it may be overloaded to ignore the request or do some other special behaviour instead. For example, you might want to offer the user the chance to save their changes before quitting, and give them the chance to cancel.</p>
<p>If you want to send a quit signal to your app, this is the correct method to call, because it means that requests that come from the system get handled in the same way as those from your own application code. So e.g. you'd call this method from a "quit" item on a menu bar. </p>
<p>Implemented in <a class="el" href="classJUCEApplication.html#a8e9b08200268216a791326635ec9321c">JUCEApplication</a>.</p>
</div>
</div>
<a id="ac641cfe5fd77b0f7ffb7b21e0d30f114"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac641cfe5fd77b0f7ffb7b21e0d30f114">§ </a></span>suspended()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void JUCEApplicationBase::suspended </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This method is called when the application is being put into background mode by the operating system. </p>
<p>Implemented in <a class="el" href="classJUCEApplication.html#a6cadf3017be03ed3141f1b166599cb35">JUCEApplication</a>.</p>
</div>
</div>
<a id="a3d6b5a8c46caa068a61fa775df38d014"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d6b5a8c46caa068a61fa775df38d014">§ </a></span>resumed()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void JUCEApplicationBase::resumed </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This method is called when the application is being woken from background mode by the operating system. </p>
<p>Implemented in <a class="el" href="classJUCEApplication.html#a292fcde28c3270c5d3afa84dba14feab">JUCEApplication</a>.</p>
</div>
</div>
<a id="adb182f77016ee90f8d5443abcb0bb3f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb182f77016ee90f8d5443abcb0bb3f0">§ </a></span>unhandledException()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void JUCEApplicationBase::unhandledException </td>
<td>(</td>
<td class="paramtype">const std::exception * </td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classString.html">String</a> & </td>
<td class="paramname"><em>sourceFilename</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>lineNumber</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">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>If any unhandled exceptions make it through to the message dispatch loop, this callback will be triggered, in case you want to log them or do some other type of error-handling. </p>
<p>If the type of exception is derived from the std::exception class, the pointer passed-in will be valid. If the exception is of unknown type, this pointer will be null. </p>
<p>Implemented in <a class="el" href="classJUCEApplication.html#af7939b3650dbba8e9abcaa9600f107d6">JUCEApplication</a>.</p>
</div>
</div>
<a id="a542e212605f0aa693f687d8798998615"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a542e212605f0aa693f687d8798998615">§ </a></span>quit()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void JUCEApplicationBase::quit </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Signals that the main message loop should stop and the application should terminate. </p>
<p>This isn't synchronous, it just posts a quit message to the main queue, and when this message arrives, the message loop will stop, the <a class="el" href="classJUCEApplicationBase.html#a318021f86bf379caeb4cb27c32f0f229">shutdown()</a> method will be called, and the app will exit.</p>
<p>Note that this will cause an unconditional quit to happen, so if you need an extra level before this, e.g. to give the user the chance to save their work and maybe cancel the quit, you'll need to handle this in the <a class="el" href="classJUCEApplicationBase.html#aa4ae0dcc3467f4927d8365b4814b1396" title="Called when the operating system is trying to close the application. ">systemRequestedQuit()</a> method - see that method's help for more info.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMessageManager.html" title="This class is in charge of the application's event-dispatch loop. ">MessageManager</a> </dd></dl>
<p>Referenced by <a class="el" href="classStandaloneFilterWindow.html#a0ecb7e5d6264a99e213987021ae863a9">StandaloneFilterWindow::closeButtonPressed()</a>.</p>
</div>
</div>
<a id="a61eedb3499aba883c3e4822a6c2c8973"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61eedb3499aba883c3e4822a6c2c8973">§ </a></span>getCommandLineParameterArray()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classStringArray.html">StringArray</a> <a class="el" href="juce__PlatformDefs_8h.html#af0b3f78ca801d88a7912f4c6bbf50e58">JUCE_CALLTYPE</a> JUCEApplicationBase::getCommandLineParameterArray </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the application's command line parameters as a set of strings. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classJUCEApplicationBase.html#adee64be174cace396ba05ce3bbb6a280" title="Returns the application's command line parameters as a single string. ">getCommandLineParameters</a> </dd></dl>
</div>
</div>
<a id="adee64be174cace396ba05ce3bbb6a280"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adee64be174cace396ba05ce3bbb6a280">§ </a></span>getCommandLineParameters()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classString.html">String</a> <a class="el" href="juce__PlatformDefs_8h.html#af0b3f78ca801d88a7912f4c6bbf50e58">JUCE_CALLTYPE</a> JUCEApplicationBase::getCommandLineParameters </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the application's command line parameters as a single string. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classJUCEApplicationBase.html#a61eedb3499aba883c3e4822a6c2c8973" title="Returns the application's command line parameters as a set of strings. ">getCommandLineParameterArray</a> </dd></dl>
</div>
</div>
<a id="aa8eff5c3954a4a4f09153cc10165a588"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8eff5c3954a4a4f09153cc10165a588">§ </a></span>setApplicationReturnValue()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void JUCEApplicationBase::setApplicationReturnValue </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>newReturnValue</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the value that should be returned as the application's exit code when the app quits. </p>
<p>This is the value that's returned by the main() function. Normally you'd leave this as 0 unless you want to indicate an error code.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classJUCEApplicationBase.html#a7f483c8b97ddec5a4dcdf7ae7b4b0088" title="Returns the value that has been set as the application's exit code. ">getApplicationReturnValue</a> </dd></dl>
</div>
</div>
<a id="a7f483c8b97ddec5a4dcdf7ae7b4b0088"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f483c8b97ddec5a4dcdf7ae7b4b0088">§ </a></span>getApplicationReturnValue()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int JUCEApplicationBase::getApplicationReturnValue </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 value that has been set as the application's exit code. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classJUCEApplicationBase.html#aa8eff5c3954a4a4f09153cc10165a588" title="Sets the value that should be returned as the application's exit code when the app quits...">setApplicationReturnValue</a> </dd></dl>
</div>
</div>
<a id="ab37b7899d09c4bd2b6f38a3ae13dcb33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab37b7899d09c4bd2b6f38a3ae13dcb33">§ </a></span>isStandaloneApp()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static bool JUCEApplicationBase::isStandaloneApp </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 true if this executable is running as an app (as opposed to being a plugin or other kind of shared library. </p>
</div>
</div>
<a id="a50aeb95b30fa9f4859777ca5474dce09"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50aeb95b30fa9f4859777ca5474dce09">§ </a></span>isInitialising()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool JUCEApplicationBase::isInitialising </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 application hasn't yet completed its <a class="el" href="classJUCEApplicationBase.html#ad584bed05116674a1e68f60a1ac546f5" title="Called when the application starts. ">initialise()</a> method and entered the main event loop. </p>
<p>This is handy for things like splash screens to know when the app's up-and-running properly. </p>
<p>References <a class="el" href="juce__PlatformDefs_8h.html#af0b3f78ca801d88a7912f4c6bbf50e58">JUCE_CALLTYPE</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__ApplicationBase_8h.html">juce_ApplicationBase.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content © ROLI Ltd.</small></address><br/>
</body>
</html>
|