Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_anchor.inc

raw
1 { -*- buffer-read-only: t -*-
2
3 Copyright 2015-2024 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 { Automatically generated node properties.
18
19 Do not edit this file manually!
20 To add new properties:
21 - add them to the text files in tools/internal/x3d-nodes-to-pascal/nodes-specification/ ,
22 - and regenerate include files by running x3d-nodes-to-pascal }
23
24 {$ifdef read_interface}
25
26 strict private
27 function GetDescription: String;
28 procedure SetDescription(const Value: String);
29 public
30 { Create node fields and events. }
31 procedure CreateNode; override;
32 class function ClassX3DType: String; override;
33
34 strict private FFdDescription: TSFString;
35 { Internal wrapper for property @code(Description). This wrapper API may change, we advise to access simpler @code(Description) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
36 public property FdDescription: TSFString read FFdDescription;
37 { }
38 property Description: String read GetDescription write SetDescription;
39
40 strict private FFdParameter: TMFString;
41 { Internal wrapper for property @code(Parameter). This wrapper API may change, we advise to access simpler @code(Parameter) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
42 public property FdParameter: TMFString read FFdParameter;
43 { }
44 procedure SetParameter(const Value: array of string); overload;
45 { }
46 procedure SetParameter(const Value: TCastleStringList); overload;
47
48 strict private FFdUrl: TMFString;
49 { Internal wrapper for property @code(Url). This wrapper API may change, we advise to access simpler @code(Url) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
50 public property FdUrl: TMFString read FFdUrl;
51 { }
52 procedure SetUrl(const Value: array of string); overload;
53 { }
54 procedure SetUrl(const Value: TCastleStringList); overload;
55
56 {$endif read_interface}
57
58 {$ifdef read_implementation}
59
60 { TAnchorNode ----------------------------------------------- }
61
62 function TAnchorNode.GetDescription: String;
63 begin
64 Result := FdDescription.Value;
65 end;
66
67 procedure TAnchorNode.SetDescription(const Value: String);
68 begin
69 FdDescription.Send(Value);
70 end;
71
72 procedure TAnchorNode.SetParameter(const Value: array of string);
73 begin
74 FdParameter.Send(Value);
75 end;
76
77 procedure TAnchorNode.SetParameter(const Value: TCastleStringList);
78 begin
79 FdParameter.Send(Value);
80 end;
81
82 procedure TAnchorNode.SetUrl(const Value: array of string);
83 begin
84 FdUrl.Send(Value);
85 end;
86
87 procedure TAnchorNode.SetUrl(const Value: TCastleStringList);
88 begin
89 FdUrl.Send(Value);
90 end;
91
92 class function TAnchorNode.ClassX3DType: String;
93 begin
94 Result := 'Anchor';
95 end;
96
97 procedure TAnchorNode.CreateNode;
98 begin
99 inherited;
100
101 FFdDescription := TSFString.Create(Self, True, 'description', '');
102 FdDescription.ChangeAlways := chNone;
103 AddField(FFdDescription);
104
105 FFdParameter := TMFString.Create(Self, True, 'parameter', []);
106 FdParameter.ChangeAlways := chVisibleNonGeometry;
107 AddField(FFdParameter);
108
109 FFdUrl := TMFString.Create(Self, True, 'url', []);
110 FdUrl.ChangeAlways := chVisibleNonGeometry;
111 AddField(FFdUrl);
112 end;
113
114 {$endif read_implementation}