Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_screenfontstyle.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 GetHorizontal: Boolean;
28 procedure SetHorizontal(const Value: Boolean);
29 function GetLanguage: String;
30 procedure SetLanguage(const Value: String);
31 function GetLeftToRight: Boolean;
32 procedure SetLeftToRight(const Value: Boolean);
33 function GetPointSize: Single;
34 procedure SetPointSize(const Value: Single);
35 function GetSpacing: Single;
36 procedure SetSpacing(const Value: Single);
37 function GetStyle: TX3DFontStyle;
38 procedure SetStyle(const Value: TX3DFontStyle);
39 function GetTopToBottom: Boolean;
40 procedure SetTopToBottom(const Value: Boolean);
41 public
42 { Create node fields and events. }
43 procedure CreateNode; override;
44 class function ClassX3DType: String; override;
45
46 strict private FFdFamily: TMFString;
47 { Internal wrapper for property @code(Family). This wrapper API may change, we advise to access simpler @code(Family) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
48 public property FdFamily: TMFString read FFdFamily;
49
50 strict private FFdHorizontal: TSFBool;
51 { Internal wrapper for property @code(Horizontal). This wrapper API may change, we advise to access simpler @code(Horizontal) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
52 public property FdHorizontal: TSFBool read FFdHorizontal;
53 { }
54 property Horizontal: Boolean read GetHorizontal write SetHorizontal;
55
56 strict private FFdJustify: TMFString;
57 { Internal wrapper for property @code(Justify). This wrapper API may change, we advise to access simpler @code(Justify) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
58 public property FdJustify: TMFString read FFdJustify;
59
60 strict private FFdLanguage: TSFString;
61 { Internal wrapper for property @code(Language). This wrapper API may change, we advise to access simpler @code(Language) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
62 public property FdLanguage: TSFString read FFdLanguage;
63 { }
64 property Language: String read GetLanguage write SetLanguage;
65
66 strict private FFdLeftToRight: TSFBool;
67 { Internal wrapper for property @code(LeftToRight). This wrapper API may change, we advise to access simpler @code(LeftToRight) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
68 public property FdLeftToRight: TSFBool read FFdLeftToRight;
69 { }
70 property LeftToRight: Boolean read GetLeftToRight write SetLeftToRight;
71
72 strict private FFdPointSize: TSFFloat;
73 { Internal wrapper for property @code(PointSize). This wrapper API may change, we advise to access simpler @code(PointSize) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
74 public property FdPointSize: TSFFloat read FFdPointSize;
75 { }
76 property PointSize: Single read GetPointSize write SetPointSize;
77
78 strict private FFdSpacing: TSFFloat;
79 { Internal wrapper for property @code(Spacing). This wrapper API may change, we advise to access simpler @code(Spacing) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
80 public property FdSpacing: TSFFloat read FFdSpacing;
81 { }
82 property Spacing: Single read GetSpacing write SetSpacing;
83
84 strict private FFdStyle: TSFStringEnum;
85 { Internal wrapper for property @code(Style). This wrapper API may change, we advise to access simpler @code(Style) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
86 public property FdStyle: TSFStringEnum read FFdStyle;
87 { }
88 property Style: TX3DFontStyle read GetStyle write SetStyle;
89
90 strict private FFdTopToBottom: TSFBool;
91 { Internal wrapper for property @code(TopToBottom). This wrapper API may change, we advise to access simpler @code(TopToBottom) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
92 public property FdTopToBottom: TSFBool read FFdTopToBottom;
93 { }
94 property TopToBottom: Boolean read GetTopToBottom write SetTopToBottom;
95
96 {$endif read_interface}
97
98 {$ifdef read_implementation}
99
100 { TScreenFontStyleNode ----------------------------------------------- }
101
102 function TScreenFontStyleNode.GetHorizontal: Boolean;
103 begin
104 Result := FdHorizontal.Value;
105 end;
106
107 procedure TScreenFontStyleNode.SetHorizontal(const Value: Boolean);
108 begin
109 FdHorizontal.Send(Value);
110 end;
111
112 function TScreenFontStyleNode.GetLanguage: String;
113 begin
114 Result := FdLanguage.Value;
115 end;
116
117 procedure TScreenFontStyleNode.SetLanguage(const Value: String);
118 begin
119 FdLanguage.Send(Value);
120 end;
121
122 function TScreenFontStyleNode.GetLeftToRight: Boolean;
123 begin
124 Result := FdLeftToRight.Value;
125 end;
126
127 procedure TScreenFontStyleNode.SetLeftToRight(const Value: Boolean);
128 begin
129 FdLeftToRight.Send(Value);
130 end;
131
132 function TScreenFontStyleNode.GetPointSize: Single;
133 begin
134 Result := FdPointSize.Value;
135 end;
136
137 procedure TScreenFontStyleNode.SetPointSize(const Value: Single);
138 begin
139 FdPointSize.Send(Value);
140 end;
141
142 function TScreenFontStyleNode.GetSpacing: Single;
143 begin
144 Result := FdSpacing.Value;
145 end;
146
147 procedure TScreenFontStyleNode.SetSpacing(const Value: Single);
148 begin
149 FdSpacing.Send(Value);
150 end;
151
152 function TScreenFontStyleNode.GetStyle: TX3DFontStyle;
153 begin
154 Result := TX3DFontStyle(FdStyle.EnumValue);
155 end;
156
157 procedure TScreenFontStyleNode.SetStyle(const Value: TX3DFontStyle);
158 begin
159 FdStyle.SendEnumValue(Ord(Value));
160 end;
161
162 function TScreenFontStyleNode.GetTopToBottom: Boolean;
163 begin
164 Result := FdTopToBottom.Value;
165 end;
166
167 procedure TScreenFontStyleNode.SetTopToBottom(const Value: Boolean);
168 begin
169 FdTopToBottom.Send(Value);
170 end;
171
172 class function TScreenFontStyleNode.ClassX3DType: String;
173 begin
174 Result := 'ScreenFontStyle';
175 end;
176
177 procedure TScreenFontStyleNode.CreateNode;
178 begin
179 inherited;
180
181 FFdFamily := TMFString.Create(Self, False, 'family', ['SERIF']);
182 FdFamily.ChangeAlways := chVisibleNonGeometry;
183 AddField(FFdFamily);
184
185 FFdHorizontal := TSFBool.Create(Self, False, 'horizontal', true);
186 FdHorizontal.ChangeAlways := chVisibleNonGeometry;
187 AddField(FFdHorizontal);
188
189 FFdJustify := TMFString.Create(Self, False, 'justify', ['BEGIN']);
190 FdJustify.ChangeAlways := chVisibleNonGeometry;
191 AddField(FFdJustify);
192
193 FFdLanguage := TSFString.Create(Self, False, 'language', '');
194 FdLanguage.ChangeAlways := chVisibleNonGeometry;
195 AddField(FFdLanguage);
196
197 FFdLeftToRight := TSFBool.Create(Self, False, 'leftToRight', true);
198 FdLeftToRight.ChangeAlways := chVisibleNonGeometry;
199 AddField(FFdLeftToRight);
200
201 FFdPointSize := TSFFloat.Create(Self, False, 'pointSize', 12.0);
202 FdPointSize.ChangeAlways := chVisibleNonGeometry;
203 FdPointSize.MustBeNonnegative := true;
204 AddField(FFdPointSize);
205
206 FFdSpacing := TSFFloat.Create(Self, False, 'spacing', 1.0);
207 FdSpacing.ChangeAlways := chVisibleNonGeometry;
208 FdSpacing.MustBeNonnegative := true;
209 AddField(FFdSpacing);
210
211 FFdStyle := TSFStringEnum.Create(Self, False, 'style', @FontStyleNames, Ord(High(FontStyleNames)) + 1, Ord(fsPlain));
212 FdStyle.ChangeAlways := chVisibleNonGeometry;
213 AddField(FFdStyle);
214
215 FFdTopToBottom := TSFBool.Create(Self, False, 'topToBottom', true);
216 FdTopToBottom.ChangeAlways := chVisibleNonGeometry;
217 AddField(FFdTopToBottom);
218 end;
219
220 {$endif read_implementation}