1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Castle Game Engine: CastleControl: Class TCastleControlCustom</title>
<meta name="generator" content="PasDoc 0.13.0">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body>
<table class="container"><tr><td class="navigation">
<h2>Castle Game Engine</h2><p><a href="introduction.html" class="navigation">Introduction</a></p><p><a href="AllUnits.html" class="navigation">Units</a></p><p><a href="ClassHierarchy.html" class="navigation">Class Hierarchy</a></p><p><a href="AllClasses.html" class="navigation">Classes, Interfaces, Objects and Records</a></p><p><a href="AllTypes.html" class="navigation">Types</a></p><p><a href="AllVariables.html" class="navigation">Variables</a></p><p><a href="AllConstants.html" class="navigation">Constants</a></p><p><a href="AllFunctions.html" class="navigation">Functions and Procedures</a></p><p><a href="AllIdentifiers.html" class="navigation">Identifiers</a></p></td><td class="content">
<a name="TCastleControlCustom"></a><h1 class="cio">Class TCastleControlCustom</h1>
<table class="sections wide_list">
<tr>
<td><a class="section" href="#PasDoc-Description">Description</a></td><td><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></td><td>Fields</td><td><a class="section" href="#PasDoc-Methods">Methods</a></td><td><a class="section" href="#PasDoc-Properties">Properties</a></td></tr></table>
<a name="PasDoc-Description"></a><h2 class="unit">Unit</h2>
<p class="unitlink">
<a href="CastleControl.html">CastleControl</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type TCastleControlCustom = class(TCustomOpenGLControl)</code></p>
<h2 class="description">Description</h2>
<p>
OpenGL control, with extensions for "Castle Game Engine", including <a class="normal" href="CastleControl.TCastleControlCustom.html#Controls">Controls</a> list for <a class="normal" href="CastleUIControls.TUIControl.html">TUIControl</a> instances. Use a descendant <a class="normal" href="CastleControl.TCastleControl.html">TCastleControl</a> to have a ready <a class="normal" href="CastleControl.TCastleControl.html#SceneManager">TCastleControl.SceneManager</a> for 3D world.
<p>This extends TOpenGLControl, adding various features:
<p></p>
<ul class="paragraph_spacing">
<li><p><a class="normal" href="CastleControl.TCastleControlCustom.html#Controls">Controls</a> list where you can easily add <a class="normal" href="CastleUIControls.TUIControl.html">TUIControl</a> instances (like <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html">TCastleOnScreenMenu</a>, <a class="normal" href="CastleControls.TCastleButton.html">TCastleButton</a> and more). We will pass events to these controls, draw them etc.</p></li>
<li><p>Continously called <a class="normal" href="CastleControl.TCastleControlCustom.html#DoUpdate">DoUpdate</a> method, that allows to handle TUIControl.Update. This is something different than LCL "idle" event, as it's guaranteed to be run continously, even when your application is clogged with events (like when using <a class="normal" href="CastleCameras.TWalkCamera.html#MouseLook">TWalkCamera.MouseLook</a>).</p></li>
<li><p>Automatically calls <a class="normal" href="CastleGLUtils.html#GLInformationInitialize">GLInformationInitialize</a> when OpenGL context is initialized. This will initialize <a class="normal" href="CastleGLVersion.html#GLVersion">GLVersion</a>, <a class="normal" href="CastleGLVersion.html#GLUVersion">GLUVersion</a>, <a class="normal" href="CastleGLUtils.html#GLFeatures">GLFeatures</a>.</p></li>
<li><p>FPS (frames per second) counter inside <a class="normal" href="CastleControl.TCastleControlCustom.html#Fps">Fps</a>.</p></li>
<li><p>Tracks pressed keys <a class="normal" href="CastleControl.TCastleControlCustom.html#Pressed">Pressed</a> and mouse buttons <a class="normal" href="CastleControl.TCastleControlCustom.html#MousePressed">MousePressed</a> and mouse position <a class="normal" href="CastleControl.TCastleControlCustom.html#MousePosition">MousePosition</a>.</p></li>
</ul>
<p></p>
<a name="PasDoc-Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TCustomOpenGLControl</li>
<li class="thisitem">TCastleControlCustom</li></ul><h2 class="overview">Overview</h2>
<a name="PasDoc-Methods"></a><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleControl.TCastleControlCustom.html#DestroyHandle">DestroyHandle</a></b>; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleControl.TCastleControlCustom.html#DoExit">DoExit</a></b>; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleControl.TCastleControlCustom.html#Resize">Resize</a></b>; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleControl.TCastleControlCustom.html#KeyDown">KeyDown</a></b>(var Key: Word; Shift: TShiftState); override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleControl.TCastleControlCustom.html#KeyUp">KeyUp</a></b>(var Key: Word; Shift: TShiftState); override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleControl.TCastleControlCustom.html#MouseDown">MouseDown</a></b>(Button: Controls.TMouseButton; Shift:TShiftState; X,Y:Integer); override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleControl.TCastleControlCustom.html#MouseUp">MouseUp</a></b>(Button: Controls.TMouseButton; Shift:TShiftState; X,Y:Integer); override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleControl.TCastleControlCustom.html#MouseMove">MouseMove</a></b>(Shift: TShiftState; NewX, NewY: Integer); override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <b><a href="CastleControl.TCastleControlCustom.html#DoMouseWheel">DoMouseWheel</a></b>(Shift: TShiftState; WheelDelta: Integer; MousePos: TPoint): Boolean; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleControl.TCastleControlCustom.html#DoUpdate">DoUpdate</a></b>; virtual;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>constructor <b><a href="CastleControl.TCastleControlCustom.html#Create">Create</a></b>(AOwner: TComponent); override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>destructor <b><a href="CastleControl.TCastleControlCustom.html#Destroy">Destroy</a></b>; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a href="CastleControl.TCastleControlCustom.html#Controls">Controls</a></b>: <a href="CastleUIControls.TUIControlList.html">TUIControlList</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a href="CastleControl.TCastleControlCustom.html#MakeCurrent">MakeCurrent</a></b>(SaveOldToStack: boolean = false): boolean; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleControl.TCastleControlCustom.html#Invalidate">Invalidate</a></b>; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleControl.TCastleControlCustom.html#Paint">Paint</a></b>; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleControl.TCastleControlCustom.html#ReleaseAllKeysAndMouse">ReleaseAllKeysAndMouse</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a href="CastleControl.TCastleControlCustom.html#SaveScreenBuffer">SaveScreenBuffer</a></b>: <a href="CastleGLImages.html#TColorBuffer">TColorBuffer</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a href="CastleControl.TCastleControlCustom.html#SaveScreen">SaveScreen</a></b>: <a href="CastleImages.TRGBImage.html">TRGBImage</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a href="CastleControl.TCastleControlCustom.html#Rect">Rect</a></b>: <a href="CastleRectangles.TRectangle.html">TRectangle</a>;</code></td>
</tr>
</table>
<a name="PasDoc-Properties"></a><h3 class="summary">Properties</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#GLInitialized">GLInitialized</a></b>: boolean read FGLInitialized;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#Pressed">Pressed</a></b>: <a href="CastleKeysMouse.TKeysPressed.html">TKeysPressed</a> read FPressed;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#MousePressed">MousePressed</a></b>: <a href="CastleKeysMouse.html#TMouseButtons">CastleKeysMouse.TMouseButtons</a> read FMousePressed;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#MousePosition">MousePosition</a></b>: <a href="CastleVectors.html#TVector2Single">TVector2Single</a> read FMousePosition write SetMousePosition;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#Fps">Fps</a></b>: <a href="CastleTimeUtils.TFramesPerSecond.html">TFramesPerSecond</a> read FFps;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#Align">Align</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#Anchors">Anchors</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#AutoResizeViewport">AutoResizeViewport</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#BorderSpacing">BorderSpacing</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#Enabled">Enabled</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OpenGLMajorVersion">OpenGLMajorVersion</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OpenGLMinorVersion">OpenGLMinorVersion</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#MultiSampling">MultiSampling</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#AlphaBits">AlphaBits</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#DepthBits">DepthBits</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#StencilBits">StencilBits</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#AUXBuffers">AUXBuffers</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnChangeBounds">OnChangeBounds</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnConstrainedResize">OnConstrainedResize</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnDblClick">OnDblClick</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnDragDrop">OnDragDrop</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnDragOver">OnDragOver</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnEnter">OnEnter</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnExit">OnExit</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnMakeCurrent">OnMakeCurrent</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnClick">OnClick</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnKeyDown">OnKeyDown</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnKeyPress">OnKeyPress</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnKeyUp">OnKeyUp</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnMouseDown">OnMouseDown</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnMouseMove">OnMouseMove</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnMouseUp">OnMouseUp</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnMouseWheel">OnMouseWheel</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnMouseWheelDown">OnMouseWheelDown</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnMouseWheelUp">OnMouseWheelUp</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnMouseEnter">OnMouseEnter</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnMouseLeave">OnMouseLeave</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnPaint">OnPaint</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnShowHint">OnShowHint</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#PopupMenu">PopupMenu</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#ShowHint">ShowHint</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#Visible">Visible</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnOpen">OnOpen</a></b>: TNotifyEvent read FOnOpen write FOnOpen ;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnClose">OnClose</a></b>: TNotifyEvent read FOnClose write FOnClose ;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnBeforeRender">OnBeforeRender</a></b>: TNotifyEvent read FOnBeforeRender write FOnBeforeRender;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnRender">OnRender</a></b>: TNotifyEvent read FOnRender write FOnRender ;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnResize">OnResize</a></b>: TNotifyEvent read FOnResize write FOnResize ;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnPress">OnPress</a></b>: <a href="CastleControl.html#TControlInputPressReleaseEvent">TControlInputPressReleaseEvent</a> read FOnPress write FOnPress ;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnRelease">OnRelease</a></b>: <a href="CastleControl.html#TControlInputPressReleaseEvent">TControlInputPressReleaseEvent</a> read FOnRelease write FOnRelease ;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnMotion">OnMotion</a></b>: <a href="CastleControl.html#TControlInputMotionEvent">TControlInputMotionEvent</a> read FOnMotion write FOnMotion ;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#OnUpdate">OnUpdate</a></b>: TNotifyEvent read FOnUpdate write FOnUpdate ;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#TabOrder">TabOrder</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#TabStop">TabStop</a></b> default true;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleControl.TCastleControlCustom.html#Container">Container</a></b>: TContainer read FContainer;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="DestroyHandle"></a><code>procedure <b>DestroyHandle</b>; override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="DoExit"></a><code>procedure <b>DoExit</b>; override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="Resize"></a><code>procedure <b>Resize</b>; override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="KeyDown"></a><code>procedure <b>KeyDown</b>(var Key: Word; Shift: TShiftState); override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="KeyUp"></a><code>procedure <b>KeyUp</b>(var Key: Word; Shift: TShiftState); override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="MouseDown"></a><code>procedure <b>MouseDown</b>(Button: Controls.TMouseButton; Shift:TShiftState; X,Y:Integer); override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="MouseUp"></a><code>procedure <b>MouseUp</b>(Button: Controls.TMouseButton; Shift:TShiftState; X,Y:Integer); override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="MouseMove"></a><code>procedure <b>MouseMove</b>(Shift: TShiftState; NewX, NewY: Integer); override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="DoMouseWheel"></a><code>function <b>DoMouseWheel</b>(Shift: TShiftState; WheelDelta: Integer; MousePos: TPoint): Boolean; override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="DoUpdate"></a><code>procedure <b>DoUpdate</b>; virtual;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(AOwner: TComponent); override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Destroy"></a><code>destructor <b>Destroy</b>; override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Controls"></a><code>function <b>Controls</b>: <a href="CastleUIControls.TUIControlList.html">TUIControlList</a>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="MakeCurrent"></a><code>function <b>MakeCurrent</b>(SaveOldToStack: boolean = false): boolean; override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Invalidate"></a><code>procedure <b>Invalidate</b>; override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Paint"></a><code>procedure <b>Paint</b>; override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ReleaseAllKeysAndMouse"></a><code>procedure <b>ReleaseAllKeysAndMouse</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="SaveScreenBuffer"></a><code>function <b>SaveScreenBuffer</b>: <a href="CastleGLImages.html#TColorBuffer">TColorBuffer</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Color buffer where we draw, and from which it makes sense to grab pixels. Use with <a class="normal" href="CastleGLImages.html#SaveScreen_NoFlush">SaveScreen_NoFlush</a>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="SaveScreen"></a><code>function <b>SaveScreen</b>: <a href="CastleImages.TRGBImage.html">TRGBImage</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Capture the current control contents to an image. These functions take care of flushing any pending redraw operations and capturing the screen contents correctly.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Rect"></a><code>function <b>Rect</b>: <a href="CastleRectangles.TRectangle.html">TRectangle</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Rectangle representing the inside of this container. Always (Left,Bottom) are zero, and (Width,Height) correspond to container sizes.</p>
</td></tr>
</table>
<h3 class="detail">Properties</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="GLInitialized"></a><code>property <b>GLInitialized</b>: boolean read FGLInitialized;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Pressed"></a><code>property <b>Pressed</b>: <a href="CastleKeysMouse.TKeysPressed.html">TKeysPressed</a> read FPressed;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="MousePressed"></a><code>property <b>MousePressed</b>: <a href="CastleKeysMouse.html#TMouseButtons">CastleKeysMouse.TMouseButtons</a> read FMousePressed;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="MousePosition"></a><code>property <b>MousePosition</b>: <a href="CastleVectors.html#TVector2Single">TVector2Single</a> read FMousePosition write SetMousePosition;</code></td>
</tr>
<tr><td colspan="2">
<p>
Current mouse position. See <a class="normal" href="CastleUIControls.TTouch.html#Position">TTouch.Position</a> for a documentation how this is expressed.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Fps"></a><code>property <b>Fps</b>: <a href="CastleTimeUtils.TFramesPerSecond.html">TFramesPerSecond</a> read FFps;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="Align"></a><code>property <b>Align</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Be cafeful about comments in the published section. They are picked up and shown automatically by Lazarus Object Inspector, and it has it's own logic, much much dumber than what PasDoc sees. There seems no way to hide comment there.
<p>We publish most, but not all, stuff from inherited TCustomOpenGLControl.
<p>Exceptions: - Don't publish, as not every widgetset has them. property RedBits; property GreenBits; property BlueBits; - Don't publish, as we have our own event for this. property <a class="normal" href="CastleControl.TCastleControlCustom.html#OnResize">OnResize</a>;</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="Anchors"></a><code>property <b>Anchors</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="AutoResizeViewport"></a><code>property <b>AutoResizeViewport</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Don't use, engine handles this completely.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="BorderSpacing"></a><code>property <b>BorderSpacing</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="Enabled"></a><code>property <b>Enabled</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OpenGLMajorVersion"></a><code>property <b>OpenGLMajorVersion</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OpenGLMinorVersion"></a><code>property <b>OpenGLMinorVersion</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="MultiSampling"></a><code>property <b>MultiSampling</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="AlphaBits"></a><code>property <b>AlphaBits</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="DepthBits"></a><code>property <b>DepthBits</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="StencilBits"></a><code>property <b>StencilBits</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="AUXBuffers"></a><code>property <b>AUXBuffers</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnChangeBounds"></a><code>property <b>OnChangeBounds</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnConstrainedResize"></a><code>property <b>OnConstrainedResize</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnDblClick"></a><code>property <b>OnDblClick</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnDragDrop"></a><code>property <b>OnDragDrop</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnDragOver"></a><code>property <b>OnDragOver</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnEnter"></a><code>property <b>OnEnter</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnExit"></a><code>property <b>OnExit</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnMakeCurrent"></a><code>property <b>OnMakeCurrent</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Don't use, engine handles this completely.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnClick"></a><code>property <b>OnClick</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Deprecated, use <a class="normal" href="CastleControl.TCastleControlCustom.html#OnPress">OnPress</a> instead.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnKeyDown"></a><code>property <b>OnKeyDown</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Deprecated, use <a class="normal" href="CastleControl.TCastleControlCustom.html#OnPress">OnPress</a> instead.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnKeyPress"></a><code>property <b>OnKeyPress</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Deprecated, use <a class="normal" href="CastleControl.TCastleControlCustom.html#OnPress">OnPress</a> instead.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnKeyUp"></a><code>property <b>OnKeyUp</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Deprecated, use <a class="normal" href="CastleControl.TCastleControlCustom.html#OnRelease">OnRelease</a> instead.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnMouseDown"></a><code>property <b>OnMouseDown</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Deprecated, use <a class="normal" href="CastleControl.TCastleControlCustom.html#OnPress">OnPress</a> instead.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnMouseMove"></a><code>property <b>OnMouseMove</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Deprecated, use <a class="normal" href="CastleControl.TCastleControlCustom.html#OnMotion">OnMotion</a> instead.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnMouseUp"></a><code>property <b>OnMouseUp</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Deprecated, use <a class="normal" href="CastleControl.TCastleControlCustom.html#OnRelease">OnRelease</a> instead.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnMouseWheel"></a><code>property <b>OnMouseWheel</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Deprecated, use <a class="normal" href="CastleControl.TCastleControlCustom.html#OnPress">OnPress</a> instead.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnMouseWheelDown"></a><code>property <b>OnMouseWheelDown</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Deprecated, use <a class="normal" href="CastleControl.TCastleControlCustom.html#OnPress">OnPress</a> instead.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnMouseWheelUp"></a><code>property <b>OnMouseWheelUp</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Deprecated, use <a class="normal" href="CastleControl.TCastleControlCustom.html#OnPress">OnPress</a> instead.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnMouseEnter"></a><code>property <b>OnMouseEnter</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnMouseLeave"></a><code>property <b>OnMouseLeave</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnPaint"></a><code>property <b>OnPaint</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Deprecated, use <a class="normal" href="CastleControl.TCastleControlCustom.html#OnRender">OnRender</a> instead.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnShowHint"></a><code>property <b>OnShowHint</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="PopupMenu"></a><code>property <b>PopupMenu</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="ShowHint"></a><code>property <b>ShowHint</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="Visible"></a><code>property <b>Visible</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnOpen"></a><code>property <b>OnOpen</b>: TNotifyEvent read FOnOpen write FOnOpen ;</code></td>
</tr>
<tr><td colspan="2">
<p>
Event called when the OpenGL context is created, you can initialize things that require OpenGL context now. Often you do not need to use this callback (engine components will automatically create/release OpenGL resource when necessary), but sometimes it may be handy (e.g. <a class="normal" href="CastleGLImages.TGLImage.html">TGLImage</a> requires OpenGL context). You usually will also want to implement <a class="normal" href="CastleControl.TCastleControlCustom.html#OnClose">OnClose</a> callback that releases stuff created here.
<p>Even when you really need to initialize some OpenGL resource (like <a class="normal" href="CastleGLImages.TGLImage.html">TGLImage</a>), instead of using this callback it's usually better to derive new classes from <a class="normal" href="CastleUIControls.TUIControl.html">TUIControl</a> class or it's descendants, and override their GLContextOpen / GLContextClose methods to react to context being open/closed. Using such <a class="normal" href="CastleUIControls.TUIControl.html">TUIControl</a> classes is usually easier, as you add/remove them from controls whenever you want (e.g. you add them in ApplicationInitialize), and underneath they create/release/create again the OpenGL resources when necessary.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnClose"></a><code>property <b>OnClose</b>: TNotifyEvent read FOnClose write FOnClose ;</code></td>
</tr>
<tr><td colspan="2">
<p>
Event called when the context is closed, right before the OpenGL context is destroyed. This is your last chance to release OpenGL resources, like textures, shaders, display lists etc. This is a counterpart to <a class="normal" href="CastleControl.TCastleControlCustom.html#OnOpen">OnOpen</a> event.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnBeforeRender"></a><code>property <b>OnBeforeRender</b>: TNotifyEvent read FOnBeforeRender write FOnBeforeRender;</code></td>
</tr>
<tr><td colspan="2">
<p>
Event always called right before <a class="normal" href="CastleControl.TCastleControlCustom.html#OnRender">OnRender</a>. These two events, <code>OnBeforeRender</code> and <a class="normal" href="CastleControl.TCastleControlCustom.html#OnRender">OnRender</a>, will be always called sequentially as a pair.
<p>The only difference between these two events is that time spent in <code>OnBeforeRender</code> is NOT counted as "frame time" by Fps.FrameTime. This is useful when you have something that needs to be done from time to time right before <a class="normal" href="CastleControl.TCastleControlCustom.html#OnRender">OnRender</a> and that is very time-consuming. It such cases it is not desirable to put such time-consuming task inside <a class="normal" href="CastleControl.TCastleControlCustom.html#OnRender">OnRender</a> because this would cause a sudden big change in Fps.FrameTime value. So you can avoid this by putting this in <code>OnBeforeRender</code>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnRender"></a><code>property <b>OnRender</b>: TNotifyEvent read FOnRender write FOnRender ;</code></td>
</tr>
<tr><td colspan="2">
<p>
Render window contents here.
<p>Called when window contents must be redrawn, e.g. after creating a window, after resizing a window, after uncovering the window etc. You can also request yourself a redraw of the window by the Invalidate method, which will cause this event to be called at nearest good time.
<p>Note that calling Invalidate while in <code>OnRender</code> is not ignored. It means that in a short time next <code>OnRender</code> will be called.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnResize"></a><code>property <b>OnResize</b>: TNotifyEvent read FOnResize write FOnResize ;</code></td>
</tr>
<tr><td colspan="2">
<p>
Called when the control size (<code>Width</code>, <code>Height</code>) changes. It's also guaranteed to be called right after the <a class="normal" href="CastleControl.TCastleControlCustom.html#OnOpen">OnOpen</a> event.
<p>Our OpenGL context is already "current" when this event is called (<a class="normal" href="CastleControl.TCastleControlCustom.html#MakeCurrent">MakeCurrent</a> is done right before), like for other events. This is a good place to set OpenGL viewport and projection matrix.
<p>In the usual case, the SceneManager takes care of setting appropriate OpenGL projection, so you don't need to do anything here.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnPress"></a><code>property <b>OnPress</b>: <a href="CastleControl.html#TControlInputPressReleaseEvent">TControlInputPressReleaseEvent</a> read FOnPress write FOnPress ;</code></td>
</tr>
<tr><td colspan="2">
<p>
Called when user presses a key or mouse button or moves mouse wheel.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnRelease"></a><code>property <b>OnRelease</b>: <a href="CastleControl.html#TControlInputPressReleaseEvent">TControlInputPressReleaseEvent</a> read FOnRelease write FOnRelease ;</code></td>
</tr>
<tr><td colspan="2">
<p>
Called when user releases a pressed key or mouse button.
<p>It's called right after <code>Pressed[Key]</code> changed from true to false.
<p>The <a class="normal" href="CastleKeysMouse.TInputPressRelease.html">TInputPressRelease</a> structure, passed as a parameter to this event, contains the exact information what was released.
<p>Note that reporting characters for "key release" messages is not perfect, as various key combinations (sometimes more than one?) may lead to generating given character. We have some intelligent algorithm for this, used to make Characters table and to detect this C for <code>OnRelease</code> callback. The idea is that a character is released when the key that initially caused the press of this character is also released.
<p>This solves in a determined way problems like "what happens if I press Shift, then X, then release Shift, then release X". (will "X" be correctly released as pressed and then released? yes. will small "x" be reported as released at the end? no, as it was never pressed.)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnMotion"></a><code>property <b>OnMotion</b>: <a href="CastleControl.html#TControlInputMotionEvent">TControlInputMotionEvent</a> read FOnMotion write FOnMotion ;</code></td>
</tr>
<tr><td colspan="2">
<p>
Mouse or a finger on touch device moved.
<p>For a mouse, remember you always have the currently pressed mouse buttons in <a class="normal" href="CastleControl.TCastleControlCustom.html#MousePressed">MousePressed</a>. When this is called, the <a class="normal" href="CastleControl.TCastleControlCustom.html#MousePosition">MousePosition</a> property records the <i>previous</i> mouse position, while callback parameter NewMousePosition gives the <i>new</i> mouse position.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnUpdate"></a><code>property <b>OnUpdate</b>: TNotifyEvent read FOnUpdate write FOnUpdate ;</code></td>
</tr>
<tr><td colspan="2">
<p>
Continously occuring event. This event is called at least as regularly as redraw, so it is continously called even when your game is overwhelmed by messages (like mouse moves) and redraws.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="TabOrder"></a><code>property <b>TabOrder</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="TabStop"></a><code>property <b>TabStop</b> default true;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="Container"></a><code>property <b>Container</b>: TContainer read FContainer;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://michalis.ii.uni.wroc.pl/piwik-castle-engine/";
_paq.push(["setTrackerUrl", u+"piwik.php"]);
_paq.push(["setSiteId", "1"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->
<noscript>
<!-- Piwik Image Tracker -->
<img src="http://michalis.ii.uni.wroc.pl/piwik-castle-engine/piwik.php?idsite=1&rec=1" style="border:0" alt="" />
<!-- End Piwik -->
</noscript>
<hr noshade size="1"><span class="appinfo"><em>Generated by <a href="http://pasdoc.sourceforge.net/">PasDoc 0.13.0</a> on 2015-06-15 04:43:09</em>
</span>
</td></tr></table></body></html>
|