Debian Codegraph @

src/ui/castleuicontrols.pas

raw
1 {
2 Copyright 2009-2023 Michalis Kamburelis, Tomasz Wojtyś.
3
4 This file is part of "Castle Game Engine".
5
6 "Castle Game Engine" is free software; see the file COPYING.txt,
7 included in this distribution, for details about the copyright.
8
9 "Castle Game Engine" is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13 ----------------------------------------------------------------------------
14 }
15
16 { User interface basic classes: @link(TCastleUserInterface), @link(TCastleContainer). }
17 unit CastleUIControls;
18
19 {$I castleconf.inc}
20
21 interface
22
23 uses SysUtils, Classes, Generics.Collections,
24 CastleKeysMouse, CastleUtils, CastleClassUtils, CastleGLUtils, CastleFonts,
25 CastleRectangles, CastleTimeUtils, CastleInternalPk3DConnexion, CastleColors,
26 CastleImages, CastleVectors, CastleJoysticks, CastleApplicationProperties,
27 CastleGLImages, CastleRenderContext, CastleComponentSerialize,
28 CastleMessaging, CastleStringUtils;
29
30 {$define read_interface}
31
32 {$I castleuicontrols_initial_constants.inc}
33
34 type
35 {$I castleuicontrols_initial_types.inc}
36 {$I castleuicontrols_touchlist.inc}
37 {$I castleuicontrols_inputinspector.inc}
38 {$I castleuicontrols_container.inc}
39 {$I castleuicontrols_userinterface.inc}
40 {$I castleuicontrols_userinterfacelist.inc}
41 {$I castleuicontrols_view.inc}
42 {$I castleuicontrols_internalchildrencontrols.inc}
43 {$I castleuicontrols_deprecated.inc}
44 {$I castleuicontrols_theme.inc} // ends the "type" clause
45
46 {$I castleuicontrols_serialize.inc}
47 {$I castleuicontrols_miscellaneous_globals.inc}
48
49 {$undef read_interface}
50
51 implementation
52
53 uses DOM, TypInfo, Math,
54 {$ifdef OpenGLES} CastleGLES, {$else} CastleGL, {$endif}
55 CastleLog, CastleXmlUtils,
56 CastleInternalSettings, CastleFilesUtils, CastleUriUtils, CastleRenderOptions,
57 CastleInternalInspector, CastleInternalControlsImages, CastleInternalGLUtils;
58
59 {$define read_implementation}
60 {$I castleuicontrols_initial_types.inc}
61 {$I castleuicontrols_touchlist.inc}
62 {$I castleuicontrols_inputinspector.inc}
63 {$I castleuicontrols_container.inc}
64 {$I castleuicontrols_userinterface.inc}
65 {$I castleuicontrols_userinterfacelist.inc}
66 {$I castleuicontrols_view.inc}
67 {$I castleuicontrols_internalchildrencontrols.inc}
68 {$I castleuicontrols_deprecated.inc}
69 {$I castleuicontrols_theme.inc}
70 {$I castleuicontrols_serialize.inc}
71 {$I castleuicontrols_miscellaneous_globals.inc}
72 {$undef read_implementation}
73
74 initialization
75 InitializeInputInspector;
76 InitializationTheme;
77 { TODO: The InitializeInputInspectorDebug is called from here only
78 temporarily (in case user didn't update the project to have new
79 CastleAutoGenerated that calls ApplicationProperties.InitializeDebug,
80 but expects to see inspector on F8 when compiling with build tool). }
81 {$ifdef DEBUG}
82 InitializeInputInspectorDebug;
83 {$endif}
84 RegisterSerializableComponent(TCastleUserInterface, 'Empty Rectangle');
85 finalization
86 FinalizeInputInspector;
87 FinalizationTheme;
88 end.