Debian Codegraph @

src/scene/x3d/x3dnodes_standard_layout.inc

raw
1 {%MainUnit x3dnodes.pas}
2 {
3 Copyright 2008-2021 Michalis Kamburelis.
4
5 This file is part of "Castle Game Engine".
6
7 "Castle Game Engine" is free software; see the file COPYING.txt,
8 included in this distribution, for details about the copyright.
9
10 "Castle Game Engine" is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
14 ----------------------------------------------------------------------------
15 }
16
17 {$ifdef read_interface}
18 { }
19 TAbstractLayoutNode = class(TAbstractChildNode)
20 {$I auto_generated_node_helpers/x3dnodes_x3dlayoutnode.inc}
21 end;
22
23 TLayoutNode = class(TAbstractLayoutNode)
24 {$I auto_generated_node_helpers/x3dnodes_layout.inc}
25 end;
26
27 TLayoutGroupNode = class(TAbstractGroupingNode)
28 {$I auto_generated_node_helpers/x3dnodes_layoutgroup.inc}
29 end;
30
31 TLayoutLayerNode = class(TAbstractLayerNode)
32 {$I auto_generated_node_helpers/x3dnodes_layoutlayer.inc}
33 end;
34
35 TScreenFontStyleNode = class(TAbstractFontStyleNode)
36 {$I auto_generated_node_helpers/x3dnodes_screenfontstyle.inc}
37 end;
38
39 TScreenGroupNode = class(TAbstractGroupingNode)
40 {$I auto_generated_node_helpers/x3dnodes_screengroup.inc}
41 end;
42
43 {$endif read_interface}
44
45 {$ifdef read_implementation}
46
47 const
48 { TODO: Duplicates X3DNodes definition. }
49 FontStyleNames: array [TX3DFontStyle] of String =
50 ('PLAIN', 'BOLD', 'ITALIC', 'BOLDITALIC');
51
52 {$I auto_generated_node_helpers/x3dnodes_x3dlayoutnode.inc}
53 {$I auto_generated_node_helpers/x3dnodes_layout.inc}
54 {$I auto_generated_node_helpers/x3dnodes_layoutgroup.inc}
55 {$I auto_generated_node_helpers/x3dnodes_layoutlayer.inc}
56 {$I auto_generated_node_helpers/x3dnodes_screenfontstyle.inc}
57 {$I auto_generated_node_helpers/x3dnodes_screengroup.inc}
58
59 procedure RegisterLayoutNodes;
60 begin
61 NodesManager.RegisterNodeClasses([
62 TLayoutNode,
63 TLayoutGroupNode,
64 TLayoutLayerNode,
65 TScreenFontStyleNode,
66 TScreenGroupNode
67 ]);
68 end;
69
70 {$endif read_implementation}